PDA

View Full Version : Creating event manually and using them



vajindarladdad
28th August 2009, 06:26
Hi all Experts ,
Can somebody send me the example or a link for creating the events manually and using them ?

nish
28th August 2009, 06:59
you forgot to mention the postal address so that we can mail you the printed copy of the code.

franz
28th August 2009, 07:05
Read about QEvent

vajindarladdad
28th August 2009, 07:35
Hello Sir ,
Just need examples to explore the Events , I don't want a hard copy .
I was searching for the examples, where we create a Event object and use it .
But unfortunately i didn't find .

victor.fernandez
28th August 2009, 08:02
Take a look at QCoreApplication::postEvent().

For example:



QLineEdit *lineEdit = new QLineEdit(this);

QKeyEvent *event = new QKeyEvent(QEvent::KeyPress, Qt::Key_Return, Qt::NoModifier);
qApp->postEvent(lineEdit, event);


Search in this forum and you will find more examples.