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.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.