I believe 'connect' is part of QObject, but I doubt it'll work without a QApplication.
I believe 'connect' is part of QObject, but I doubt it'll work without a QApplication.
Hey,
Right,first off you have to initiate a QApplication object (for event dispatching,application initialization,etc. look at the Assistant for full info).
Then,it's not quite clear what you're trying to get connected.I mean if the code's snippet you provided is the main() program function then...what is "this" then? THere are two "types" of timers available:
1.Event-driven timer (look at the int QObject::startTimer(int) )
2.QTimer signals
There's a great explanation of both in Assistant,so check it out...
If you're using connect outside the class (let's say in the main(int argc,char* argv[]) function),you should use the static version of it:
Qobject::connect(...);
hakermania (27th December 2010)
Thx for the replies, I really appreciate it!![]()
When you 're trying to help somebody in the newbie section, don't forget that he is a newbie. Be specific and give examples.
Bookmarks