Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qcocoaservices.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 QCOCOADESKTOPSERVICES_H
5#define QCOCOADESKTOPSERVICES_H
6
7#include <QtCore/qurl.h>
8
9#include <qpa/qplatformservices.h>
10
12
14{
15public:
16 bool hasCapability(Capability capability) const override;
17
18 bool openUrl(const QUrl &url) override;
19 bool openDocument(const QUrl &url) override;
20 bool handleUrl(const QUrl &url);
21
23
24private:
25 QUrl m_handlingUrl;
26};
27
29
30#endif // QCOCOADESKTOPSERVICES_H
bool handleUrl(const QUrl &url)
bool hasCapability(Capability capability) const override
QPlatformServiceColorPicker * colorPicker(QWindow *parent) override
bool openUrl(const QUrl &url) override
bool openDocument(const QUrl &url) override
The QPlatformServices provides the backend for desktop-related functionality.
Capability
Capabilities are used to determine a specific platform service's availability.
\inmodule QtCore
Definition qurl.h:94
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
QUrl url("example.com")
[constructor-url-reference]