Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QByteArray QUrl::toEncoded ( FormattingOptions  options = None  )  const

Returns the encoded representation of the URL if it's valid; otherwise an empty QByteArray is returned. The output can be customized by passing flags with options.

The user info, path and fragment are all converted to UTF-8, and all non-ASCII characters are then percent encoded. The host name is encoded using Punycode.

Definition at line 4397 of file qurl.cpp.

Referenced by operator<<().

    return d->toEncoded(options);

Generated by  Doxygen 1.6.0   Back to index