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
qohosstartoptions_p.h
Go to the documentation of this file.
1// Copyright (C) 2026 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 QOHOSSTARTOPTIONS_P_H
5#define QOHOSSTARTOPTIONS_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/private/qohoscommon_p.h>
19#include <QtCore/qjsonobject.h>
20#include <QtCore/qlist.h>
21#include <QtCore/qobject.h>
22#include <QtCore/qstring.h>
23#include <QtCore/qvariant.h>
24#include <QtGui/qcolor.h>
25#include <QtGui/qimage.h>
26#include <QtOhosAppKit/private/qohosbundlemanager_p.h>
27#include <QtOhosAppKit/private/qtohosappkitglobal_p.h>
28#include <functional>
29#include <memory>
30#include <optional>
31
32QT_BEGIN_NAMESPACE
33
34namespace QtOhosAppKit {
35
36class Q_OHOSAPPKIT_EXPORT WindowCreateParams
37{
38 // Q_GADGET added to Q_ENUM the nested enum
40
41public:
42 enum class AnimationType {
44 };
46
48
50
51protected:
53
54private:
56};
57
58class Q_OHOSAPPKIT_EXPORT StartOptions
59{
60 // Q_GADGET added to Q_ENUM the nested enums
62
63public:
69
70 enum class StartupVisibility {
73 };
75
82
89
90 virtual ~StartOptions();
91
93 virtual void setDisplayId(int displayId) = 0;
94 virtual void setWithAnimation(bool withAnimation) = 0;
95 virtual void setWindowLeft(int windowLeft) = 0;
96 virtual void setWindowTop(int windowTop) = 0;
97 virtual void setWindowWidth(int windowWidth) = 0;
98 virtual void setWindowHeight(int windowHeight) = 0;
101 virtual void setStartWindowIcon(const QImage &startWindowIcon) = 0;
104 virtual void setMinWindowWidth(int minWindowWidth) = 0;
105 virtual void setMinWindowHeight(int minWindowHeight) = 0;
106 virtual void setMaxWindowWidth(int maxWindowWidth) = 0;
107 virtual void setMaxWindowHeight(int maxWindowHeight) = 0;
108 virtual void setHideStartWindow(bool hideStartWindow) = 0;
112 std::function<void(bool, ElementName, QString)> callback) = 0;
113
114protected:
116
117private:
119};
120
122
124
125}
126
127namespace QtOhosAppKit::Private {
128
182
188
190 const StartOptions &options);
191
192}
193
194QT_END_NAMESPACE
195
196#endif
Combined button and popup list for selecting options.
std::optional< QOhosStartOptionsData > tryConvertStartOptionsToQpaFunctionsStruct(const StartOptions &options)
std::shared_ptr< StartOptions > createStartOptions()
Creates StartOptions instance.
std::shared_ptr< WindowCreateParams > createWindowCreateParams()
Creates WindowCreateParams instance.
std::shared_ptr< QOhosConsumer< bool, QJsonObject, QString > > optCompletionHandler
std::optional< WindowCreateParamsPriv > windowCreateParams
std::optional< QList< SupportWindowMode > > supportWindowModes
std::optional< StartupVisibility > startupVisibility