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 <QtCore/qpointer.h>
8#include <QtWidgets/qapplication.h>
9
10QT_BEGIN_NAMESPACE
11
12#define qDesigner
13 (static_cast<QDesigner*>(QCoreApplication::instance()))
14
15class QDesignerWorkbench;
17class MainWindowBase;
18class QDesignerServer;
19class QDesignerClient;
20class QErrorMessage;
21class QCommandLineParser;
22struct Options;
23
25{
27public:
33
34 QDesigner(int &argc, char **argv);
36
38
40 QDesignerServer *server() const;
41 bool isServerOrClientEnabled() const;
44
45protected:
46 bool event(QEvent *ev) override;
47
50
51public slots:
52 void showErrorMessage(const QString &message);
53
54private:
55 void showErrorMessageBox(const QString &);
56
57 QDesignerServer *m_server = nullptr;
58 QDesignerClient *m_client = nullptr;
59 QDesignerWorkbench *m_workbench = nullptr;
60 QPointer<MainWindowBase> m_mainWindow;
61 QPointer<QErrorMessage> m_errorMessageDialog;
62
63 QString m_initializationErrors;
64 QString m_lastErrorMessage;
65};
66
67QT_END_NAMESPACE
68
69#endif // QDESIGNER_H
ParseArgumentsResult parseCommandLineArguments()
QDesigner(int &argc, char **argv)
Definition qdesigner.cpp:58
bool event(QEvent *ev) override
\reimp
QDesignerServer * server() const
void setMainWindow(MainWindowBase *tw)
QDesignerWorkbench * workbench() const
bool isServerOrClientEnabled() const
~QDesigner() override
Definition qdesigner.cpp:71
MainWindowBase * mainWindow() const
int main(int argc, char *argv[])
[ctor_close]