, m_renderer(renderer)
{
setSurfaceType(QWindow::OpenGLSurface);
- setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint);
+ setWindowFlags(Qt::Window | Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint);
setGeometry(QRect(10, 10, 640, 480));
****************************************************************************/
#include <QGuiApplication>
+#include <QPlatformIntegration>
+#include <private/qguiapplication_p.h>
#include <QScreen>
#include <QThread>
{
QGuiApplication app(argc, argv);
- bool multipleWindows = !QGuiApplication::arguments().contains(QLatin1String("--single"));
+ const bool multipleWindows =
+ QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::ThreadedOpenGL)
+ && !QGuiApplication::arguments().contains(QLatin1String("--single"));
QScreen *screen = QGuiApplication::primaryScreen();