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;
43
44protected:
45 bool event(QEvent *ev) override;
46
49
50public slots:
51 void showErrorMessage(const QString &message);
52
53private:
54 void showErrorMessageBox(const QString &);
55
56 QDesignerServer *m_server = nullptr;
57 QDesignerClient *m_client = nullptr;
58 QDesignerWorkbench *m_workbench = nullptr;
59 QPointer<MainWindowBase> m_mainWindow;
60 QPointer<QErrorMessage> m_errorMessageDialog;
61
62 QString m_initializationErrors;
63 QString m_lastErrorMessage;
64};
65
66QT_END_NAMESPACE
67
68#endif // QDESIGNER_H
int main(int argc, char *argv[])
[2]
Definition buffer.cpp:77
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
~QDesigner() override
Definition qdesigner.cpp:71
MainWindowBase * mainWindow() const
static QT_USE_NAMESPACE const char rhiBackEndVar[]
Definition main.cpp:13