摘要:
添加鼠标点击事件 void mouseMoveEvent(QMouseEvent *event); void mousePressEvent(QMouseEvent *event); QPoint m_startPoint; QPoint m_windowPoint;头文件 #include <Qt 阅读全文
posted @ 2020-05-13 14:39
手札记
阅读(809)
评论(0)
推荐(0)
摘要:
第1——关闭软件 QApplication* app; app->quit(); 第2——键盘事件 void MainWindow::keyPressEvent(QKeyEvent *event){ if( event->key()==Qt::Key_Exclam){ qDebug()<<"点击"; 阅读全文
posted @ 2020-05-13 13:44
手札记
阅读(141)
评论(0)
推荐(0)

浙公网安备 33010602011771号