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
qdesktopservices.h
Go to the documentation of this file.
1// Copyright (C) 2020 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 QDESKTOPSERVICES_H
6#define QDESKTOPSERVICES_H
7
8#include <QtGui/qtguiglobal.h>
9#include <QtCore/qstring.h>
10
11QT_BEGIN_NAMESPACE
12
13
14#ifndef QT_NO_DESKTOPSERVICES
15
16class QUrl;
17class QObject;
18
19class Q_GUI_EXPORT QDesktopServices
20{
21public:
22 static bool openUrl(const QUrl &url);
23 static void setUrlHandler(const QString &scheme, QObject *receiver, const char *method);
24 static void unsetUrlHandler(const QString &scheme);
25};
26
27#endif // QT_NO_DESKTOPSERVICES
28
29QT_END_NAMESPACE
30
31#endif // QDESKTOPSERVICES_H
The QDesktopServices class provides methods for accessing common desktop services.
QHash< QString, Handler > HandlerHash
QOpenUrlHandlerRegistry()=default
\inmodule QtCore
Definition qmutex.h:342