QUrl

#include <QtCore/QUrl>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QUrl


Overview

Public Types Index

QUrlPrivate *DataPtr

enum FormattingOption

None 0x0, RemoveScheme 0x1, RemovePassword 0x2, RemoveUserInfo RemovePassword | 0x4, RemovePort 0x8, RemoveAuthority RemoveUserInfo | RemovePort | 0x10, RemovePath 0x20, RemoveQuery 0x40, RemoveFragment 0x80, StripTrailingSlash 0x10000

enum ParsingMode

TolerantMode, StrictMode

Public Functions Index

QUrl ()
QUrl (const QString &url)
QUrl (const QString &url, ParsingMode mode)
QUrl (const QUrl &copy)
~QUrl ()
voidaddEncodedQueryItem (const QByteArray &key, const QByteArray &value)
voidaddQueryItem (const QString &key, const QString &value)
QList< QByteArray >allEncodedQueryItemValues (const QByteArray &key) const
QStringListallQueryItemValues (const QString &key) const
QStringauthority () const
voidclear ()
DataPtr &data_ptr ()
voiddetach ()
QByteArrayencodedFragment () const
QByteArrayencodedHost () const
QByteArrayencodedPassword () const
QByteArrayencodedPath () const
QByteArrayencodedQuery () const
QList< QPair< QByteArray, QByteArray > >encodedQueryItems () const
QByteArrayencodedQueryItemValue (const QByteArray &key) const
QByteArrayencodedUserName () const
QStringerrorString () const
QStringfragment () const
boolhasEncodedQueryItem (const QByteArray &key) const
boolhasFragment () const
boolhasQuery () const
boolhasQueryItem (const QString &key) const
QStringhost () const
boolisDetached () const
boolisEmpty () const
boolisLocalFile () const
boolisParentOf (const QUrl &url) const
boolisRelative () const
boolisValid () const
booloperator!= (const QUrl &url) const
booloperator< (const QUrl &url) const
QUrl &operator= (const QUrl &copy)
QUrl &operator= (const QString &url)
booloperator== (const QUrl &url) const
QStringpassword () const
QStringpath () const
intport () const
intport (int defaultPort) const
QList< QPair< QString, QString > >queryItems () const
QStringqueryItemValue (const QString &key) const
charqueryPairDelimiter () const
charqueryValueDelimiter () const
voidremoveAllEncodedQueryItems (const QByteArray &key)
voidremoveAllQueryItems (const QString &key)
voidremoveEncodedQueryItem (const QByteArray &key)
voidremoveQueryItem (const QString &key)
QUrlresolved (const QUrl &relative) const
QStringscheme () const
voidsetAuthority (const QString &authority)
voidsetEncodedFragment (const QByteArray &fragment)
voidsetEncodedHost (const QByteArray &host)
voidsetEncodedPassword (const QByteArray &password)
voidsetEncodedPath (const QByteArray &path)
voidsetEncodedQuery (const QByteArray &query)
voidsetEncodedQueryItems (const QList< QPair< QByteArray, QByteArray > > &query)
voidsetEncodedUrl (const QByteArray &url)
voidsetEncodedUrl (const QByteArray &url, ParsingMode mode)
voidsetEncodedUserName (const QByteArray &userName)
voidsetFragment (const QString &fragment)
voidsetHost (const QString &host)
voidsetPassword (const QString &password)
voidsetPath (const QString &path)
voidsetPort (int port)
voidsetQueryDelimiters (char valueDelimiter, char pairDelimiter)
voidsetQueryItems (const QList< QPair< QString, QString > > &query)
voidsetScheme (const QString &scheme)
voidsetUrl (const QString &url)
voidsetUrl (const QString &url, ParsingMode mode)
voidsetUserInfo (const QString &userInfo)
voidsetUserName (const QString &userName)
voidswap (QUrl &other)
QByteArraytoEncoded (FormattingOptions options=None) const
QStringtoLocalFile () const
QStringtopLevelDomain () const
QStringtoString (FormattingOptions options=None) const
QStringuserInfo () const
QStringuserName () const

Static Public Functions Index

QStringfromAce (const QByteArray &)
QUrlfromEncoded (const QByteArray &url)
QUrlfromEncoded (const QByteArray &url, ParsingMode mode)
QUrlfromLocalFile (const QString &localfile)
QStringfromPercentEncoding (const QByteArray &)
QStringfromPunycode (const QByteArray &)
QUrlfromUserInput (const QString &userInput)
QStringListidnWhitelist ()
voidsetIdnWhitelist (const QStringList &)
QByteArraytoAce (const QString &)
QByteArraytoPercentEncoding (const QString &, const QByteArray &exclude=QByteArray(), const QByteArray &include=QByteArray())
QByteArraytoPunycode (const QString &)

Public Types

typedef QUrlPrivate * DataPtr

FormattingOption

None 0x0
RemoveScheme 0x1
RemovePassword 0x2
RemoveUserInfo RemovePassword | 0x4
RemovePort 0x8
RemoveAuthority RemoveUserInfo | RemovePort | 0x10
RemovePath 0x20
RemoveQuery 0x40
RemoveFragment 0x80
StripTrailingSlash 0x10000

ParsingMode

TolerantMode
StrictMode

Public Functions

QUrl ()

QUrl (

QUrl (
  • const QString &url,
  • ParsingModemode )

QUrl (

~QUrl ()

Destructor.

void addEncodedQueryItem (

void addQueryItem (

QList< QByteArray > allEncodedQueryItemValues (

QStringList allQueryItemValues (

QString authority ()

void clear ()

DataPtr & data_ptr ()

void detach ()

QByteArray encodedFragment ()

QByteArray encodedHost ()

QByteArray encodedPassword ()

QByteArray encodedPath ()

QByteArray encodedQuery ()

QList< QPair< QByteArray, QByteArray > > encodedQueryItems ()

QByteArray encodedQueryItemValue (

QByteArray encodedUserName ()

QString errorString ()

QString fragment ()

bool hasEncodedQueryItem (

bool hasFragment ()

bool hasQuery ()

bool hasQueryItem (

QString host ()

bool isDetached ()

bool isEmpty ()

bool isLocalFile ()

bool isParentOf (

bool isRelative ()

bool isValid ()

bool operator!= (

bool operator< (

QUrl & operator= (

QUrl & operator= (

bool operator== (

QString password ()

QString path ()

int port ()

int port (
  • intdefaultPort)

QList< QPair< QString, QString > > queryItems ()

QString queryItemValue (

char queryPairDelimiter ()

char queryValueDelimiter ()

void removeAllEncodedQueryItems (

void removeAllQueryItems (

void removeEncodedQueryItem (

void removeQueryItem (

QUrl resolved (
  • const QUrl &relative)

QString scheme ()

void setAuthority (

void setEncodedFragment (

void setEncodedHost (

void setEncodedPassword (

void setEncodedPath (

void setEncodedQuery (

void setEncodedQueryItems (

void setEncodedUrl (

void setEncodedUrl (

void setEncodedUserName (

void setFragment (

void setHost (

void setPassword (

void setPath (

void setPort (
  • intport)

void setQueryDelimiters (
  • charvalueDelimiter,
  • charpairDelimiter )

void setQueryItems (

void setScheme (

void setUrl (

void setUrl (
  • const QString &url,
  • ParsingModemode )

void setUserInfo (

void setUserName (

void swap (

QByteArray toEncoded (
  • FormattingOptionsoptions)

QString toLocalFile ()

QString topLevelDomain ()

QString toString (
  • FormattingOptionsoptions)

QString userInfo ()

QString userName ()

Static Public Functions

QString fromAce (

QUrl fromEncoded (

QUrl fromEncoded (

QUrl fromLocalFile (

QString fromPercentEncoding (

QString fromPunycode (

QUrl fromUserInput (

QStringList idnWhitelist ()

void setIdnWhitelist (

QByteArray toAce (

QByteArray toPercentEncoding (

QByteArray toPunycode (

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus