Hi
For a quick solution change as below:
HB_FUNC( QT_DISCONNECT_EVENT )
{
QObject * object = ( QObject * ) hb_parptr( 1 );
int type = hb_parni( 2 );
bool bRet = false;
Events * s_e = qt_getEventFilter();
char str[ 10 ];
hb_snprintf( str, sizeof( str ), "%s%i%s", "P", type, "P" ); /* Make
it a unique identifier */
...
}
=>
HB_FUNC( QT_DISCONNECT_EVENT )
{
int type = hb_parni( 2 );
bool bRet = false;
Events * s_e = qt_getEventFilter();
QObject * object = ( QObject* ) hbqt_gcpointer( 1 ); /* get
sender */
if( !object )
{
object = ( QObject* ) hb_parptr( 1 );
}
char str[ 10 ];
hb_snprintf( str, sizeof( str ), "%s%i%s", "P", type, "P" ); /* Make
it a unique identifier */
...
}
And let me know if it helps.
Regards
Pritpal Bedi
--
View this message in context:
http://www.nabble.com/HbQt-and-Connect-Events-tp25976580p25979231.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour