Pritpal,
Try this.-
#define hbqt_par_QString( n ) ( QString::fromLatin1( hb_parc( n
) ) )
/*
* QFont ()
* QFont ( const QString & family, int pointSize = -1, int weight = -1, bool
italic = false )
* QFont ( const QFont & font, QPaintDevice * pd )
* QFont ( const QFont & font )
*/
HB_FUNC( QT_QFONT )
{
if( ISCHAR( 1 ) )
{
hb_retptr( ( QFont* ) new QFont( hbqt_par_QString( 1 ),
HB_ISNUM( 2 ) ? hb_parni( 2 ) : -1,
HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1,
hb_parl( 4 ) ) );
}
else
{
hb_retptr( ( QFont* ) new QFont() );
}
}
Xavi
Pritpal Bedi escribió:
Hi
Xavi-13 wrote:
Sure, I don't understand.
Note : on prg level <QFont> is available as a pointer as QFont* font.
(*font)
(*hbqt_par_QFont( n ))
No it does not work as this.
Regards
Pritpal Bedi
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour