diff --git a/mainwindow.cpp b/mainwindow.cpp index dad420a..cf84e33 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -172,7 +172,7 @@ void MainWindow::leaveEvent(QEvent *event) void MainWindow::mousePressEvent(QMouseEvent *event) { - if (event->buttons() & Qt::LeftButton) { + if (event->buttons() & Qt::LeftButton && !isMaximized()) { m_clickedOnWindow = true; m_oldMousePos = event->pos(); qDebug() << m_oldMousePos << m_graphicsView->transform().m11()