Advertisement
Guest User

Untitled

a guest
Jan 12th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement