以下成员源于类 QUrl are part of the Qt compatibility layer. 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 () |
使用 setPath () 代替。
Use resolved("..") instead.
例如,若有代码像
QUrl url("http://example.com/Developer/");
url.cdUp();
可以把它重写成
QUrl url("http://example.com/Developer/"); url = url.resolved("..");
[static]
void
QUrl::
decode
(
QString
&
url
)
使用 fromPercentEncoding () 代替。
使用 QFileInfo ( path ()).absolutePath() or QFileInfo ( path ()) instead.
[static]
void
QUrl::
encode
(
QString
&
url
)
使用 toPercentEncoding () 代替。
使用 QFileInfo ( path ()).fileName() instead.
另请参阅 setFileName ().
Use ! password (). isEmpty () 代替。
使用 port () != -1 instead.
Use ! fragment (). isEmpty () 代替。
Use ! userName (). isEmpty () 代替。
[static]
bool
QUrl::
isRelativeUrl
(const
QString
&
url
)
使用 isRelative () 代替。
使用 scheme () 代替。
另请参阅 setProtocol ().
使用 encodedQuery () 代替。
另请参阅 setQuery ().
使用 fragment () 代替。
另请参阅 setRef ().
[protected]
void
QUrl::
reset
()
使用 clear () 代替。
使用 setPath () 代替。
另请参阅 fileName ().
使用 setScheme () 代替。
另请参阅 protocol ().
使用 setEncodedQuery () 代替。
另请参阅 query ().
使用 setFragment () 代替。
另请参阅 ref ().
使用 setUserName () 代替。
另请参阅 user ().
使用 userName () 代替。
另请参阅 setUser ().
使用 toString () 代替。