Advertisement
Guest User

Untitled

a guest
Apr 5th, 2015
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include "myclass.h"
  2.  
  3. MyClass::MyClass()
  4. {
  5.     m_Timer = new QTimer(this);
  6.     connect(m_Timer, SIGNAL(timeout()), this, SLOT(MyTimerSlot()));
  7.  
  8.     m_Timer->start(1000);
  9. }
  10.  
  11. MyClass::~MyClass()
  12. {
  13.  
  14. }
  15.  
  16. void MyClass::MyTimerSlot()
  17. {
  18.     QMessageBox::information(nullptr, "Title", "Running from myclass");
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement