Pritpal, Vagelis,
Try .-
HB_FUNC( QT_QFONT_HANDLE )
{
hb_retptr( ( void * ) hbqt_par_QFont( 1 )->handle() );
}
Xavi
Pritpal Bedi escribió:
Hello
Vagelis Skarmaliorakis wrote:
My installation is Arch Linux 64bit, compiler gcc.
I am getting the following error:
make[3]: Entering directory
`/home/vagskarm/my_svn/harbour/contrib/hbqt/linux/gcc'
gcc -I. -I../../../../include -Wall -W -O3 -fPIC -I/usr/include
-I/usr/include -c ../../hbqt_qfont.cpp -ohbqt_qfont.o
../../hbqt_qfont.cpp: In function ‘void HB_FUN_QT_QFONT_HANDLE()’:
../../hbqt_qfont.cpp:147: error: ‘HFONT’ was not declared in this scope
After some search for HFONT i found the following at hqfont.h :
#ifdef Q_WS_WIN
HFONT handle() const;
#else // !Q_WS_WIN
Qt::HANDLE handle() const;
#endif // Q_WS_WIN
Does it have to do with the compilation error ?
I can assume that on linux HFONT is not supported,
as per above, instead it should be Qt::HANDLE.
Now the question is how should we resolve it?
Xavi, Marcos?
Must i build first harbour and then the sources for qt ?
Not neccessarily, though it should be a good-practice rule.
Regards
Pritpal Bedi
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour