QtMultimediaWidgets.pyi 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # The PEP 484 type hints stub file for the QtMultimediaWidgets 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
  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 QtMultimedia
  31. from PyQt6 import QtWidgets
  32. # Support for QDate, QDateTime and QTime.
  33. import datetime
  34. # Convenient type aliases.
  35. PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
  36. PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal]
  37. class QGraphicsVideoItem(QtWidgets.QGraphicsObject):
  38. def __init__(self, parent: QtWidgets.QGraphicsItem|None = ...) -> None: ...
  39. def itemChange(self, change: QtWidgets.QGraphicsItem.GraphicsItemChange, value: typing.Any) -> typing.Any: ...
  40. def timerEvent(self, event: QtCore.QTimerEvent|None) -> None: ...
  41. nativeSizeChanged: typing.ClassVar[QtCore.pyqtSignal]
  42. def type(self) -> int: ...
  43. def paint(self, painter: QtGui.QPainter|None, option: QtWidgets.QStyleOptionGraphicsItem|None, widget: QtWidgets.QWidget|None = ...) -> None: ...
  44. def boundingRect(self) -> QtCore.QRectF: ...
  45. def nativeSize(self) -> QtCore.QSizeF: ...
  46. def setSize(self, size: QtCore.QSizeF) -> None: ...
  47. def size(self) -> QtCore.QSizeF: ...
  48. def setOffset(self, offset: QtCore.QPointF) -> None: ...
  49. def offset(self) -> QtCore.QPointF: ...
  50. def setAspectRatioMode(self, mode: QtCore.Qt.AspectRatioMode) -> None: ...
  51. def aspectRatioMode(self) -> QtCore.Qt.AspectRatioMode: ...
  52. def videoSink(self) -> QtMultimedia.QVideoSink|None: ...
  53. class QVideoWidget(QtWidgets.QWidget):
  54. def __init__(self, parent: QtWidgets.QWidget|None = ...) -> None: ...
  55. def moveEvent(self, event: QtGui.QMoveEvent|None) -> None: ...
  56. def resizeEvent(self, event: QtGui.QResizeEvent|None) -> None: ...
  57. def hideEvent(self, event: QtGui.QHideEvent|None) -> None: ...
  58. def showEvent(self, event: QtGui.QShowEvent|None) -> None: ...
  59. def event(self, event: QtCore.QEvent|None) -> bool: ...
  60. aspectRatioModeChanged: typing.ClassVar[QtCore.pyqtSignal]
  61. fullScreenChanged: typing.ClassVar[QtCore.pyqtSignal]
  62. def setAspectRatioMode(self, mode: QtCore.Qt.AspectRatioMode) -> None: ...
  63. def setFullScreen(self, fullScreen: bool) -> None: ...
  64. def sizeHint(self) -> QtCore.QSize: ...
  65. def isFullScreen(self) -> bool: ...
  66. def aspectRatioMode(self) -> QtCore.Qt.AspectRatioMode: ...
  67. def videoSink(self) -> QtMultimedia.QVideoSink|None: ...