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
qplatformservices.cpp
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#include "qplatformservices.h"
5
6#include <QtCore/QUrl>
7#include <QtCore/QString>
8#include <QtCore/QDebug>
9
11
37
39{
40 qWarning("This plugin does not support QPlatformServices::openUrl() for '%s'.",
42 return false;
43}
44
46{
47 qWarning("This plugin does not support QPlatformServices::openDocument() for '%s'.",
49 return false;
50}
51
61{
62 return QByteArray("UNKNOWN");
63}
64
66{
67 Q_UNUSED(parent);
68 return nullptr;
69}
70
72{
73 Q_UNUSED(capability)
74 return false;
75}
76
78
79#include "moc_qplatformservices.cpp"
\inmodule QtCore
Definition qbytearray.h:57
Capability
Capabilities are used to determine a specific platform service's availability.
virtual bool openDocument(const QUrl &url)
virtual QByteArray desktopEnvironment() const
QPlatformServices::desktopEnvironment returns the active desktop environment.
virtual bool openUrl(const QUrl &url)
virtual QPlatformServiceColorPicker * colorPicker(QWindow *parent=nullptr)
virtual bool hasCapability(Capability capability) const
\inmodule QtCore
Definition qurl.h:94
QString toString(FormattingOptions options=FormattingOptions(PrettyDecoded)) const
Returns a string representation of the URL.
Definition qurl.cpp:2831
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
typedef QByteArray(EGLAPIENTRYP PFNQGSGETDISPLAYSPROC)()
#define qWarning
Definition qlogging.h:166
#define qPrintable(string)
Definition qstring.h:1531
#define Q_UNUSED(x)
QUrl url("example.com")
[constructor-url-reference]