wxWidgets Timer - Qt version
-
wrote on 23 Dec 2022, 08:59 last edited by
Hello all, can anyone tell me how I can get similar functionality in Qt for the following wxWidgets code... (I don't have wxWidgets avaiable) - Is there a similar Timer functionality in Qt?
const long Widget::ID_TIMER1 = wxNewId(); Connect(ID_TIMER1,wxEVT_TIMER,(wxObjectEventFunction)&Widget::OnTimer1Trigger);
And then the function...
void Widget::OnTimer1Trigger(wxTimerEvent& event){ //some code... }
What is the equivalent in Qt?
Thanks
-
Hello all, can anyone tell me how I can get similar functionality in Qt for the following wxWidgets code... (I don't have wxWidgets avaiable) - Is there a similar Timer functionality in Qt?
const long Widget::ID_TIMER1 = wxNewId(); Connect(ID_TIMER1,wxEVT_TIMER,(wxObjectEventFunction)&Widget::OnTimer1Trigger);
And then the function...
void Widget::OnTimer1Trigger(wxTimerEvent& event){ //some code... }
What is the equivalent in Qt?
Thanks
1/2