Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "myclass.h"
- MyClass::MyClass()
- {
- m_Timer = new QTimer(this);
- connect(m_Timer, SIGNAL(timeout()), this, SLOT(MyTimerSlot()));
- m_Timer->start(1000);
- }
- MyClass::~MyClass()
- {
- }
- void MyClass::MyTimerSlot()
- {
- QMessageBox::information(nullptr, "Title", "Running from myclass");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement