PDA

View Full Version : Question about QTimer and slots



hakermania
17th July 2011, 10:09
Hello :)
So, I have a Qtimer and I connect it to a slot.
When I receive a signal, the qtimer connects to another slot.
I assumed that QTimer would disconnect from the first slot but it doesn't, it run both slots simultaneously.
How do I disconnect the qtimer from the 1st slot?

Thanks!

mvuori
17th July 2011, 11:04
How about QObject::disconnect()?

Zlatomir
17th July 2011, 11:06
You use disconnect (http://doc.qt.nokia.com/4.7/qobject.html#disconnect-2)
LE: too late

hakermania
17th July 2011, 13:35
Good ;) Thanks both :)