更新文档
This commit is contained in:
File diff suppressed because one or more lines are too long
BIN
docs/video_system/snap/2-25-1.jpg
Normal file
BIN
docs/video_system/snap/2-25-1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 214 KiB |
@@ -150,7 +150,9 @@ bool FramelessWidget2::eventFilter(QObject *watched, QEvent *event)
|
||||
}
|
||||
}
|
||||
} else if (type == QEvent::MouseButtonPress) {
|
||||
//记住鼠标按下的坐标+窗体区域
|
||||
//必须是鼠标左键
|
||||
if (qApp->mouseButtons() == Qt::LeftButton) {
|
||||
//记住鼠标按下的坐标和窗体区域
|
||||
QMouseEvent *mouseEvent = (QMouseEvent *)event;
|
||||
mousePoint = mouseEvent->pos();
|
||||
mouseRect = widget->geometry();
|
||||
@@ -175,6 +177,7 @@ bool FramelessWidget2::eventFilter(QObject *watched, QEvent *event)
|
||||
} else {
|
||||
mousePressed = true;
|
||||
}
|
||||
}
|
||||
} else if (type == QEvent::MouseMove) {
|
||||
//改成用HoverMove识别
|
||||
} else if (type == QEvent::MouseButtonRelease) {
|
||||
|
||||
Reference in New Issue
Block a user