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
4#ifndef QDESIGNER_H
5#define QDESIGNER_H
6
7#include "helpclient.h"
8
9#include <QtWidgets/qapplication.h>
10
11#include <QtCore/qlibraryinfo.h>
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{
35 bool server{false};
39};
40
42{
44public:
50
51 QDesigner(int &argc, char **argv);
53
55
57 bool isServerOrClientEnabled() const;
60
61protected:
62 bool event(QEvent *ev) override;
63
66
67public slots:
68 void showErrorMessage(const QString &message);
69
70private:
71 void showErrorMessageBox(const QString &);
72
73 QObject *m_server = nullptr;
74 QObject *m_client = nullptr;
75 QDesignerWorkbench *m_workbench = nullptr;
76 QPointer<MainWindowBase> m_mainWindow;
77 QPointer<QErrorMessage> m_errorMessageDialog;
78
79 QString m_initializationErrors;
80 QString m_lastErrorMessage;
81};
82
83QT_END_NAMESPACE
84
85#endif // QDESIGNER_H
ParseArgumentsResult parseCommandLineArguments()
QDesigner(int &argc, char **argv)
Definition qdesigner.cpp:54
bool event(QEvent *ev) override
\reimp
void setMainWindow(MainWindowBase *tw)
QDesignerWorkbench * workbench() const
bool isServerOrClientEnabled() const
~QDesigner() override
Definition qdesigner.cpp:67
MainWindowBase * mainWindow() const
HelpClientType
Definition helpclient.h:17
int main(int argc, char *argv[])
[ctor_close]
bool server
Definition qdesigner.h:35
bool enableInternalDynamicProperties
Definition qdesigner.h:37
HelpClientType helpMode
Definition qdesigner.h:38
QString resourceDir
Definition qdesigner.h:32
quint16 tcpClientPort
Definition qdesigner.h:36
QStringList files
Definition qdesigner.h:31
std::optional< QVersionNumber > qtVersion
Definition qdesigner.h:34
QStringList pluginPaths
Definition qdesigner.h:33