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// Qt-Security score:significant reason:default
4
5#ifndef HELPCLIENT_H
6#define HELPCLIENT_H
7
8#include <QtCore/qtclasshelpermacros.h>
9#include <QtCore/qtypes.h>
10
11#include <memory>
12
13QT_BEGIN_NAMESPACE
14
15class QString;
16
18
20{
21public:
23
24 HelpClient() noexcept = default;
25 virtual ~HelpClient() = default;
26
27 virtual bool showPage(const QString &path, QString *errorMessage) = 0;
28 virtual bool activateIdentifier(const QString &identifier, QString *errorMessage) = 0;
29 virtual QString documentUrl(const QString &module) const = 0;
30
31 // Root of the Qt Widgets Designer documentation
32 QString designerManualUrl() const;
33
35};
36
38{
39public:
41 WebHelpClient() noexcept = default;
42 ~WebHelpClient() override = default;
43
44 bool showPage(const QString &path, QString *errorMessage) override;
45 bool activateIdentifier(const QString &identifier, QString *errorMessage) override;
46 QString documentUrl(const QString &module) const override;
47
48private:
49 QString webPage(const QString &identifier);
50};
51
53{
54public:
56 PythonWebHelpClient() noexcept = default;
57 ~PythonWebHelpClient() override = default;
58
59 bool activateIdentifier(const QString &identifier, QString *errorMessage) override;
60
61private:
62 QString webPage(const QString &identifier);
63};
64
65QT_END_NAMESPACE
66
67#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
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: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