42 #ifndef QT_NO_DESKTOPSERVICES 45 #include <bps/navigator.h> 57 return (ret == BPS_SUCCESS);
116 #endif // QT_NO_DESKTOPSERVICES
bool isValid() const
Returns true if the URL is valid; otherwise returns false.
#define QT_END_NAMESPACE
This macro expands to.
QString toString(FormattingOptions options=None) const
Returns the human-displayable string representation of the URL.
static QString storageLocation(StandardLocation type)
Returns the default system directory where files of type belong, or an empty string if the location c...
static QString displayName(StandardLocation type)
Returns a localized display name for the given location type or an empty QString if no relevant locat...
QByteArray toUtf8() const Q_REQUIRED_RESULT
Returns a UTF-8 representation of the string as a QByteArray.
QString & replace(int i, int len, QChar after)
StandardLocation
This enum describes the different locations that can be queried by QDesktopServices::storageLocation ...
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
bool isRelative() const
Returns true if the URL is relative; otherwise returns false.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool openDocument(const QUrl &file)
static QString tempPath()
Returns the absolute path of the system's temporary directory.
static bool launchWebBrowser(const QUrl &url)
int lastIndexOf(QChar c, int from=-1, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
static bool navigatorInvoke(const QUrl &url)
static QString homePath()
Returns the absolute path of the user's home directory.