examples/mainwindow/mainwindow.cpp
@@ -1,3 +1,6 @@ // Copyright (C) 2023-2024 Stdware Collections // SPDX-License-Identifier: Apache-2.0 #include "mainwindow.h" #include <QtCore/QDebug> @@ -289,6 +292,13 @@ #endif windowAgent->setHitTestVisible(menuBar, true); #ifdef Q_OS_MAC windowAgent->setSystemButtonAreaCallback([](const QSize &size) { static constexpr const int width = 75; return QRect(QPoint(size.width() - width, 0), QSize(width, size.height())); // }); #endif setMenuWidget(windowBar); // 3. Adds simulated mouse events to the title bar buttons