摘要: 头文件加入这两句: #include <QPoint> //坐标点 #include <QMouseEvent> //鼠标事件 public: // 移动窗口的变量; bool m_isPressed; //鼠标按下标志 QPoint m_startMovePos; //开始移动的坐标点 prote 阅读全文
posted @ 2022-07-29 20:11 雾枫 阅读(662) 评论(0) 推荐(0) 编辑
摘要: 代码: void DefinedTitleBar::mouseReleaseEvent(QMouseEvent* event) //鼠标释放事件 { m_isPressed = false; qDebug() << QString::fromLocal8Bit("鼠标释放:") << endl << 阅读全文
posted @ 2022-07-29 20:01 雾枫 阅读(50) 评论(0) 推荐(0) 编辑