QtQml.pyi 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032
  1. # Copyright (C) 2022 The Qt Company Ltd.
  2. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
  3. """
  4. This file contains the exact signatures for all functions in module
  5. PySide6.QtQml, except for defaults which are replaced by "...".
  6. """
  7. # mypy: disable-error-code="override, overload-overlap"
  8. # Module `PySide6.QtQml`
  9. import PySide6.QtQml
  10. import PySide6.QtCore
  11. import PySide6.QtNetwork
  12. import os
  13. import enum
  14. import typing
  15. import collections.abc
  16. from PySide6.QtCore import Signal
  17. from shiboken6 import Shiboken
  18. class ListProperty(PySide6.QtCore.Property):
  19. def __init__(self, type: type, /, append: collections.abc.Callable[..., typing.Any] | None = ..., at: collections.abc.Callable[..., typing.Any] | None = ..., clear: collections.abc.Callable[..., typing.Any] | None = ..., count: collections.abc.Callable[..., typing.Any] | None = ...) -> None: ...
  20. class QIntList: ...
  21. class QJSEngine(PySide6.QtCore.QObject):
  22. uiLanguageChanged : typing.ClassVar[Signal] = ... # uiLanguageChanged()
  23. class Extension(enum.Flag):
  24. AllExtensions = -1
  25. TranslationExtension = 0x1
  26. ConsoleExtension = 0x2
  27. GarbageCollectionExtension = 0x4
  28. class ObjectOwnership(enum.Enum):
  29. CppOwnership = 0x0
  30. JavaScriptOwnership = 0x1
  31. @typing.overload
  32. def __init__(self, parent: PySide6.QtCore.QObject, /, *, uiLanguage: str | None = ...) -> None: ...
  33. @typing.overload
  34. def __init__(self, /, *, uiLanguage: str | None = ...) -> None: ...
  35. def catchError(self, /) -> PySide6.QtQml.QJSValue: ...
  36. def collectGarbage(self, /) -> None: ...
  37. def evaluate(self, program: str, /, fileName: str = ..., lineNumber: int = ...) -> typing.Tuple[PySide6.QtQml.QJSValue, typing.List[str]]: ...
  38. def globalObject(self, /) -> PySide6.QtQml.QJSValue: ...
  39. def hasError(self, /) -> bool: ...
  40. def importModule(self, fileName: str, /) -> PySide6.QtQml.QJSValue: ...
  41. def installExtensions(self, extensions: PySide6.QtQml.QJSEngine.Extension, /, object: PySide6.QtQml.QJSValue | PySide6.QtQml.QJSValue.SpecialValue | bool | str | bytes | bytearray | memoryview | float | int = ...) -> None: ...
  42. def isInterrupted(self, /) -> bool: ...
  43. def newArray(self, /, length: int | None = ...) -> PySide6.QtQml.QJSValue: ...
  44. def newErrorObject(self, errorType: PySide6.QtQml.QJSValue.ErrorType, /, message: str = ...) -> PySide6.QtQml.QJSValue: ...
  45. def newObject(self, /) -> PySide6.QtQml.QJSValue: ...
  46. def newQMetaObject(self, metaObject: PySide6.QtCore.QMetaObject, /) -> PySide6.QtQml.QJSValue: ...
  47. def newQObject(self, object: PySide6.QtCore.QObject, /) -> PySide6.QtQml.QJSValue: ...
  48. def newSymbol(self, name: str, /) -> PySide6.QtQml.QJSValue: ...
  49. @staticmethod
  50. def objectOwnership(arg__1: PySide6.QtCore.QObject, /) -> PySide6.QtQml.QJSEngine.ObjectOwnership: ...
  51. def registerModule(self, moduleName: str, value: PySide6.QtQml.QJSValue | PySide6.QtQml.QJSValue.SpecialValue | bool | str | bytes | bytearray | memoryview | float | int, /) -> bool: ...
  52. def setInterrupted(self, interrupted: bool, /) -> None: ...
  53. @staticmethod
  54. def setObjectOwnership(arg__1: PySide6.QtCore.QObject, arg__2: PySide6.QtQml.QJSEngine.ObjectOwnership, /) -> None: ...
  55. def setUiLanguage(self, language: str, /) -> None: ...
  56. @typing.overload
  57. def throwError(self, errorType: PySide6.QtQml.QJSValue.ErrorType, /, message: str = ...) -> None: ...
  58. @typing.overload
  59. def throwError(self, message: str, /) -> None: ...
  60. @typing.overload
  61. def throwError(self, error: PySide6.QtQml.QJSValue | PySide6.QtQml.QJSValue.SpecialValue | bool | str | bytes | bytearray | memoryview | float | int, /) -> None: ...
  62. def toScriptValue(self, value: typing.Any, /) -> PySide6.QtQml.QJSValue: ...
  63. def uiLanguage(self, /) -> str: ...
  64. class QJSManagedValue(Shiboken.Object):
  65. class Type(enum.Enum):
  66. Undefined = 0x0
  67. Boolean = 0x1
  68. Number = 0x2
  69. String = 0x3
  70. Object = 0x4
  71. Symbol = 0x5
  72. Function = 0x6
  73. @typing.overload
  74. def __init__(self, /) -> None: ...
  75. @typing.overload
  76. def __init__(self, string: str, engine: PySide6.QtQml.QJSEngine, /) -> None: ...
  77. @typing.overload
  78. def __init__(self, value: PySide6.QtQml.QJSPrimitiveValue | str | bool | float | int, engine: PySide6.QtQml.QJSEngine, /) -> None: ...
  79. @typing.overload
  80. def __init__(self, value: PySide6.QtQml.QJSValue | PySide6.QtQml.QJSValue.SpecialValue | bool | str | bytes | bytearray | memoryview | float | int, engine: PySide6.QtQml.QJSEngine, /) -> None: ...
  81. @typing.overload
  82. def __init__(self, variant: typing.Any, engine: PySide6.QtQml.QJSEngine, /) -> None: ...
  83. def call(self, /, arguments: collections.abc.Sequence[PySide6.QtQml.QJSValue] = ...) -> PySide6.QtQml.QJSValue: ...
  84. def callAsConstructor(self, /, arguments: collections.abc.Sequence[PySide6.QtQml.QJSValue] = ...) -> PySide6.QtQml.QJSValue: ...
  85. def callWithInstance(self, instance: PySide6.QtQml.QJSValue | PySide6.QtQml.QJSValue.SpecialValue | bool | str | bytes | bytearray | memoryview | float | int, /, arguments: collections.abc.Sequence[PySide6.QtQml.QJSValue] = ...) -> PySide6.QtQml.QJSValue: ...
  86. @typing.overload
  87. def deleteProperty(self, name: str, /) -> bool: ...
  88. @typing.overload
  89. def deleteProperty(self, arrayIndex: int, /) -> bool: ...
  90. def engine(self, /) -> PySide6.QtQml.QJSEngine: ...
  91. def equals(self, other: PySide6.QtQml.QJSManagedValue, /) -> bool: ...
  92. @typing.overload
  93. def hasOwnProperty(self, name: str, /) -> bool: ...
  94. @typing.overload
  95. def hasOwnProperty(self, arrayIndex: int, /) -> bool: ...
  96. @typing.overload
  97. def hasProperty(self, name: str, /) -> bool: ...
  98. @typing.overload
  99. def hasProperty(self, arrayIndex: int, /) -> bool: ...
  100. def isArray(self, /) -> bool: ...
  101. def isBoolean(self, /) -> bool: ...
  102. def isDate(self, /) -> bool: ...
  103. def isError(self, /) -> bool: ...
  104. def isFunction(self, /) -> bool: ...
  105. def isInteger(self, /) -> bool: ...
  106. def isJsMetaType(self, /) -> bool: ...
  107. def isNull(self, /) -> bool: ...
  108. def isNumber(self, /) -> bool: ...
  109. def isObject(self, /) -> bool: ...
  110. def isQMetaObject(self, /) -> bool: ...
  111. def isQObject(self, /) -> bool: ...
  112. def isRegularExpression(self, /) -> bool: ...
  113. def isString(self, /) -> bool: ...
  114. def isSymbol(self, /) -> bool: ...
  115. def isUndefined(self, /) -> bool: ...
  116. def isUrl(self, /) -> bool: ...
  117. def isVariant(self, /) -> bool: ...
  118. def jsMetaInstantiate(self, /, values: collections.abc.Sequence[PySide6.QtQml.QJSValue] = ...) -> PySide6.QtQml.QJSManagedValue: ...
  119. def jsMetaMembers(self, /) -> typing.List[str]: ...
  120. def jsMetaType(self, /) -> PySide6.QtQml.QJSManagedValue: ...
  121. @typing.overload
  122. def property(self, name: str, /) -> PySide6.QtQml.QJSValue: ...
  123. @typing.overload
  124. def property(self, arrayIndex: int, /) -> PySide6.QtQml.QJSValue: ...
  125. def prototype(self, /) -> PySide6.QtQml.QJSManagedValue: ...
  126. @typing.overload
  127. def setProperty(self, name: str, value: PySide6.QtQml.QJSValue | PySide6.QtQml.QJSValue.SpecialValue | bool | str | bytes | bytearray | memoryview | float | int, /) -> None: ...
  128. @typing.overload
  129. def setProperty(self, arrayIndex: int, value: PySide6.QtQml.QJSValue | PySide6.QtQml.QJSValue.SpecialValue | bool | str | bytes | bytearray | memoryview | float | int, /) -> None: ...
  130. def setPrototype(self, prototype: PySide6.QtQml.QJSManagedValue, /) -> None: ...
  131. def strictlyEquals(self, other: PySide6.QtQml.QJSManagedValue, /) -> bool: ...
  132. def toBoolean(self, /) -> bool: ...
  133. def toDateTime(self, /) -> PySide6.QtCore.QDateTime: ...
  134. def toInteger(self, /) -> int: ...
  135. def toJSValue(self, /) -> PySide6.QtQml.QJSValue: ...
  136. def toNumber(self, /) -> float: ...
  137. def toPrimitive(self, /) -> PySide6.QtQml.QJSPrimitiveValue: ...
  138. def toQMetaObject(self, /) -> PySide6.QtCore.QMetaObject: ...
  139. def toQObject(self, /) -> PySide6.QtCore.QObject: ...
  140. def toRegularExpression(self, /) -> PySide6.QtCore.QRegularExpression: ...
  141. def toString(self, /) -> str: ...
  142. def toUrl(self, /) -> PySide6.QtCore.QUrl: ...
  143. def toVariant(self, /) -> typing.Any: ...
  144. def type(self, /) -> PySide6.QtQml.QJSManagedValue.Type: ...
  145. class QJSPrimitiveValue(Shiboken.Object):
  146. class Type(enum.Enum):
  147. Undefined = 0x0
  148. Null = 0x1
  149. Boolean = 0x2
  150. Integer = 0x3
  151. Double = 0x4
  152. String = 0x5
  153. @typing.overload
  154. def __init__(self, /) -> None: ...
  155. @typing.overload
  156. def __init__(self, QJSPrimitiveValue: PySide6.QtQml.QJSPrimitiveValue, /) -> None: ...
  157. @typing.overload
  158. def __init__(self, string: str, /) -> None: ...
  159. @typing.overload
  160. def __init__(self, type: PySide6.QtCore.QMetaType | PySide6.QtCore.QMetaType.Type, /) -> None: ...
  161. @typing.overload
  162. def __init__(self, type: PySide6.QtCore.QMetaType | PySide6.QtCore.QMetaType.Type, value: int, /) -> None: ...
  163. @typing.overload
  164. def __init__(self, value: bool, /) -> None: ...
  165. @typing.overload
  166. def __init__(self, value: int, /) -> None: ...
  167. @typing.overload
  168. def __init__(self, value: float, /) -> None: ...
  169. @typing.overload
  170. def __init__(self, variant: typing.Any, /) -> None: ...
  171. def __add__(self, rhs: PySide6.QtQml.QJSPrimitiveValue | str | bool | float | int, /) -> PySide6.QtQml.QJSPrimitiveValue: ...
  172. def __copy__(self, /) -> typing.Self: ...
  173. def __eq__(self, rhs: PySide6.QtQml.QJSPrimitiveValue | str | bool | float | int, /) -> bool: ...
  174. def __ge__(self, rhs: PySide6.QtQml.QJSPrimitiveValue | str | bool | float | int, /) -> bool: ...
  175. def __gt__(self, rhs: PySide6.QtQml.QJSPrimitiveValue | str | bool | float | int, /) -> bool: ...
  176. def __iadd__(self, arg__1: int, /) -> PySide6.QtQml.QJSPrimitiveValue: ... # type: ignore[misc]
  177. def __isub__(self, arg__1: int, /) -> PySide6.QtQml.QJSPrimitiveValue: ... # type: ignore[misc]
  178. def __le__(self, rhs: PySide6.QtQml.QJSPrimitiveValue | str | bool | float | int, /) -> bool: ...
  179. def __lt__(self, rhs: PySide6.QtQml.QJSPrimitiveValue | str | bool | float | int, /) -> bool: ...
  180. def __mod__(self, rhs: PySide6.QtQml.QJSPrimitiveValue | str | bool | float | int, /) -> PySide6.QtQml.QJSPrimitiveValue: ...
  181. def __mul__(self, rhs: PySide6.QtQml.QJSPrimitiveValue | str | bool | float | int, /) -> PySide6.QtQml.QJSPrimitiveValue: ...
  182. def __ne__(self, rhs: PySide6.QtQml.QJSPrimitiveValue | str | bool | float | int, /) -> bool: ...
  183. def __neg__(self, /) -> PySide6.QtQml.QJSPrimitiveValue: ...
  184. def __pos__(self, /) -> PySide6.QtQml.QJSPrimitiveValue: ...
  185. def __sub__(self, rhs: PySide6.QtQml.QJSPrimitiveValue | str | bool | float | int, /) -> PySide6.QtQml.QJSPrimitiveValue: ...
  186. def constData(self, /) -> int: ...
  187. def data(self, /) -> int: ...
  188. def equals(self, other: PySide6.QtQml.QJSPrimitiveValue | str | bool | float | int, /) -> bool: ...
  189. def metaType(self, /) -> PySide6.QtCore.QMetaType: ...
  190. def strictlyEquals(self, other: PySide6.QtQml.QJSPrimitiveValue | str | bool | float | int, /) -> bool: ...
  191. def toBoolean(self, /) -> bool: ...
  192. def toDouble(self, /) -> float: ...
  193. def toInteger(self, /) -> int: ...
  194. def toString(self, /) -> str: ...
  195. def toVariant(self, /) -> typing.Any: ...
  196. def type(self, /) -> PySide6.QtQml.QJSPrimitiveValue.Type: ...
  197. class QJSValue(Shiboken.Object):
  198. class ErrorType(enum.Enum):
  199. NoError = 0x0
  200. GenericError = 0x1
  201. EvalError = 0x2
  202. RangeError = 0x3
  203. ReferenceError = 0x4
  204. SyntaxError = 0x5
  205. TypeError = 0x6
  206. URIError = 0x7
  207. class ObjectConversionBehavior(enum.Enum):
  208. ConvertJSObjects = 0x0
  209. RetainJSObjects = 0x1
  210. class SpecialValue(enum.Enum):
  211. NullValue = 0x0
  212. UndefinedValue = 0x1
  213. @typing.overload
  214. def __init__(self, other: PySide6.QtQml.QJSValue, /) -> None: ...
  215. @typing.overload
  216. def __init__(self, /, value: PySide6.QtQml.QJSValue.SpecialValue = ...) -> None: ...
  217. @typing.overload
  218. def __init__(self, value: str, /) -> None: ...
  219. @typing.overload
  220. def __init__(self, str: bytes | bytearray | memoryview, /) -> None: ...
  221. @typing.overload
  222. def __init__(self, value: bool, /) -> None: ...
  223. @typing.overload
  224. def __init__(self, value: int, /) -> None: ...
  225. @typing.overload
  226. def __init__(self, value: float, /) -> None: ...
  227. def __copy__(self, /) -> typing.Self: ...
  228. def __lshift__(self, arg__1: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  229. def __rshift__(self, arg__1: PySide6.QtCore.QDataStream, /) -> PySide6.QtCore.QDataStream: ...
  230. def call(self, /, args: collections.abc.Sequence[PySide6.QtQml.QJSValue] = ...) -> PySide6.QtQml.QJSValue: ...
  231. def callAsConstructor(self, /, args: collections.abc.Sequence[PySide6.QtQml.QJSValue] = ...) -> PySide6.QtQml.QJSValue: ...
  232. def callWithInstance(self, instance: PySide6.QtQml.QJSValue | PySide6.QtQml.QJSValue.SpecialValue | bool | str | bytes | bytearray | memoryview | float | int, /, args: collections.abc.Sequence[PySide6.QtQml.QJSValue] = ...) -> PySide6.QtQml.QJSValue: ...
  233. def deleteProperty(self, name: str, /) -> bool: ...
  234. def equals(self, other: PySide6.QtQml.QJSValue | PySide6.QtQml.QJSValue.SpecialValue | bool | str | bytes | bytearray | memoryview | float | int, /) -> bool: ...
  235. def errorType(self, /) -> PySide6.QtQml.QJSValue.ErrorType: ...
  236. def hasOwnProperty(self, name: str, /) -> bool: ...
  237. def hasProperty(self, name: str, /) -> bool: ...
  238. def isArray(self, /) -> bool: ...
  239. def isBool(self, /) -> bool: ...
  240. def isCallable(self, /) -> bool: ...
  241. def isDate(self, /) -> bool: ...
  242. def isError(self, /) -> bool: ...
  243. def isNull(self, /) -> bool: ...
  244. def isNumber(self, /) -> bool: ...
  245. def isObject(self, /) -> bool: ...
  246. def isQMetaObject(self, /) -> bool: ...
  247. def isQObject(self, /) -> bool: ...
  248. def isRegExp(self, /) -> bool: ...
  249. def isString(self, /) -> bool: ...
  250. def isUndefined(self, /) -> bool: ...
  251. def isUrl(self, /) -> bool: ...
  252. def isVariant(self, /) -> bool: ...
  253. @typing.overload
  254. def property(self, name: str, /) -> PySide6.QtQml.QJSValue: ...
  255. @typing.overload
  256. def property(self, arrayIndex: int, /) -> PySide6.QtQml.QJSValue: ...
  257. def prototype(self, /) -> PySide6.QtQml.QJSValue: ...
  258. @typing.overload
  259. def setProperty(self, name: str, value: PySide6.QtQml.QJSValue | PySide6.QtQml.QJSValue.SpecialValue | bool | str | bytes | bytearray | memoryview | float | int, /) -> None: ...
  260. @typing.overload
  261. def setProperty(self, arrayIndex: int, value: PySide6.QtQml.QJSValue | PySide6.QtQml.QJSValue.SpecialValue | bool | str | bytes | bytearray | memoryview | float | int, /) -> None: ...
  262. def setPrototype(self, prototype: PySide6.QtQml.QJSValue | PySide6.QtQml.QJSValue.SpecialValue | bool | str | bytes | bytearray | memoryview | float | int, /) -> None: ...
  263. def strictlyEquals(self, other: PySide6.QtQml.QJSValue | PySide6.QtQml.QJSValue.SpecialValue | bool | str | bytes | bytearray | memoryview | float | int, /) -> bool: ...
  264. def toBool(self, /) -> bool: ...
  265. def toDateTime(self, /) -> PySide6.QtCore.QDateTime: ...
  266. def toInt(self, /) -> int: ...
  267. def toNumber(self, /) -> float: ...
  268. def toPrimitive(self, /) -> PySide6.QtQml.QJSPrimitiveValue: ...
  269. def toQMetaObject(self, /) -> PySide6.QtCore.QMetaObject: ...
  270. def toQObject(self, /) -> PySide6.QtCore.QObject: ...
  271. def toString(self, /) -> str: ...
  272. def toUInt(self, /) -> int: ...
  273. @typing.overload
  274. def toVariant(self, /) -> typing.Any: ...
  275. @typing.overload
  276. def toVariant(self, behavior: PySide6.QtQml.QJSValue.ObjectConversionBehavior, /) -> typing.Any: ...
  277. class QJSValueIterator(Shiboken.Object):
  278. def __init__(self, value: PySide6.QtQml.QJSValue | PySide6.QtQml.QJSValue.SpecialValue | bool | str | bytes | bytearray | memoryview | float | int, /) -> None: ...
  279. def hasNext(self, /) -> bool: ...
  280. def name(self, /) -> str: ...
  281. def next(self, /) -> bool: ...
  282. def value(self, /) -> PySide6.QtQml.QJSValue: ...
  283. class QPyQmlParserStatus(PySide6.QtCore.QObject, PySide6.QtQml.QQmlParserStatus):
  284. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  285. class QPyQmlPropertyValueSource(PySide6.QtCore.QObject, PySide6.QtQml.QQmlPropertyValueSource):
  286. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  287. class QQmlAbstractUrlInterceptor(Shiboken.Object):
  288. class DataType(enum.Enum):
  289. QmlFile = 0x0
  290. JavaScriptFile = 0x1
  291. QmldirFile = 0x2
  292. UrlString = 0x1000
  293. def __init__(self, /) -> None: ...
  294. def intercept(self, path: PySide6.QtCore.QUrl | str, type: PySide6.QtQml.QQmlAbstractUrlInterceptor.DataType, /) -> PySide6.QtCore.QUrl: ...
  295. class QQmlApplicationEngine(PySide6.QtQml.QQmlEngine):
  296. objectCreated : typing.ClassVar[Signal] = ... # objectCreated(QObject*,QUrl)
  297. objectCreationFailed : typing.ClassVar[Signal] = ... # objectCreationFailed(QUrl)
  298. @typing.overload
  299. def __init__(self, uri: str, typeName: str, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  300. @typing.overload
  301. def __init__(self, filePath: str, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  302. @typing.overload
  303. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  304. @typing.overload
  305. def __init__(self, url: PySide6.QtCore.QUrl | str, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  306. @typing.overload
  307. def load(self, url: PySide6.QtCore.QUrl | str, /) -> None: ...
  308. @typing.overload
  309. def load(self, filePath: str | bytes | os.PathLike[str], /) -> None: ...
  310. def loadData(self, data: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /, url: PySide6.QtCore.QUrl | str = ...) -> None: ...
  311. def loadFromModule(self, uri: str, typeName: str, /) -> None: ...
  312. def rootObjects(self, /) -> typing.List[PySide6.QtCore.QObject]: ...
  313. def setExtraFileSelectors(self, extraFileSelectors: collections.abc.Sequence[str], /) -> None: ...
  314. def setInitialProperties(self, initialProperties: typing.Dict[str, typing.Any], /) -> None: ...
  315. class QQmlComponent(PySide6.QtCore.QObject):
  316. progressChanged : typing.ClassVar[Signal] = ... # progressChanged(double)
  317. statusChanged : typing.ClassVar[Signal] = ... # statusChanged(QQmlComponent::Status)
  318. class CompilationMode(enum.Enum):
  319. PreferSynchronous = 0x0
  320. Asynchronous = 0x1
  321. class Status(enum.Enum):
  322. Null = 0x0
  323. Ready = 0x1
  324. Loading = 0x2
  325. Error = 0x3
  326. @typing.overload
  327. def __init__(self, arg__1: PySide6.QtQml.QQmlEngine, fileName: str, mode: PySide6.QtQml.QQmlComponent.CompilationMode, /, parent: PySide6.QtCore.QObject | None = ..., *, progress: float | None = ..., status: PySide6.QtQml.QQmlComponent.Status | None = ..., url: PySide6.QtCore.QUrl | None = ...) -> None: ...
  328. @typing.overload
  329. def __init__(self, engine: PySide6.QtQml.QQmlEngine, uri: str, typeName: str, mode: PySide6.QtQml.QQmlComponent.CompilationMode, /, parent: PySide6.QtCore.QObject | None = ..., *, progress: float | None = ..., status: PySide6.QtQml.QQmlComponent.Status | None = ..., url: PySide6.QtCore.QUrl | None = ...) -> None: ...
  330. @typing.overload
  331. def __init__(self, engine: PySide6.QtQml.QQmlEngine, uri: str, typeName: str, /, parent: PySide6.QtCore.QObject | None = ..., *, progress: float | None = ..., status: PySide6.QtQml.QQmlComponent.Status | None = ..., url: PySide6.QtCore.QUrl | None = ...) -> None: ...
  332. @typing.overload
  333. def __init__(self, arg__1: PySide6.QtQml.QQmlEngine, fileName: str, /, parent: PySide6.QtCore.QObject | None = ..., *, progress: float | None = ..., status: PySide6.QtQml.QQmlComponent.Status | None = ..., url: PySide6.QtCore.QUrl | None = ...) -> None: ...
  334. @typing.overload
  335. def __init__(self, arg__1: PySide6.QtQml.QQmlEngine, /, parent: PySide6.QtCore.QObject | None = ..., *, progress: float | None = ..., status: PySide6.QtQml.QQmlComponent.Status | None = ..., url: PySide6.QtCore.QUrl | None = ...) -> None: ...
  336. @typing.overload
  337. def __init__(self, arg__1: PySide6.QtQml.QQmlEngine, url: PySide6.QtCore.QUrl | str, mode: PySide6.QtQml.QQmlComponent.CompilationMode, /, parent: PySide6.QtCore.QObject | None = ..., *, progress: float | None = ..., status: PySide6.QtQml.QQmlComponent.Status | None = ...) -> None: ...
  338. @typing.overload
  339. def __init__(self, arg__1: PySide6.QtQml.QQmlEngine, url: PySide6.QtCore.QUrl | str, /, parent: PySide6.QtCore.QObject | None = ..., *, progress: float | None = ..., status: PySide6.QtQml.QQmlComponent.Status | None = ...) -> None: ...
  340. @typing.overload
  341. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, progress: float | None = ..., status: PySide6.QtQml.QQmlComponent.Status | None = ..., url: PySide6.QtCore.QUrl | None = ...) -> None: ...
  342. def beginCreate(self, arg__1: PySide6.QtQml.QQmlContext, /) -> PySide6.QtCore.QObject: ...
  343. def completeCreate(self, /) -> None: ...
  344. @typing.overload
  345. def create(self, arg__1: PySide6.QtQml.QQmlIncubator, /, context: PySide6.QtQml.QQmlContext | None = ..., forContext: PySide6.QtQml.QQmlContext | None = ...) -> None: ...
  346. @typing.overload
  347. def create(self, /, context: PySide6.QtQml.QQmlContext | None = ...) -> PySide6.QtCore.QObject: ...
  348. def createObject(self, /, parent: PySide6.QtCore.QObject | None = ..., properties: typing.Dict[str, typing.Any] = ...) -> PySide6.QtCore.QObject: ...
  349. def createWithInitialProperties(self, initialProperties: typing.Dict[str, typing.Any], /, context: PySide6.QtQml.QQmlContext | None = ...) -> PySide6.QtCore.QObject: ...
  350. def creationContext(self, /) -> PySide6.QtQml.QQmlContext: ...
  351. def engine(self, /) -> PySide6.QtQml.QQmlEngine: ...
  352. def errorString(self, /) -> str: ...
  353. def errors(self, /) -> typing.List[PySide6.QtQml.QQmlError]: ...
  354. def isBound(self, /) -> bool: ...
  355. def isError(self, /) -> bool: ...
  356. def isLoading(self, /) -> bool: ...
  357. def isNull(self, /) -> bool: ...
  358. def isReady(self, /) -> bool: ...
  359. def loadFromModule(self, uri: str, typeName: str, /, mode: PySide6.QtQml.QQmlComponent.CompilationMode = ...) -> None: ...
  360. @typing.overload
  361. def loadUrl(self, url: PySide6.QtCore.QUrl | str, /) -> None: ...
  362. @typing.overload
  363. def loadUrl(self, url: PySide6.QtCore.QUrl | str, mode: PySide6.QtQml.QQmlComponent.CompilationMode, /) -> None: ...
  364. def progress(self, /) -> float: ...
  365. def setData(self, arg__1: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, baseUrl: PySide6.QtCore.QUrl | str, /) -> None: ...
  366. def setInitialProperties(self, component: PySide6.QtCore.QObject, properties: typing.Dict[str, typing.Any], /) -> None: ...
  367. def status(self, /) -> PySide6.QtQml.QQmlComponent.Status: ...
  368. def url(self, /) -> PySide6.QtCore.QUrl: ...
  369. class QQmlContext(PySide6.QtCore.QObject):
  370. class PropertyPair(Shiboken.Object):
  371. @typing.overload
  372. def __init__(self, /) -> None: ...
  373. @typing.overload
  374. def __init__(self, PropertyPair: PySide6.QtQml.QQmlContext.PropertyPair, /) -> None: ...
  375. def __copy__(self, /) -> typing.Self: ...
  376. @typing.overload
  377. def __init__(self, parent: PySide6.QtQml.QQmlEngine, /, objParent: PySide6.QtCore.QObject | None = ...) -> None: ...
  378. @typing.overload
  379. def __init__(self, parent: PySide6.QtQml.QQmlContext, /, objParent: PySide6.QtCore.QObject | None = ...) -> None: ...
  380. def baseUrl(self, /) -> PySide6.QtCore.QUrl: ...
  381. def contextObject(self, /) -> PySide6.QtCore.QObject: ...
  382. def contextProperty(self, arg__1: str, /) -> typing.Any: ...
  383. def engine(self, /) -> PySide6.QtQml.QQmlEngine: ...
  384. def importedScript(self, name: str, /) -> PySide6.QtQml.QJSValue: ...
  385. def isValid(self, /) -> bool: ...
  386. def nameForObject(self, arg__1: PySide6.QtCore.QObject, /) -> str: ...
  387. def objectForName(self, arg__1: str, /) -> PySide6.QtCore.QObject: ...
  388. def parentContext(self, /) -> PySide6.QtQml.QQmlContext: ...
  389. def resolvedUrl(self, arg__1: PySide6.QtCore.QUrl | str, /) -> PySide6.QtCore.QUrl: ...
  390. def setBaseUrl(self, arg__1: PySide6.QtCore.QUrl | str, /) -> None: ...
  391. def setContextObject(self, arg__1: PySide6.QtCore.QObject, /) -> None: ...
  392. def setContextProperties(self, properties: collections.abc.Sequence[PySide6.QtQml.QQmlContext.PropertyPair], /) -> None: ...
  393. @typing.overload
  394. def setContextProperty(self, arg__1: str, arg__2: PySide6.QtCore.QObject, /) -> None: ...
  395. @typing.overload
  396. def setContextProperty(self, arg__1: str, arg__2: typing.Any, /) -> None: ...
  397. class QQmlDebuggingEnabler(Shiboken.Object):
  398. class StartMode(enum.Enum):
  399. DoNotWaitForClient = 0x0
  400. WaitForClient = 0x1
  401. def __init__(self, /, printWarning: bool = ...) -> None: ...
  402. @staticmethod
  403. def connectToLocalDebugger(socketFileName: str, /, mode: PySide6.QtQml.QQmlDebuggingEnabler.StartMode = ...) -> bool: ...
  404. @staticmethod
  405. def debuggerServices() -> typing.List[str]: ...
  406. @staticmethod
  407. def enableDebugging(printWarning: bool, /) -> None: ...
  408. @staticmethod
  409. def inspectorServices() -> typing.List[str]: ...
  410. @staticmethod
  411. def nativeDebuggerServices() -> typing.List[str]: ...
  412. @staticmethod
  413. def profilerServices() -> typing.List[str]: ...
  414. @staticmethod
  415. def setServices(services: collections.abc.Sequence[str], /) -> None: ...
  416. @staticmethod
  417. def startDebugConnector(pluginName: str, /, configuration: typing.Dict[str, typing.Any] = ...) -> bool: ...
  418. @staticmethod
  419. def startTcpDebugServer(port: int, /, mode: PySide6.QtQml.QQmlDebuggingEnabler.StartMode = ..., hostName: str = ...) -> bool: ...
  420. class QQmlEngine(PySide6.QtQml.QJSEngine):
  421. exit : typing.ClassVar[Signal] = ... # exit(int)
  422. offlineStoragePathChanged: typing.ClassVar[Signal] = ... # offlineStoragePathChanged()
  423. quit : typing.ClassVar[Signal] = ... # quit()
  424. warnings : typing.ClassVar[Signal] = ... # warnings(QList<QQmlError>)
  425. def __init__(self, /, p: PySide6.QtCore.QObject | None = ..., *, offlineStoragePath: str | None = ...) -> None: ...
  426. def addImageProvider(self, id: str, arg__2: PySide6.QtQml.QQmlImageProviderBase, /) -> None: ...
  427. def addImportPath(self, dir: str | bytes | os.PathLike[str], /) -> None: ...
  428. def addNamedBundle(self, arg__1: str, arg__2: str, /) -> bool: ...
  429. def addPluginPath(self, dir: str | bytes | os.PathLike[str], /) -> None: ...
  430. def addUrlInterceptor(self, urlInterceptor: PySide6.QtQml.QQmlAbstractUrlInterceptor, /) -> None: ...
  431. def baseUrl(self, /) -> PySide6.QtCore.QUrl: ...
  432. def captureProperty(self, object: PySide6.QtCore.QObject, property: PySide6.QtCore.QMetaProperty, /) -> None: ...
  433. def clearComponentCache(self, /) -> None: ...
  434. def clearSingletons(self, /) -> None: ...
  435. @staticmethod
  436. def contextForObject(arg__1: PySide6.QtCore.QObject, /) -> PySide6.QtQml.QQmlContext: ...
  437. def event(self, arg__1: PySide6.QtCore.QEvent, /) -> bool: ...
  438. def imageProvider(self, id: str, /) -> PySide6.QtQml.QQmlImageProviderBase: ...
  439. def importPathList(self, /) -> typing.List[str]: ...
  440. def importPlugin(self, filePath: str, uri: str, errors: collections.abc.Sequence[PySide6.QtQml.QQmlError], /) -> bool: ...
  441. def incubationController(self, /) -> PySide6.QtQml.QQmlIncubationController: ...
  442. def interceptUrl(self, url: PySide6.QtCore.QUrl | str, type: PySide6.QtQml.QQmlAbstractUrlInterceptor.DataType, /) -> PySide6.QtCore.QUrl: ...
  443. def markCurrentFunctionAsTranslationBinding(self, /) -> None: ...
  444. def networkAccessManager(self, /) -> PySide6.QtNetwork.QNetworkAccessManager: ...
  445. def networkAccessManagerFactory(self, /) -> PySide6.QtQml.QQmlNetworkAccessManagerFactory: ...
  446. def offlineStorageDatabaseFilePath(self, databaseName: str, /) -> str: ...
  447. def offlineStoragePath(self, /) -> str: ...
  448. def outputWarningsToStandardError(self, /) -> bool: ...
  449. def pluginPathList(self, /) -> typing.List[str]: ...
  450. def removeImageProvider(self, id: str, /) -> None: ...
  451. def removeUrlInterceptor(self, urlInterceptor: PySide6.QtQml.QQmlAbstractUrlInterceptor, /) -> None: ...
  452. def retranslate(self, /) -> None: ...
  453. def rootContext(self, /) -> PySide6.QtQml.QQmlContext: ...
  454. def setBaseUrl(self, arg__1: PySide6.QtCore.QUrl | str, /) -> None: ...
  455. @staticmethod
  456. def setContextForObject(arg__1: PySide6.QtCore.QObject, arg__2: PySide6.QtQml.QQmlContext, /) -> None: ...
  457. def setImportPathList(self, paths: collections.abc.Sequence[str], /) -> None: ...
  458. def setIncubationController(self, arg__1: PySide6.QtQml.QQmlIncubationController, /) -> None: ...
  459. def setNetworkAccessManagerFactory(self, arg__1: PySide6.QtQml.QQmlNetworkAccessManagerFactory, /) -> None: ...
  460. def setOfflineStoragePath(self, dir: str, /) -> None: ...
  461. def setOutputWarningsToStandardError(self, arg__1: bool, /) -> None: ...
  462. def setPluginPathList(self, paths: collections.abc.Sequence[str], /) -> None: ...
  463. def setUrlInterceptor(self, urlInterceptor: PySide6.QtQml.QQmlAbstractUrlInterceptor, /) -> None: ...
  464. @typing.overload
  465. def singletonInstance(self, uri: str, typeName: str, /) -> PySide6.QtCore.QObject | PySide6.QtQml.QJSValue | None: ...
  466. @typing.overload
  467. def singletonInstance(self, qmlTypeId: int, /) -> PySide6.QtCore.QObject | PySide6.QtQml.QJSValue | None: ...
  468. def trimComponentCache(self, /) -> None: ...
  469. def urlInterceptor(self, /) -> PySide6.QtQml.QQmlAbstractUrlInterceptor: ...
  470. def urlInterceptors(self, /) -> typing.List[PySide6.QtQml.QQmlAbstractUrlInterceptor]: ...
  471. class QQmlError(Shiboken.Object):
  472. @typing.overload
  473. def __init__(self, /) -> None: ...
  474. @typing.overload
  475. def __init__(self, arg__1: PySide6.QtQml.QQmlError, /) -> None: ...
  476. def __copy__(self, /) -> typing.Self: ...
  477. def __repr__(self, /) -> str: ...
  478. def column(self, /) -> int: ...
  479. def description(self, /) -> str: ...
  480. def isValid(self, /) -> bool: ...
  481. def line(self, /) -> int: ...
  482. def messageType(self, /) -> PySide6.QtCore.QtMsgType: ...
  483. def object(self, /) -> PySide6.QtCore.QObject: ...
  484. def setColumn(self, arg__1: int, /) -> None: ...
  485. def setDescription(self, arg__1: str, /) -> None: ...
  486. def setLine(self, arg__1: int, /) -> None: ...
  487. def setMessageType(self, messageType: PySide6.QtCore.QtMsgType, /) -> None: ...
  488. def setObject(self, arg__1: PySide6.QtCore.QObject, /) -> None: ...
  489. def setUrl(self, arg__1: PySide6.QtCore.QUrl | str, /) -> None: ...
  490. def swap(self, other: PySide6.QtQml.QQmlError, /) -> None: ...
  491. def toString(self, /) -> str: ...
  492. def url(self, /) -> PySide6.QtCore.QUrl: ...
  493. class QQmlExpression(PySide6.QtCore.QObject):
  494. valueChanged : typing.ClassVar[Signal] = ... # valueChanged()
  495. @typing.overload
  496. def __init__(self, /) -> None: ...
  497. @typing.overload
  498. def __init__(self, arg__1: PySide6.QtQml.QQmlContext, arg__2: PySide6.QtCore.QObject, arg__3: str, /, arg__4: PySide6.QtCore.QObject | None = ...) -> None: ...
  499. @typing.overload
  500. def __init__(self, arg__1: PySide6.QtQml.QQmlScriptString, /, arg__2: PySide6.QtQml.QQmlContext | None = ..., arg__3: PySide6.QtCore.QObject | None = ..., arg__4: PySide6.QtCore.QObject | None = ...) -> None: ...
  501. def clearError(self, /) -> None: ...
  502. def columnNumber(self, /) -> int: ...
  503. def context(self, /) -> PySide6.QtQml.QQmlContext: ...
  504. def engine(self, /) -> PySide6.QtQml.QQmlEngine: ...
  505. def error(self, /) -> PySide6.QtQml.QQmlError: ...
  506. def evaluate(self, /) -> typing.Tuple[typing.Any, bool]: ...
  507. def expression(self, /) -> str: ...
  508. def hasError(self, /) -> bool: ...
  509. def lineNumber(self, /) -> int: ...
  510. def notifyOnValueChanged(self, /) -> bool: ...
  511. def scopeObject(self, /) -> PySide6.QtCore.QObject: ...
  512. def setExpression(self, arg__1: str, /) -> None: ...
  513. def setNotifyOnValueChanged(self, arg__1: bool, /) -> None: ...
  514. def setSourceLocation(self, fileName: str, line: int, /, column: int | None = ...) -> None: ...
  515. def sourceFile(self, /) -> str: ...
  516. class QQmlExtensionInterface(PySide6.QtQml.QQmlTypesExtensionInterface):
  517. def __init__(self, /) -> None: ...
  518. def initializeEngine(self, engine: PySide6.QtQml.QQmlEngine, uri: bytes | bytearray | memoryview, /) -> None: ...
  519. class QQmlExtensionPlugin(PySide6.QtCore.QObject, PySide6.QtQml.QQmlExtensionInterface):
  520. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  521. def baseUrl(self, /) -> PySide6.QtCore.QUrl: ...
  522. def initializeEngine(self, engine: PySide6.QtQml.QQmlEngine, uri: bytes | bytearray | memoryview, /) -> None: ...
  523. def registerTypes(self, uri: bytes | bytearray | memoryview, /) -> None: ...
  524. def unregisterTypes(self, /) -> None: ...
  525. class QQmlFile(Shiboken.Object):
  526. class Status(enum.Enum):
  527. Null = 0x0
  528. Ready = 0x1
  529. Error = 0x2
  530. Loading = 0x3
  531. @typing.overload
  532. def __init__(self, /) -> None: ...
  533. @typing.overload
  534. def __init__(self, engine: PySide6.QtQml.QQmlEngine, url: str, /) -> None: ...
  535. @typing.overload
  536. def __init__(self, engine: PySide6.QtQml.QQmlEngine, url: PySide6.QtCore.QUrl | str, /) -> None: ...
  537. @typing.overload
  538. def clear(self, /) -> None: ...
  539. @typing.overload
  540. def clear(self, object: PySide6.QtCore.QObject, /) -> None: ...
  541. @typing.overload
  542. def connectDownloadProgress(self, arg__1: PySide6.QtCore.QObject, arg__2: bytes | bytearray | memoryview, /) -> bool: ...
  543. @typing.overload
  544. def connectDownloadProgress(self, arg__1: PySide6.QtCore.QObject, arg__2: int, /) -> bool: ...
  545. @typing.overload
  546. def connectFinished(self, arg__1: PySide6.QtCore.QObject, arg__2: bytes | bytearray | memoryview, /) -> bool: ...
  547. @typing.overload
  548. def connectFinished(self, arg__1: PySide6.QtCore.QObject, arg__2: int, /) -> bool: ...
  549. def data(self, /) -> bytes | bytearray | memoryview: ...
  550. def dataByteArray(self, /) -> PySide6.QtCore.QByteArray: ...
  551. def error(self, /) -> str: ...
  552. def isError(self, /) -> bool: ...
  553. def isLoading(self, /) -> bool: ...
  554. @typing.overload
  555. @staticmethod
  556. def isLocalFile(url: str, /) -> bool: ...
  557. @typing.overload
  558. @staticmethod
  559. def isLocalFile(url: PySide6.QtCore.QUrl | str, /) -> bool: ...
  560. def isNull(self, /) -> bool: ...
  561. def isReady(self, /) -> bool: ...
  562. @typing.overload
  563. @staticmethod
  564. def isSynchronous(url: str, /) -> bool: ...
  565. @typing.overload
  566. @staticmethod
  567. def isSynchronous(url: PySide6.QtCore.QUrl | str, /) -> bool: ...
  568. @typing.overload
  569. def load(self, arg__1: PySide6.QtQml.QQmlEngine, arg__2: str, /) -> None: ...
  570. @typing.overload
  571. def load(self, arg__1: PySide6.QtQml.QQmlEngine, arg__2: PySide6.QtCore.QUrl | str, /) -> None: ...
  572. def size(self, /) -> int: ...
  573. def status(self, /) -> PySide6.QtQml.QQmlFile.Status: ...
  574. def url(self, /) -> PySide6.QtCore.QUrl: ...
  575. @typing.overload
  576. @staticmethod
  577. def urlToLocalFileOrQrc(arg__1: str, /) -> str: ...
  578. @typing.overload
  579. @staticmethod
  580. def urlToLocalFileOrQrc(arg__1: PySide6.QtCore.QUrl | str, /) -> str: ...
  581. class QQmlFileSelector(PySide6.QtCore.QObject):
  582. def __init__(self, engine: PySide6.QtQml.QQmlEngine, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  583. @staticmethod
  584. def get(arg__1: PySide6.QtQml.QQmlEngine, /) -> PySide6.QtQml.QQmlFileSelector: ...
  585. def selector(self, /) -> PySide6.QtCore.QFileSelector: ...
  586. def setExtraSelectors(self, strings: collections.abc.Sequence[str], /) -> None: ...
  587. def setSelector(self, selector: PySide6.QtCore.QFileSelector, /) -> None: ...
  588. class QQmlImageProviderBase(PySide6.QtCore.QObject):
  589. class Flag(enum.Flag):
  590. ForceAsynchronousImageLoading = 0x1
  591. class ImageType(enum.Enum):
  592. Invalid = 0x0
  593. Image = 0x1
  594. Pixmap = 0x2
  595. Texture = 0x3
  596. ImageResponse = 0x4
  597. def flags(self, /) -> PySide6.QtQml.QQmlImageProviderBase.Flag: ...
  598. def imageType(self, /) -> PySide6.QtQml.QQmlImageProviderBase.ImageType: ...
  599. class QQmlIncubationController(Shiboken.Object):
  600. def __init__(self, /) -> None: ...
  601. def engine(self, /) -> PySide6.QtQml.QQmlEngine: ...
  602. def incubateFor(self, msecs: int, /) -> None: ...
  603. def incubateWhile(self, flag: PySide6.QtQml.VolatileBool, /, msecs: int | None = ...) -> None: ...
  604. def incubatingObjectCount(self, /) -> int: ...
  605. def incubatingObjectCountChanged(self, arg__1: int, /) -> None: ...
  606. class QQmlIncubator(Shiboken.Object):
  607. class IncubationMode(enum.Enum):
  608. Asynchronous = 0x0
  609. AsynchronousIfNested = 0x1
  610. Synchronous = 0x2
  611. class Status(enum.Enum):
  612. Null = 0x0
  613. Ready = 0x1
  614. Loading = 0x2
  615. Error = 0x3
  616. def __init__(self, /, arg__1: PySide6.QtQml.QQmlIncubator.IncubationMode = ...) -> None: ...
  617. def clear(self, /) -> None: ...
  618. def errors(self, /) -> typing.List[PySide6.QtQml.QQmlError]: ...
  619. def forceCompletion(self, /) -> None: ...
  620. def incubationMode(self, /) -> PySide6.QtQml.QQmlIncubator.IncubationMode: ...
  621. def isError(self, /) -> bool: ...
  622. def isLoading(self, /) -> bool: ...
  623. def isNull(self, /) -> bool: ...
  624. def isReady(self, /) -> bool: ...
  625. def object(self, /) -> PySide6.QtCore.QObject: ...
  626. def setInitialProperties(self, initialProperties: typing.Dict[str, typing.Any], /) -> None: ...
  627. def setInitialState(self, arg__1: PySide6.QtCore.QObject, /) -> None: ...
  628. def status(self, /) -> PySide6.QtQml.QQmlIncubator.Status: ...
  629. def statusChanged(self, arg__1: PySide6.QtQml.QQmlIncubator.Status, /) -> None: ...
  630. class QQmlListReference(Shiboken.Object):
  631. @typing.overload
  632. def __init__(self, /) -> None: ...
  633. @typing.overload
  634. def __init__(self, o: PySide6.QtCore.QObject, property: bytes | bytearray | memoryview, /) -> None: ...
  635. @typing.overload
  636. def __init__(self, o: PySide6.QtCore.QObject, property: bytes | bytearray | memoryview, engine: PySide6.QtQml.QQmlEngine, /) -> None: ...
  637. @typing.overload
  638. def __init__(self, arg__1: PySide6.QtQml.QQmlListReference, /) -> None: ...
  639. @typing.overload
  640. def __init__(self, variant: typing.Any, /) -> None: ...
  641. @typing.overload
  642. def __init__(self, variant: typing.Any, engine: PySide6.QtQml.QQmlEngine, /) -> None: ...
  643. def __copy__(self, /) -> typing.Self: ...
  644. def __eq__(self, other: PySide6.QtQml.QQmlListReference, /) -> bool: ...
  645. def append(self, arg__1: PySide6.QtCore.QObject, /) -> bool: ...
  646. def at(self, arg__1: int, /) -> PySide6.QtCore.QObject: ...
  647. def canAppend(self, /) -> bool: ...
  648. def canAt(self, /) -> bool: ...
  649. def canClear(self, /) -> bool: ...
  650. def canCount(self, /) -> bool: ...
  651. def canRemoveLast(self, /) -> bool: ...
  652. def canReplace(self, /) -> bool: ...
  653. def clear(self, /) -> bool: ...
  654. def count(self, /) -> int: ...
  655. def isManipulable(self, /) -> bool: ...
  656. def isReadable(self, /) -> bool: ...
  657. def isValid(self, /) -> bool: ...
  658. def listElementType(self, /) -> PySide6.QtCore.QMetaObject: ...
  659. def object(self, /) -> PySide6.QtCore.QObject: ...
  660. def removeLast(self, /) -> bool: ...
  661. def replace(self, arg__1: int, arg__2: PySide6.QtCore.QObject, /) -> bool: ...
  662. def size(self, /) -> int: ...
  663. class QQmlModuleImportSpecialVersions(enum.Flag):
  664. QQmlModuleImportAuto = -2
  665. QQmlModuleImportLatest = -1
  666. QQmlModuleImportModuleAny = -1
  667. class QQmlNetworkAccessManagerFactory(Shiboken.Object):
  668. def __init__(self, /) -> None: ...
  669. def create(self, parent: PySide6.QtCore.QObject, /) -> PySide6.QtNetwork.QNetworkAccessManager: ...
  670. class QQmlParserStatus(Shiboken.Object):
  671. def __init__(self, /) -> None: ...
  672. def classBegin(self, /) -> None: ...
  673. def componentComplete(self, /) -> None: ...
  674. class QQmlProperty(Shiboken.Object):
  675. class PropertyTypeCategory(enum.Enum):
  676. InvalidCategory = 0x0
  677. List = 0x1
  678. Object = 0x2
  679. Normal = 0x3
  680. class Type(enum.Enum):
  681. Invalid = 0x0
  682. Property = 0x1
  683. SignalProperty = 0x2
  684. @typing.overload
  685. def __init__(self, arg__1: PySide6.QtCore.QObject, arg__2: PySide6.QtQml.QQmlEngine, /, *, object: PySide6.QtCore.QObject | None = ..., name: str | None = ...) -> None: ...
  686. @typing.overload
  687. def __init__(self, arg__1: PySide6.QtCore.QObject, arg__2: PySide6.QtQml.QQmlContext, /, *, object: PySide6.QtCore.QObject | None = ..., name: str | None = ...) -> None: ...
  688. @typing.overload
  689. def __init__(self, arg__1: PySide6.QtCore.QObject, arg__2: str, arg__3: PySide6.QtQml.QQmlEngine, /, *, object: PySide6.QtCore.QObject | None = ..., name: str | None = ...) -> None: ...
  690. @typing.overload
  691. def __init__(self, arg__1: PySide6.QtCore.QObject, arg__2: str, arg__3: PySide6.QtQml.QQmlContext, /, *, object: PySide6.QtCore.QObject | None = ..., name: str | None = ...) -> None: ...
  692. @typing.overload
  693. def __init__(self, arg__1: PySide6.QtCore.QObject, arg__2: str, /, *, object: PySide6.QtCore.QObject | None = ..., name: str | None = ...) -> None: ...
  694. @typing.overload
  695. def __init__(self, arg__1: PySide6.QtCore.QObject, /, *, object: PySide6.QtCore.QObject | None = ..., name: str | None = ...) -> None: ...
  696. @typing.overload
  697. def __init__(self, arg__1: PySide6.QtQml.QQmlProperty, /, *, object: PySide6.QtCore.QObject | None = ..., name: str | None = ...) -> None: ...
  698. @typing.overload
  699. def __init__(self, /, *, object: PySide6.QtCore.QObject | None = ..., name: str | None = ...) -> None: ...
  700. def __copy__(self, /) -> typing.Self: ...
  701. def __eq__(self, arg__1: PySide6.QtQml.QQmlProperty | PySide6.QtCore.QObject, /) -> bool: ...
  702. def __hash__(self, /) -> int: ...
  703. @typing.overload
  704. def connectNotifySignal(self, dest: PySide6.QtCore.QObject, slot: bytes | bytearray | memoryview, /) -> bool: ...
  705. @typing.overload
  706. def connectNotifySignal(self, dest: PySide6.QtCore.QObject, method: int, /) -> bool: ...
  707. def hasNotifySignal(self, /) -> bool: ...
  708. def index(self, /) -> int: ...
  709. def isBindable(self, /) -> bool: ...
  710. def isDesignable(self, /) -> bool: ...
  711. def isProperty(self, /) -> bool: ...
  712. def isResettable(self, /) -> bool: ...
  713. def isSignalProperty(self, /) -> bool: ...
  714. def isValid(self, /) -> bool: ...
  715. def isWritable(self, /) -> bool: ...
  716. def method(self, /) -> PySide6.QtCore.QMetaMethod: ...
  717. def name(self, /) -> str: ...
  718. def needsNotifySignal(self, /) -> bool: ...
  719. def object(self, /) -> PySide6.QtCore.QObject: ...
  720. def property(self, /) -> PySide6.QtCore.QMetaProperty: ...
  721. def propertyMetaType(self, /) -> PySide6.QtCore.QMetaType: ...
  722. def propertyType(self, /) -> int: ...
  723. def propertyTypeCategory(self, /) -> PySide6.QtQml.QQmlProperty.PropertyTypeCategory: ...
  724. def propertyTypeName(self, /) -> bytes | bytearray | memoryview: ...
  725. @typing.overload # type: ignore[misc, overload-cannot-match]
  726. @staticmethod
  727. def read(arg__1: PySide6.QtCore.QObject, arg__2: str, /) -> typing.Any: ... # type: ignore[misc, overload-cannot-match]
  728. @typing.overload # type: ignore[misc, overload-cannot-match]
  729. @staticmethod
  730. def read(arg__1: PySide6.QtCore.QObject, arg__2: str, arg__3: PySide6.QtQml.QQmlEngine, /) -> typing.Any: ... # type: ignore[misc, overload-cannot-match]
  731. @typing.overload # type: ignore[misc, overload-cannot-match]
  732. @staticmethod
  733. def read(arg__1: PySide6.QtCore.QObject, arg__2: str, arg__3: PySide6.QtQml.QQmlContext, /) -> typing.Any: ... # type: ignore[misc, overload-cannot-match]
  734. @typing.overload # type: ignore[misc, overload-cannot-match]
  735. def read(self, /) -> typing.Any: ... # type: ignore[misc, overload-cannot-match]
  736. def reset(self, /) -> bool: ...
  737. def swap(self, other: PySide6.QtQml.QQmlProperty | PySide6.QtCore.QObject, /) -> None: ...
  738. def type(self, /) -> PySide6.QtQml.QQmlProperty.Type: ...
  739. @typing.overload # type: ignore[misc, overload-cannot-match]
  740. @staticmethod
  741. def write(arg__1: PySide6.QtCore.QObject, arg__2: str, arg__3: typing.Any, /) -> bool: ... # type: ignore[misc, overload-cannot-match]
  742. @typing.overload # type: ignore[misc, overload-cannot-match]
  743. @staticmethod
  744. def write(arg__1: PySide6.QtCore.QObject, arg__2: str, arg__3: typing.Any, arg__4: PySide6.QtQml.QQmlEngine, /) -> bool: ... # type: ignore[misc, overload-cannot-match]
  745. @typing.overload # type: ignore[misc, overload-cannot-match]
  746. @staticmethod
  747. def write(arg__1: PySide6.QtCore.QObject, arg__2: str, arg__3: typing.Any, arg__4: PySide6.QtQml.QQmlContext, /) -> bool: ... # type: ignore[misc, overload-cannot-match]
  748. @typing.overload # type: ignore[misc, overload-cannot-match]
  749. def write(self, arg__1: typing.Any, /) -> bool: ... # type: ignore[misc, overload-cannot-match]
  750. class QQmlPropertyMap(PySide6.QtCore.QObject):
  751. valueChanged : typing.ClassVar[Signal] = ... # valueChanged(QString,QVariant)
  752. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  753. def clear(self, key: str, /) -> None: ...
  754. def contains(self, key: str, /) -> bool: ...
  755. def count(self, /) -> int: ...
  756. def freeze(self, /) -> None: ...
  757. @typing.overload
  758. def insert(self, key: str, value: typing.Any, /) -> None: ...
  759. @typing.overload
  760. def insert(self, values: typing.Dict[str, typing.Any], /) -> None: ...
  761. def isEmpty(self, /) -> bool: ...
  762. def keys(self, /) -> typing.List[str]: ...
  763. def size(self, /) -> int: ...
  764. def updateValue(self, key: str, input: typing.Any, /) -> typing.Any: ...
  765. def value(self, key: str, /) -> typing.Any: ...
  766. class QQmlPropertyValueSource(Shiboken.Object):
  767. def __init__(self, /) -> None: ...
  768. def setTarget(self, arg__1: PySide6.QtQml.QQmlProperty | PySide6.QtCore.QObject, /) -> None: ...
  769. class QQmlScriptString(Shiboken.Object):
  770. @typing.overload
  771. def __init__(self, /) -> None: ...
  772. @typing.overload
  773. def __init__(self, arg__1: PySide6.QtQml.QQmlScriptString, /) -> None: ...
  774. def __copy__(self, /) -> typing.Self: ...
  775. def __eq__(self, arg__1: PySide6.QtQml.QQmlScriptString, /) -> bool: ...
  776. def __ne__(self, arg__1: PySide6.QtQml.QQmlScriptString, /) -> bool: ...
  777. def booleanLiteral(self, /) -> typing.Tuple[bool, bool]: ...
  778. def isEmpty(self, /) -> bool: ...
  779. def isNullLiteral(self, /) -> bool: ...
  780. def isUndefinedLiteral(self, /) -> bool: ...
  781. def numberLiteral(self, /) -> typing.Tuple[float, bool]: ...
  782. def stringLiteral(self, /) -> str: ...
  783. class QQmlTypesExtensionInterface(Shiboken.Object):
  784. def __init__(self, /) -> None: ...
  785. def registerTypes(self, uri: bytes | bytearray | memoryview, /) -> None: ...
  786. class QmlAttached:
  787. def __init__(self, type: type, /) -> None: ...
  788. class QmlExtended:
  789. def __init__(self, type: type, /) -> None: ...
  790. class QmlForeign:
  791. def __init__(self, type: type, /) -> None: ...
  792. class QmlNamedElement:
  793. def __init__(self, reason: str, /) -> None: ...
  794. class QmlUncreatable:
  795. def __init__(self, reason: str, /) -> None: ...
  796. class VolatileBool:
  797. def __repr__(self, /) -> str: ...
  798. def get(self, /) -> bool: ...
  799. def set(self, a: object, /) -> None: ...
  800. def QmlAnonymous(arg__1: object, /) -> object: ...
  801. def QmlElement(arg__1: object, /) -> object: ...
  802. def QmlSingleton(arg__1: object, /) -> object: ...
  803. def qjsEngine(arg__1: PySide6.QtCore.QObject, /) -> PySide6.QtQml.QJSEngine | None: ...
  804. def qmlAttachedPropertiesObject(type_obj: type, arg__2: PySide6.QtCore.QObject, /, arg__3: bool = ...) -> PySide6.QtCore.QObject: ...
  805. def qmlClearTypeRegistrations() -> None: ...
  806. def qmlContext(arg__1: PySide6.QtCore.QObject, /) -> PySide6.QtQml.QQmlContext | None: ...
  807. def qmlEngine(arg__1: PySide6.QtCore.QObject, /) -> PySide6.QtQml.QQmlEngine | None: ...
  808. def qmlProtectModule(uri: bytes | bytearray | memoryview, majVersion: int, /) -> bool: ...
  809. def qmlRegisterModule(uri: bytes | bytearray | memoryview, versionMajor: int, versionMinor: int, /) -> None: ...
  810. def qmlRegisterSingletonInstance(type_obj: type, uri: str, version_major: int, version_minor: int, qml_name: bytes | bytearray | memoryview, callback: object, /) -> int: ...
  811. @typing.overload
  812. def qmlRegisterSingletonType(uri: str, version_major: int, version_minor: int, qml_name: bytes | bytearray | memoryview, callback: object, /) -> int: ...
  813. @typing.overload
  814. def qmlRegisterSingletonType(type_obj: type, uri: str, version_major: int, version_minor: int, qml_name: bytes | bytearray | memoryview, /) -> int: ...
  815. @typing.overload
  816. def qmlRegisterSingletonType(type_obj: type, uri: str, version_major: int, version_minor: int, qml_name: bytes | bytearray | memoryview, callback: object, /) -> int: ...
  817. @typing.overload
  818. def qmlRegisterSingletonType(url: PySide6.QtCore.QUrl | str, uri: bytes | bytearray | memoryview, versionMajor: int, versionMinor: int, qmlName: bytes | bytearray | memoryview, /) -> int: ...
  819. @typing.overload
  820. def qmlRegisterType(type_obj: type, uri: str, version_major: int, version_minor: int, qml_name: bytes | bytearray | memoryview, /) -> int: ...
  821. @typing.overload
  822. def qmlRegisterType(url: PySide6.QtCore.QUrl | str, uri: bytes | bytearray | memoryview, versionMajor: int, versionMinor: int, qmlName: bytes | bytearray | memoryview, /) -> int: ...
  823. def qmlRegisterUncreatableMetaObject(staticMetaObject: PySide6.QtCore.QMetaObject, uri: bytes | bytearray | memoryview, versionMajor: int, versionMinor: int, qmlName: bytes | bytearray | memoryview, reason: str, /) -> int: ...
  824. def qmlRegisterUncreatableType(type_obj: type, uri: str, version_major: int, version_minor: int, qml_name: bytes | bytearray | memoryview, message: bytes | bytearray | memoryview, /) -> int: ...
  825. def qmlTypeId(uri: bytes | bytearray | memoryview, versionMajor: int, versionMinor: int, qmlName: bytes | bytearray | memoryview, /) -> int: ...
  826. # eof