QtQuickWidgets.pyi 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # The PEP 484 type hints stub file for the QtQuickWidgets module.
  2. #
  3. # Generated by SIP 6.15.3
  4. #
  5. # Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. #
  7. # This file is part of PyQt6.
  8. #
  9. # This file may be used under the terms of the GNU General Public License
  10. # version 3.0 as published by the Free Software Foundation and appearing in
  11. # the file LICENSE included in the packaging of this file. Please review the
  12. # following information to ensure the GNU General Public License version 3.0
  13. # requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. #
  15. # If you do not wish to use this file under the terms of the GPL version 3.0
  16. # then you may purchase a commercial license. For more information contact
  17. # info@riverbankcomputing.com.
  18. #
  19. # This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. # WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. import collections, re, typing, enum
  22. try:
  23. from warnings import deprecated
  24. except ImportError:
  25. pass
  26. import PyQt6.sip
  27. from PyQt6 import QtCore
  28. from PyQt6 import QtGui
  29. from PyQt6 import QtNetwork
  30. from PyQt6 import QtQml
  31. from PyQt6 import QtQuick
  32. from PyQt6 import QtWidgets
  33. # Support for QDate, QDateTime and QTime.
  34. import datetime
  35. # Convenient type aliases.
  36. PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
  37. PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal]
  38. class QQuickWidget(QtWidgets.QWidget):
  39. class Status(enum.Enum):
  40. Null = ... # type: QQuickWidget.Status
  41. Ready = ... # type: QQuickWidget.Status
  42. Loading = ... # type: QQuickWidget.Status
  43. Error = ... # type: QQuickWidget.Status
  44. class ResizeMode(enum.Enum):
  45. SizeViewToRootObject = ... # type: QQuickWidget.ResizeMode
  46. SizeRootObjectToView = ... # type: QQuickWidget.ResizeMode
  47. @typing.overload
  48. def __init__(self, parent: QtWidgets.QWidget|None = ...) -> None: ...
  49. @typing.overload
  50. def __init__(self, engine: QtQml.QQmlEngine|None, parent: QtWidgets.QWidget|None) -> None: ...
  51. @typing.overload
  52. def __init__(self, source: QtCore.QUrl, parent: QtWidgets.QWidget|None = ...) -> None: ...
  53. @typing.overload
  54. def __init__(self, uri: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, typeName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, parent: QtWidgets.QWidget|None = ...) -> None: ...
  55. def loadFromModule(self, uri: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, typeName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> None: ...
  56. def setInitialProperties(self, initialProperties: dict[str|None, typing.Any]) -> None: ...
  57. def quickWindow(self) -> QtQuick.QQuickWindow|None: ...
  58. def setClearColor(self, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  59. def grabFramebuffer(self) -> QtGui.QImage: ...
  60. def focusNextPrevChild(self, next: bool) -> bool: ...
  61. def paintEvent(self, event: QtGui.QPaintEvent|None) -> None: ...
  62. def dropEvent(self, a0: QtGui.QDropEvent|None) -> None: ...
  63. def dragLeaveEvent(self, a0: QtGui.QDragLeaveEvent|None) -> None: ...
  64. def dragMoveEvent(self, a0: QtGui.QDragMoveEvent|None) -> None: ...
  65. def dragEnterEvent(self, a0: QtGui.QDragEnterEvent|None) -> None: ...
  66. def focusOutEvent(self, event: QtGui.QFocusEvent|None) -> None: ...
  67. def focusInEvent(self, event: QtGui.QFocusEvent|None) -> None: ...
  68. def event(self, a0: QtCore.QEvent|None) -> bool: ...
  69. def wheelEvent(self, a0: QtGui.QWheelEvent|None) -> None: ...
  70. def hideEvent(self, a0: QtGui.QHideEvent|None) -> None: ...
  71. def showEvent(self, a0: QtGui.QShowEvent|None) -> None: ...
  72. def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent|None) -> None: ...
  73. def mouseMoveEvent(self, a0: QtGui.QMouseEvent|None) -> None: ...
  74. def mouseReleaseEvent(self, a0: QtGui.QMouseEvent|None) -> None: ...
  75. def mousePressEvent(self, a0: QtGui.QMouseEvent|None) -> None: ...
  76. def keyReleaseEvent(self, a0: QtGui.QKeyEvent|None) -> None: ...
  77. def keyPressEvent(self, a0: QtGui.QKeyEvent|None) -> None: ...
  78. def timerEvent(self, a0: QtCore.QTimerEvent|None) -> None: ...
  79. def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ...
  80. sceneGraphError: typing.ClassVar[QtCore.pyqtSignal]
  81. statusChanged: typing.ClassVar[QtCore.pyqtSignal]
  82. def setSource(self, a0: QtCore.QUrl) -> None: ...
  83. def format(self) -> QtGui.QSurfaceFormat: ...
  84. def setFormat(self, format: QtGui.QSurfaceFormat) -> None: ...
  85. def initialSize(self) -> QtCore.QSize: ...
  86. def sizeHint(self) -> QtCore.QSize: ...
  87. def errors(self) -> list[QtQml.QQmlError]: ...
  88. def status(self) -> 'QQuickWidget.Status': ...
  89. def setResizeMode(self, a0: 'QQuickWidget.ResizeMode') -> None: ...
  90. def resizeMode(self) -> 'QQuickWidget.ResizeMode': ...
  91. def rootObject(self) -> QtQuick.QQuickItem|None: ...
  92. def rootContext(self) -> QtQml.QQmlContext|None: ...
  93. def engine(self) -> QtQml.QQmlEngine|None: ...
  94. def source(self) -> QtCore.QUrl: ...