网站首页
编程语言
数据库
系统相关
其他分享
编程问答
dragging
2024-05-21
qt拖动窗口
voida::mousePressEvent(QMouseEvent*event){if(event->button()==Qt::LeftButton&&event->pos().y()<(this->height()-mainWidget->height())){m_dragging=true;m_dragStarPos=event->pos();}}voida::