Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide2.QtCore »

Classe « QUrl »

Informations générales

Héritage

builtins.object
    Object
        QUrl

Définition

class QUrl(Object):

Description [extrait de QUrl.__doc__]

QUrl(self)
QUrl(self, copy: PySide2.QtCore.QUrl)
QUrl(self, url: str, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.TolerantMode)

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
AssumeLocalFilePySide2.QtCore.QUrl.UserInputResolutionOption.AssumeLocalFile
DecodedModePySide2.QtCore.QUrl.ParsingMode.DecodedMode
DecodeReservedPySide2.QtCore.QUrl.ComponentFormattingOption.DecodeReserved
DefaultResolutionPySide2.QtCore.QUrl.UserInputResolutionOption.DefaultResolution
EncodeDelimitersPySide2.QtCore.QUrl.ComponentFormattingOption.EncodeDelimiters
EncodeReservedPySide2.QtCore.QUrl.ComponentFormattingOption.EncodeReserved
EncodeSpacesPySide2.QtCore.QUrl.ComponentFormattingOption.EncodeSpaces
EncodeUnicodePySide2.QtCore.QUrl.ComponentFormattingOption.EncodeUnicode
FullyDecodedPySide2.QtCore.QUrl.ComponentFormattingOption.FullyDecoded
FullyEncodedPySide2.QtCore.QUrl.ComponentFormattingOption.FullyEncoded
None_PySide2.QtCore.QUrl.UrlFormattingOption.None_
NormalizePathSegmentsPySide2.QtCore.QUrl.UrlFormattingOption.NormalizePathSegments
PreferLocalFilePySide2.QtCore.QUrl.UrlFormattingOption.PreferLocalFile
PrettyDecodedPySide2.QtCore.QUrl.ComponentFormattingOption.PrettyDecoded
RemoveAuthorityPySide2.QtCore.QUrl.UrlFormattingOption.RemoveAuthority
RemoveFilenamePySide2.QtCore.QUrl.UrlFormattingOption.RemoveFilename
RemoveFragmentPySide2.QtCore.QUrl.UrlFormattingOption.RemoveFragment
RemovePasswordPySide2.QtCore.QUrl.UrlFormattingOption.RemovePassword
RemovePathPySide2.QtCore.QUrl.UrlFormattingOption.RemovePath
RemovePortPySide2.QtCore.QUrl.UrlFormattingOption.RemovePort
RemoveQueryPySide2.QtCore.QUrl.UrlFormattingOption.RemoveQuery
RemoveSchemePySide2.QtCore.QUrl.UrlFormattingOption.RemoveScheme
RemoveUserInfoPySide2.QtCore.QUrl.UrlFormattingOption.RemoveUserInfo
StrictModePySide2.QtCore.QUrl.ParsingMode.StrictMode
StripTrailingSlashPySide2.QtCore.QUrl.UrlFormattingOption.StripTrailingSlash
TolerantModePySide2.QtCore.QUrl.ParsingMode.TolerantMode

Liste des opérateurs

Signature de l'opérateur Description
__eq__(self, value) Return self==value. [extrait de __eq__.__doc__]
__ge__(self, value) Return self>=value. [extrait de __ge__.__doc__]
__gt__(self, value) Return self>value. [extrait de __gt__.__doc__]
__le__(self, value) Return self<=value. [extrait de __le__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__doc__]

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__copy__(self) __copy__(self) [extrait de __copy__.__doc__]
__hash__(self) Return hash(self). [extrait de __hash__.__doc__]
__reduce__(self) -> object __reduce__(self) -> object [extrait de __reduce__.__doc__]
__repr__(self) -> object __repr__(self) -> object [extrait de __repr__.__doc__]
adjusted(self, options: PySide2.QtCore.QUrl.FormattingOptions) -> PySide2.QtCore.QUrl adjusted(self, options: PySide2.QtCore.QUrl.FormattingOptions) -> PySide2.QtCore.QUrl [extrait de adjusted.__doc__]
authority(self, options: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.PrettyDecoded) -> str authority(self, options: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.PrettyDecoded) -> str [extrait de authority.__doc__]
clear(self) clear(self) [extrait de clear.__doc__]
ComponentFormattingOption
errorString(self) -> str errorString(self) -> str [extrait de errorString.__doc__]
fileName(self, options: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.FullyDecoded) -> str fileName(self, options: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.FullyDecoded) -> str [extrait de fileName.__doc__]
FormattingOptions
fragment(self, options: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.PrettyDecoded) -> str fragment(self, options: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.PrettyDecoded) -> str [extrait de fragment.__doc__]
fromAce(arg__1: PySide2.QtCore.QByteArray) -> str fromAce(arg__1: PySide2.QtCore.QByteArray) -> str [extrait de fromAce.__doc__]
fromEncoded(url: PySide2.QtCore.QByteArray, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.TolerantMode) -> PySide2.QtCore.QUrl fromEncoded(url: PySide2.QtCore.QByteArray, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.TolerantMode) -> PySide2.QtCore.QUrl [extrait de fromEncoded.__doc__]
fromLocalFile(localfile: str) -> PySide2.QtCore.QUrl fromLocalFile(localfile: str) -> PySide2.QtCore.QUrl [extrait de fromLocalFile.__doc__]
fromPercentEncoding(arg__1: PySide2.QtCore.QByteArray) -> str fromPercentEncoding(arg__1: PySide2.QtCore.QByteArray) -> str [extrait de fromPercentEncoding.__doc__]
fromStringList(uris: typing.Sequence[str], mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.TolerantMode) -> typing.List[PySide2.QtCore.QUrl] fromStringList(uris: typing.Sequence[str], mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.TolerantMode) -> typing.List[PySide2.QtCore.QUrl] [extrait de fromStringList.__doc__]
fromUserInput fromUserInput(userInput: str) -> PySide2.QtCore.QUrl [extrait de fromUserInput.__doc__]
hasFragment(self) -> bool hasFragment(self) -> bool [extrait de hasFragment.__doc__]
hasQuery(self) -> bool hasQuery(self) -> bool [extrait de hasQuery.__doc__]
host(self, arg__1: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.FullyDecoded) -> str host(self, arg__1: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.FullyDecoded) -> str [extrait de host.__doc__]
idnWhitelist() -> typing.List[str] idnWhitelist() -> typing.List[str] [extrait de idnWhitelist.__doc__]
isEmpty(self) -> bool isEmpty(self) -> bool [extrait de isEmpty.__doc__]
isLocalFile(self) -> bool isLocalFile(self) -> bool [extrait de isLocalFile.__doc__]
isParentOf(self, url: PySide2.QtCore.QUrl) -> bool isParentOf(self, url: PySide2.QtCore.QUrl) -> bool [extrait de isParentOf.__doc__]
isRelative(self) -> bool isRelative(self) -> bool [extrait de isRelative.__doc__]
isValid(self) -> bool isValid(self) -> bool [extrait de isValid.__doc__]
matches(self, url: PySide2.QtCore.QUrl, options: PySide2.QtCore.QUrl.FormattingOptions) -> bool matches(self, url: PySide2.QtCore.QUrl, options: PySide2.QtCore.QUrl.FormattingOptions) -> bool [extrait de matches.__doc__]
ParsingMode
password(self, arg__1: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.FullyDecoded) -> str password(self, arg__1: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.FullyDecoded) -> str [extrait de password.__doc__]
path(self, options: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.FullyDecoded) -> str path(self, options: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.FullyDecoded) -> str [extrait de path.__doc__]
port(self, defaultPort: int = -1) -> int port(self, defaultPort: int = -1) -> int [extrait de port.__doc__]
query(self, arg__1: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.PrettyDecoded) -> str query(self, arg__1: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.PrettyDecoded) -> str [extrait de query.__doc__]
resolved(self, relative: PySide2.QtCore.QUrl) -> PySide2.QtCore.QUrl resolved(self, relative: PySide2.QtCore.QUrl) -> PySide2.QtCore.QUrl [extrait de resolved.__doc__]
scheme(self) -> str scheme(self) -> str [extrait de scheme.__doc__]
setAuthority(self, authority: str, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.TolerantMode) setAuthority(self, authority: str, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.TolerantMode) [extrait de setAuthority.__doc__]
setFragment(self, fragment: str, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.TolerantMode) setFragment(self, fragment: str, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.TolerantMode) [extrait de setFragment.__doc__]
setHost(self, host: str, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.DecodedMode) setHost(self, host: str, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.DecodedMode) [extrait de setHost.__doc__]
setIdnWhitelist(arg__1: typing.Sequence[str]) setIdnWhitelist(arg__1: typing.Sequence[str]) [extrait de setIdnWhitelist.__doc__]
setPassword(self, password: str, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.DecodedMode) setPassword(self, password: str, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.DecodedMode) [extrait de setPassword.__doc__]
setPath(self, path: str, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.DecodedMode) setPath(self, path: str, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.DecodedMode) [extrait de setPath.__doc__]
setPort(self, port: int) setPort(self, port: int) [extrait de setPort.__doc__]
setQuery setQuery(self, query: PySide2.QtCore.QUrlQuery) [extrait de setQuery.__doc__]
setScheme(self, scheme: str) setScheme(self, scheme: str) [extrait de setScheme.__doc__]
setUrl(self, url: str, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.TolerantMode) setUrl(self, url: str, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.TolerantMode) [extrait de setUrl.__doc__]
setUserInfo(self, userInfo: str, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.TolerantMode) setUserInfo(self, userInfo: str, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.TolerantMode) [extrait de setUserInfo.__doc__]
setUserName(self, userName: str, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.DecodedMode) setUserName(self, userName: str, mode: PySide2.QtCore.QUrl.ParsingMode = PySide2.QtCore.QUrl.ParsingMode.DecodedMode) [extrait de setUserName.__doc__]
swap(self, other: PySide2.QtCore.QUrl) swap(self, other: PySide2.QtCore.QUrl) [extrait de swap.__doc__]
toAce(arg__1: str) -> PySide2.QtCore.QByteArray toAce(arg__1: str) -> PySide2.QtCore.QByteArray [extrait de toAce.__doc__]
toDisplayString(self, options: PySide2.QtCore.QUrl.FormattingOptions = Instance(QUrl.FormattingOptions(QUrl.PrettyDecoded))) -> str toDisplayString(self, options: PySide2.QtCore.QUrl.FormattingOptions = Instance(QUrl.FormattingOptions(QUrl.PrettyDecoded))) -> str [extrait de toDisplayString.__doc__]
toEncoded(self, options: PySide2.QtCore.QUrl.FormattingOptions = PySide2.QtCore.QUrl.ComponentFormattingOption.FullyEncoded) -> PySide2.QtCore.QByteArray toEncoded(self, options: PySide2.QtCore.QUrl.FormattingOptions = PySide2.QtCore.QUrl.ComponentFormattingOption.FullyEncoded) -> PySide2.QtCore.QByteArray [extrait de toEncoded.__doc__]
toLocalFile(self) -> str toLocalFile(self) -> str [extrait de toLocalFile.__doc__]
toPercentEncoding(arg__1: str, exclude: PySide2.QtCore.QByteArray = Default(QByteArray), include: PySide2.QtCore.QByteArray = Default(QByteArray)) -> PySide2.QtCore.QByteArray toPercentEncoding(arg__1: str, exclude: PySide2.QtCore.QByteArray = Default(QByteArray), include: PySide2.QtCore.QByteArray = Default(QByteArray)) -> PySide2.QtCore.QByteArray [extrait de toPercentEncoding.__doc__]
topLevelDomain(self, options: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.FullyDecoded) -> str topLevelDomain(self, options: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.FullyDecoded) -> str [extrait de topLevelDomain.__doc__]
toString(self, options: PySide2.QtCore.QUrl.FormattingOptions = Instance(QUrl.FormattingOptions(QUrl.PrettyDecoded))) -> str toString(self, options: PySide2.QtCore.QUrl.FormattingOptions = Instance(QUrl.FormattingOptions(QUrl.PrettyDecoded))) -> str [extrait de toString.__doc__]
toStringList(uris: typing.Sequence[PySide2.QtCore.QUrl], options: PySide2.QtCore.QUrl.FormattingOptions = Instance(QUrl.FormattingOptions(QUrl.PrettyDecoded))) -> typing.List[str] toStringList(uris: typing.Sequence[PySide2.QtCore.QUrl], options: PySide2.QtCore.QUrl.FormattingOptions = Instance(QUrl.FormattingOptions(QUrl.PrettyDecoded))) -> typing.List[str] [extrait de toStringList.__doc__]
url(self, options: PySide2.QtCore.QUrl.FormattingOptions = Instance(QUrl.FormattingOptions(QUrl.PrettyDecoded))) -> str url(self, options: PySide2.QtCore.QUrl.FormattingOptions = Instance(QUrl.FormattingOptions(QUrl.PrettyDecoded))) -> str [extrait de url.__doc__]
UrlFormattingOption
userInfo(self, options: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.PrettyDecoded) -> str userInfo(self, options: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.PrettyDecoded) -> str [extrait de userInfo.__doc__]
UserInputResolutionOption
UserInputResolutionOptions
userName(self, options: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.FullyDecoded) -> str userName(self, options: PySide2.QtCore.QUrl.ComponentFormattingOption = PySide2.QtCore.QUrl.ComponentFormattingOption.FullyDecoded) -> str [extrait de userName.__doc__]

Méthodes héritées de la classe Object

__init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __reduce_ex__, __setattr__, __sizeof__, __str__