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
qdesigner.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3// Qt-Security score:significant reason:default
4
5#ifndef QDESIGNER_H
6#define QDESIGNER_H
7
8#include "helpclient.h"
9
10#include <QtWidgets/qapplication.h>
11
12#include <QtCore/qpointer.h>
13#include <QtCore/qversionnumber.h>
14
15#include <optional>
16
17QT_BEGIN_NAMESPACE
18
19#define qDesigner
20 (static_cast<QDesigner*>(QCoreApplication::instance()))
21
22class QDesignerWorkbench;
24class MainWindowBase;
25class QErrorMessage;
26class QCommandLineParser;
27struct Options;
28
29struct Options
30{
32 QString resourceDir;
36 bool server{false};
40};
41
43{
45public:
51
52 QDesigner(int &argc, char **argv);
54
56
58 bool isServerOrClientEnabled() const;
61
62protected:
63 bool event(QEvent *ev) override;
64
67
68public slots:
69 void showErrorMessage(const QString &message);
70
71private:
72 void showErrorMessageBox(const QString &);
73
74 QObject *m_server = nullptr;
75 QObject *m_client = nullptr;
76 QDesignerWorkbench *m_workbench = nullptr;
77 QPointer<MainWindowBase> m_mainWindow;
78 QPointer<QErrorMessage> m_errorMessageDialog;
79
80 QString m_initializationErrors;
81 QString m_lastErrorMessage;
82};
83
84QT_END_NAMESPACE
85
86#endif // QDESIGNER_H
ParseArgumentsResult parseCommandLineArguments()
QDesigner(int &argc, char **argv)
Definition qdesigner.cpp:56
bool event(QEvent *ev) override
\reimp
void setMainWindow(MainWindowBase *tw)
QDesignerWorkbench * workbench() const
bool isServerOrClientEnabled() const
~QDesigner() override
Definition qdesigner.cpp:69
MainWindowBase * mainWindow() const
HelpClientType
Definition helpclient.h:17
int main(int argc, char *argv[])
[ctor_close]
bool server
Definition qdesigner.h:36
bool enableInternalDynamicProperties
Definition qdesigner.h:38
HelpClientType helpMode
Definition qdesigner.h:39
QString resourceDir
Definition qdesigner.h:32
quint16 tcpClientPort
Definition qdesigner.h:37
QStringList files
Definition qdesigner.h:31
std::optional< QVersionNumber > qtVersion
Definition qdesigner.h:34
QStringList pluginPaths
Definition qdesigner.h:33
QString localSocketServerName
Definition qdesigner.h:35