hi,
I am using QTimer in my code, i created QTimer object and connectecd timeout signal to one slot. I am giving 5 millisec timeout for timer. but that slot is not calling after timeout.
Any specific way to use the timer?
My code is:
connect(m_pTimer, SIGNAL(timeout()), this, SLOT(TimerNotification()));
m_pTimer = new QTimer();
connect(m_pTimer, SIGNAL(timeout()), this, SLOT(TimerNotification()));
To copy to clipboard, switch view to plain text mode
in buttonClick function:
m_pTimer->start(2000);
m_pTimer->start(2000);
To copy to clipboard, switch view to plain text mode
Bookmarks