44 #ifndef QT_NO_DESKTOPSERVICES 51 #include <private/qt_x11_p.h> 59 #if !defined(QT_NO_PROCESS) 168 while (!stream.
atEnd()) {
177 value = value.
mid(1, value.
length() - 2);
242 #endif // QT_NO_DESKTOPSERVICES The QDir class provides access to directory structures and their contents.
static bool startDetached(const QString &program, const QStringList &arguments, const QString &workingDirectory, qint64 *pid=0)
Starts the program program with the arguments arguments in a new process, and detaches from it...
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)
static QString fromLocal8Bit(const char *, int size=-1)
Returns a QString initialized with the first size characters of the 8-bit string str.
bool isValid() const
Returns true if the URL is valid; otherwise returns false.
#define QT_END_NAMESPACE
This macro expands to.
QString readLine(qint64 maxlen=0)
Reads one line of text from the stream, and returns it as a QString.
The QRegExp class provides pattern matching using regular expressions.
static QString storageLocation(StandardLocation type)
Returns the default system directory where files of type belong, or an empty string if the location c...
bool open(OpenMode flags)
Opens the file using OpenMode mode, returning true if successful; otherwise false.
static QString displayName(StandardLocation type)
Returns a localized display name for the given location type or an empty QString if no relevant locat...
static bool openDocument(const QUrl &url)
int length() const
Returns the number of characters in this string.
StandardLocation
This enum describes the different locations that can be queried by QDesktopServices::storageLocation ...
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
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 contains(const Key &key) const
Returns true if the hash contains an item with the key; otherwise returns false.
bool exists() const
Returns true if the file specified by fileName() exists; otherwise returns false. ...
#define QT_BEGIN_NAMESPACE
This macro expands to.
int indexIn(const QString &str, int offset=0, CaretMode caretMode=CaretAtZero) const
Attempts to find a match in str from position offset (0 by default).
QStringList capturedTexts() const
Returns a list of the captured text strings.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
const T & at(int i) const
Returns the item at index position i in the list.
The QStringList class provides a list of strings.
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
static bool launchWebBrowser(const QUrl &url)
static QString tempPath()
Returns the absolute path of the system's temporary directory.
QByteArray toEncoded(FormattingOptions options=None) const
Returns the encoded representation of the URL if it's valid; otherwise an empty QByteArray is returne...
const char * constData() const
Returns a pointer to the data stored in the byte array.
QString mid(int position, int n=-1) const Q_REQUIRED_RESULT
Returns a string that contains n characters of this string, starting at the specified position index...
QString scheme() const
Returns the scheme of the URL.
The QFile class provides an interface for reading from and writing to files.
The QTextStream class provides a convenient interface for reading and writing text.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
static bool launch(const QUrl &url, const QString &client)
static QString organizationName()
bool atEnd() const
Returns true if there is no more data to be read from the QTextStream; otherwise returns false...
static QString applicationName()
bool endsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string ends with s; otherwise returns false.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
static QString homePath()
Returns the absolute path of the user's home directory.