PDA

View Full Version : What is equivalent to CreateEvent of windows(VC++) in QT???



Gokulnathvc
31st March 2011, 06:13
CreateEvent equivalent in QT??

ChrisW67
31st March 2011, 06:40
From http://msdn.microsoft.com/en-us/library/ms686915%28v=vs.85%29.aspx:


Applications can use event objects in a number of situations to notify a waiting thread of the occurrence of an event.


In some circumstances the Qt equivalent is signal and slot(s). It seems the CreateEvent mechanism can be used to provide mutual exclusion in which case QMutex would be a close match and QSemaphore less so. Which suits your application best really depends on what your application is.

Gokulnathvc
1st April 2011, 07:29
How to set those events when ever we want.??/