7#include <QMimeDatabase>
25 char *rawUrlData = urlData.
data();
27 if (be_roster->Launch(mimeTypeName.
constData(), 1, &rawUrlData) != B_OK)
38 if (get_ref_for_path(localPath.
constData(), &
ref) != B_OK)
41 if (be_roster->Launch(&
ref) != B_OK)
char * data()
\macro QT_NO_CAST_FROM_BYTEARRAY
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
static QByteArray encodeName(const QString &fileName)
Converts fileName to an 8-bit encoding that you can use in native APIs.
QByteArray desktopEnvironment() const override
QPlatformServices::desktopEnvironment returns the active desktop environment.
bool openDocument(const QUrl &url) override
bool openUrl(const QUrl &url) override
QMimeType mimeTypeForUrl(const QUrl &url) const
Returns a MIME type for url.
QByteArray toLocal8Bit() const &
QString toString(FormattingOptions options=FormattingOptions(PrettyDecoded)) const
Returns a string representation of the URL.
QString toLocalFile() const
Returns the path of this URL formatted as a local file path.
Combined button and popup list for selecting options.
QUrl url("example.com")
[constructor-url-reference]