Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwindowsapplication.h
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// Qt-Security score:significant reason:default
4
5#ifndef QWINDOWSAPPLICATION_H
6#define QWINDOWSAPPLICATION_H
7
8#include <QtGui/private/qguiapplication_p.h>
9
10QT_BEGIN_NAMESPACE
11
12class QWindowsApplication : public QNativeInterface::Private::QWindowsApplication
13{
14public:
15 void setTouchWindowTouchType(TouchWindowTouchTypes type) override;
16 TouchWindowTouchTypes touchWindowTouchType() const override;
17
18 WindowActivationBehavior windowActivationBehavior() const override;
19 void setWindowActivationBehavior(WindowActivationBehavior behavior) override;
20
21 void setHasBorderInFullScreenDefault(bool border) override;
22
23 bool isTabletMode() const override;
24
25 bool isWinTabEnabled() const override;
26 bool setWinTabEnabled(bool enabled) override;
27
28 DarkModeHandling darkModeHandling() const override;
29 void setDarkModeHandling(DarkModeHandling handling) override;
30
31 void registerMime(QWindowsMimeConverter *mime) override;
32 void unregisterMime(QWindowsMimeConverter *mime) override;
33
34 int registerMimeType(const QString &mime) override;
35
36 HWND createMessageWindow(const QString &classNameTemplate,
37 const QString &windowName,
38 QFunctionPointer eventProc = nullptr) const override;
39
40 bool asyncExpose() const override;
41 void setAsyncExpose(bool value) override;
42
43 QVariant gpu() const override;
44 QVariant gpuList() const override;
45
46 void populateLightSystemPalette(QPalette &palette) const override;
47
48private:
49 WindowActivationBehavior m_windowActivationBehavior = DefaultActivateWindow;
50 TouchWindowTouchTypes m_touchWindowTouchTypes = NormalTouch;
51 DarkModeHandling m_darkModeHandling;
52};
53
55
56#endif // QWINDOWSAPPLICATION_H
QPlatformBackingStore * createPlatformBackingStore(QWindow *window) const override
Factory function for QPlatformBackingStore.
QWindowsGdiIntegration(const QStringList &paramList)
QPlatformNativeInterface * nativeInterface() const override
QPlatformPixmap * createPlatformPixmap(QPlatformPixmap::PixelType type) const override
Factory function for QPlatformPixmap.
\title Qt platform plugin for Windows
Definition main.cpp:59
QStringList themeNames() const override
QPlatformKeyMapper * keyMapper() const override
Accessor for the platform integration's key mapper.
QPlatformWindow * createPlatformWindow(QWindow *window) const override
Factory function for QPlatformWindow.
static QWindowsStaticOpenGLContext * staticOpenGLContext()
void setApplicationBadge(const QImage &image)
virtual QWindowsWindow * createPlatformWindowHelper(QWindow *window, const QWindowsWindowData &) const
QOpenGLContext * createOpenGLContext(HGLRC context, HWND window, QOpenGLContext *shareContext) const override
QWindowsIntegration(const QStringList &paramList)
QAbstractEventDispatcher * createEventDispatcher() const override
Factory function for the GUI event dispatcher.
QPlatformTheme * createPlatformTheme(const QString &name) const override
bool hasCapability(QPlatformIntegration::Capability cap) const override
QOpenGLContext::OpenGLModuleType openGLModuleType() override
Platform integration function for querying the OpenGL implementation type.
QPlatformFontDatabase * fontDatabase() const override
Accessor for the platform integration's fontdatabase.
QPlatformWindow * createForeignWindow(QWindow *window, WId nativeHandle) const override
void initialize() override
Performs initialization steps that depend on having an event dispatcher available.
void setApplicationBadge(qint64 number) override
static QWindowsIntegration * instance()
HMODULE openGLModuleHandle() const override
void beep() const override
QPlatformInputContext * inputContext() const override
Returns the platforms input context.
QPlatformServices * services() const override
QVariant styleHint(StyleHint hint) const override
QPlatformOpenGLContext * createPlatformOpenGLContext(QOpenGLContext *context) const override
Factory function for QPlatformOpenGLContext.
Raster or OpenGL Window.
Combined button and popup list for selecting options.