Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwindowsnativeinterface.h
Go to the documentation of this file.
1// Copyright (C) 2016 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#ifndef QWINDOWSNATIVEINTERFACE_H
5#define QWINDOWSNATIVEINTERFACE_H
6
7#include <QtGui/qfont.h>
8#include <QtGui/qpa/qplatformnativeinterface.h>
9
11
27{
29
30public:
31 void *nativeResourceForIntegration(const QByteArray &resource) override;
32#ifndef QT_NO_OPENGL
33 void *nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context) override;
34#endif
35 void *nativeResourceForWindow(const QByteArray &resource, QWindow *window) override;
36 void *nativeResourceForScreen(const QByteArray &resource, QScreen *screen) override;
37#ifndef QT_NO_CURSOR
38 void *nativeResourceForCursor(const QByteArray &resource, const QCursor &cursor) override;
39#endif
40};
41
43
44#endif // QWINDOWSNATIVEINTERFACE_H
\inmodule QtCore
Definition qbytearray.h:57
The QCursor class provides a mouse cursor with an arbitrary shape.
Definition qcursor.h:45
\inmodule QtGui
The QPlatformNativeInterface class provides an abstraction for retrieving native resource handles.
The QScreen class is used to query screen properties. \inmodule QtGui.
Definition qscreen.h:32
\inmodule QtGui
Definition qwindow.h:63
Provides access to native handles.
void * nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context) override
void * nativeResourceForWindow(const QByteArray &resource, QWindow *window) override
void * nativeResourceForCursor(const QByteArray &resource, const QCursor &cursor) override
void * nativeResourceForScreen(const QByteArray &resource, QScreen *screen) override
void * nativeResourceForIntegration(const QByteArray &resource) override
QCursor cursor
Combined button and popup list for selecting options.
static void * context
QScreen * screen
[1]
Definition main.cpp:29
#define Q_OBJECT
aWidget window() -> setWindowTitle("New Window Title")
[2]