Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwindowsnativeinterface.cpp
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include <QtGui/qopenglcontext.h>
5#include <QtGui/private/qguiapplication_p.h>
6#include <qpa/qplatformopenglcontext.h>
7#include <qpa/qplatformintegration.h>
8#include <qpa/qplatformwindow.h>
9#include <qpa/qplatformwindow_p.h>
10#include <qpa/qplatformscreen_p.h>
11
13
14using namespace QNativeInterface::Private;
15
16#ifndef QT_NO_OPENGL
17
65
66HMODULE QNativeInterface::QWGLContext::openGLModuleHandle()
67{
69 &QWindowsGLIntegration::openGLModuleHandle>();
70}
71
72QOpenGLContext *QNativeInterface::QWGLContext::fromNative(HGLRC context, HWND window, QOpenGLContext *shareContext)
73{
75 &QWindowsGLIntegration::createOpenGLContext>(context, window, shareContext);
76}
77
78#endif // QT_NO_OPENGL
79
90
280
static QPlatformIntegration * platformIntegration()
\inheaderfile QOpenGLContext
\inmodule QtGui
Windows screen.
Raster or OpenGL Window.
Combined button and popup list for selecting options.
static void * context
#define QT_DEFINE_PRIVATE_NATIVE_INTERFACE(...)
#define QT_DEFINE_NATIVE_INTERFACE(...)
HINSTANCE HMODULE
aWidget window() -> setWindowTitle("New Window Title")
[2]