Home · All Classes · All Functions · Overviews |
The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.
void | addPath ( const QString & p ) |
bool | cdUp () |
QString | dirPath () const |
QString | fileName () const |
bool | hasHost () const |
bool | hasPassword () const |
bool | hasPath () const |
bool | hasPort () const |
bool | hasRef () const |
bool | hasUser () const |
QString | protocol () const |
QString | query () const |
QString | ref () const |
void | setFileName ( const QString & txt ) |
void | setProtocol ( const QString & s ) |
void | setQuery ( const QString & txt ) |
void | setRef ( const QString & txt ) |
void | setUser ( const QString & s ) |
QString | user () const |
operator QString () const |
void | decode ( QString & url ) |
void | encode ( QString & url ) |
bool | isRelativeUrl ( const QString & url ) |
void | reset () |
Use setPath() instead.
Use resolved("..") instead.
For example, if you have code like
QUrl url("http://example.com/Developer/"); url.cdUp();
you can rewrite it as
QUrl url("http://example.com/Developer/");
url = url.resolved("..");
Use fromPercentEncoding() instead.
Use QFileInfo(path()).absolutePath() or QFileInfo(path()) instead.
Use toPercentEncoding() instead.
Use QFileInfo(path()).fileName() instead.
See also setFileName().
Use !host().isEmpty() instead.
Use !password().isEmpty() instead.
Use !path().isEmpty() instead.
Use port() != -1 instead.
Use !fragment().isEmpty() instead.
Use !userName().isEmpty() instead.
Use isRelative() instead.
Use scheme() instead.
See also setProtocol().
Use encodedQuery() instead.
See also setQuery().
Use fragment() instead.
See also setRef().
Use clear() instead.
Use setPath() instead.
See also fileName().
Use setScheme() instead.
See also protocol().
Use setEncodedQuery() instead.
See also query().
Use setFragment() instead.
See also ref().
Use setUserName() instead.
See also user().
Use userName() instead.
See also setUser().
Use toString() instead.
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.6.0 |