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
helpclient.h
Go to the documentation of this file.
1// Copyright (C) 2026 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef HELPCLIENT_H
5#define HELPCLIENT_H
6
7#include <QtCore/qtclasshelpermacros.h>
8#include <QtCore/qtypes.h>
9
10#include <memory>
11
12QT_BEGIN_NAMESPACE
13
14class QString;
15
17
19{
20public:
22
23 HelpClient() noexcept = default;
24 virtual ~HelpClient() = default;
25
26 virtual bool showPage(const QString &path, QString *errorMessage) = 0;
27 virtual bool activateIdentifier(const QString &identifier, QString *errorMessage) = 0;
28 virtual QString documentUrl(const QString &module) const = 0;
29
30 // Root of the Qt Widgets Designer documentation
31 QString designerManualUrl() const;
32
34};
35
37{
38public:
40 WebHelpClient() noexcept = default;
41 ~WebHelpClient() override = default;
42
43 bool showPage(const QString &path, QString *errorMessage) override;
44 bool activateIdentifier(const QString &identifier, QString *errorMessage) override;
45 QString documentUrl(const QString &module) const override;
46
47private:
48 QString webPage(const QString &identifier);
49};
50
52{
53public:
55 PythonWebHelpClient() noexcept = default;
56 ~PythonWebHelpClient() override = default;
57
58 bool activateIdentifier(const QString &identifier, QString *errorMessage) override;
59
60private:
61 QString webPage(const QString &identifier);
62};
63
64QT_END_NAMESPACE
65
66#endif // HELPCLIENT_H
virtual ~HelpClient()=default
virtual QString documentUrl(const QString &module) const =0
virtual bool activateIdentifier(const QString &identifier, QString *errorMessage)=0
static std::unique_ptr< HelpClient > create(HelpClientType type)
virtual bool showPage(const QString &path, QString *errorMessage)=0
QString designerManualUrl() const
~PythonWebHelpClient() override=default
bool activateIdentifier(const QString &identifier, QString *errorMessage) override
ParseArgumentsResult parseCommandLineArguments()
QDesigner(int &argc, char **argv)
Definition qdesigner.cpp:54
bool event(QEvent *ev) override
\reimp
QDesignerServer * server() const
void setMainWindow(MainWindowBase *tw)
QDesignerWorkbench * workbench() const
bool isServerOrClientEnabled() const
~QDesigner() override
Definition qdesigner.cpp:67
MainWindowBase * mainWindow() const
QString documentUrl(const QString &module) const override
bool activateIdentifier(const QString &identifier, QString *errorMessage) override
~WebHelpClient() override=default
bool showPage(const QString &path, QString *errorMessage) override
HelpClientType
Definition helpclient.h:16
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:34
QStringList files
Definition qdesigner.h:33
std::optional< QVersionNumber > qtVersion
Definition qdesigner.h:36
quint16 clientPort
Definition qdesigner.h:38
QStringList pluginPaths
Definition qdesigner.h:35