SHARE
TWEET

Untitled

a guest Jan 12th, 2017 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. this->setMouseTracking(true);
  2.  
  3. void MainWindow::mouseMoveEvent(QMouseEvent *event)
  4.     {
  5.         if (event->type() == QEvent::MouseMove)
  6.         {
  7.             QTimer *mousetimer = new QTimer(this);
  8.             connect(mousetimer, SIGNAL(timeout()), this, SLOT(on_logoutPushButton_clicked()));
  9.             mousetimer->start(5000);
  10.         }
  11.     }
  12.  
  13. void MainWindow::on_logoutPushButton_clicked()
  14. {
  15.  
  16.     this->close();
  17.     newauth = new AuthDialog;
  18.     newauth->show();
  19. }
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top