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/qlibraryinfo.h>
13#include <QtCore/qpointer.h>
14#include <QtCore/qversionnumber.h>
15
16#include <optional>
17
18QT_BEGIN_NAMESPACE
19
20#define qDesigner
21 (static_cast<QDesigner*>(QCoreApplication::instance()))
22
23class QDesignerWorkbench;
25class MainWindowBase;
26class QErrorMessage;
27class QCommandLineParser;
28struct Options;
29
30struct Options
31{
37 bool server{false};
41};
42
44{
46public:
52
53 QDesigner(int &argc, char **argv);
55
57
59 bool isServerOrClientEnabled() const;
62
63protected:
64 bool event(QEvent *ev) override;
65
68
69public slots:
70 void showErrorMessage(const QString &message);
71
72private:
73 void showErrorMessageBox(const QString &);
74
75 QObject *m_server = nullptr;
76 QObject *m_client = nullptr;
77 QDesignerWorkbench *m_workbench = nullptr;
78 QPointer<MainWindowBase> m_mainWindow;
79 QPointer<QErrorMessage> m_errorMessageDialog;
80
81 QString m_initializationErrors;
82 QString m_lastErrorMessage;
83};
84
85QT_END_NAMESPACE
86
87#endif // QDESIGNER_H
ParseArgumentsResult parseCommandLineArguments()
QDesigner(int &argc, char **argv)
Definition qdesigner.cpp:55
bool event(QEvent *ev) override
\reimp
void setMainWindow(MainWindowBase *tw)
QDesignerWorkbench * workbench() const
bool isServerOrClientEnabled() const
~QDesigner() override
Definition qdesigner.cpp:68
MainWindowBase * mainWindow() const
HelpClientType
Definition helpclient.h:17
int main(int argc, char *argv[])
[ctor_close]
bool server
Definition qdesigner.h:37
bool enableInternalDynamicProperties
Definition qdesigner.h:39
HelpClientType helpMode
Definition qdesigner.h:40
QString resourceDir
Definition qdesigner.h:33
quint16 tcpClientPort
Definition qdesigner.h:38
QStringList files
Definition qdesigner.h:32
std::optional< QVersionNumber > qtVersion
Definition qdesigner.h:35
QStringList pluginPaths
Definition qdesigner.h:34
QString localSocketServerName
Definition qdesigner.h:36