[solved]QEvent , is it Possible to handle it in console application with no QObject?
-
wrote on 10 Nov 2010, 11:13 last edited by
is it Possible to handle QEvent in console application with no QObject?
ex:
a console application get the key press or mouse keys event
or the event must handle in QObject class -
wrote on 10 Nov 2010, 11:17 last edited by
No. QEvents are delivered by QApplication to QObjects. See "Events and Filters":http://doc.trolltech.com/latest/eventsandfilters.html.
-
wrote on 10 Nov 2010, 11:24 last edited by
thanks ,
these all functions the QObject is main parameter in it
but I ask to be sure
bool QCoreApplication::notify ( QObject * receiver, QEvent * event )
void QCoreApplication::postEvent ( QObject * receiver, QEvent * event )
void QCoreApplication::postEvent ( QObject * receiver, QEvent * event, int priority )
thanks again -
wrote on 10 Nov 2010, 13:59 last edited by
No problem.
1/4