From b88de95cd89c82cfedd0f9411d7f5880c32e9558 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 16 Dec 2019 09:59:18 +1000 Subject: [PATCH] bundle sip-generated stubs the PyQt5-stubs package that's floating around depends on an old Qt, and throws a bunch of errors --- .travis.sh | 1 + aqt/profiles.py | 2 +- tools/stubs/PyQt5/QtBluetooth.pyi | 1353 +++ tools/stubs/PyQt5/QtCore.pyi | 9058 +++++++++++++++++++ tools/stubs/PyQt5/QtDBus.pyi | 514 ++ tools/stubs/PyQt5/QtDesigner.pyi | 481 + tools/stubs/PyQt5/QtGui.pyi | 8482 ++++++++++++++++++ tools/stubs/PyQt5/QtHelp.pyi | 273 + tools/stubs/PyQt5/QtLocation.pyi | 1175 +++ tools/stubs/PyQt5/QtMacExtras.pyi | 119 + tools/stubs/PyQt5/QtMultimedia.pyi | 1902 ++++ tools/stubs/PyQt5/QtMultimediaWidgets.pyi | 100 + tools/stubs/PyQt5/QtNetwork.pyi | 2047 +++++ tools/stubs/PyQt5/QtNfc.pyi | 431 + tools/stubs/PyQt5/QtOpenGL.pyi | 330 + tools/stubs/PyQt5/QtPositioning.pyi | 517 ++ tools/stubs/PyQt5/QtPrintSupport.pyi | 436 + tools/stubs/PyQt5/QtQml.pyi | 646 ++ tools/stubs/PyQt5/QtQuick.pyi | 1400 +++ tools/stubs/PyQt5/QtQuickWidgets.pyi | 102 + tools/stubs/PyQt5/QtRemoteObjects.pyi | 191 + tools/stubs/PyQt5/QtSensors.pyi | 663 ++ tools/stubs/PyQt5/QtSerialPort.pyi | 239 + tools/stubs/PyQt5/QtSql.pyi | 668 ++ tools/stubs/PyQt5/QtSvg.pyi | 143 + tools/stubs/PyQt5/QtTest.pyi | 169 + tools/stubs/PyQt5/QtWebChannel.pyi | 56 + tools/stubs/PyQt5/QtWebSockets.pyi | 194 + tools/stubs/PyQt5/QtWidgets.pyi | 9796 +++++++++++++++++++++ tools/stubs/PyQt5/QtXml.pyi | 699 ++ tools/stubs/PyQt5/QtXmlPatterns.pyi | 368 + tools/stubs/PyQt5/py.typed | 0 tools/typecheck-setup.sh | 13 + 33 files changed, 42567 insertions(+), 1 deletion(-) create mode 100644 tools/stubs/PyQt5/QtBluetooth.pyi create mode 100644 tools/stubs/PyQt5/QtCore.pyi create mode 100644 tools/stubs/PyQt5/QtDBus.pyi create mode 100644 tools/stubs/PyQt5/QtDesigner.pyi create mode 100644 tools/stubs/PyQt5/QtGui.pyi create mode 100644 tools/stubs/PyQt5/QtHelp.pyi create mode 100644 tools/stubs/PyQt5/QtLocation.pyi create mode 100644 tools/stubs/PyQt5/QtMacExtras.pyi create mode 100644 tools/stubs/PyQt5/QtMultimedia.pyi create mode 100644 tools/stubs/PyQt5/QtMultimediaWidgets.pyi create mode 100644 tools/stubs/PyQt5/QtNetwork.pyi create mode 100644 tools/stubs/PyQt5/QtNfc.pyi create mode 100644 tools/stubs/PyQt5/QtOpenGL.pyi create mode 100644 tools/stubs/PyQt5/QtPositioning.pyi create mode 100644 tools/stubs/PyQt5/QtPrintSupport.pyi create mode 100644 tools/stubs/PyQt5/QtQml.pyi create mode 100644 tools/stubs/PyQt5/QtQuick.pyi create mode 100644 tools/stubs/PyQt5/QtQuickWidgets.pyi create mode 100644 tools/stubs/PyQt5/QtRemoteObjects.pyi create mode 100644 tools/stubs/PyQt5/QtSensors.pyi create mode 100644 tools/stubs/PyQt5/QtSerialPort.pyi create mode 100644 tools/stubs/PyQt5/QtSql.pyi create mode 100644 tools/stubs/PyQt5/QtSvg.pyi create mode 100644 tools/stubs/PyQt5/QtTest.pyi create mode 100644 tools/stubs/PyQt5/QtWebChannel.pyi create mode 100644 tools/stubs/PyQt5/QtWebSockets.pyi create mode 100644 tools/stubs/PyQt5/QtWidgets.pyi create mode 100644 tools/stubs/PyQt5/QtXml.pyi create mode 100644 tools/stubs/PyQt5/QtXmlPatterns.pyi create mode 100644 tools/stubs/PyQt5/py.typed create mode 100755 tools/typecheck-setup.sh diff --git a/.travis.sh b/.travis.sh index 305114e52..e91ac33e2 100755 --- a/.travis.sh +++ b/.travis.sh @@ -9,6 +9,7 @@ echo "running unit tests..." nosetests ./tests echo "type checking..." +./tools/typecheck-setup.sh ./tools/typecheck.sh echo "linting..." diff --git a/aqt/profiles.py b/aqt/profiles.py index 5fc82f19f..fdbdd7934 100644 --- a/aqt/profiles.py +++ b/aqt/profiles.py @@ -143,7 +143,7 @@ a flash drive.""" % self.base) def find_class(self, module, name): if module == "PyQt5.sip": try: - import PyQt5.sip # pylint: disable=unused-import + import PyQt5.sip # type: ignore # pylint: disable=unused-import except: # use old sip location module = "sip" diff --git a/tools/stubs/PyQt5/QtBluetooth.pyi b/tools/stubs/PyQt5/QtBluetooth.pyi new file mode 100644 index 000000000..2d2ab5119 --- /dev/null +++ b/tools/stubs/PyQt5/QtBluetooth.pyi @@ -0,0 +1,1353 @@ +# The PEP 484 type hints stub file for the QtBluetooth module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + + +class QBluetooth(sip.simplewrapper): + + class AttAccessConstraint(int): ... + AttAuthorizationRequired = ... # type: 'QBluetooth.AttAccessConstraint' + AttAuthenticationRequired = ... # type: 'QBluetooth.AttAccessConstraint' + AttEncryptionRequired = ... # type: 'QBluetooth.AttAccessConstraint' + + class Security(int): ... + NoSecurity = ... # type: 'QBluetooth.Security' + Authorization = ... # type: 'QBluetooth.Security' + Authentication = ... # type: 'QBluetooth.Security' + Encryption = ... # type: 'QBluetooth.Security' + Secure = ... # type: 'QBluetooth.Security' + + class SecurityFlags(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QBluetooth.SecurityFlags', 'QBluetooth.Security']) -> None: ... + @typing.overload + def __init__(self, a0: 'QBluetooth.SecurityFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QBluetooth.SecurityFlags': ... + def __int__(self) -> int: ... + + class AttAccessConstraints(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QBluetooth.AttAccessConstraints', 'QBluetooth.AttAccessConstraint']) -> None: ... + @typing.overload + def __init__(self, a0: 'QBluetooth.AttAccessConstraints') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QBluetooth.AttAccessConstraints': ... + def __int__(self) -> int: ... + + +class QBluetoothAddress(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, address: int) -> None: ... + @typing.overload + def __init__(self, address: str) -> None: ... + @typing.overload + def __init__(self, other: 'QBluetoothAddress') -> None: ... + + def toString(self) -> str: ... + def toUInt64(self) -> int: ... + def clear(self) -> None: ... + def isNull(self) -> bool: ... + + +class QBluetoothDeviceDiscoveryAgent(QtCore.QObject): + + class DiscoveryMethod(int): ... + + class InquiryType(int): ... + GeneralUnlimitedInquiry = ... # type: 'QBluetoothDeviceDiscoveryAgent.InquiryType' + LimitedInquiry = ... # type: 'QBluetoothDeviceDiscoveryAgent.InquiryType' + + class Error(int): ... + NoError = ... # type: 'QBluetoothDeviceDiscoveryAgent.Error' + InputOutputError = ... # type: 'QBluetoothDeviceDiscoveryAgent.Error' + PoweredOffError = ... # type: 'QBluetoothDeviceDiscoveryAgent.Error' + InvalidBluetoothAdapterError = ... # type: 'QBluetoothDeviceDiscoveryAgent.Error' + UnsupportedPlatformError = ... # type: 'QBluetoothDeviceDiscoveryAgent.Error' + UnsupportedDiscoveryMethod = ... # type: 'QBluetoothDeviceDiscoveryAgent.Error' + UnknownError = ... # type: 'QBluetoothDeviceDiscoveryAgent.Error' + + class DiscoveryMethods(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QBluetoothDeviceDiscoveryAgent.DiscoveryMethods', 'QBluetoothDeviceDiscoveryAgent.DiscoveryMethod']) -> None: ... + @typing.overload + def __init__(self, a0: 'QBluetoothDeviceDiscoveryAgent.DiscoveryMethods') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QBluetoothDeviceDiscoveryAgent.DiscoveryMethods': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, deviceAdapter: QBluetoothAddress, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + @staticmethod + def supportedDiscoveryMethods() -> 'QBluetoothDeviceDiscoveryAgent.DiscoveryMethods': ... + def lowEnergyDiscoveryTimeout(self) -> int: ... + def setLowEnergyDiscoveryTimeout(self, msTimeout: int) -> None: ... + def deviceUpdated(self, info: 'QBluetoothDeviceInfo', updatedFields: typing.Union['QBluetoothDeviceInfo.Fields', 'QBluetoothDeviceInfo.Field']) -> None: ... + def canceled(self) -> None: ... + def finished(self) -> None: ... + def deviceDiscovered(self, info: 'QBluetoothDeviceInfo') -> None: ... + def stop(self) -> None: ... + @typing.overload + def start(self) -> None: ... + @typing.overload + def start(self, method: typing.Union['QBluetoothDeviceDiscoveryAgent.DiscoveryMethods', 'QBluetoothDeviceDiscoveryAgent.DiscoveryMethod']) -> None: ... + def discoveredDevices(self) -> typing.List['QBluetoothDeviceInfo']: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QBluetoothDeviceDiscoveryAgent.Error': ... + @typing.overload + def error(self, error: 'QBluetoothDeviceDiscoveryAgent.Error') -> None: ... + def isActive(self) -> bool: ... + def setInquiryType(self, type: 'QBluetoothDeviceDiscoveryAgent.InquiryType') -> None: ... + def inquiryType(self) -> 'QBluetoothDeviceDiscoveryAgent.InquiryType': ... + + +class QBluetoothDeviceInfo(sip.wrapper): + + class Field(int): ... + None_ = ... # type: 'QBluetoothDeviceInfo.Field' + RSSI = ... # type: 'QBluetoothDeviceInfo.Field' + ManufacturerData = ... # type: 'QBluetoothDeviceInfo.Field' + All = ... # type: 'QBluetoothDeviceInfo.Field' + + class CoreConfiguration(int): ... + UnknownCoreConfiguration = ... # type: 'QBluetoothDeviceInfo.CoreConfiguration' + LowEnergyCoreConfiguration = ... # type: 'QBluetoothDeviceInfo.CoreConfiguration' + BaseRateCoreConfiguration = ... # type: 'QBluetoothDeviceInfo.CoreConfiguration' + BaseRateAndLowEnergyCoreConfiguration = ... # type: 'QBluetoothDeviceInfo.CoreConfiguration' + + class DataCompleteness(int): ... + DataComplete = ... # type: 'QBluetoothDeviceInfo.DataCompleteness' + DataIncomplete = ... # type: 'QBluetoothDeviceInfo.DataCompleteness' + DataUnavailable = ... # type: 'QBluetoothDeviceInfo.DataCompleteness' + + class ServiceClass(int): ... + NoService = ... # type: 'QBluetoothDeviceInfo.ServiceClass' + PositioningService = ... # type: 'QBluetoothDeviceInfo.ServiceClass' + NetworkingService = ... # type: 'QBluetoothDeviceInfo.ServiceClass' + RenderingService = ... # type: 'QBluetoothDeviceInfo.ServiceClass' + CapturingService = ... # type: 'QBluetoothDeviceInfo.ServiceClass' + ObjectTransferService = ... # type: 'QBluetoothDeviceInfo.ServiceClass' + AudioService = ... # type: 'QBluetoothDeviceInfo.ServiceClass' + TelephonyService = ... # type: 'QBluetoothDeviceInfo.ServiceClass' + InformationService = ... # type: 'QBluetoothDeviceInfo.ServiceClass' + AllServices = ... # type: 'QBluetoothDeviceInfo.ServiceClass' + + class MinorHealthClass(int): ... + UncategorizedHealthDevice = ... # type: 'QBluetoothDeviceInfo.MinorHealthClass' + HealthBloodPressureMonitor = ... # type: 'QBluetoothDeviceInfo.MinorHealthClass' + HealthThermometer = ... # type: 'QBluetoothDeviceInfo.MinorHealthClass' + HealthWeightScale = ... # type: 'QBluetoothDeviceInfo.MinorHealthClass' + HealthGlucoseMeter = ... # type: 'QBluetoothDeviceInfo.MinorHealthClass' + HealthPulseOximeter = ... # type: 'QBluetoothDeviceInfo.MinorHealthClass' + HealthDataDisplay = ... # type: 'QBluetoothDeviceInfo.MinorHealthClass' + HealthStepCounter = ... # type: 'QBluetoothDeviceInfo.MinorHealthClass' + + class MinorToyClass(int): ... + UncategorizedToy = ... # type: 'QBluetoothDeviceInfo.MinorToyClass' + ToyRobot = ... # type: 'QBluetoothDeviceInfo.MinorToyClass' + ToyVehicle = ... # type: 'QBluetoothDeviceInfo.MinorToyClass' + ToyDoll = ... # type: 'QBluetoothDeviceInfo.MinorToyClass' + ToyController = ... # type: 'QBluetoothDeviceInfo.MinorToyClass' + ToyGame = ... # type: 'QBluetoothDeviceInfo.MinorToyClass' + + class MinorWearableClass(int): ... + UncategorizedWearableDevice = ... # type: 'QBluetoothDeviceInfo.MinorWearableClass' + WearableWristWatch = ... # type: 'QBluetoothDeviceInfo.MinorWearableClass' + WearablePager = ... # type: 'QBluetoothDeviceInfo.MinorWearableClass' + WearableJacket = ... # type: 'QBluetoothDeviceInfo.MinorWearableClass' + WearableHelmet = ... # type: 'QBluetoothDeviceInfo.MinorWearableClass' + WearableGlasses = ... # type: 'QBluetoothDeviceInfo.MinorWearableClass' + + class MinorImagingClass(int): ... + UncategorizedImagingDevice = ... # type: 'QBluetoothDeviceInfo.MinorImagingClass' + ImageDisplay = ... # type: 'QBluetoothDeviceInfo.MinorImagingClass' + ImageCamera = ... # type: 'QBluetoothDeviceInfo.MinorImagingClass' + ImageScanner = ... # type: 'QBluetoothDeviceInfo.MinorImagingClass' + ImagePrinter = ... # type: 'QBluetoothDeviceInfo.MinorImagingClass' + + class MinorPeripheralClass(int): ... + UncategorizedPeripheral = ... # type: 'QBluetoothDeviceInfo.MinorPeripheralClass' + KeyboardPeripheral = ... # type: 'QBluetoothDeviceInfo.MinorPeripheralClass' + PointingDevicePeripheral = ... # type: 'QBluetoothDeviceInfo.MinorPeripheralClass' + KeyboardWithPointingDevicePeripheral = ... # type: 'QBluetoothDeviceInfo.MinorPeripheralClass' + JoystickPeripheral = ... # type: 'QBluetoothDeviceInfo.MinorPeripheralClass' + GamepadPeripheral = ... # type: 'QBluetoothDeviceInfo.MinorPeripheralClass' + RemoteControlPeripheral = ... # type: 'QBluetoothDeviceInfo.MinorPeripheralClass' + SensingDevicePeripheral = ... # type: 'QBluetoothDeviceInfo.MinorPeripheralClass' + DigitizerTabletPeripheral = ... # type: 'QBluetoothDeviceInfo.MinorPeripheralClass' + CardReaderPeripheral = ... # type: 'QBluetoothDeviceInfo.MinorPeripheralClass' + + class MinorAudioVideoClass(int): ... + UncategorizedAudioVideoDevice = ... # type: 'QBluetoothDeviceInfo.MinorAudioVideoClass' + WearableHeadsetDevice = ... # type: 'QBluetoothDeviceInfo.MinorAudioVideoClass' + HandsFreeDevice = ... # type: 'QBluetoothDeviceInfo.MinorAudioVideoClass' + Microphone = ... # type: 'QBluetoothDeviceInfo.MinorAudioVideoClass' + Loudspeaker = ... # type: 'QBluetoothDeviceInfo.MinorAudioVideoClass' + Headphones = ... # type: 'QBluetoothDeviceInfo.MinorAudioVideoClass' + PortableAudioDevice = ... # type: 'QBluetoothDeviceInfo.MinorAudioVideoClass' + CarAudio = ... # type: 'QBluetoothDeviceInfo.MinorAudioVideoClass' + SetTopBox = ... # type: 'QBluetoothDeviceInfo.MinorAudioVideoClass' + HiFiAudioDevice = ... # type: 'QBluetoothDeviceInfo.MinorAudioVideoClass' + Vcr = ... # type: 'QBluetoothDeviceInfo.MinorAudioVideoClass' + VideoCamera = ... # type: 'QBluetoothDeviceInfo.MinorAudioVideoClass' + Camcorder = ... # type: 'QBluetoothDeviceInfo.MinorAudioVideoClass' + VideoMonitor = ... # type: 'QBluetoothDeviceInfo.MinorAudioVideoClass' + VideoDisplayAndLoudspeaker = ... # type: 'QBluetoothDeviceInfo.MinorAudioVideoClass' + VideoConferencing = ... # type: 'QBluetoothDeviceInfo.MinorAudioVideoClass' + GamingDevice = ... # type: 'QBluetoothDeviceInfo.MinorAudioVideoClass' + + class MinorNetworkClass(int): ... + NetworkFullService = ... # type: 'QBluetoothDeviceInfo.MinorNetworkClass' + NetworkLoadFactorOne = ... # type: 'QBluetoothDeviceInfo.MinorNetworkClass' + NetworkLoadFactorTwo = ... # type: 'QBluetoothDeviceInfo.MinorNetworkClass' + NetworkLoadFactorThree = ... # type: 'QBluetoothDeviceInfo.MinorNetworkClass' + NetworkLoadFactorFour = ... # type: 'QBluetoothDeviceInfo.MinorNetworkClass' + NetworkLoadFactorFive = ... # type: 'QBluetoothDeviceInfo.MinorNetworkClass' + NetworkLoadFactorSix = ... # type: 'QBluetoothDeviceInfo.MinorNetworkClass' + NetworkNoService = ... # type: 'QBluetoothDeviceInfo.MinorNetworkClass' + + class MinorPhoneClass(int): ... + UncategorizedPhone = ... # type: 'QBluetoothDeviceInfo.MinorPhoneClass' + CellularPhone = ... # type: 'QBluetoothDeviceInfo.MinorPhoneClass' + CordlessPhone = ... # type: 'QBluetoothDeviceInfo.MinorPhoneClass' + SmartPhone = ... # type: 'QBluetoothDeviceInfo.MinorPhoneClass' + WiredModemOrVoiceGatewayPhone = ... # type: 'QBluetoothDeviceInfo.MinorPhoneClass' + CommonIsdnAccessPhone = ... # type: 'QBluetoothDeviceInfo.MinorPhoneClass' + + class MinorComputerClass(int): ... + UncategorizedComputer = ... # type: 'QBluetoothDeviceInfo.MinorComputerClass' + DesktopComputer = ... # type: 'QBluetoothDeviceInfo.MinorComputerClass' + ServerComputer = ... # type: 'QBluetoothDeviceInfo.MinorComputerClass' + LaptopComputer = ... # type: 'QBluetoothDeviceInfo.MinorComputerClass' + HandheldClamShellComputer = ... # type: 'QBluetoothDeviceInfo.MinorComputerClass' + HandheldComputer = ... # type: 'QBluetoothDeviceInfo.MinorComputerClass' + WearableComputer = ... # type: 'QBluetoothDeviceInfo.MinorComputerClass' + + class MinorMiscellaneousClass(int): ... + UncategorizedMiscellaneous = ... # type: 'QBluetoothDeviceInfo.MinorMiscellaneousClass' + + class MajorDeviceClass(int): ... + MiscellaneousDevice = ... # type: 'QBluetoothDeviceInfo.MajorDeviceClass' + ComputerDevice = ... # type: 'QBluetoothDeviceInfo.MajorDeviceClass' + PhoneDevice = ... # type: 'QBluetoothDeviceInfo.MajorDeviceClass' + LANAccessDevice = ... # type: 'QBluetoothDeviceInfo.MajorDeviceClass' + NetworkDevice = ... # type: 'QBluetoothDeviceInfo.MajorDeviceClass' + AudioVideoDevice = ... # type: 'QBluetoothDeviceInfo.MajorDeviceClass' + PeripheralDevice = ... # type: 'QBluetoothDeviceInfo.MajorDeviceClass' + ImagingDevice = ... # type: 'QBluetoothDeviceInfo.MajorDeviceClass' + WearableDevice = ... # type: 'QBluetoothDeviceInfo.MajorDeviceClass' + ToyDevice = ... # type: 'QBluetoothDeviceInfo.MajorDeviceClass' + HealthDevice = ... # type: 'QBluetoothDeviceInfo.MajorDeviceClass' + UncategorizedDevice = ... # type: 'QBluetoothDeviceInfo.MajorDeviceClass' + + class ServiceClasses(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QBluetoothDeviceInfo.ServiceClasses', 'QBluetoothDeviceInfo.ServiceClass']) -> None: ... + @typing.overload + def __init__(self, a0: 'QBluetoothDeviceInfo.ServiceClasses') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QBluetoothDeviceInfo.ServiceClasses': ... + def __int__(self) -> int: ... + + class CoreConfigurations(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QBluetoothDeviceInfo.CoreConfigurations', 'QBluetoothDeviceInfo.CoreConfiguration']) -> None: ... + @typing.overload + def __init__(self, a0: 'QBluetoothDeviceInfo.CoreConfigurations') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QBluetoothDeviceInfo.CoreConfigurations': ... + def __int__(self) -> int: ... + + class Fields(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QBluetoothDeviceInfo.Fields', 'QBluetoothDeviceInfo.Field']) -> None: ... + @typing.overload + def __init__(self, a0: 'QBluetoothDeviceInfo.Fields') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QBluetoothDeviceInfo.Fields': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, address: QBluetoothAddress, name: str, classOfDevice: int) -> None: ... + @typing.overload + def __init__(self, uuid: 'QBluetoothUuid', name: str, classOfDevice: int) -> None: ... + @typing.overload + def __init__(self, other: 'QBluetoothDeviceInfo') -> None: ... + + def setManufacturerData(self, manufacturerId: int, data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + @typing.overload + def manufacturerData(self, manufacturerId: int) -> QtCore.QByteArray: ... + @typing.overload + def manufacturerData(self) -> typing.Dict[int, QtCore.QByteArray]: ... + def manufacturerIds(self) -> typing.List[int]: ... + def deviceUuid(self) -> 'QBluetoothUuid': ... + def setDeviceUuid(self, uuid: 'QBluetoothUuid') -> None: ... + def coreConfigurations(self) -> 'QBluetoothDeviceInfo.CoreConfigurations': ... + def setCoreConfigurations(self, coreConfigs: typing.Union['QBluetoothDeviceInfo.CoreConfigurations', 'QBluetoothDeviceInfo.CoreConfiguration']) -> None: ... + def serviceUuidsCompleteness(self) -> 'QBluetoothDeviceInfo.DataCompleteness': ... + def serviceUuids(self) -> typing.Tuple[typing.List['QBluetoothUuid'], 'QBluetoothDeviceInfo.DataCompleteness']: ... + @typing.overload + def setServiceUuids(self, uuids: typing.Iterable['QBluetoothUuid'], completeness: 'QBluetoothDeviceInfo.DataCompleteness') -> None: ... + @typing.overload + def setServiceUuids(self, uuids: typing.Iterable['QBluetoothUuid']) -> None: ... + def setRssi(self, signal: int) -> None: ... + def rssi(self) -> int: ... + def minorDeviceClass(self) -> int: ... + def majorDeviceClass(self) -> 'QBluetoothDeviceInfo.MajorDeviceClass': ... + def serviceClasses(self) -> 'QBluetoothDeviceInfo.ServiceClasses': ... + def name(self) -> str: ... + def address(self) -> QBluetoothAddress: ... + def setCached(self, cached: bool) -> None: ... + def isCached(self) -> bool: ... + def isValid(self) -> bool: ... + + +class QBluetoothHostInfo(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QBluetoothHostInfo') -> None: ... + + def setName(self, name: str) -> None: ... + def name(self) -> str: ... + def setAddress(self, address: QBluetoothAddress) -> None: ... + def address(self) -> QBluetoothAddress: ... + + +class QBluetoothLocalDevice(QtCore.QObject): + + class Error(int): ... + NoError = ... # type: 'QBluetoothLocalDevice.Error' + PairingError = ... # type: 'QBluetoothLocalDevice.Error' + UnknownError = ... # type: 'QBluetoothLocalDevice.Error' + + class HostMode(int): ... + HostPoweredOff = ... # type: 'QBluetoothLocalDevice.HostMode' + HostConnectable = ... # type: 'QBluetoothLocalDevice.HostMode' + HostDiscoverable = ... # type: 'QBluetoothLocalDevice.HostMode' + HostDiscoverableLimitedInquiry = ... # type: 'QBluetoothLocalDevice.HostMode' + + class Pairing(int): ... + Unpaired = ... # type: 'QBluetoothLocalDevice.Pairing' + Paired = ... # type: 'QBluetoothLocalDevice.Pairing' + AuthorizedPaired = ... # type: 'QBluetoothLocalDevice.Pairing' + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, address: QBluetoothAddress, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def deviceDisconnected(self, address: QBluetoothAddress) -> None: ... + def deviceConnected(self, address: QBluetoothAddress) -> None: ... + def error(self, error: 'QBluetoothLocalDevice.Error') -> None: ... + def pairingDisplayConfirmation(self, address: QBluetoothAddress, pin: str) -> None: ... + def pairingDisplayPinCode(self, address: QBluetoothAddress, pin: str) -> None: ... + def pairingFinished(self, address: QBluetoothAddress, pairing: 'QBluetoothLocalDevice.Pairing') -> None: ... + def hostModeStateChanged(self, state: 'QBluetoothLocalDevice.HostMode') -> None: ... + def pairingConfirmation(self, confirmation: bool) -> None: ... + def connectedDevices(self) -> typing.List[QBluetoothAddress]: ... + @staticmethod + def allDevices() -> typing.List[QBluetoothHostInfo]: ... + def address(self) -> QBluetoothAddress: ... + def name(self) -> str: ... + def powerOn(self) -> None: ... + def hostMode(self) -> 'QBluetoothLocalDevice.HostMode': ... + def setHostMode(self, mode: 'QBluetoothLocalDevice.HostMode') -> None: ... + def pairingStatus(self, address: QBluetoothAddress) -> 'QBluetoothLocalDevice.Pairing': ... + def requestPairing(self, address: QBluetoothAddress, pairing: 'QBluetoothLocalDevice.Pairing') -> None: ... + def isValid(self) -> bool: ... + + +class QBluetoothServer(QtCore.QObject): + + class Error(int): ... + NoError = ... # type: 'QBluetoothServer.Error' + UnknownError = ... # type: 'QBluetoothServer.Error' + PoweredOffError = ... # type: 'QBluetoothServer.Error' + InputOutputError = ... # type: 'QBluetoothServer.Error' + ServiceAlreadyRegisteredError = ... # type: 'QBluetoothServer.Error' + UnsupportedProtocolError = ... # type: 'QBluetoothServer.Error' + + def __init__(self, serverType: 'QBluetoothServiceInfo.Protocol', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def newConnection(self) -> None: ... + @typing.overload + def error(self) -> 'QBluetoothServer.Error': ... + @typing.overload + def error(self, a0: 'QBluetoothServer.Error') -> None: ... + def serverType(self) -> 'QBluetoothServiceInfo.Protocol': ... + def securityFlags(self) -> QBluetooth.SecurityFlags: ... + def setSecurityFlags(self, security: typing.Union[QBluetooth.SecurityFlags, QBluetooth.Security]) -> None: ... + def serverPort(self) -> int: ... + def serverAddress(self) -> QBluetoothAddress: ... + def nextPendingConnection(self) -> 'QBluetoothSocket': ... + def hasPendingConnections(self) -> bool: ... + def maxPendingConnections(self) -> int: ... + def setMaxPendingConnections(self, numConnections: int) -> None: ... + def isListening(self) -> bool: ... + @typing.overload + def listen(self, address: QBluetoothAddress = ..., port: int = ...) -> bool: ... + @typing.overload + def listen(self, uuid: 'QBluetoothUuid', serviceName: str = ...) -> 'QBluetoothServiceInfo': ... + def close(self) -> None: ... + + +class QBluetoothServiceDiscoveryAgent(QtCore.QObject): + + class DiscoveryMode(int): ... + MinimalDiscovery = ... # type: 'QBluetoothServiceDiscoveryAgent.DiscoveryMode' + FullDiscovery = ... # type: 'QBluetoothServiceDiscoveryAgent.DiscoveryMode' + + class Error(int): ... + NoError = ... # type: 'QBluetoothServiceDiscoveryAgent.Error' + InputOutputError = ... # type: 'QBluetoothServiceDiscoveryAgent.Error' + PoweredOffError = ... # type: 'QBluetoothServiceDiscoveryAgent.Error' + InvalidBluetoothAdapterError = ... # type: 'QBluetoothServiceDiscoveryAgent.Error' + UnknownError = ... # type: 'QBluetoothServiceDiscoveryAgent.Error' + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, deviceAdapter: QBluetoothAddress, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def canceled(self) -> None: ... + def finished(self) -> None: ... + def serviceDiscovered(self, info: 'QBluetoothServiceInfo') -> None: ... + def clear(self) -> None: ... + def stop(self) -> None: ... + def start(self, mode: 'QBluetoothServiceDiscoveryAgent.DiscoveryMode' = ...) -> None: ... + def remoteAddress(self) -> QBluetoothAddress: ... + def setRemoteAddress(self, address: QBluetoothAddress) -> bool: ... + def uuidFilter(self) -> typing.List['QBluetoothUuid']: ... + @typing.overload + def setUuidFilter(self, uuids: typing.Iterable['QBluetoothUuid']) -> None: ... + @typing.overload + def setUuidFilter(self, uuid: 'QBluetoothUuid') -> None: ... + def discoveredServices(self) -> typing.List['QBluetoothServiceInfo']: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QBluetoothServiceDiscoveryAgent.Error': ... + @typing.overload + def error(self, error: 'QBluetoothServiceDiscoveryAgent.Error') -> None: ... + def isActive(self) -> bool: ... + + +class QBluetoothServiceInfo(sip.wrapper): + + class Protocol(int): ... + UnknownProtocol = ... # type: 'QBluetoothServiceInfo.Protocol' + L2capProtocol = ... # type: 'QBluetoothServiceInfo.Protocol' + RfcommProtocol = ... # type: 'QBluetoothServiceInfo.Protocol' + + class AttributeId(int): ... + ServiceRecordHandle = ... # type: 'QBluetoothServiceInfo.AttributeId' + ServiceClassIds = ... # type: 'QBluetoothServiceInfo.AttributeId' + ServiceRecordState = ... # type: 'QBluetoothServiceInfo.AttributeId' + ServiceId = ... # type: 'QBluetoothServiceInfo.AttributeId' + ProtocolDescriptorList = ... # type: 'QBluetoothServiceInfo.AttributeId' + BrowseGroupList = ... # type: 'QBluetoothServiceInfo.AttributeId' + LanguageBaseAttributeIdList = ... # type: 'QBluetoothServiceInfo.AttributeId' + ServiceInfoTimeToLive = ... # type: 'QBluetoothServiceInfo.AttributeId' + ServiceAvailability = ... # type: 'QBluetoothServiceInfo.AttributeId' + BluetoothProfileDescriptorList = ... # type: 'QBluetoothServiceInfo.AttributeId' + DocumentationUrl = ... # type: 'QBluetoothServiceInfo.AttributeId' + ClientExecutableUrl = ... # type: 'QBluetoothServiceInfo.AttributeId' + IconUrl = ... # type: 'QBluetoothServiceInfo.AttributeId' + AdditionalProtocolDescriptorList = ... # type: 'QBluetoothServiceInfo.AttributeId' + PrimaryLanguageBase = ... # type: 'QBluetoothServiceInfo.AttributeId' + ServiceName = ... # type: 'QBluetoothServiceInfo.AttributeId' + ServiceDescription = ... # type: 'QBluetoothServiceInfo.AttributeId' + ServiceProvider = ... # type: 'QBluetoothServiceInfo.AttributeId' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QBluetoothServiceInfo') -> None: ... + + def serviceClassUuids(self) -> typing.List['QBluetoothUuid']: ... + def serviceUuid(self) -> 'QBluetoothUuid': ... + def setServiceUuid(self, uuid: 'QBluetoothUuid') -> None: ... + def serviceAvailability(self) -> int: ... + def setServiceAvailability(self, availability: int) -> None: ... + def serviceProvider(self) -> str: ... + def setServiceProvider(self, provider: str) -> None: ... + def serviceDescription(self) -> str: ... + def setServiceDescription(self, description: str) -> None: ... + def serviceName(self) -> str: ... + def setServiceName(self, name: str) -> None: ... + @typing.overload + def setAttribute(self, attributeId: int, value: 'QBluetoothUuid') -> None: ... + @typing.overload + def setAttribute(self, attributeId: int, value: typing.Iterable[typing.Any]) -> None: ... + @typing.overload + def setAttribute(self, attributeId: int, value: typing.Any) -> None: ... + def unregisterService(self) -> bool: ... + def registerService(self, localAdapter: QBluetoothAddress = ...) -> bool: ... + def isRegistered(self) -> bool: ... + def protocolDescriptor(self, protocol: 'QBluetoothUuid.ProtocolUuid') -> typing.List[typing.Any]: ... + def serverChannel(self) -> int: ... + def protocolServiceMultiplexer(self) -> int: ... + def socketProtocol(self) -> 'QBluetoothServiceInfo.Protocol': ... + def removeAttribute(self, attributeId: int) -> None: ... + def contains(self, attributeId: int) -> bool: ... + def attributes(self) -> typing.List[int]: ... + def attribute(self, attributeId: int) -> typing.Any: ... + def device(self) -> QBluetoothDeviceInfo: ... + def setDevice(self, info: QBluetoothDeviceInfo) -> None: ... + def isComplete(self) -> bool: ... + def isValid(self) -> bool: ... + + +class QBluetoothSocket(QtCore.QIODevice): + + class SocketError(int): ... + NoSocketError = ... # type: 'QBluetoothSocket.SocketError' + UnknownSocketError = ... # type: 'QBluetoothSocket.SocketError' + HostNotFoundError = ... # type: 'QBluetoothSocket.SocketError' + ServiceNotFoundError = ... # type: 'QBluetoothSocket.SocketError' + NetworkError = ... # type: 'QBluetoothSocket.SocketError' + UnsupportedProtocolError = ... # type: 'QBluetoothSocket.SocketError' + OperationError = ... # type: 'QBluetoothSocket.SocketError' + RemoteHostClosedError = ... # type: 'QBluetoothSocket.SocketError' + + class SocketState(int): ... + UnconnectedState = ... # type: 'QBluetoothSocket.SocketState' + ServiceLookupState = ... # type: 'QBluetoothSocket.SocketState' + ConnectingState = ... # type: 'QBluetoothSocket.SocketState' + ConnectedState = ... # type: 'QBluetoothSocket.SocketState' + BoundState = ... # type: 'QBluetoothSocket.SocketState' + ClosingState = ... # type: 'QBluetoothSocket.SocketState' + ListeningState = ... # type: 'QBluetoothSocket.SocketState' + + @typing.overload + def __init__(self, socketType: QBluetoothServiceInfo.Protocol, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def preferredSecurityFlags(self) -> QBluetooth.SecurityFlags: ... + def setPreferredSecurityFlags(self, flags: typing.Union[QBluetooth.SecurityFlags, QBluetooth.Security]) -> None: ... + def doDeviceDiscovery(self, service: QBluetoothServiceInfo, openMode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag]) -> None: ... + def setSocketError(self, error: 'QBluetoothSocket.SocketError') -> None: ... + def setSocketState(self, state: 'QBluetoothSocket.SocketState') -> None: ... + def writeData(self, data: bytes) -> int: ... + def readData(self, maxlen: int) -> bytes: ... + def stateChanged(self, state: 'QBluetoothSocket.SocketState') -> None: ... + def disconnected(self) -> None: ... + def connected(self) -> None: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QBluetoothSocket.SocketError': ... + @typing.overload + def error(self, error: 'QBluetoothSocket.SocketError') -> None: ... + def state(self) -> 'QBluetoothSocket.SocketState': ... + def socketType(self) -> QBluetoothServiceInfo.Protocol: ... + def socketDescriptor(self) -> int: ... + def setSocketDescriptor(self, socketDescriptor: int, socketType: QBluetoothServiceInfo.Protocol, state: 'QBluetoothSocket.SocketState' = ..., mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag] = ...) -> bool: ... + def peerPort(self) -> int: ... + def peerAddress(self) -> QBluetoothAddress: ... + def peerName(self) -> str: ... + def localPort(self) -> int: ... + def localAddress(self) -> QBluetoothAddress: ... + def localName(self) -> str: ... + def disconnectFromService(self) -> None: ... + @typing.overload + def connectToService(self, service: QBluetoothServiceInfo, mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag] = ...) -> None: ... + @typing.overload + def connectToService(self, address: QBluetoothAddress, uuid: 'QBluetoothUuid', mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag] = ...) -> None: ... + @typing.overload + def connectToService(self, address: QBluetoothAddress, port: int, mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag] = ...) -> None: ... + def canReadLine(self) -> bool: ... + def bytesToWrite(self) -> int: ... + def bytesAvailable(self) -> int: ... + def isSequential(self) -> bool: ... + def close(self) -> None: ... + def abort(self) -> None: ... + + +class QBluetoothTransferManager(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def finished(self, reply: 'QBluetoothTransferReply') -> None: ... + def put(self, request: 'QBluetoothTransferRequest', data: QtCore.QIODevice) -> 'QBluetoothTransferReply': ... + + +class QBluetoothTransferReply(QtCore.QObject): + + class TransferError(int): ... + NoError = ... # type: 'QBluetoothTransferReply.TransferError' + UnknownError = ... # type: 'QBluetoothTransferReply.TransferError' + FileNotFoundError = ... # type: 'QBluetoothTransferReply.TransferError' + HostNotFoundError = ... # type: 'QBluetoothTransferReply.TransferError' + UserCanceledTransferError = ... # type: 'QBluetoothTransferReply.TransferError' + IODeviceNotReadableError = ... # type: 'QBluetoothTransferReply.TransferError' + ResourceBusyError = ... # type: 'QBluetoothTransferReply.TransferError' + SessionError = ... # type: 'QBluetoothTransferReply.TransferError' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setRequest(self, request: 'QBluetoothTransferRequest') -> None: ... + def setManager(self, manager: QBluetoothTransferManager) -> None: ... + def transferProgress(self, bytesTransferred: int, bytesTotal: int) -> None: ... + def finished(self, a0: 'QBluetoothTransferReply') -> None: ... + def abort(self) -> None: ... + def request(self) -> 'QBluetoothTransferRequest': ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QBluetoothTransferReply.TransferError': ... + @typing.overload + def error(self, lastError: 'QBluetoothTransferReply.TransferError') -> None: ... + def manager(self) -> QBluetoothTransferManager: ... + def isRunning(self) -> bool: ... + def isFinished(self) -> bool: ... + + +class QBluetoothTransferRequest(sip.wrapper): + + class Attribute(int): ... + DescriptionAttribute = ... # type: 'QBluetoothTransferRequest.Attribute' + TimeAttribute = ... # type: 'QBluetoothTransferRequest.Attribute' + TypeAttribute = ... # type: 'QBluetoothTransferRequest.Attribute' + LengthAttribute = ... # type: 'QBluetoothTransferRequest.Attribute' + NameAttribute = ... # type: 'QBluetoothTransferRequest.Attribute' + + @typing.overload + def __init__(self, address: QBluetoothAddress = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QBluetoothTransferRequest') -> None: ... + + def address(self) -> QBluetoothAddress: ... + def setAttribute(self, code: 'QBluetoothTransferRequest.Attribute', value: typing.Any) -> None: ... + def attribute(self, code: 'QBluetoothTransferRequest.Attribute', defaultValue: typing.Any = ...) -> typing.Any: ... + + +class QBluetoothUuid(QtCore.QUuid): + + class DescriptorType(int): ... + UnknownDescriptorType = ... # type: 'QBluetoothUuid.DescriptorType' + CharacteristicExtendedProperties = ... # type: 'QBluetoothUuid.DescriptorType' + CharacteristicUserDescription = ... # type: 'QBluetoothUuid.DescriptorType' + ClientCharacteristicConfiguration = ... # type: 'QBluetoothUuid.DescriptorType' + ServerCharacteristicConfiguration = ... # type: 'QBluetoothUuid.DescriptorType' + CharacteristicPresentationFormat = ... # type: 'QBluetoothUuid.DescriptorType' + CharacteristicAggregateFormat = ... # type: 'QBluetoothUuid.DescriptorType' + ValidRange = ... # type: 'QBluetoothUuid.DescriptorType' + ExternalReportReference = ... # type: 'QBluetoothUuid.DescriptorType' + ReportReference = ... # type: 'QBluetoothUuid.DescriptorType' + EnvironmentalSensingConfiguration = ... # type: 'QBluetoothUuid.DescriptorType' + EnvironmentalSensingMeasurement = ... # type: 'QBluetoothUuid.DescriptorType' + EnvironmentalSensingTriggerSetting = ... # type: 'QBluetoothUuid.DescriptorType' + + class CharacteristicType(int): ... + DeviceName = ... # type: 'QBluetoothUuid.CharacteristicType' + Appearance = ... # type: 'QBluetoothUuid.CharacteristicType' + PeripheralPrivacyFlag = ... # type: 'QBluetoothUuid.CharacteristicType' + ReconnectionAddress = ... # type: 'QBluetoothUuid.CharacteristicType' + PeripheralPreferredConnectionParameters = ... # type: 'QBluetoothUuid.CharacteristicType' + ServiceChanged = ... # type: 'QBluetoothUuid.CharacteristicType' + AlertLevel = ... # type: 'QBluetoothUuid.CharacteristicType' + TxPowerLevel = ... # type: 'QBluetoothUuid.CharacteristicType' + DateTime = ... # type: 'QBluetoothUuid.CharacteristicType' + DayOfWeek = ... # type: 'QBluetoothUuid.CharacteristicType' + DayDateTime = ... # type: 'QBluetoothUuid.CharacteristicType' + ExactTime256 = ... # type: 'QBluetoothUuid.CharacteristicType' + DSTOffset = ... # type: 'QBluetoothUuid.CharacteristicType' + TimeZone = ... # type: 'QBluetoothUuid.CharacteristicType' + LocalTimeInformation = ... # type: 'QBluetoothUuid.CharacteristicType' + TimeWithDST = ... # type: 'QBluetoothUuid.CharacteristicType' + TimeAccuracy = ... # type: 'QBluetoothUuid.CharacteristicType' + TimeSource = ... # type: 'QBluetoothUuid.CharacteristicType' + ReferenceTimeInformation = ... # type: 'QBluetoothUuid.CharacteristicType' + TimeUpdateControlPoint = ... # type: 'QBluetoothUuid.CharacteristicType' + TimeUpdateState = ... # type: 'QBluetoothUuid.CharacteristicType' + GlucoseMeasurement = ... # type: 'QBluetoothUuid.CharacteristicType' + BatteryLevel = ... # type: 'QBluetoothUuid.CharacteristicType' + TemperatureMeasurement = ... # type: 'QBluetoothUuid.CharacteristicType' + TemperatureType = ... # type: 'QBluetoothUuid.CharacteristicType' + IntermediateTemperature = ... # type: 'QBluetoothUuid.CharacteristicType' + MeasurementInterval = ... # type: 'QBluetoothUuid.CharacteristicType' + BootKeyboardInputReport = ... # type: 'QBluetoothUuid.CharacteristicType' + SystemID = ... # type: 'QBluetoothUuid.CharacteristicType' + ModelNumberString = ... # type: 'QBluetoothUuid.CharacteristicType' + SerialNumberString = ... # type: 'QBluetoothUuid.CharacteristicType' + FirmwareRevisionString = ... # type: 'QBluetoothUuid.CharacteristicType' + HardwareRevisionString = ... # type: 'QBluetoothUuid.CharacteristicType' + SoftwareRevisionString = ... # type: 'QBluetoothUuid.CharacteristicType' + ManufacturerNameString = ... # type: 'QBluetoothUuid.CharacteristicType' + IEEE1107320601RegulatoryCertificationDataList = ... # type: 'QBluetoothUuid.CharacteristicType' + CurrentTime = ... # type: 'QBluetoothUuid.CharacteristicType' + ScanRefresh = ... # type: 'QBluetoothUuid.CharacteristicType' + BootKeyboardOutputReport = ... # type: 'QBluetoothUuid.CharacteristicType' + BootMouseInputReport = ... # type: 'QBluetoothUuid.CharacteristicType' + GlucoseMeasurementContext = ... # type: 'QBluetoothUuid.CharacteristicType' + BloodPressureMeasurement = ... # type: 'QBluetoothUuid.CharacteristicType' + IntermediateCuffPressure = ... # type: 'QBluetoothUuid.CharacteristicType' + HeartRateMeasurement = ... # type: 'QBluetoothUuid.CharacteristicType' + BodySensorLocation = ... # type: 'QBluetoothUuid.CharacteristicType' + HeartRateControlPoint = ... # type: 'QBluetoothUuid.CharacteristicType' + AlertStatus = ... # type: 'QBluetoothUuid.CharacteristicType' + RingerControlPoint = ... # type: 'QBluetoothUuid.CharacteristicType' + RingerSetting = ... # type: 'QBluetoothUuid.CharacteristicType' + AlertCategoryIDBitMask = ... # type: 'QBluetoothUuid.CharacteristicType' + AlertCategoryID = ... # type: 'QBluetoothUuid.CharacteristicType' + AlertNotificationControlPoint = ... # type: 'QBluetoothUuid.CharacteristicType' + UnreadAlertStatus = ... # type: 'QBluetoothUuid.CharacteristicType' + NewAlert = ... # type: 'QBluetoothUuid.CharacteristicType' + SupportedNewAlertCategory = ... # type: 'QBluetoothUuid.CharacteristicType' + SupportedUnreadAlertCategory = ... # type: 'QBluetoothUuid.CharacteristicType' + BloodPressureFeature = ... # type: 'QBluetoothUuid.CharacteristicType' + HIDInformation = ... # type: 'QBluetoothUuid.CharacteristicType' + ReportMap = ... # type: 'QBluetoothUuid.CharacteristicType' + HIDControlPoint = ... # type: 'QBluetoothUuid.CharacteristicType' + Report = ... # type: 'QBluetoothUuid.CharacteristicType' + ProtocolMode = ... # type: 'QBluetoothUuid.CharacteristicType' + ScanIntervalWindow = ... # type: 'QBluetoothUuid.CharacteristicType' + PnPID = ... # type: 'QBluetoothUuid.CharacteristicType' + GlucoseFeature = ... # type: 'QBluetoothUuid.CharacteristicType' + RecordAccessControlPoint = ... # type: 'QBluetoothUuid.CharacteristicType' + RSCMeasurement = ... # type: 'QBluetoothUuid.CharacteristicType' + RSCFeature = ... # type: 'QBluetoothUuid.CharacteristicType' + SCControlPoint = ... # type: 'QBluetoothUuid.CharacteristicType' + CSCMeasurement = ... # type: 'QBluetoothUuid.CharacteristicType' + CSCFeature = ... # type: 'QBluetoothUuid.CharacteristicType' + SensorLocation = ... # type: 'QBluetoothUuid.CharacteristicType' + CyclingPowerMeasurement = ... # type: 'QBluetoothUuid.CharacteristicType' + CyclingPowerVector = ... # type: 'QBluetoothUuid.CharacteristicType' + CyclingPowerFeature = ... # type: 'QBluetoothUuid.CharacteristicType' + CyclingPowerControlPoint = ... # type: 'QBluetoothUuid.CharacteristicType' + LocationAndSpeed = ... # type: 'QBluetoothUuid.CharacteristicType' + Navigation = ... # type: 'QBluetoothUuid.CharacteristicType' + PositionQuality = ... # type: 'QBluetoothUuid.CharacteristicType' + LNFeature = ... # type: 'QBluetoothUuid.CharacteristicType' + LNControlPoint = ... # type: 'QBluetoothUuid.CharacteristicType' + MagneticDeclination = ... # type: 'QBluetoothUuid.CharacteristicType' + Elevation = ... # type: 'QBluetoothUuid.CharacteristicType' + Pressure = ... # type: 'QBluetoothUuid.CharacteristicType' + Temperature = ... # type: 'QBluetoothUuid.CharacteristicType' + Humidity = ... # type: 'QBluetoothUuid.CharacteristicType' + TrueWindSpeed = ... # type: 'QBluetoothUuid.CharacteristicType' + TrueWindDirection = ... # type: 'QBluetoothUuid.CharacteristicType' + ApparentWindSpeed = ... # type: 'QBluetoothUuid.CharacteristicType' + ApparentWindDirection = ... # type: 'QBluetoothUuid.CharacteristicType' + GustFactor = ... # type: 'QBluetoothUuid.CharacteristicType' + PollenConcentration = ... # type: 'QBluetoothUuid.CharacteristicType' + UVIndex = ... # type: 'QBluetoothUuid.CharacteristicType' + Irradiance = ... # type: 'QBluetoothUuid.CharacteristicType' + Rainfall = ... # type: 'QBluetoothUuid.CharacteristicType' + WindChill = ... # type: 'QBluetoothUuid.CharacteristicType' + HeatIndex = ... # type: 'QBluetoothUuid.CharacteristicType' + DewPoint = ... # type: 'QBluetoothUuid.CharacteristicType' + DescriptorValueChanged = ... # type: 'QBluetoothUuid.CharacteristicType' + AerobicHeartRateLowerLimit = ... # type: 'QBluetoothUuid.CharacteristicType' + AerobicThreshold = ... # type: 'QBluetoothUuid.CharacteristicType' + Age = ... # type: 'QBluetoothUuid.CharacteristicType' + AnaerobicHeartRateLowerLimit = ... # type: 'QBluetoothUuid.CharacteristicType' + AnaerobicHeartRateUpperLimit = ... # type: 'QBluetoothUuid.CharacteristicType' + AnaerobicThreshold = ... # type: 'QBluetoothUuid.CharacteristicType' + AerobicHeartRateUpperLimit = ... # type: 'QBluetoothUuid.CharacteristicType' + DateOfBirth = ... # type: 'QBluetoothUuid.CharacteristicType' + DateOfThresholdAssessment = ... # type: 'QBluetoothUuid.CharacteristicType' + EmailAddress = ... # type: 'QBluetoothUuid.CharacteristicType' + FatBurnHeartRateLowerLimit = ... # type: 'QBluetoothUuid.CharacteristicType' + FatBurnHeartRateUpperLimit = ... # type: 'QBluetoothUuid.CharacteristicType' + FirstName = ... # type: 'QBluetoothUuid.CharacteristicType' + FiveZoneHeartRateLimits = ... # type: 'QBluetoothUuid.CharacteristicType' + Gender = ... # type: 'QBluetoothUuid.CharacteristicType' + HeartRateMax = ... # type: 'QBluetoothUuid.CharacteristicType' + Height = ... # type: 'QBluetoothUuid.CharacteristicType' + HipCircumference = ... # type: 'QBluetoothUuid.CharacteristicType' + LastName = ... # type: 'QBluetoothUuid.CharacteristicType' + MaximumRecommendedHeartRate = ... # type: 'QBluetoothUuid.CharacteristicType' + RestingHeartRate = ... # type: 'QBluetoothUuid.CharacteristicType' + SportTypeForAerobicAnaerobicThresholds = ... # type: 'QBluetoothUuid.CharacteristicType' + ThreeZoneHeartRateLimits = ... # type: 'QBluetoothUuid.CharacteristicType' + TwoZoneHeartRateLimits = ... # type: 'QBluetoothUuid.CharacteristicType' + VO2Max = ... # type: 'QBluetoothUuid.CharacteristicType' + WaistCircumference = ... # type: 'QBluetoothUuid.CharacteristicType' + Weight = ... # type: 'QBluetoothUuid.CharacteristicType' + DatabaseChangeIncrement = ... # type: 'QBluetoothUuid.CharacteristicType' + UserIndex = ... # type: 'QBluetoothUuid.CharacteristicType' + BodyCompositionFeature = ... # type: 'QBluetoothUuid.CharacteristicType' + BodyCompositionMeasurement = ... # type: 'QBluetoothUuid.CharacteristicType' + WeightMeasurement = ... # type: 'QBluetoothUuid.CharacteristicType' + WeightScaleFeature = ... # type: 'QBluetoothUuid.CharacteristicType' + UserControlPoint = ... # type: 'QBluetoothUuid.CharacteristicType' + MagneticFluxDensity2D = ... # type: 'QBluetoothUuid.CharacteristicType' + MagneticFluxDensity3D = ... # type: 'QBluetoothUuid.CharacteristicType' + Language = ... # type: 'QBluetoothUuid.CharacteristicType' + BarometricPressureTrend = ... # type: 'QBluetoothUuid.CharacteristicType' + + class ServiceClassUuid(int): ... + ServiceDiscoveryServer = ... # type: 'QBluetoothUuid.ServiceClassUuid' + BrowseGroupDescriptor = ... # type: 'QBluetoothUuid.ServiceClassUuid' + PublicBrowseGroup = ... # type: 'QBluetoothUuid.ServiceClassUuid' + SerialPort = ... # type: 'QBluetoothUuid.ServiceClassUuid' + LANAccessUsingPPP = ... # type: 'QBluetoothUuid.ServiceClassUuid' + DialupNetworking = ... # type: 'QBluetoothUuid.ServiceClassUuid' + IrMCSync = ... # type: 'QBluetoothUuid.ServiceClassUuid' + ObexObjectPush = ... # type: 'QBluetoothUuid.ServiceClassUuid' + OBEXFileTransfer = ... # type: 'QBluetoothUuid.ServiceClassUuid' + IrMCSyncCommand = ... # type: 'QBluetoothUuid.ServiceClassUuid' + Headset = ... # type: 'QBluetoothUuid.ServiceClassUuid' + AudioSource = ... # type: 'QBluetoothUuid.ServiceClassUuid' + AudioSink = ... # type: 'QBluetoothUuid.ServiceClassUuid' + AV_RemoteControlTarget = ... # type: 'QBluetoothUuid.ServiceClassUuid' + AdvancedAudioDistribution = ... # type: 'QBluetoothUuid.ServiceClassUuid' + AV_RemoteControl = ... # type: 'QBluetoothUuid.ServiceClassUuid' + AV_RemoteControlController = ... # type: 'QBluetoothUuid.ServiceClassUuid' + HeadsetAG = ... # type: 'QBluetoothUuid.ServiceClassUuid' + PANU = ... # type: 'QBluetoothUuid.ServiceClassUuid' + NAP = ... # type: 'QBluetoothUuid.ServiceClassUuid' + GN = ... # type: 'QBluetoothUuid.ServiceClassUuid' + DirectPrinting = ... # type: 'QBluetoothUuid.ServiceClassUuid' + ReferencePrinting = ... # type: 'QBluetoothUuid.ServiceClassUuid' + ImagingResponder = ... # type: 'QBluetoothUuid.ServiceClassUuid' + ImagingAutomaticArchive = ... # type: 'QBluetoothUuid.ServiceClassUuid' + ImagingReferenceObjects = ... # type: 'QBluetoothUuid.ServiceClassUuid' + Handsfree = ... # type: 'QBluetoothUuid.ServiceClassUuid' + HandsfreeAudioGateway = ... # type: 'QBluetoothUuid.ServiceClassUuid' + DirectPrintingReferenceObjectsService = ... # type: 'QBluetoothUuid.ServiceClassUuid' + ReflectedUI = ... # type: 'QBluetoothUuid.ServiceClassUuid' + BasicPrinting = ... # type: 'QBluetoothUuid.ServiceClassUuid' + PrintingStatus = ... # type: 'QBluetoothUuid.ServiceClassUuid' + HumanInterfaceDeviceService = ... # type: 'QBluetoothUuid.ServiceClassUuid' + HardcopyCableReplacement = ... # type: 'QBluetoothUuid.ServiceClassUuid' + HCRPrint = ... # type: 'QBluetoothUuid.ServiceClassUuid' + HCRScan = ... # type: 'QBluetoothUuid.ServiceClassUuid' + SIMAccess = ... # type: 'QBluetoothUuid.ServiceClassUuid' + PhonebookAccessPCE = ... # type: 'QBluetoothUuid.ServiceClassUuid' + PhonebookAccessPSE = ... # type: 'QBluetoothUuid.ServiceClassUuid' + PhonebookAccess = ... # type: 'QBluetoothUuid.ServiceClassUuid' + HeadsetHS = ... # type: 'QBluetoothUuid.ServiceClassUuid' + MessageAccessServer = ... # type: 'QBluetoothUuid.ServiceClassUuid' + MessageNotificationServer = ... # type: 'QBluetoothUuid.ServiceClassUuid' + MessageAccessProfile = ... # type: 'QBluetoothUuid.ServiceClassUuid' + PnPInformation = ... # type: 'QBluetoothUuid.ServiceClassUuid' + GenericNetworking = ... # type: 'QBluetoothUuid.ServiceClassUuid' + GenericFileTransfer = ... # type: 'QBluetoothUuid.ServiceClassUuid' + GenericAudio = ... # type: 'QBluetoothUuid.ServiceClassUuid' + GenericTelephony = ... # type: 'QBluetoothUuid.ServiceClassUuid' + VideoSource = ... # type: 'QBluetoothUuid.ServiceClassUuid' + VideoSink = ... # type: 'QBluetoothUuid.ServiceClassUuid' + VideoDistribution = ... # type: 'QBluetoothUuid.ServiceClassUuid' + HDP = ... # type: 'QBluetoothUuid.ServiceClassUuid' + HDPSource = ... # type: 'QBluetoothUuid.ServiceClassUuid' + HDPSink = ... # type: 'QBluetoothUuid.ServiceClassUuid' + BasicImage = ... # type: 'QBluetoothUuid.ServiceClassUuid' + GNSS = ... # type: 'QBluetoothUuid.ServiceClassUuid' + GNSSServer = ... # type: 'QBluetoothUuid.ServiceClassUuid' + Display3D = ... # type: 'QBluetoothUuid.ServiceClassUuid' + Glasses3D = ... # type: 'QBluetoothUuid.ServiceClassUuid' + Synchronization3D = ... # type: 'QBluetoothUuid.ServiceClassUuid' + MPSProfile = ... # type: 'QBluetoothUuid.ServiceClassUuid' + MPSService = ... # type: 'QBluetoothUuid.ServiceClassUuid' + GenericAccess = ... # type: 'QBluetoothUuid.ServiceClassUuid' + GenericAttribute = ... # type: 'QBluetoothUuid.ServiceClassUuid' + ImmediateAlert = ... # type: 'QBluetoothUuid.ServiceClassUuid' + LinkLoss = ... # type: 'QBluetoothUuid.ServiceClassUuid' + TxPower = ... # type: 'QBluetoothUuid.ServiceClassUuid' + CurrentTimeService = ... # type: 'QBluetoothUuid.ServiceClassUuid' + ReferenceTimeUpdateService = ... # type: 'QBluetoothUuid.ServiceClassUuid' + NextDSTChangeService = ... # type: 'QBluetoothUuid.ServiceClassUuid' + Glucose = ... # type: 'QBluetoothUuid.ServiceClassUuid' + HealthThermometer = ... # type: 'QBluetoothUuid.ServiceClassUuid' + DeviceInformation = ... # type: 'QBluetoothUuid.ServiceClassUuid' + HeartRate = ... # type: 'QBluetoothUuid.ServiceClassUuid' + PhoneAlertStatusService = ... # type: 'QBluetoothUuid.ServiceClassUuid' + BatteryService = ... # type: 'QBluetoothUuid.ServiceClassUuid' + BloodPressure = ... # type: 'QBluetoothUuid.ServiceClassUuid' + AlertNotificationService = ... # type: 'QBluetoothUuid.ServiceClassUuid' + HumanInterfaceDevice = ... # type: 'QBluetoothUuid.ServiceClassUuid' + ScanParameters = ... # type: 'QBluetoothUuid.ServiceClassUuid' + RunningSpeedAndCadence = ... # type: 'QBluetoothUuid.ServiceClassUuid' + CyclingSpeedAndCadence = ... # type: 'QBluetoothUuid.ServiceClassUuid' + CyclingPower = ... # type: 'QBluetoothUuid.ServiceClassUuid' + LocationAndNavigation = ... # type: 'QBluetoothUuid.ServiceClassUuid' + EnvironmentalSensing = ... # type: 'QBluetoothUuid.ServiceClassUuid' + BodyComposition = ... # type: 'QBluetoothUuid.ServiceClassUuid' + UserData = ... # type: 'QBluetoothUuid.ServiceClassUuid' + WeightScale = ... # type: 'QBluetoothUuid.ServiceClassUuid' + BondManagement = ... # type: 'QBluetoothUuid.ServiceClassUuid' + ContinuousGlucoseMonitoring = ... # type: 'QBluetoothUuid.ServiceClassUuid' + + class ProtocolUuid(int): ... + Sdp = ... # type: 'QBluetoothUuid.ProtocolUuid' + Udp = ... # type: 'QBluetoothUuid.ProtocolUuid' + Rfcomm = ... # type: 'QBluetoothUuid.ProtocolUuid' + Tcp = ... # type: 'QBluetoothUuid.ProtocolUuid' + TcsBin = ... # type: 'QBluetoothUuid.ProtocolUuid' + TcsAt = ... # type: 'QBluetoothUuid.ProtocolUuid' + Att = ... # type: 'QBluetoothUuid.ProtocolUuid' + Obex = ... # type: 'QBluetoothUuid.ProtocolUuid' + Ip = ... # type: 'QBluetoothUuid.ProtocolUuid' + Ftp = ... # type: 'QBluetoothUuid.ProtocolUuid' + Http = ... # type: 'QBluetoothUuid.ProtocolUuid' + Wsp = ... # type: 'QBluetoothUuid.ProtocolUuid' + Bnep = ... # type: 'QBluetoothUuid.ProtocolUuid' + Upnp = ... # type: 'QBluetoothUuid.ProtocolUuid' + Hidp = ... # type: 'QBluetoothUuid.ProtocolUuid' + HardcopyControlChannel = ... # type: 'QBluetoothUuid.ProtocolUuid' + HardcopyDataChannel = ... # type: 'QBluetoothUuid.ProtocolUuid' + HardcopyNotification = ... # type: 'QBluetoothUuid.ProtocolUuid' + Avctp = ... # type: 'QBluetoothUuid.ProtocolUuid' + Avdtp = ... # type: 'QBluetoothUuid.ProtocolUuid' + Cmtp = ... # type: 'QBluetoothUuid.ProtocolUuid' + UdiCPlain = ... # type: 'QBluetoothUuid.ProtocolUuid' + McapControlChannel = ... # type: 'QBluetoothUuid.ProtocolUuid' + McapDataChannel = ... # type: 'QBluetoothUuid.ProtocolUuid' + L2cap = ... # type: 'QBluetoothUuid.ProtocolUuid' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, uuid: int) -> None: ... + @typing.overload + def __init__(self, uuid: typing.Tuple[int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int]) -> None: ... + @typing.overload + def __init__(self, uuid: str) -> None: ... + @typing.overload + def __init__(self, uuid: 'QBluetoothUuid') -> None: ... + @typing.overload + def __init__(self, uuid: QtCore.QUuid) -> None: ... + + @staticmethod + def descriptorToString(uuid: 'QBluetoothUuid.DescriptorType') -> str: ... + @staticmethod + def characteristicToString(uuid: 'QBluetoothUuid.CharacteristicType') -> str: ... + @staticmethod + def protocolToString(uuid: 'QBluetoothUuid.ProtocolUuid') -> str: ... + @staticmethod + def serviceClassToString(uuid: 'QBluetoothUuid.ServiceClassUuid') -> str: ... + def toUInt128(self) -> typing.Tuple[int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int]: ... + def toUInt32(self) -> typing.Tuple[int, bool]: ... + def toUInt16(self) -> typing.Tuple[int, bool]: ... + def minimumSize(self) -> int: ... + + +class QLowEnergyAdvertisingData(sip.wrapper): + + class Discoverability(int): ... + DiscoverabilityNone = ... # type: 'QLowEnergyAdvertisingData.Discoverability' + DiscoverabilityLimited = ... # type: 'QLowEnergyAdvertisingData.Discoverability' + DiscoverabilityGeneral = ... # type: 'QLowEnergyAdvertisingData.Discoverability' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QLowEnergyAdvertisingData') -> None: ... + + def swap(self, other: 'QLowEnergyAdvertisingData') -> None: ... + def rawData(self) -> QtCore.QByteArray: ... + def setRawData(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def services(self) -> typing.List[QBluetoothUuid]: ... + def setServices(self, services: typing.Iterable[QBluetoothUuid]) -> None: ... + def discoverability(self) -> 'QLowEnergyAdvertisingData.Discoverability': ... + def setDiscoverability(self, mode: 'QLowEnergyAdvertisingData.Discoverability') -> None: ... + def includePowerLevel(self) -> bool: ... + def setIncludePowerLevel(self, doInclude: bool) -> None: ... + def manufacturerData(self) -> QtCore.QByteArray: ... + def manufacturerId(self) -> int: ... + def setManufacturerData(self, id: int, data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + @staticmethod + def invalidManufacturerId() -> int: ... + def localName(self) -> str: ... + def setLocalName(self, name: str) -> None: ... + + +class QLowEnergyAdvertisingParameters(sip.wrapper): + + class FilterPolicy(int): ... + IgnoreWhiteList = ... # type: 'QLowEnergyAdvertisingParameters.FilterPolicy' + UseWhiteListForScanning = ... # type: 'QLowEnergyAdvertisingParameters.FilterPolicy' + UseWhiteListForConnecting = ... # type: 'QLowEnergyAdvertisingParameters.FilterPolicy' + UseWhiteListForScanningAndConnecting = ... # type: 'QLowEnergyAdvertisingParameters.FilterPolicy' + + class Mode(int): ... + AdvInd = ... # type: 'QLowEnergyAdvertisingParameters.Mode' + AdvScanInd = ... # type: 'QLowEnergyAdvertisingParameters.Mode' + AdvNonConnInd = ... # type: 'QLowEnergyAdvertisingParameters.Mode' + + class AddressInfo(sip.wrapper): + + address = ... # type: QBluetoothAddress + type = ... # type: 'QLowEnergyController.RemoteAddressType' + + @typing.overload + def __init__(self, addr: QBluetoothAddress, t: 'QLowEnergyController.RemoteAddressType') -> None: ... + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QLowEnergyAdvertisingParameters.AddressInfo') -> None: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QLowEnergyAdvertisingParameters') -> None: ... + + def swap(self, other: 'QLowEnergyAdvertisingParameters') -> None: ... + def maximumInterval(self) -> int: ... + def minimumInterval(self) -> int: ... + def setInterval(self, minimum: int, maximum: int) -> None: ... + def filterPolicy(self) -> 'QLowEnergyAdvertisingParameters.FilterPolicy': ... + def whiteList(self) -> typing.List['QLowEnergyAdvertisingParameters.AddressInfo']: ... + def setWhiteList(self, whiteList: typing.Iterable['QLowEnergyAdvertisingParameters.AddressInfo'], policy: 'QLowEnergyAdvertisingParameters.FilterPolicy') -> None: ... + def mode(self) -> 'QLowEnergyAdvertisingParameters.Mode': ... + def setMode(self, mode: 'QLowEnergyAdvertisingParameters.Mode') -> None: ... + + +class QLowEnergyCharacteristic(sip.wrapper): + + class PropertyType(int): ... + Unknown = ... # type: 'QLowEnergyCharacteristic.PropertyType' + Broadcasting = ... # type: 'QLowEnergyCharacteristic.PropertyType' + Read = ... # type: 'QLowEnergyCharacteristic.PropertyType' + WriteNoResponse = ... # type: 'QLowEnergyCharacteristic.PropertyType' + Write = ... # type: 'QLowEnergyCharacteristic.PropertyType' + Notify = ... # type: 'QLowEnergyCharacteristic.PropertyType' + Indicate = ... # type: 'QLowEnergyCharacteristic.PropertyType' + WriteSigned = ... # type: 'QLowEnergyCharacteristic.PropertyType' + ExtendedProperty = ... # type: 'QLowEnergyCharacteristic.PropertyType' + + class PropertyTypes(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QLowEnergyCharacteristic.PropertyTypes', 'QLowEnergyCharacteristic.PropertyType']) -> None: ... + @typing.overload + def __init__(self, a0: 'QLowEnergyCharacteristic.PropertyTypes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QLowEnergyCharacteristic.PropertyTypes': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QLowEnergyCharacteristic') -> None: ... + + def isValid(self) -> bool: ... + def descriptors(self) -> typing.List['QLowEnergyDescriptor']: ... + def descriptor(self, uuid: QBluetoothUuid) -> 'QLowEnergyDescriptor': ... + def handle(self) -> int: ... + def properties(self) -> 'QLowEnergyCharacteristic.PropertyTypes': ... + def value(self) -> QtCore.QByteArray: ... + def uuid(self) -> QBluetoothUuid: ... + def name(self) -> str: ... + + +class QLowEnergyCharacteristicData(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QLowEnergyCharacteristicData') -> None: ... + + def swap(self, other: 'QLowEnergyCharacteristicData') -> None: ... + def isValid(self) -> bool: ... + def maximumValueLength(self) -> int: ... + def minimumValueLength(self) -> int: ... + def setValueLength(self, minimum: int, maximum: int) -> None: ... + def writeConstraints(self) -> QBluetooth.AttAccessConstraints: ... + def setWriteConstraints(self, constraints: typing.Union[QBluetooth.AttAccessConstraints, QBluetooth.AttAccessConstraint]) -> None: ... + def readConstraints(self) -> QBluetooth.AttAccessConstraints: ... + def setReadConstraints(self, constraints: typing.Union[QBluetooth.AttAccessConstraints, QBluetooth.AttAccessConstraint]) -> None: ... + def addDescriptor(self, descriptor: 'QLowEnergyDescriptorData') -> None: ... + def setDescriptors(self, descriptors: typing.Iterable['QLowEnergyDescriptorData']) -> None: ... + def descriptors(self) -> typing.List['QLowEnergyDescriptorData']: ... + def setProperties(self, properties: typing.Union[QLowEnergyCharacteristic.PropertyTypes, QLowEnergyCharacteristic.PropertyType]) -> None: ... + def properties(self) -> QLowEnergyCharacteristic.PropertyTypes: ... + def setValue(self, value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def value(self) -> QtCore.QByteArray: ... + def setUuid(self, uuid: QBluetoothUuid) -> None: ... + def uuid(self) -> QBluetoothUuid: ... + + +class QLowEnergyConnectionParameters(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QLowEnergyConnectionParameters') -> None: ... + + def swap(self, other: 'QLowEnergyConnectionParameters') -> None: ... + def supervisionTimeout(self) -> int: ... + def setSupervisionTimeout(self, timeout: int) -> None: ... + def latency(self) -> int: ... + def setLatency(self, latency: int) -> None: ... + def maximumInterval(self) -> float: ... + def minimumInterval(self) -> float: ... + def setIntervalRange(self, minimum: float, maximum: float) -> None: ... + + +class QLowEnergyController(QtCore.QObject): + + class Role(int): ... + CentralRole = ... # type: 'QLowEnergyController.Role' + PeripheralRole = ... # type: 'QLowEnergyController.Role' + + class RemoteAddressType(int): ... + PublicAddress = ... # type: 'QLowEnergyController.RemoteAddressType' + RandomAddress = ... # type: 'QLowEnergyController.RemoteAddressType' + + class ControllerState(int): ... + UnconnectedState = ... # type: 'QLowEnergyController.ControllerState' + ConnectingState = ... # type: 'QLowEnergyController.ControllerState' + ConnectedState = ... # type: 'QLowEnergyController.ControllerState' + DiscoveringState = ... # type: 'QLowEnergyController.ControllerState' + DiscoveredState = ... # type: 'QLowEnergyController.ControllerState' + ClosingState = ... # type: 'QLowEnergyController.ControllerState' + AdvertisingState = ... # type: 'QLowEnergyController.ControllerState' + + class Error(int): ... + NoError = ... # type: 'QLowEnergyController.Error' + UnknownError = ... # type: 'QLowEnergyController.Error' + UnknownRemoteDeviceError = ... # type: 'QLowEnergyController.Error' + NetworkError = ... # type: 'QLowEnergyController.Error' + InvalidBluetoothAdapterError = ... # type: 'QLowEnergyController.Error' + ConnectionError = ... # type: 'QLowEnergyController.Error' + AdvertisingError = ... # type: 'QLowEnergyController.Error' + RemoteHostClosedError = ... # type: 'QLowEnergyController.Error' + + @typing.overload + def __init__(self, remoteDevice: QBluetoothDeviceInfo, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, remoteDevice: QBluetoothAddress, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, remoteDevice: QBluetoothAddress, localDevice: QBluetoothAddress, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def remoteDeviceUuid(self) -> QBluetoothUuid: ... + def connectionUpdated(self, parameters: QLowEnergyConnectionParameters) -> None: ... + def role(self) -> 'QLowEnergyController.Role': ... + def requestConnectionUpdate(self, parameters: QLowEnergyConnectionParameters) -> None: ... + def addService(self, service: 'QLowEnergyServiceData', parent: typing.Optional[QtCore.QObject] = ...) -> 'QLowEnergyService': ... + def stopAdvertising(self) -> None: ... + def startAdvertising(self, parameters: QLowEnergyAdvertisingParameters, advertisingData: QLowEnergyAdvertisingData, scanResponseData: QLowEnergyAdvertisingData = ...) -> None: ... + @staticmethod + def createPeripheral(parent: typing.Optional[QtCore.QObject] = ...) -> 'QLowEnergyController': ... + @staticmethod + def createCentral(remoteDevice: QBluetoothDeviceInfo, parent: typing.Optional[QtCore.QObject] = ...) -> 'QLowEnergyController': ... + def discoveryFinished(self) -> None: ... + def serviceDiscovered(self, newService: QBluetoothUuid) -> None: ... + def stateChanged(self, state: 'QLowEnergyController.ControllerState') -> None: ... + def disconnected(self) -> None: ... + def connected(self) -> None: ... + def remoteName(self) -> str: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QLowEnergyController.Error': ... + @typing.overload + def error(self, newError: 'QLowEnergyController.Error') -> None: ... + def createServiceObject(self, service: QBluetoothUuid, parent: typing.Optional[QtCore.QObject] = ...) -> 'QLowEnergyService': ... + def services(self) -> typing.List[QBluetoothUuid]: ... + def discoverServices(self) -> None: ... + def disconnectFromDevice(self) -> None: ... + def connectToDevice(self) -> None: ... + def setRemoteAddressType(self, type: 'QLowEnergyController.RemoteAddressType') -> None: ... + def remoteAddressType(self) -> 'QLowEnergyController.RemoteAddressType': ... + def state(self) -> 'QLowEnergyController.ControllerState': ... + def remoteAddress(self) -> QBluetoothAddress: ... + def localAddress(self) -> QBluetoothAddress: ... + + +class QLowEnergyDescriptor(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QLowEnergyDescriptor') -> None: ... + + def type(self) -> QBluetoothUuid.DescriptorType: ... + def name(self) -> str: ... + def handle(self) -> int: ... + def uuid(self) -> QBluetoothUuid: ... + def value(self) -> QtCore.QByteArray: ... + def isValid(self) -> bool: ... + + +class QLowEnergyDescriptorData(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, uuid: QBluetoothUuid, value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + @typing.overload + def __init__(self, other: 'QLowEnergyDescriptorData') -> None: ... + + def swap(self, other: 'QLowEnergyDescriptorData') -> None: ... + def writeConstraints(self) -> QBluetooth.AttAccessConstraints: ... + def isWritable(self) -> bool: ... + def setWritePermissions(self, writable: bool, constraints: typing.Union[QBluetooth.AttAccessConstraints, QBluetooth.AttAccessConstraint] = ...) -> None: ... + def readConstraints(self) -> QBluetooth.AttAccessConstraints: ... + def isReadable(self) -> bool: ... + def setReadPermissions(self, readable: bool, constraints: typing.Union[QBluetooth.AttAccessConstraints, QBluetooth.AttAccessConstraint] = ...) -> None: ... + def isValid(self) -> bool: ... + def setUuid(self, uuid: QBluetoothUuid) -> None: ... + def uuid(self) -> QBluetoothUuid: ... + def setValue(self, value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def value(self) -> QtCore.QByteArray: ... + + +class QLowEnergyService(QtCore.QObject): + + class WriteMode(int): ... + WriteWithResponse = ... # type: 'QLowEnergyService.WriteMode' + WriteWithoutResponse = ... # type: 'QLowEnergyService.WriteMode' + WriteSigned = ... # type: 'QLowEnergyService.WriteMode' + + class ServiceState(int): ... + InvalidService = ... # type: 'QLowEnergyService.ServiceState' + DiscoveryRequired = ... # type: 'QLowEnergyService.ServiceState' + DiscoveringServices = ... # type: 'QLowEnergyService.ServiceState' + ServiceDiscovered = ... # type: 'QLowEnergyService.ServiceState' + LocalService = ... # type: 'QLowEnergyService.ServiceState' + + class ServiceError(int): ... + NoError = ... # type: 'QLowEnergyService.ServiceError' + OperationError = ... # type: 'QLowEnergyService.ServiceError' + CharacteristicWriteError = ... # type: 'QLowEnergyService.ServiceError' + DescriptorWriteError = ... # type: 'QLowEnergyService.ServiceError' + CharacteristicReadError = ... # type: 'QLowEnergyService.ServiceError' + DescriptorReadError = ... # type: 'QLowEnergyService.ServiceError' + UnknownError = ... # type: 'QLowEnergyService.ServiceError' + + class ServiceType(int): ... + PrimaryService = ... # type: 'QLowEnergyService.ServiceType' + IncludedService = ... # type: 'QLowEnergyService.ServiceType' + + class ServiceTypes(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QLowEnergyService.ServiceTypes', 'QLowEnergyService.ServiceType']) -> None: ... + @typing.overload + def __init__(self, a0: 'QLowEnergyService.ServiceTypes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QLowEnergyService.ServiceTypes': ... + def __int__(self) -> int: ... + + def descriptorRead(self, info: QLowEnergyDescriptor, value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def characteristicRead(self, info: QLowEnergyCharacteristic, value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def readDescriptor(self, descriptor: QLowEnergyDescriptor) -> None: ... + def readCharacteristic(self, characteristic: QLowEnergyCharacteristic) -> None: ... + def descriptorWritten(self, info: QLowEnergyDescriptor, value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def characteristicWritten(self, info: QLowEnergyCharacteristic, value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def characteristicChanged(self, info: QLowEnergyCharacteristic, value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def stateChanged(self, newState: 'QLowEnergyService.ServiceState') -> None: ... + def writeDescriptor(self, descriptor: QLowEnergyDescriptor, newValue: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def writeCharacteristic(self, characteristic: QLowEnergyCharacteristic, newValue: typing.Union[QtCore.QByteArray, bytes, bytearray], mode: 'QLowEnergyService.WriteMode' = ...) -> None: ... + @typing.overload + def contains(self, characteristic: QLowEnergyCharacteristic) -> bool: ... + @typing.overload + def contains(self, descriptor: QLowEnergyDescriptor) -> bool: ... + @typing.overload + def error(self) -> 'QLowEnergyService.ServiceError': ... + @typing.overload + def error(self, error: 'QLowEnergyService.ServiceError') -> None: ... + def discoverDetails(self) -> None: ... + def serviceName(self) -> str: ... + def serviceUuid(self) -> QBluetoothUuid: ... + def characteristics(self) -> typing.List[QLowEnergyCharacteristic]: ... + def characteristic(self, uuid: QBluetoothUuid) -> QLowEnergyCharacteristic: ... + def state(self) -> 'QLowEnergyService.ServiceState': ... + def type(self) -> 'QLowEnergyService.ServiceTypes': ... + def includedServices(self) -> typing.List[QBluetoothUuid]: ... + + +class QLowEnergyServiceData(sip.wrapper): + + class ServiceType(int): ... + ServiceTypePrimary = ... # type: 'QLowEnergyServiceData.ServiceType' + ServiceTypeSecondary = ... # type: 'QLowEnergyServiceData.ServiceType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QLowEnergyServiceData') -> None: ... + + def swap(self, other: 'QLowEnergyServiceData') -> None: ... + def isValid(self) -> bool: ... + def addCharacteristic(self, characteristic: QLowEnergyCharacteristicData) -> None: ... + def setCharacteristics(self, characteristics: typing.Iterable[QLowEnergyCharacteristicData]) -> None: ... + def characteristics(self) -> typing.List[QLowEnergyCharacteristicData]: ... + def addIncludedService(self, service: QLowEnergyService) -> None: ... + def setIncludedServices(self, services: typing.Iterable[QLowEnergyService]) -> None: ... + def includedServices(self) -> typing.List[QLowEnergyService]: ... + def setUuid(self, uuid: QBluetoothUuid) -> None: ... + def uuid(self) -> QBluetoothUuid: ... + def setType(self, type: 'QLowEnergyServiceData.ServiceType') -> None: ... + def type(self) -> 'QLowEnergyServiceData.ServiceType': ... diff --git a/tools/stubs/PyQt5/QtCore.pyi b/tools/stubs/PyQt5/QtCore.pyi new file mode 100644 index 000000000..73f51d758 --- /dev/null +++ b/tools/stubs/PyQt5/QtCore.pyi @@ -0,0 +1,9058 @@ +# The PEP 484 type hints stub file for the QtCore module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +# Support for QDate, QDateTime and QTime. +import datetime + +# Support for new-style signals and slots. +class pyqtSignal: + def __init__(self, *types, name: str = ...) -> None: ... + +class pyqtBoundSignal: + def emit(self, *args) -> None: ... + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[pyqtSignal, pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], pyqtBoundSignal] + + +class QtMsgType(int): ... +QtDebugMsg = ... # type: QtMsgType +QtWarningMsg = ... # type: QtMsgType +QtCriticalMsg = ... # type: QtMsgType +QtFatalMsg = ... # type: QtMsgType +QtSystemMsg = ... # type: QtMsgType +QtInfoMsg = ... # type: QtMsgType + + +class QCborKnownTags(int): ... +DateTimeString = ... # type: QCborKnownTags +UnixTime_t = ... # type: QCborKnownTags +PositiveBignum = ... # type: QCborKnownTags +NegativeBignum = ... # type: QCborKnownTags +Decimal = ... # type: QCborKnownTags +Bigfloat = ... # type: QCborKnownTags +COSE_Encrypt0 = ... # type: QCborKnownTags +COSE_Mac0 = ... # type: QCborKnownTags +COSE_Sign1 = ... # type: QCborKnownTags +ExpectedBase64url = ... # type: QCborKnownTags +ExpectedBase64 = ... # type: QCborKnownTags +ExpectedBase16 = ... # type: QCborKnownTags +EncodedCbor = ... # type: QCborKnownTags +Url = ... # type: QCborKnownTags +Base64url = ... # type: QCborKnownTags +Base64 = ... # type: QCborKnownTags +RegularExpression = ... # type: QCborKnownTags +MimeMessage = ... # type: QCborKnownTags +Uuid = ... # type: QCborKnownTags +COSE_Encrypt = ... # type: QCborKnownTags +COSE_Mac = ... # type: QCborKnownTags +COSE_Sign = ... # type: QCborKnownTags +Signature = ... # type: QCborKnownTags + + +class QCborSimpleType(int): ... +False_ = ... # type: QCborSimpleType +True_ = ... # type: QCborSimpleType +Null = ... # type: QCborSimpleType +Undefined = ... # type: QCborSimpleType + + +class Qt(sip.simplewrapper): + + class ChecksumType(int): ... + ChecksumIso3309 = ... # type: 'Qt.ChecksumType' + ChecksumItuV41 = ... # type: 'Qt.ChecksumType' + + class EnterKeyType(int): ... + EnterKeyDefault = ... # type: 'Qt.EnterKeyType' + EnterKeyReturn = ... # type: 'Qt.EnterKeyType' + EnterKeyDone = ... # type: 'Qt.EnterKeyType' + EnterKeyGo = ... # type: 'Qt.EnterKeyType' + EnterKeySend = ... # type: 'Qt.EnterKeyType' + EnterKeySearch = ... # type: 'Qt.EnterKeyType' + EnterKeyNext = ... # type: 'Qt.EnterKeyType' + EnterKeyPrevious = ... # type: 'Qt.EnterKeyType' + + class ItemSelectionOperation(int): ... + ReplaceSelection = ... # type: 'Qt.ItemSelectionOperation' + AddToSelection = ... # type: 'Qt.ItemSelectionOperation' + + class TabFocusBehavior(int): ... + NoTabFocus = ... # type: 'Qt.TabFocusBehavior' + TabFocusTextControls = ... # type: 'Qt.TabFocusBehavior' + TabFocusListControls = ... # type: 'Qt.TabFocusBehavior' + TabFocusAllControls = ... # type: 'Qt.TabFocusBehavior' + + class MouseEventFlag(int): ... + MouseEventCreatedDoubleClick = ... # type: 'Qt.MouseEventFlag' + + class MouseEventSource(int): ... + MouseEventNotSynthesized = ... # type: 'Qt.MouseEventSource' + MouseEventSynthesizedBySystem = ... # type: 'Qt.MouseEventSource' + MouseEventSynthesizedByQt = ... # type: 'Qt.MouseEventSource' + MouseEventSynthesizedByApplication = ... # type: 'Qt.MouseEventSource' + + class ScrollPhase(int): ... + ScrollBegin = ... # type: 'Qt.ScrollPhase' + ScrollUpdate = ... # type: 'Qt.ScrollPhase' + ScrollEnd = ... # type: 'Qt.ScrollPhase' + NoScrollPhase = ... # type: 'Qt.ScrollPhase' + ScrollMomentum = ... # type: 'Qt.ScrollPhase' + + class NativeGestureType(int): ... + BeginNativeGesture = ... # type: 'Qt.NativeGestureType' + EndNativeGesture = ... # type: 'Qt.NativeGestureType' + PanNativeGesture = ... # type: 'Qt.NativeGestureType' + ZoomNativeGesture = ... # type: 'Qt.NativeGestureType' + SmartZoomNativeGesture = ... # type: 'Qt.NativeGestureType' + RotateNativeGesture = ... # type: 'Qt.NativeGestureType' + SwipeNativeGesture = ... # type: 'Qt.NativeGestureType' + + class Edge(int): ... + TopEdge = ... # type: 'Qt.Edge' + LeftEdge = ... # type: 'Qt.Edge' + RightEdge = ... # type: 'Qt.Edge' + BottomEdge = ... # type: 'Qt.Edge' + + class ApplicationState(int): ... + ApplicationSuspended = ... # type: 'Qt.ApplicationState' + ApplicationHidden = ... # type: 'Qt.ApplicationState' + ApplicationInactive = ... # type: 'Qt.ApplicationState' + ApplicationActive = ... # type: 'Qt.ApplicationState' + + class HitTestAccuracy(int): ... + ExactHit = ... # type: 'Qt.HitTestAccuracy' + FuzzyHit = ... # type: 'Qt.HitTestAccuracy' + + class WhiteSpaceMode(int): ... + WhiteSpaceNormal = ... # type: 'Qt.WhiteSpaceMode' + WhiteSpacePre = ... # type: 'Qt.WhiteSpaceMode' + WhiteSpaceNoWrap = ... # type: 'Qt.WhiteSpaceMode' + WhiteSpaceModeUndefined = ... # type: 'Qt.WhiteSpaceMode' + + class FindChildOption(int): ... + FindDirectChildrenOnly = ... # type: 'Qt.FindChildOption' + FindChildrenRecursively = ... # type: 'Qt.FindChildOption' + + class ScreenOrientation(int): ... + PrimaryOrientation = ... # type: 'Qt.ScreenOrientation' + PortraitOrientation = ... # type: 'Qt.ScreenOrientation' + LandscapeOrientation = ... # type: 'Qt.ScreenOrientation' + InvertedPortraitOrientation = ... # type: 'Qt.ScreenOrientation' + InvertedLandscapeOrientation = ... # type: 'Qt.ScreenOrientation' + + class CursorMoveStyle(int): ... + LogicalMoveStyle = ... # type: 'Qt.CursorMoveStyle' + VisualMoveStyle = ... # type: 'Qt.CursorMoveStyle' + + class NavigationMode(int): ... + NavigationModeNone = ... # type: 'Qt.NavigationMode' + NavigationModeKeypadTabOrder = ... # type: 'Qt.NavigationMode' + NavigationModeKeypadDirectional = ... # type: 'Qt.NavigationMode' + NavigationModeCursorAuto = ... # type: 'Qt.NavigationMode' + NavigationModeCursorForceVisible = ... # type: 'Qt.NavigationMode' + + class GestureFlag(int): ... + DontStartGestureOnChildren = ... # type: 'Qt.GestureFlag' + ReceivePartialGestures = ... # type: 'Qt.GestureFlag' + IgnoredGesturesPropagateToParent = ... # type: 'Qt.GestureFlag' + + class GestureType(int): ... + TapGesture = ... # type: 'Qt.GestureType' + TapAndHoldGesture = ... # type: 'Qt.GestureType' + PanGesture = ... # type: 'Qt.GestureType' + PinchGesture = ... # type: 'Qt.GestureType' + SwipeGesture = ... # type: 'Qt.GestureType' + CustomGesture = ... # type: 'Qt.GestureType' + + class GestureState(int): ... + GestureStarted = ... # type: 'Qt.GestureState' + GestureUpdated = ... # type: 'Qt.GestureState' + GestureFinished = ... # type: 'Qt.GestureState' + GestureCanceled = ... # type: 'Qt.GestureState' + + class TouchPointState(int): ... + TouchPointPressed = ... # type: 'Qt.TouchPointState' + TouchPointMoved = ... # type: 'Qt.TouchPointState' + TouchPointStationary = ... # type: 'Qt.TouchPointState' + TouchPointReleased = ... # type: 'Qt.TouchPointState' + + class CoordinateSystem(int): ... + DeviceCoordinates = ... # type: 'Qt.CoordinateSystem' + LogicalCoordinates = ... # type: 'Qt.CoordinateSystem' + + class AnchorPoint(int): ... + AnchorLeft = ... # type: 'Qt.AnchorPoint' + AnchorHorizontalCenter = ... # type: 'Qt.AnchorPoint' + AnchorRight = ... # type: 'Qt.AnchorPoint' + AnchorTop = ... # type: 'Qt.AnchorPoint' + AnchorVerticalCenter = ... # type: 'Qt.AnchorPoint' + AnchorBottom = ... # type: 'Qt.AnchorPoint' + + class InputMethodHint(int): ... + ImhNone = ... # type: 'Qt.InputMethodHint' + ImhHiddenText = ... # type: 'Qt.InputMethodHint' + ImhNoAutoUppercase = ... # type: 'Qt.InputMethodHint' + ImhPreferNumbers = ... # type: 'Qt.InputMethodHint' + ImhPreferUppercase = ... # type: 'Qt.InputMethodHint' + ImhPreferLowercase = ... # type: 'Qt.InputMethodHint' + ImhNoPredictiveText = ... # type: 'Qt.InputMethodHint' + ImhDigitsOnly = ... # type: 'Qt.InputMethodHint' + ImhFormattedNumbersOnly = ... # type: 'Qt.InputMethodHint' + ImhUppercaseOnly = ... # type: 'Qt.InputMethodHint' + ImhLowercaseOnly = ... # type: 'Qt.InputMethodHint' + ImhDialableCharactersOnly = ... # type: 'Qt.InputMethodHint' + ImhEmailCharactersOnly = ... # type: 'Qt.InputMethodHint' + ImhUrlCharactersOnly = ... # type: 'Qt.InputMethodHint' + ImhExclusiveInputMask = ... # type: 'Qt.InputMethodHint' + ImhSensitiveData = ... # type: 'Qt.InputMethodHint' + ImhDate = ... # type: 'Qt.InputMethodHint' + ImhTime = ... # type: 'Qt.InputMethodHint' + ImhPreferLatin = ... # type: 'Qt.InputMethodHint' + ImhLatinOnly = ... # type: 'Qt.InputMethodHint' + ImhMultiLine = ... # type: 'Qt.InputMethodHint' + ImhNoEditMenu = ... # type: 'Qt.InputMethodHint' + ImhNoTextHandles = ... # type: 'Qt.InputMethodHint' + + class TileRule(int): ... + StretchTile = ... # type: 'Qt.TileRule' + RepeatTile = ... # type: 'Qt.TileRule' + RoundTile = ... # type: 'Qt.TileRule' + + class WindowFrameSection(int): ... + NoSection = ... # type: 'Qt.WindowFrameSection' + LeftSection = ... # type: 'Qt.WindowFrameSection' + TopLeftSection = ... # type: 'Qt.WindowFrameSection' + TopSection = ... # type: 'Qt.WindowFrameSection' + TopRightSection = ... # type: 'Qt.WindowFrameSection' + RightSection = ... # type: 'Qt.WindowFrameSection' + BottomRightSection = ... # type: 'Qt.WindowFrameSection' + BottomSection = ... # type: 'Qt.WindowFrameSection' + BottomLeftSection = ... # type: 'Qt.WindowFrameSection' + TitleBarArea = ... # type: 'Qt.WindowFrameSection' + + class SizeHint(int): ... + MinimumSize = ... # type: 'Qt.SizeHint' + PreferredSize = ... # type: 'Qt.SizeHint' + MaximumSize = ... # type: 'Qt.SizeHint' + MinimumDescent = ... # type: 'Qt.SizeHint' + + class SizeMode(int): ... + AbsoluteSize = ... # type: 'Qt.SizeMode' + RelativeSize = ... # type: 'Qt.SizeMode' + + class EventPriority(int): ... + HighEventPriority = ... # type: 'Qt.EventPriority' + NormalEventPriority = ... # type: 'Qt.EventPriority' + LowEventPriority = ... # type: 'Qt.EventPriority' + + class Axis(int): ... + XAxis = ... # type: 'Qt.Axis' + YAxis = ... # type: 'Qt.Axis' + ZAxis = ... # type: 'Qt.Axis' + + class MaskMode(int): ... + MaskInColor = ... # type: 'Qt.MaskMode' + MaskOutColor = ... # type: 'Qt.MaskMode' + + class TextInteractionFlag(int): ... + NoTextInteraction = ... # type: 'Qt.TextInteractionFlag' + TextSelectableByMouse = ... # type: 'Qt.TextInteractionFlag' + TextSelectableByKeyboard = ... # type: 'Qt.TextInteractionFlag' + LinksAccessibleByMouse = ... # type: 'Qt.TextInteractionFlag' + LinksAccessibleByKeyboard = ... # type: 'Qt.TextInteractionFlag' + TextEditable = ... # type: 'Qt.TextInteractionFlag' + TextEditorInteraction = ... # type: 'Qt.TextInteractionFlag' + TextBrowserInteraction = ... # type: 'Qt.TextInteractionFlag' + + class ItemSelectionMode(int): ... + ContainsItemShape = ... # type: 'Qt.ItemSelectionMode' + IntersectsItemShape = ... # type: 'Qt.ItemSelectionMode' + ContainsItemBoundingRect = ... # type: 'Qt.ItemSelectionMode' + IntersectsItemBoundingRect = ... # type: 'Qt.ItemSelectionMode' + + class ApplicationAttribute(int): ... + AA_ImmediateWidgetCreation = ... # type: 'Qt.ApplicationAttribute' + AA_MSWindowsUseDirect3DByDefault = ... # type: 'Qt.ApplicationAttribute' + AA_DontShowIconsInMenus = ... # type: 'Qt.ApplicationAttribute' + AA_NativeWindows = ... # type: 'Qt.ApplicationAttribute' + AA_DontCreateNativeWidgetSiblings = ... # type: 'Qt.ApplicationAttribute' + AA_MacPluginApplication = ... # type: 'Qt.ApplicationAttribute' + AA_DontUseNativeMenuBar = ... # type: 'Qt.ApplicationAttribute' + AA_MacDontSwapCtrlAndMeta = ... # type: 'Qt.ApplicationAttribute' + AA_X11InitThreads = ... # type: 'Qt.ApplicationAttribute' + AA_Use96Dpi = ... # type: 'Qt.ApplicationAttribute' + AA_SynthesizeTouchForUnhandledMouseEvents = ... # type: 'Qt.ApplicationAttribute' + AA_SynthesizeMouseForUnhandledTouchEvents = ... # type: 'Qt.ApplicationAttribute' + AA_UseHighDpiPixmaps = ... # type: 'Qt.ApplicationAttribute' + AA_ForceRasterWidgets = ... # type: 'Qt.ApplicationAttribute' + AA_UseDesktopOpenGL = ... # type: 'Qt.ApplicationAttribute' + AA_UseOpenGLES = ... # type: 'Qt.ApplicationAttribute' + AA_UseSoftwareOpenGL = ... # type: 'Qt.ApplicationAttribute' + AA_ShareOpenGLContexts = ... # type: 'Qt.ApplicationAttribute' + AA_SetPalette = ... # type: 'Qt.ApplicationAttribute' + AA_EnableHighDpiScaling = ... # type: 'Qt.ApplicationAttribute' + AA_DisableHighDpiScaling = ... # type: 'Qt.ApplicationAttribute' + AA_PluginApplication = ... # type: 'Qt.ApplicationAttribute' + AA_UseStyleSheetPropagationInWidgetStyles = ... # type: 'Qt.ApplicationAttribute' + AA_DontUseNativeDialogs = ... # type: 'Qt.ApplicationAttribute' + AA_SynthesizeMouseForUnhandledTabletEvents = ... # type: 'Qt.ApplicationAttribute' + AA_CompressHighFrequencyEvents = ... # type: 'Qt.ApplicationAttribute' + AA_DontCheckOpenGLContextThreadAffinity = ... # type: 'Qt.ApplicationAttribute' + AA_DisableShaderDiskCache = ... # type: 'Qt.ApplicationAttribute' + AA_DontShowShortcutsInContextMenus = ... # type: 'Qt.ApplicationAttribute' + AA_CompressTabletEvents = ... # type: 'Qt.ApplicationAttribute' + AA_DisableWindowContextHelpButton = ... # type: 'Qt.ApplicationAttribute' + + class WindowModality(int): ... + NonModal = ... # type: 'Qt.WindowModality' + WindowModal = ... # type: 'Qt.WindowModality' + ApplicationModal = ... # type: 'Qt.WindowModality' + + class MatchFlag(int): ... + MatchExactly = ... # type: 'Qt.MatchFlag' + MatchFixedString = ... # type: 'Qt.MatchFlag' + MatchContains = ... # type: 'Qt.MatchFlag' + MatchStartsWith = ... # type: 'Qt.MatchFlag' + MatchEndsWith = ... # type: 'Qt.MatchFlag' + MatchRegExp = ... # type: 'Qt.MatchFlag' + MatchWildcard = ... # type: 'Qt.MatchFlag' + MatchCaseSensitive = ... # type: 'Qt.MatchFlag' + MatchWrap = ... # type: 'Qt.MatchFlag' + MatchRecursive = ... # type: 'Qt.MatchFlag' + + class ItemFlag(int): ... + NoItemFlags = ... # type: 'Qt.ItemFlag' + ItemIsSelectable = ... # type: 'Qt.ItemFlag' + ItemIsEditable = ... # type: 'Qt.ItemFlag' + ItemIsDragEnabled = ... # type: 'Qt.ItemFlag' + ItemIsDropEnabled = ... # type: 'Qt.ItemFlag' + ItemIsUserCheckable = ... # type: 'Qt.ItemFlag' + ItemIsEnabled = ... # type: 'Qt.ItemFlag' + ItemIsTristate = ... # type: 'Qt.ItemFlag' + ItemNeverHasChildren = ... # type: 'Qt.ItemFlag' + ItemIsUserTristate = ... # type: 'Qt.ItemFlag' + ItemIsAutoTristate = ... # type: 'Qt.ItemFlag' + + class ItemDataRole(int): ... + DisplayRole = ... # type: 'Qt.ItemDataRole' + DecorationRole = ... # type: 'Qt.ItemDataRole' + EditRole = ... # type: 'Qt.ItemDataRole' + ToolTipRole = ... # type: 'Qt.ItemDataRole' + StatusTipRole = ... # type: 'Qt.ItemDataRole' + WhatsThisRole = ... # type: 'Qt.ItemDataRole' + FontRole = ... # type: 'Qt.ItemDataRole' + TextAlignmentRole = ... # type: 'Qt.ItemDataRole' + BackgroundRole = ... # type: 'Qt.ItemDataRole' + BackgroundColorRole = ... # type: 'Qt.ItemDataRole' + ForegroundRole = ... # type: 'Qt.ItemDataRole' + TextColorRole = ... # type: 'Qt.ItemDataRole' + CheckStateRole = ... # type: 'Qt.ItemDataRole' + AccessibleTextRole = ... # type: 'Qt.ItemDataRole' + AccessibleDescriptionRole = ... # type: 'Qt.ItemDataRole' + SizeHintRole = ... # type: 'Qt.ItemDataRole' + InitialSortOrderRole = ... # type: 'Qt.ItemDataRole' + UserRole = ... # type: 'Qt.ItemDataRole' + + class CheckState(int): ... + Unchecked = ... # type: 'Qt.CheckState' + PartiallyChecked = ... # type: 'Qt.CheckState' + Checked = ... # type: 'Qt.CheckState' + + class DropAction(int): ... + CopyAction = ... # type: 'Qt.DropAction' + MoveAction = ... # type: 'Qt.DropAction' + LinkAction = ... # type: 'Qt.DropAction' + ActionMask = ... # type: 'Qt.DropAction' + TargetMoveAction = ... # type: 'Qt.DropAction' + IgnoreAction = ... # type: 'Qt.DropAction' + + class LayoutDirection(int): ... + LeftToRight = ... # type: 'Qt.LayoutDirection' + RightToLeft = ... # type: 'Qt.LayoutDirection' + LayoutDirectionAuto = ... # type: 'Qt.LayoutDirection' + + class ToolButtonStyle(int): ... + ToolButtonIconOnly = ... # type: 'Qt.ToolButtonStyle' + ToolButtonTextOnly = ... # type: 'Qt.ToolButtonStyle' + ToolButtonTextBesideIcon = ... # type: 'Qt.ToolButtonStyle' + ToolButtonTextUnderIcon = ... # type: 'Qt.ToolButtonStyle' + ToolButtonFollowStyle = ... # type: 'Qt.ToolButtonStyle' + + class InputMethodQuery(int): ... + ImMicroFocus = ... # type: 'Qt.InputMethodQuery' + ImFont = ... # type: 'Qt.InputMethodQuery' + ImCursorPosition = ... # type: 'Qt.InputMethodQuery' + ImSurroundingText = ... # type: 'Qt.InputMethodQuery' + ImCurrentSelection = ... # type: 'Qt.InputMethodQuery' + ImMaximumTextLength = ... # type: 'Qt.InputMethodQuery' + ImAnchorPosition = ... # type: 'Qt.InputMethodQuery' + ImEnabled = ... # type: 'Qt.InputMethodQuery' + ImCursorRectangle = ... # type: 'Qt.InputMethodQuery' + ImHints = ... # type: 'Qt.InputMethodQuery' + ImPreferredLanguage = ... # type: 'Qt.InputMethodQuery' + ImPlatformData = ... # type: 'Qt.InputMethodQuery' + ImQueryInput = ... # type: 'Qt.InputMethodQuery' + ImQueryAll = ... # type: 'Qt.InputMethodQuery' + ImAbsolutePosition = ... # type: 'Qt.InputMethodQuery' + ImTextBeforeCursor = ... # type: 'Qt.InputMethodQuery' + ImTextAfterCursor = ... # type: 'Qt.InputMethodQuery' + ImEnterKeyType = ... # type: 'Qt.InputMethodQuery' + ImAnchorRectangle = ... # type: 'Qt.InputMethodQuery' + ImInputItemClipRectangle = ... # type: 'Qt.InputMethodQuery' + + class ContextMenuPolicy(int): ... + NoContextMenu = ... # type: 'Qt.ContextMenuPolicy' + PreventContextMenu = ... # type: 'Qt.ContextMenuPolicy' + DefaultContextMenu = ... # type: 'Qt.ContextMenuPolicy' + ActionsContextMenu = ... # type: 'Qt.ContextMenuPolicy' + CustomContextMenu = ... # type: 'Qt.ContextMenuPolicy' + + class FocusReason(int): ... + MouseFocusReason = ... # type: 'Qt.FocusReason' + TabFocusReason = ... # type: 'Qt.FocusReason' + BacktabFocusReason = ... # type: 'Qt.FocusReason' + ActiveWindowFocusReason = ... # type: 'Qt.FocusReason' + PopupFocusReason = ... # type: 'Qt.FocusReason' + ShortcutFocusReason = ... # type: 'Qt.FocusReason' + MenuBarFocusReason = ... # type: 'Qt.FocusReason' + OtherFocusReason = ... # type: 'Qt.FocusReason' + NoFocusReason = ... # type: 'Qt.FocusReason' + + class TransformationMode(int): ... + FastTransformation = ... # type: 'Qt.TransformationMode' + SmoothTransformation = ... # type: 'Qt.TransformationMode' + + class ClipOperation(int): ... + NoClip = ... # type: 'Qt.ClipOperation' + ReplaceClip = ... # type: 'Qt.ClipOperation' + IntersectClip = ... # type: 'Qt.ClipOperation' + + class FillRule(int): ... + OddEvenFill = ... # type: 'Qt.FillRule' + WindingFill = ... # type: 'Qt.FillRule' + + class ShortcutContext(int): ... + WidgetShortcut = ... # type: 'Qt.ShortcutContext' + WindowShortcut = ... # type: 'Qt.ShortcutContext' + ApplicationShortcut = ... # type: 'Qt.ShortcutContext' + WidgetWithChildrenShortcut = ... # type: 'Qt.ShortcutContext' + + class ConnectionType(int): ... + AutoConnection = ... # type: 'Qt.ConnectionType' + DirectConnection = ... # type: 'Qt.ConnectionType' + QueuedConnection = ... # type: 'Qt.ConnectionType' + BlockingQueuedConnection = ... # type: 'Qt.ConnectionType' + UniqueConnection = ... # type: 'Qt.ConnectionType' + + class Corner(int): ... + TopLeftCorner = ... # type: 'Qt.Corner' + TopRightCorner = ... # type: 'Qt.Corner' + BottomLeftCorner = ... # type: 'Qt.Corner' + BottomRightCorner = ... # type: 'Qt.Corner' + + class CaseSensitivity(int): ... + CaseInsensitive = ... # type: 'Qt.CaseSensitivity' + CaseSensitive = ... # type: 'Qt.CaseSensitivity' + + class ScrollBarPolicy(int): ... + ScrollBarAsNeeded = ... # type: 'Qt.ScrollBarPolicy' + ScrollBarAlwaysOff = ... # type: 'Qt.ScrollBarPolicy' + ScrollBarAlwaysOn = ... # type: 'Qt.ScrollBarPolicy' + + class DayOfWeek(int): ... + Monday = ... # type: 'Qt.DayOfWeek' + Tuesday = ... # type: 'Qt.DayOfWeek' + Wednesday = ... # type: 'Qt.DayOfWeek' + Thursday = ... # type: 'Qt.DayOfWeek' + Friday = ... # type: 'Qt.DayOfWeek' + Saturday = ... # type: 'Qt.DayOfWeek' + Sunday = ... # type: 'Qt.DayOfWeek' + + class TimeSpec(int): ... + LocalTime = ... # type: 'Qt.TimeSpec' + UTC = ... # type: 'Qt.TimeSpec' + OffsetFromUTC = ... # type: 'Qt.TimeSpec' + TimeZone = ... # type: 'Qt.TimeSpec' + + class DateFormat(int): ... + TextDate = ... # type: 'Qt.DateFormat' + ISODate = ... # type: 'Qt.DateFormat' + ISODateWithMs = ... # type: 'Qt.DateFormat' + LocalDate = ... # type: 'Qt.DateFormat' + SystemLocaleDate = ... # type: 'Qt.DateFormat' + LocaleDate = ... # type: 'Qt.DateFormat' + SystemLocaleShortDate = ... # type: 'Qt.DateFormat' + SystemLocaleLongDate = ... # type: 'Qt.DateFormat' + DefaultLocaleShortDate = ... # type: 'Qt.DateFormat' + DefaultLocaleLongDate = ... # type: 'Qt.DateFormat' + RFC2822Date = ... # type: 'Qt.DateFormat' + + class ToolBarArea(int): ... + LeftToolBarArea = ... # type: 'Qt.ToolBarArea' + RightToolBarArea = ... # type: 'Qt.ToolBarArea' + TopToolBarArea = ... # type: 'Qt.ToolBarArea' + BottomToolBarArea = ... # type: 'Qt.ToolBarArea' + ToolBarArea_Mask = ... # type: 'Qt.ToolBarArea' + AllToolBarAreas = ... # type: 'Qt.ToolBarArea' + NoToolBarArea = ... # type: 'Qt.ToolBarArea' + + class TimerType(int): ... + PreciseTimer = ... # type: 'Qt.TimerType' + CoarseTimer = ... # type: 'Qt.TimerType' + VeryCoarseTimer = ... # type: 'Qt.TimerType' + + class DockWidgetArea(int): ... + LeftDockWidgetArea = ... # type: 'Qt.DockWidgetArea' + RightDockWidgetArea = ... # type: 'Qt.DockWidgetArea' + TopDockWidgetArea = ... # type: 'Qt.DockWidgetArea' + BottomDockWidgetArea = ... # type: 'Qt.DockWidgetArea' + DockWidgetArea_Mask = ... # type: 'Qt.DockWidgetArea' + AllDockWidgetAreas = ... # type: 'Qt.DockWidgetArea' + NoDockWidgetArea = ... # type: 'Qt.DockWidgetArea' + + class AspectRatioMode(int): ... + IgnoreAspectRatio = ... # type: 'Qt.AspectRatioMode' + KeepAspectRatio = ... # type: 'Qt.AspectRatioMode' + KeepAspectRatioByExpanding = ... # type: 'Qt.AspectRatioMode' + + class TextFormat(int): ... + PlainText = ... # type: 'Qt.TextFormat' + RichText = ... # type: 'Qt.TextFormat' + AutoText = ... # type: 'Qt.TextFormat' + + class CursorShape(int): ... + ArrowCursor = ... # type: 'Qt.CursorShape' + UpArrowCursor = ... # type: 'Qt.CursorShape' + CrossCursor = ... # type: 'Qt.CursorShape' + WaitCursor = ... # type: 'Qt.CursorShape' + IBeamCursor = ... # type: 'Qt.CursorShape' + SizeVerCursor = ... # type: 'Qt.CursorShape' + SizeHorCursor = ... # type: 'Qt.CursorShape' + SizeBDiagCursor = ... # type: 'Qt.CursorShape' + SizeFDiagCursor = ... # type: 'Qt.CursorShape' + SizeAllCursor = ... # type: 'Qt.CursorShape' + BlankCursor = ... # type: 'Qt.CursorShape' + SplitVCursor = ... # type: 'Qt.CursorShape' + SplitHCursor = ... # type: 'Qt.CursorShape' + PointingHandCursor = ... # type: 'Qt.CursorShape' + ForbiddenCursor = ... # type: 'Qt.CursorShape' + OpenHandCursor = ... # type: 'Qt.CursorShape' + ClosedHandCursor = ... # type: 'Qt.CursorShape' + WhatsThisCursor = ... # type: 'Qt.CursorShape' + BusyCursor = ... # type: 'Qt.CursorShape' + LastCursor = ... # type: 'Qt.CursorShape' + BitmapCursor = ... # type: 'Qt.CursorShape' + CustomCursor = ... # type: 'Qt.CursorShape' + DragCopyCursor = ... # type: 'Qt.CursorShape' + DragMoveCursor = ... # type: 'Qt.CursorShape' + DragLinkCursor = ... # type: 'Qt.CursorShape' + + class UIEffect(int): ... + UI_General = ... # type: 'Qt.UIEffect' + UI_AnimateMenu = ... # type: 'Qt.UIEffect' + UI_FadeMenu = ... # type: 'Qt.UIEffect' + UI_AnimateCombo = ... # type: 'Qt.UIEffect' + UI_AnimateTooltip = ... # type: 'Qt.UIEffect' + UI_FadeTooltip = ... # type: 'Qt.UIEffect' + UI_AnimateToolBox = ... # type: 'Qt.UIEffect' + + class BrushStyle(int): ... + NoBrush = ... # type: 'Qt.BrushStyle' + SolidPattern = ... # type: 'Qt.BrushStyle' + Dense1Pattern = ... # type: 'Qt.BrushStyle' + Dense2Pattern = ... # type: 'Qt.BrushStyle' + Dense3Pattern = ... # type: 'Qt.BrushStyle' + Dense4Pattern = ... # type: 'Qt.BrushStyle' + Dense5Pattern = ... # type: 'Qt.BrushStyle' + Dense6Pattern = ... # type: 'Qt.BrushStyle' + Dense7Pattern = ... # type: 'Qt.BrushStyle' + HorPattern = ... # type: 'Qt.BrushStyle' + VerPattern = ... # type: 'Qt.BrushStyle' + CrossPattern = ... # type: 'Qt.BrushStyle' + BDiagPattern = ... # type: 'Qt.BrushStyle' + FDiagPattern = ... # type: 'Qt.BrushStyle' + DiagCrossPattern = ... # type: 'Qt.BrushStyle' + LinearGradientPattern = ... # type: 'Qt.BrushStyle' + RadialGradientPattern = ... # type: 'Qt.BrushStyle' + ConicalGradientPattern = ... # type: 'Qt.BrushStyle' + TexturePattern = ... # type: 'Qt.BrushStyle' + + class PenJoinStyle(int): ... + MiterJoin = ... # type: 'Qt.PenJoinStyle' + BevelJoin = ... # type: 'Qt.PenJoinStyle' + RoundJoin = ... # type: 'Qt.PenJoinStyle' + MPenJoinStyle = ... # type: 'Qt.PenJoinStyle' + SvgMiterJoin = ... # type: 'Qt.PenJoinStyle' + + class PenCapStyle(int): ... + FlatCap = ... # type: 'Qt.PenCapStyle' + SquareCap = ... # type: 'Qt.PenCapStyle' + RoundCap = ... # type: 'Qt.PenCapStyle' + MPenCapStyle = ... # type: 'Qt.PenCapStyle' + + class PenStyle(int): ... + NoPen = ... # type: 'Qt.PenStyle' + SolidLine = ... # type: 'Qt.PenStyle' + DashLine = ... # type: 'Qt.PenStyle' + DotLine = ... # type: 'Qt.PenStyle' + DashDotLine = ... # type: 'Qt.PenStyle' + DashDotDotLine = ... # type: 'Qt.PenStyle' + CustomDashLine = ... # type: 'Qt.PenStyle' + MPenStyle = ... # type: 'Qt.PenStyle' + + class ArrowType(int): ... + NoArrow = ... # type: 'Qt.ArrowType' + UpArrow = ... # type: 'Qt.ArrowType' + DownArrow = ... # type: 'Qt.ArrowType' + LeftArrow = ... # type: 'Qt.ArrowType' + RightArrow = ... # type: 'Qt.ArrowType' + + class Key(int): ... + Key_Escape = ... # type: 'Qt.Key' + Key_Tab = ... # type: 'Qt.Key' + Key_Backtab = ... # type: 'Qt.Key' + Key_Backspace = ... # type: 'Qt.Key' + Key_Return = ... # type: 'Qt.Key' + Key_Enter = ... # type: 'Qt.Key' + Key_Insert = ... # type: 'Qt.Key' + Key_Delete = ... # type: 'Qt.Key' + Key_Pause = ... # type: 'Qt.Key' + Key_Print = ... # type: 'Qt.Key' + Key_SysReq = ... # type: 'Qt.Key' + Key_Clear = ... # type: 'Qt.Key' + Key_Home = ... # type: 'Qt.Key' + Key_End = ... # type: 'Qt.Key' + Key_Left = ... # type: 'Qt.Key' + Key_Up = ... # type: 'Qt.Key' + Key_Right = ... # type: 'Qt.Key' + Key_Down = ... # type: 'Qt.Key' + Key_PageUp = ... # type: 'Qt.Key' + Key_PageDown = ... # type: 'Qt.Key' + Key_Shift = ... # type: 'Qt.Key' + Key_Control = ... # type: 'Qt.Key' + Key_Meta = ... # type: 'Qt.Key' + Key_Alt = ... # type: 'Qt.Key' + Key_CapsLock = ... # type: 'Qt.Key' + Key_NumLock = ... # type: 'Qt.Key' + Key_ScrollLock = ... # type: 'Qt.Key' + Key_F1 = ... # type: 'Qt.Key' + Key_F2 = ... # type: 'Qt.Key' + Key_F3 = ... # type: 'Qt.Key' + Key_F4 = ... # type: 'Qt.Key' + Key_F5 = ... # type: 'Qt.Key' + Key_F6 = ... # type: 'Qt.Key' + Key_F7 = ... # type: 'Qt.Key' + Key_F8 = ... # type: 'Qt.Key' + Key_F9 = ... # type: 'Qt.Key' + Key_F10 = ... # type: 'Qt.Key' + Key_F11 = ... # type: 'Qt.Key' + Key_F12 = ... # type: 'Qt.Key' + Key_F13 = ... # type: 'Qt.Key' + Key_F14 = ... # type: 'Qt.Key' + Key_F15 = ... # type: 'Qt.Key' + Key_F16 = ... # type: 'Qt.Key' + Key_F17 = ... # type: 'Qt.Key' + Key_F18 = ... # type: 'Qt.Key' + Key_F19 = ... # type: 'Qt.Key' + Key_F20 = ... # type: 'Qt.Key' + Key_F21 = ... # type: 'Qt.Key' + Key_F22 = ... # type: 'Qt.Key' + Key_F23 = ... # type: 'Qt.Key' + Key_F24 = ... # type: 'Qt.Key' + Key_F25 = ... # type: 'Qt.Key' + Key_F26 = ... # type: 'Qt.Key' + Key_F27 = ... # type: 'Qt.Key' + Key_F28 = ... # type: 'Qt.Key' + Key_F29 = ... # type: 'Qt.Key' + Key_F30 = ... # type: 'Qt.Key' + Key_F31 = ... # type: 'Qt.Key' + Key_F32 = ... # type: 'Qt.Key' + Key_F33 = ... # type: 'Qt.Key' + Key_F34 = ... # type: 'Qt.Key' + Key_F35 = ... # type: 'Qt.Key' + Key_Super_L = ... # type: 'Qt.Key' + Key_Super_R = ... # type: 'Qt.Key' + Key_Menu = ... # type: 'Qt.Key' + Key_Hyper_L = ... # type: 'Qt.Key' + Key_Hyper_R = ... # type: 'Qt.Key' + Key_Help = ... # type: 'Qt.Key' + Key_Direction_L = ... # type: 'Qt.Key' + Key_Direction_R = ... # type: 'Qt.Key' + Key_Space = ... # type: 'Qt.Key' + Key_Any = ... # type: 'Qt.Key' + Key_Exclam = ... # type: 'Qt.Key' + Key_QuoteDbl = ... # type: 'Qt.Key' + Key_NumberSign = ... # type: 'Qt.Key' + Key_Dollar = ... # type: 'Qt.Key' + Key_Percent = ... # type: 'Qt.Key' + Key_Ampersand = ... # type: 'Qt.Key' + Key_Apostrophe = ... # type: 'Qt.Key' + Key_ParenLeft = ... # type: 'Qt.Key' + Key_ParenRight = ... # type: 'Qt.Key' + Key_Asterisk = ... # type: 'Qt.Key' + Key_Plus = ... # type: 'Qt.Key' + Key_Comma = ... # type: 'Qt.Key' + Key_Minus = ... # type: 'Qt.Key' + Key_Period = ... # type: 'Qt.Key' + Key_Slash = ... # type: 'Qt.Key' + Key_0 = ... # type: 'Qt.Key' + Key_1 = ... # type: 'Qt.Key' + Key_2 = ... # type: 'Qt.Key' + Key_3 = ... # type: 'Qt.Key' + Key_4 = ... # type: 'Qt.Key' + Key_5 = ... # type: 'Qt.Key' + Key_6 = ... # type: 'Qt.Key' + Key_7 = ... # type: 'Qt.Key' + Key_8 = ... # type: 'Qt.Key' + Key_9 = ... # type: 'Qt.Key' + Key_Colon = ... # type: 'Qt.Key' + Key_Semicolon = ... # type: 'Qt.Key' + Key_Less = ... # type: 'Qt.Key' + Key_Equal = ... # type: 'Qt.Key' + Key_Greater = ... # type: 'Qt.Key' + Key_Question = ... # type: 'Qt.Key' + Key_At = ... # type: 'Qt.Key' + Key_A = ... # type: 'Qt.Key' + Key_B = ... # type: 'Qt.Key' + Key_C = ... # type: 'Qt.Key' + Key_D = ... # type: 'Qt.Key' + Key_E = ... # type: 'Qt.Key' + Key_F = ... # type: 'Qt.Key' + Key_G = ... # type: 'Qt.Key' + Key_H = ... # type: 'Qt.Key' + Key_I = ... # type: 'Qt.Key' + Key_J = ... # type: 'Qt.Key' + Key_K = ... # type: 'Qt.Key' + Key_L = ... # type: 'Qt.Key' + Key_M = ... # type: 'Qt.Key' + Key_N = ... # type: 'Qt.Key' + Key_O = ... # type: 'Qt.Key' + Key_P = ... # type: 'Qt.Key' + Key_Q = ... # type: 'Qt.Key' + Key_R = ... # type: 'Qt.Key' + Key_S = ... # type: 'Qt.Key' + Key_T = ... # type: 'Qt.Key' + Key_U = ... # type: 'Qt.Key' + Key_V = ... # type: 'Qt.Key' + Key_W = ... # type: 'Qt.Key' + Key_X = ... # type: 'Qt.Key' + Key_Y = ... # type: 'Qt.Key' + Key_Z = ... # type: 'Qt.Key' + Key_BracketLeft = ... # type: 'Qt.Key' + Key_Backslash = ... # type: 'Qt.Key' + Key_BracketRight = ... # type: 'Qt.Key' + Key_AsciiCircum = ... # type: 'Qt.Key' + Key_Underscore = ... # type: 'Qt.Key' + Key_QuoteLeft = ... # type: 'Qt.Key' + Key_BraceLeft = ... # type: 'Qt.Key' + Key_Bar = ... # type: 'Qt.Key' + Key_BraceRight = ... # type: 'Qt.Key' + Key_AsciiTilde = ... # type: 'Qt.Key' + Key_nobreakspace = ... # type: 'Qt.Key' + Key_exclamdown = ... # type: 'Qt.Key' + Key_cent = ... # type: 'Qt.Key' + Key_sterling = ... # type: 'Qt.Key' + Key_currency = ... # type: 'Qt.Key' + Key_yen = ... # type: 'Qt.Key' + Key_brokenbar = ... # type: 'Qt.Key' + Key_section = ... # type: 'Qt.Key' + Key_diaeresis = ... # type: 'Qt.Key' + Key_copyright = ... # type: 'Qt.Key' + Key_ordfeminine = ... # type: 'Qt.Key' + Key_guillemotleft = ... # type: 'Qt.Key' + Key_notsign = ... # type: 'Qt.Key' + Key_hyphen = ... # type: 'Qt.Key' + Key_registered = ... # type: 'Qt.Key' + Key_macron = ... # type: 'Qt.Key' + Key_degree = ... # type: 'Qt.Key' + Key_plusminus = ... # type: 'Qt.Key' + Key_twosuperior = ... # type: 'Qt.Key' + Key_threesuperior = ... # type: 'Qt.Key' + Key_acute = ... # type: 'Qt.Key' + Key_mu = ... # type: 'Qt.Key' + Key_paragraph = ... # type: 'Qt.Key' + Key_periodcentered = ... # type: 'Qt.Key' + Key_cedilla = ... # type: 'Qt.Key' + Key_onesuperior = ... # type: 'Qt.Key' + Key_masculine = ... # type: 'Qt.Key' + Key_guillemotright = ... # type: 'Qt.Key' + Key_onequarter = ... # type: 'Qt.Key' + Key_onehalf = ... # type: 'Qt.Key' + Key_threequarters = ... # type: 'Qt.Key' + Key_questiondown = ... # type: 'Qt.Key' + Key_Agrave = ... # type: 'Qt.Key' + Key_Aacute = ... # type: 'Qt.Key' + Key_Acircumflex = ... # type: 'Qt.Key' + Key_Atilde = ... # type: 'Qt.Key' + Key_Adiaeresis = ... # type: 'Qt.Key' + Key_Aring = ... # type: 'Qt.Key' + Key_AE = ... # type: 'Qt.Key' + Key_Ccedilla = ... # type: 'Qt.Key' + Key_Egrave = ... # type: 'Qt.Key' + Key_Eacute = ... # type: 'Qt.Key' + Key_Ecircumflex = ... # type: 'Qt.Key' + Key_Ediaeresis = ... # type: 'Qt.Key' + Key_Igrave = ... # type: 'Qt.Key' + Key_Iacute = ... # type: 'Qt.Key' + Key_Icircumflex = ... # type: 'Qt.Key' + Key_Idiaeresis = ... # type: 'Qt.Key' + Key_ETH = ... # type: 'Qt.Key' + Key_Ntilde = ... # type: 'Qt.Key' + Key_Ograve = ... # type: 'Qt.Key' + Key_Oacute = ... # type: 'Qt.Key' + Key_Ocircumflex = ... # type: 'Qt.Key' + Key_Otilde = ... # type: 'Qt.Key' + Key_Odiaeresis = ... # type: 'Qt.Key' + Key_multiply = ... # type: 'Qt.Key' + Key_Ooblique = ... # type: 'Qt.Key' + Key_Ugrave = ... # type: 'Qt.Key' + Key_Uacute = ... # type: 'Qt.Key' + Key_Ucircumflex = ... # type: 'Qt.Key' + Key_Udiaeresis = ... # type: 'Qt.Key' + Key_Yacute = ... # type: 'Qt.Key' + Key_THORN = ... # type: 'Qt.Key' + Key_ssharp = ... # type: 'Qt.Key' + Key_division = ... # type: 'Qt.Key' + Key_ydiaeresis = ... # type: 'Qt.Key' + Key_AltGr = ... # type: 'Qt.Key' + Key_Multi_key = ... # type: 'Qt.Key' + Key_Codeinput = ... # type: 'Qt.Key' + Key_SingleCandidate = ... # type: 'Qt.Key' + Key_MultipleCandidate = ... # type: 'Qt.Key' + Key_PreviousCandidate = ... # type: 'Qt.Key' + Key_Mode_switch = ... # type: 'Qt.Key' + Key_Kanji = ... # type: 'Qt.Key' + Key_Muhenkan = ... # type: 'Qt.Key' + Key_Henkan = ... # type: 'Qt.Key' + Key_Romaji = ... # type: 'Qt.Key' + Key_Hiragana = ... # type: 'Qt.Key' + Key_Katakana = ... # type: 'Qt.Key' + Key_Hiragana_Katakana = ... # type: 'Qt.Key' + Key_Zenkaku = ... # type: 'Qt.Key' + Key_Hankaku = ... # type: 'Qt.Key' + Key_Zenkaku_Hankaku = ... # type: 'Qt.Key' + Key_Touroku = ... # type: 'Qt.Key' + Key_Massyo = ... # type: 'Qt.Key' + Key_Kana_Lock = ... # type: 'Qt.Key' + Key_Kana_Shift = ... # type: 'Qt.Key' + Key_Eisu_Shift = ... # type: 'Qt.Key' + Key_Eisu_toggle = ... # type: 'Qt.Key' + Key_Hangul = ... # type: 'Qt.Key' + Key_Hangul_Start = ... # type: 'Qt.Key' + Key_Hangul_End = ... # type: 'Qt.Key' + Key_Hangul_Hanja = ... # type: 'Qt.Key' + Key_Hangul_Jamo = ... # type: 'Qt.Key' + Key_Hangul_Romaja = ... # type: 'Qt.Key' + Key_Hangul_Jeonja = ... # type: 'Qt.Key' + Key_Hangul_Banja = ... # type: 'Qt.Key' + Key_Hangul_PreHanja = ... # type: 'Qt.Key' + Key_Hangul_PostHanja = ... # type: 'Qt.Key' + Key_Hangul_Special = ... # type: 'Qt.Key' + Key_Dead_Grave = ... # type: 'Qt.Key' + Key_Dead_Acute = ... # type: 'Qt.Key' + Key_Dead_Circumflex = ... # type: 'Qt.Key' + Key_Dead_Tilde = ... # type: 'Qt.Key' + Key_Dead_Macron = ... # type: 'Qt.Key' + Key_Dead_Breve = ... # type: 'Qt.Key' + Key_Dead_Abovedot = ... # type: 'Qt.Key' + Key_Dead_Diaeresis = ... # type: 'Qt.Key' + Key_Dead_Abovering = ... # type: 'Qt.Key' + Key_Dead_Doubleacute = ... # type: 'Qt.Key' + Key_Dead_Caron = ... # type: 'Qt.Key' + Key_Dead_Cedilla = ... # type: 'Qt.Key' + Key_Dead_Ogonek = ... # type: 'Qt.Key' + Key_Dead_Iota = ... # type: 'Qt.Key' + Key_Dead_Voiced_Sound = ... # type: 'Qt.Key' + Key_Dead_Semivoiced_Sound = ... # type: 'Qt.Key' + Key_Dead_Belowdot = ... # type: 'Qt.Key' + Key_Dead_Hook = ... # type: 'Qt.Key' + Key_Dead_Horn = ... # type: 'Qt.Key' + Key_Back = ... # type: 'Qt.Key' + Key_Forward = ... # type: 'Qt.Key' + Key_Stop = ... # type: 'Qt.Key' + Key_Refresh = ... # type: 'Qt.Key' + Key_VolumeDown = ... # type: 'Qt.Key' + Key_VolumeMute = ... # type: 'Qt.Key' + Key_VolumeUp = ... # type: 'Qt.Key' + Key_BassBoost = ... # type: 'Qt.Key' + Key_BassUp = ... # type: 'Qt.Key' + Key_BassDown = ... # type: 'Qt.Key' + Key_TrebleUp = ... # type: 'Qt.Key' + Key_TrebleDown = ... # type: 'Qt.Key' + Key_MediaPlay = ... # type: 'Qt.Key' + Key_MediaStop = ... # type: 'Qt.Key' + Key_MediaPrevious = ... # type: 'Qt.Key' + Key_MediaNext = ... # type: 'Qt.Key' + Key_MediaRecord = ... # type: 'Qt.Key' + Key_HomePage = ... # type: 'Qt.Key' + Key_Favorites = ... # type: 'Qt.Key' + Key_Search = ... # type: 'Qt.Key' + Key_Standby = ... # type: 'Qt.Key' + Key_OpenUrl = ... # type: 'Qt.Key' + Key_LaunchMail = ... # type: 'Qt.Key' + Key_LaunchMedia = ... # type: 'Qt.Key' + Key_Launch0 = ... # type: 'Qt.Key' + Key_Launch1 = ... # type: 'Qt.Key' + Key_Launch2 = ... # type: 'Qt.Key' + Key_Launch3 = ... # type: 'Qt.Key' + Key_Launch4 = ... # type: 'Qt.Key' + Key_Launch5 = ... # type: 'Qt.Key' + Key_Launch6 = ... # type: 'Qt.Key' + Key_Launch7 = ... # type: 'Qt.Key' + Key_Launch8 = ... # type: 'Qt.Key' + Key_Launch9 = ... # type: 'Qt.Key' + Key_LaunchA = ... # type: 'Qt.Key' + Key_LaunchB = ... # type: 'Qt.Key' + Key_LaunchC = ... # type: 'Qt.Key' + Key_LaunchD = ... # type: 'Qt.Key' + Key_LaunchE = ... # type: 'Qt.Key' + Key_LaunchF = ... # type: 'Qt.Key' + Key_MediaLast = ... # type: 'Qt.Key' + Key_Select = ... # type: 'Qt.Key' + Key_Yes = ... # type: 'Qt.Key' + Key_No = ... # type: 'Qt.Key' + Key_Context1 = ... # type: 'Qt.Key' + Key_Context2 = ... # type: 'Qt.Key' + Key_Context3 = ... # type: 'Qt.Key' + Key_Context4 = ... # type: 'Qt.Key' + Key_Call = ... # type: 'Qt.Key' + Key_Hangup = ... # type: 'Qt.Key' + Key_Flip = ... # type: 'Qt.Key' + Key_unknown = ... # type: 'Qt.Key' + Key_Execute = ... # type: 'Qt.Key' + Key_Printer = ... # type: 'Qt.Key' + Key_Play = ... # type: 'Qt.Key' + Key_Sleep = ... # type: 'Qt.Key' + Key_Zoom = ... # type: 'Qt.Key' + Key_Cancel = ... # type: 'Qt.Key' + Key_MonBrightnessUp = ... # type: 'Qt.Key' + Key_MonBrightnessDown = ... # type: 'Qt.Key' + Key_KeyboardLightOnOff = ... # type: 'Qt.Key' + Key_KeyboardBrightnessUp = ... # type: 'Qt.Key' + Key_KeyboardBrightnessDown = ... # type: 'Qt.Key' + Key_PowerOff = ... # type: 'Qt.Key' + Key_WakeUp = ... # type: 'Qt.Key' + Key_Eject = ... # type: 'Qt.Key' + Key_ScreenSaver = ... # type: 'Qt.Key' + Key_WWW = ... # type: 'Qt.Key' + Key_Memo = ... # type: 'Qt.Key' + Key_LightBulb = ... # type: 'Qt.Key' + Key_Shop = ... # type: 'Qt.Key' + Key_History = ... # type: 'Qt.Key' + Key_AddFavorite = ... # type: 'Qt.Key' + Key_HotLinks = ... # type: 'Qt.Key' + Key_BrightnessAdjust = ... # type: 'Qt.Key' + Key_Finance = ... # type: 'Qt.Key' + Key_Community = ... # type: 'Qt.Key' + Key_AudioRewind = ... # type: 'Qt.Key' + Key_BackForward = ... # type: 'Qt.Key' + Key_ApplicationLeft = ... # type: 'Qt.Key' + Key_ApplicationRight = ... # type: 'Qt.Key' + Key_Book = ... # type: 'Qt.Key' + Key_CD = ... # type: 'Qt.Key' + Key_Calculator = ... # type: 'Qt.Key' + Key_ToDoList = ... # type: 'Qt.Key' + Key_ClearGrab = ... # type: 'Qt.Key' + Key_Close = ... # type: 'Qt.Key' + Key_Copy = ... # type: 'Qt.Key' + Key_Cut = ... # type: 'Qt.Key' + Key_Display = ... # type: 'Qt.Key' + Key_DOS = ... # type: 'Qt.Key' + Key_Documents = ... # type: 'Qt.Key' + Key_Excel = ... # type: 'Qt.Key' + Key_Explorer = ... # type: 'Qt.Key' + Key_Game = ... # type: 'Qt.Key' + Key_Go = ... # type: 'Qt.Key' + Key_iTouch = ... # type: 'Qt.Key' + Key_LogOff = ... # type: 'Qt.Key' + Key_Market = ... # type: 'Qt.Key' + Key_Meeting = ... # type: 'Qt.Key' + Key_MenuKB = ... # type: 'Qt.Key' + Key_MenuPB = ... # type: 'Qt.Key' + Key_MySites = ... # type: 'Qt.Key' + Key_News = ... # type: 'Qt.Key' + Key_OfficeHome = ... # type: 'Qt.Key' + Key_Option = ... # type: 'Qt.Key' + Key_Paste = ... # type: 'Qt.Key' + Key_Phone = ... # type: 'Qt.Key' + Key_Calendar = ... # type: 'Qt.Key' + Key_Reply = ... # type: 'Qt.Key' + Key_Reload = ... # type: 'Qt.Key' + Key_RotateWindows = ... # type: 'Qt.Key' + Key_RotationPB = ... # type: 'Qt.Key' + Key_RotationKB = ... # type: 'Qt.Key' + Key_Save = ... # type: 'Qt.Key' + Key_Send = ... # type: 'Qt.Key' + Key_Spell = ... # type: 'Qt.Key' + Key_SplitScreen = ... # type: 'Qt.Key' + Key_Support = ... # type: 'Qt.Key' + Key_TaskPane = ... # type: 'Qt.Key' + Key_Terminal = ... # type: 'Qt.Key' + Key_Tools = ... # type: 'Qt.Key' + Key_Travel = ... # type: 'Qt.Key' + Key_Video = ... # type: 'Qt.Key' + Key_Word = ... # type: 'Qt.Key' + Key_Xfer = ... # type: 'Qt.Key' + Key_ZoomIn = ... # type: 'Qt.Key' + Key_ZoomOut = ... # type: 'Qt.Key' + Key_Away = ... # type: 'Qt.Key' + Key_Messenger = ... # type: 'Qt.Key' + Key_WebCam = ... # type: 'Qt.Key' + Key_MailForward = ... # type: 'Qt.Key' + Key_Pictures = ... # type: 'Qt.Key' + Key_Music = ... # type: 'Qt.Key' + Key_Battery = ... # type: 'Qt.Key' + Key_Bluetooth = ... # type: 'Qt.Key' + Key_WLAN = ... # type: 'Qt.Key' + Key_UWB = ... # type: 'Qt.Key' + Key_AudioForward = ... # type: 'Qt.Key' + Key_AudioRepeat = ... # type: 'Qt.Key' + Key_AudioRandomPlay = ... # type: 'Qt.Key' + Key_Subtitle = ... # type: 'Qt.Key' + Key_AudioCycleTrack = ... # type: 'Qt.Key' + Key_Time = ... # type: 'Qt.Key' + Key_Hibernate = ... # type: 'Qt.Key' + Key_View = ... # type: 'Qt.Key' + Key_TopMenu = ... # type: 'Qt.Key' + Key_PowerDown = ... # type: 'Qt.Key' + Key_Suspend = ... # type: 'Qt.Key' + Key_ContrastAdjust = ... # type: 'Qt.Key' + Key_MediaPause = ... # type: 'Qt.Key' + Key_MediaTogglePlayPause = ... # type: 'Qt.Key' + Key_LaunchG = ... # type: 'Qt.Key' + Key_LaunchH = ... # type: 'Qt.Key' + Key_ToggleCallHangup = ... # type: 'Qt.Key' + Key_VoiceDial = ... # type: 'Qt.Key' + Key_LastNumberRedial = ... # type: 'Qt.Key' + Key_Camera = ... # type: 'Qt.Key' + Key_CameraFocus = ... # type: 'Qt.Key' + Key_TouchpadToggle = ... # type: 'Qt.Key' + Key_TouchpadOn = ... # type: 'Qt.Key' + Key_TouchpadOff = ... # type: 'Qt.Key' + Key_MicMute = ... # type: 'Qt.Key' + Key_Red = ... # type: 'Qt.Key' + Key_Green = ... # type: 'Qt.Key' + Key_Yellow = ... # type: 'Qt.Key' + Key_Blue = ... # type: 'Qt.Key' + Key_ChannelUp = ... # type: 'Qt.Key' + Key_ChannelDown = ... # type: 'Qt.Key' + Key_Guide = ... # type: 'Qt.Key' + Key_Info = ... # type: 'Qt.Key' + Key_Settings = ... # type: 'Qt.Key' + Key_Exit = ... # type: 'Qt.Key' + Key_MicVolumeUp = ... # type: 'Qt.Key' + Key_MicVolumeDown = ... # type: 'Qt.Key' + Key_New = ... # type: 'Qt.Key' + Key_Open = ... # type: 'Qt.Key' + Key_Find = ... # type: 'Qt.Key' + Key_Undo = ... # type: 'Qt.Key' + Key_Redo = ... # type: 'Qt.Key' + Key_Dead_Stroke = ... # type: 'Qt.Key' + Key_Dead_Abovecomma = ... # type: 'Qt.Key' + Key_Dead_Abovereversedcomma = ... # type: 'Qt.Key' + Key_Dead_Doublegrave = ... # type: 'Qt.Key' + Key_Dead_Belowring = ... # type: 'Qt.Key' + Key_Dead_Belowmacron = ... # type: 'Qt.Key' + Key_Dead_Belowcircumflex = ... # type: 'Qt.Key' + Key_Dead_Belowtilde = ... # type: 'Qt.Key' + Key_Dead_Belowbreve = ... # type: 'Qt.Key' + Key_Dead_Belowdiaeresis = ... # type: 'Qt.Key' + Key_Dead_Invertedbreve = ... # type: 'Qt.Key' + Key_Dead_Belowcomma = ... # type: 'Qt.Key' + Key_Dead_Currency = ... # type: 'Qt.Key' + Key_Dead_a = ... # type: 'Qt.Key' + Key_Dead_A = ... # type: 'Qt.Key' + Key_Dead_e = ... # type: 'Qt.Key' + Key_Dead_E = ... # type: 'Qt.Key' + Key_Dead_i = ... # type: 'Qt.Key' + Key_Dead_I = ... # type: 'Qt.Key' + Key_Dead_o = ... # type: 'Qt.Key' + Key_Dead_O = ... # type: 'Qt.Key' + Key_Dead_u = ... # type: 'Qt.Key' + Key_Dead_U = ... # type: 'Qt.Key' + Key_Dead_Small_Schwa = ... # type: 'Qt.Key' + Key_Dead_Capital_Schwa = ... # type: 'Qt.Key' + Key_Dead_Greek = ... # type: 'Qt.Key' + Key_Dead_Lowline = ... # type: 'Qt.Key' + Key_Dead_Aboveverticalline = ... # type: 'Qt.Key' + Key_Dead_Belowverticalline = ... # type: 'Qt.Key' + Key_Dead_Longsolidusoverlay = ... # type: 'Qt.Key' + + class BGMode(int): ... + TransparentMode = ... # type: 'Qt.BGMode' + OpaqueMode = ... # type: 'Qt.BGMode' + + class ImageConversionFlag(int): ... + AutoColor = ... # type: 'Qt.ImageConversionFlag' + ColorOnly = ... # type: 'Qt.ImageConversionFlag' + MonoOnly = ... # type: 'Qt.ImageConversionFlag' + ThresholdAlphaDither = ... # type: 'Qt.ImageConversionFlag' + OrderedAlphaDither = ... # type: 'Qt.ImageConversionFlag' + DiffuseAlphaDither = ... # type: 'Qt.ImageConversionFlag' + DiffuseDither = ... # type: 'Qt.ImageConversionFlag' + OrderedDither = ... # type: 'Qt.ImageConversionFlag' + ThresholdDither = ... # type: 'Qt.ImageConversionFlag' + AutoDither = ... # type: 'Qt.ImageConversionFlag' + PreferDither = ... # type: 'Qt.ImageConversionFlag' + AvoidDither = ... # type: 'Qt.ImageConversionFlag' + NoOpaqueDetection = ... # type: 'Qt.ImageConversionFlag' + NoFormatConversion = ... # type: 'Qt.ImageConversionFlag' + + class WidgetAttribute(int): ... + WA_Disabled = ... # type: 'Qt.WidgetAttribute' + WA_UnderMouse = ... # type: 'Qt.WidgetAttribute' + WA_MouseTracking = ... # type: 'Qt.WidgetAttribute' + WA_OpaquePaintEvent = ... # type: 'Qt.WidgetAttribute' + WA_StaticContents = ... # type: 'Qt.WidgetAttribute' + WA_LaidOut = ... # type: 'Qt.WidgetAttribute' + WA_PaintOnScreen = ... # type: 'Qt.WidgetAttribute' + WA_NoSystemBackground = ... # type: 'Qt.WidgetAttribute' + WA_UpdatesDisabled = ... # type: 'Qt.WidgetAttribute' + WA_Mapped = ... # type: 'Qt.WidgetAttribute' + WA_MacNoClickThrough = ... # type: 'Qt.WidgetAttribute' + WA_InputMethodEnabled = ... # type: 'Qt.WidgetAttribute' + WA_WState_Visible = ... # type: 'Qt.WidgetAttribute' + WA_WState_Hidden = ... # type: 'Qt.WidgetAttribute' + WA_ForceDisabled = ... # type: 'Qt.WidgetAttribute' + WA_KeyCompression = ... # type: 'Qt.WidgetAttribute' + WA_PendingMoveEvent = ... # type: 'Qt.WidgetAttribute' + WA_PendingResizeEvent = ... # type: 'Qt.WidgetAttribute' + WA_SetPalette = ... # type: 'Qt.WidgetAttribute' + WA_SetFont = ... # type: 'Qt.WidgetAttribute' + WA_SetCursor = ... # type: 'Qt.WidgetAttribute' + WA_NoChildEventsFromChildren = ... # type: 'Qt.WidgetAttribute' + WA_WindowModified = ... # type: 'Qt.WidgetAttribute' + WA_Resized = ... # type: 'Qt.WidgetAttribute' + WA_Moved = ... # type: 'Qt.WidgetAttribute' + WA_PendingUpdate = ... # type: 'Qt.WidgetAttribute' + WA_InvalidSize = ... # type: 'Qt.WidgetAttribute' + WA_MacMetalStyle = ... # type: 'Qt.WidgetAttribute' + WA_CustomWhatsThis = ... # type: 'Qt.WidgetAttribute' + WA_LayoutOnEntireRect = ... # type: 'Qt.WidgetAttribute' + WA_OutsideWSRange = ... # type: 'Qt.WidgetAttribute' + WA_GrabbedShortcut = ... # type: 'Qt.WidgetAttribute' + WA_TransparentForMouseEvents = ... # type: 'Qt.WidgetAttribute' + WA_PaintUnclipped = ... # type: 'Qt.WidgetAttribute' + WA_SetWindowIcon = ... # type: 'Qt.WidgetAttribute' + WA_NoMouseReplay = ... # type: 'Qt.WidgetAttribute' + WA_DeleteOnClose = ... # type: 'Qt.WidgetAttribute' + WA_RightToLeft = ... # type: 'Qt.WidgetAttribute' + WA_SetLayoutDirection = ... # type: 'Qt.WidgetAttribute' + WA_NoChildEventsForParent = ... # type: 'Qt.WidgetAttribute' + WA_ForceUpdatesDisabled = ... # type: 'Qt.WidgetAttribute' + WA_WState_Created = ... # type: 'Qt.WidgetAttribute' + WA_WState_CompressKeys = ... # type: 'Qt.WidgetAttribute' + WA_WState_InPaintEvent = ... # type: 'Qt.WidgetAttribute' + WA_WState_Reparented = ... # type: 'Qt.WidgetAttribute' + WA_WState_ConfigPending = ... # type: 'Qt.WidgetAttribute' + WA_WState_Polished = ... # type: 'Qt.WidgetAttribute' + WA_WState_OwnSizePolicy = ... # type: 'Qt.WidgetAttribute' + WA_WState_ExplicitShowHide = ... # type: 'Qt.WidgetAttribute' + WA_MouseNoMask = ... # type: 'Qt.WidgetAttribute' + WA_GroupLeader = ... # type: 'Qt.WidgetAttribute' + WA_NoMousePropagation = ... # type: 'Qt.WidgetAttribute' + WA_Hover = ... # type: 'Qt.WidgetAttribute' + WA_InputMethodTransparent = ... # type: 'Qt.WidgetAttribute' + WA_QuitOnClose = ... # type: 'Qt.WidgetAttribute' + WA_KeyboardFocusChange = ... # type: 'Qt.WidgetAttribute' + WA_AcceptDrops = ... # type: 'Qt.WidgetAttribute' + WA_WindowPropagation = ... # type: 'Qt.WidgetAttribute' + WA_NoX11EventCompression = ... # type: 'Qt.WidgetAttribute' + WA_TintedBackground = ... # type: 'Qt.WidgetAttribute' + WA_X11OpenGLOverlay = ... # type: 'Qt.WidgetAttribute' + WA_AttributeCount = ... # type: 'Qt.WidgetAttribute' + WA_AlwaysShowToolTips = ... # type: 'Qt.WidgetAttribute' + WA_MacOpaqueSizeGrip = ... # type: 'Qt.WidgetAttribute' + WA_SetStyle = ... # type: 'Qt.WidgetAttribute' + WA_MacBrushedMetal = ... # type: 'Qt.WidgetAttribute' + WA_SetLocale = ... # type: 'Qt.WidgetAttribute' + WA_MacShowFocusRect = ... # type: 'Qt.WidgetAttribute' + WA_MacNormalSize = ... # type: 'Qt.WidgetAttribute' + WA_MacSmallSize = ... # type: 'Qt.WidgetAttribute' + WA_MacMiniSize = ... # type: 'Qt.WidgetAttribute' + WA_LayoutUsesWidgetRect = ... # type: 'Qt.WidgetAttribute' + WA_StyledBackground = ... # type: 'Qt.WidgetAttribute' + WA_MSWindowsUseDirect3D = ... # type: 'Qt.WidgetAttribute' + WA_MacAlwaysShowToolWindow = ... # type: 'Qt.WidgetAttribute' + WA_StyleSheet = ... # type: 'Qt.WidgetAttribute' + WA_ShowWithoutActivating = ... # type: 'Qt.WidgetAttribute' + WA_NativeWindow = ... # type: 'Qt.WidgetAttribute' + WA_DontCreateNativeAncestors = ... # type: 'Qt.WidgetAttribute' + WA_MacVariableSize = ... # type: 'Qt.WidgetAttribute' + WA_DontShowOnScreen = ... # type: 'Qt.WidgetAttribute' + WA_X11NetWmWindowTypeDesktop = ... # type: 'Qt.WidgetAttribute' + WA_X11NetWmWindowTypeDock = ... # type: 'Qt.WidgetAttribute' + WA_X11NetWmWindowTypeToolBar = ... # type: 'Qt.WidgetAttribute' + WA_X11NetWmWindowTypeMenu = ... # type: 'Qt.WidgetAttribute' + WA_X11NetWmWindowTypeUtility = ... # type: 'Qt.WidgetAttribute' + WA_X11NetWmWindowTypeSplash = ... # type: 'Qt.WidgetAttribute' + WA_X11NetWmWindowTypeDialog = ... # type: 'Qt.WidgetAttribute' + WA_X11NetWmWindowTypeDropDownMenu = ... # type: 'Qt.WidgetAttribute' + WA_X11NetWmWindowTypePopupMenu = ... # type: 'Qt.WidgetAttribute' + WA_X11NetWmWindowTypeToolTip = ... # type: 'Qt.WidgetAttribute' + WA_X11NetWmWindowTypeNotification = ... # type: 'Qt.WidgetAttribute' + WA_X11NetWmWindowTypeCombo = ... # type: 'Qt.WidgetAttribute' + WA_X11NetWmWindowTypeDND = ... # type: 'Qt.WidgetAttribute' + WA_MacFrameworkScaled = ... # type: 'Qt.WidgetAttribute' + WA_TranslucentBackground = ... # type: 'Qt.WidgetAttribute' + WA_AcceptTouchEvents = ... # type: 'Qt.WidgetAttribute' + WA_TouchPadAcceptSingleTouchEvents = ... # type: 'Qt.WidgetAttribute' + WA_X11DoNotAcceptFocus = ... # type: 'Qt.WidgetAttribute' + WA_MacNoShadow = ... # type: 'Qt.WidgetAttribute' + WA_AlwaysStackOnTop = ... # type: 'Qt.WidgetAttribute' + WA_TabletTracking = ... # type: 'Qt.WidgetAttribute' + WA_ContentsMarginsRespectsSafeArea = ... # type: 'Qt.WidgetAttribute' + WA_StyleSheetTarget = ... # type: 'Qt.WidgetAttribute' + + class WindowState(int): ... + WindowNoState = ... # type: 'Qt.WindowState' + WindowMinimized = ... # type: 'Qt.WindowState' + WindowMaximized = ... # type: 'Qt.WindowState' + WindowFullScreen = ... # type: 'Qt.WindowState' + WindowActive = ... # type: 'Qt.WindowState' + + class WindowType(int): ... + Widget = ... # type: 'Qt.WindowType' + Window = ... # type: 'Qt.WindowType' + Dialog = ... # type: 'Qt.WindowType' + Sheet = ... # type: 'Qt.WindowType' + Drawer = ... # type: 'Qt.WindowType' + Popup = ... # type: 'Qt.WindowType' + Tool = ... # type: 'Qt.WindowType' + ToolTip = ... # type: 'Qt.WindowType' + SplashScreen = ... # type: 'Qt.WindowType' + Desktop = ... # type: 'Qt.WindowType' + SubWindow = ... # type: 'Qt.WindowType' + WindowType_Mask = ... # type: 'Qt.WindowType' + MSWindowsFixedSizeDialogHint = ... # type: 'Qt.WindowType' + MSWindowsOwnDC = ... # type: 'Qt.WindowType' + X11BypassWindowManagerHint = ... # type: 'Qt.WindowType' + FramelessWindowHint = ... # type: 'Qt.WindowType' + CustomizeWindowHint = ... # type: 'Qt.WindowType' + WindowTitleHint = ... # type: 'Qt.WindowType' + WindowSystemMenuHint = ... # type: 'Qt.WindowType' + WindowMinimizeButtonHint = ... # type: 'Qt.WindowType' + WindowMaximizeButtonHint = ... # type: 'Qt.WindowType' + WindowMinMaxButtonsHint = ... # type: 'Qt.WindowType' + WindowContextHelpButtonHint = ... # type: 'Qt.WindowType' + WindowShadeButtonHint = ... # type: 'Qt.WindowType' + WindowStaysOnTopHint = ... # type: 'Qt.WindowType' + WindowStaysOnBottomHint = ... # type: 'Qt.WindowType' + WindowCloseButtonHint = ... # type: 'Qt.WindowType' + MacWindowToolBarButtonHint = ... # type: 'Qt.WindowType' + BypassGraphicsProxyWidget = ... # type: 'Qt.WindowType' + WindowTransparentForInput = ... # type: 'Qt.WindowType' + WindowOverridesSystemGestures = ... # type: 'Qt.WindowType' + WindowDoesNotAcceptFocus = ... # type: 'Qt.WindowType' + NoDropShadowWindowHint = ... # type: 'Qt.WindowType' + WindowFullscreenButtonHint = ... # type: 'Qt.WindowType' + ForeignWindow = ... # type: 'Qt.WindowType' + BypassWindowManagerHint = ... # type: 'Qt.WindowType' + CoverWindow = ... # type: 'Qt.WindowType' + MaximizeUsingFullscreenGeometryHint = ... # type: 'Qt.WindowType' + + class TextElideMode(int): ... + ElideLeft = ... # type: 'Qt.TextElideMode' + ElideRight = ... # type: 'Qt.TextElideMode' + ElideMiddle = ... # type: 'Qt.TextElideMode' + ElideNone = ... # type: 'Qt.TextElideMode' + + class TextFlag(int): ... + TextSingleLine = ... # type: 'Qt.TextFlag' + TextDontClip = ... # type: 'Qt.TextFlag' + TextExpandTabs = ... # type: 'Qt.TextFlag' + TextShowMnemonic = ... # type: 'Qt.TextFlag' + TextWordWrap = ... # type: 'Qt.TextFlag' + TextWrapAnywhere = ... # type: 'Qt.TextFlag' + TextDontPrint = ... # type: 'Qt.TextFlag' + TextIncludeTrailingSpaces = ... # type: 'Qt.TextFlag' + TextHideMnemonic = ... # type: 'Qt.TextFlag' + TextJustificationForced = ... # type: 'Qt.TextFlag' + + class AlignmentFlag(int): ... + AlignLeft = ... # type: 'Qt.AlignmentFlag' + AlignLeading = ... # type: 'Qt.AlignmentFlag' + AlignRight = ... # type: 'Qt.AlignmentFlag' + AlignTrailing = ... # type: 'Qt.AlignmentFlag' + AlignHCenter = ... # type: 'Qt.AlignmentFlag' + AlignJustify = ... # type: 'Qt.AlignmentFlag' + AlignAbsolute = ... # type: 'Qt.AlignmentFlag' + AlignHorizontal_Mask = ... # type: 'Qt.AlignmentFlag' + AlignTop = ... # type: 'Qt.AlignmentFlag' + AlignBottom = ... # type: 'Qt.AlignmentFlag' + AlignVCenter = ... # type: 'Qt.AlignmentFlag' + AlignVertical_Mask = ... # type: 'Qt.AlignmentFlag' + AlignCenter = ... # type: 'Qt.AlignmentFlag' + AlignBaseline = ... # type: 'Qt.AlignmentFlag' + + class SortOrder(int): ... + AscendingOrder = ... # type: 'Qt.SortOrder' + DescendingOrder = ... # type: 'Qt.SortOrder' + + class FocusPolicy(int): ... + NoFocus = ... # type: 'Qt.FocusPolicy' + TabFocus = ... # type: 'Qt.FocusPolicy' + ClickFocus = ... # type: 'Qt.FocusPolicy' + StrongFocus = ... # type: 'Qt.FocusPolicy' + WheelFocus = ... # type: 'Qt.FocusPolicy' + + class Orientation(int): ... + Horizontal = ... # type: 'Qt.Orientation' + Vertical = ... # type: 'Qt.Orientation' + + class MouseButton(int): ... + NoButton = ... # type: 'Qt.MouseButton' + AllButtons = ... # type: 'Qt.MouseButton' + LeftButton = ... # type: 'Qt.MouseButton' + RightButton = ... # type: 'Qt.MouseButton' + MidButton = ... # type: 'Qt.MouseButton' + MiddleButton = ... # type: 'Qt.MouseButton' + XButton1 = ... # type: 'Qt.MouseButton' + XButton2 = ... # type: 'Qt.MouseButton' + BackButton = ... # type: 'Qt.MouseButton' + ExtraButton1 = ... # type: 'Qt.MouseButton' + ForwardButton = ... # type: 'Qt.MouseButton' + ExtraButton2 = ... # type: 'Qt.MouseButton' + TaskButton = ... # type: 'Qt.MouseButton' + ExtraButton3 = ... # type: 'Qt.MouseButton' + ExtraButton4 = ... # type: 'Qt.MouseButton' + ExtraButton5 = ... # type: 'Qt.MouseButton' + ExtraButton6 = ... # type: 'Qt.MouseButton' + ExtraButton7 = ... # type: 'Qt.MouseButton' + ExtraButton8 = ... # type: 'Qt.MouseButton' + ExtraButton9 = ... # type: 'Qt.MouseButton' + ExtraButton10 = ... # type: 'Qt.MouseButton' + ExtraButton11 = ... # type: 'Qt.MouseButton' + ExtraButton12 = ... # type: 'Qt.MouseButton' + ExtraButton13 = ... # type: 'Qt.MouseButton' + ExtraButton14 = ... # type: 'Qt.MouseButton' + ExtraButton15 = ... # type: 'Qt.MouseButton' + ExtraButton16 = ... # type: 'Qt.MouseButton' + ExtraButton17 = ... # type: 'Qt.MouseButton' + ExtraButton18 = ... # type: 'Qt.MouseButton' + ExtraButton19 = ... # type: 'Qt.MouseButton' + ExtraButton20 = ... # type: 'Qt.MouseButton' + ExtraButton21 = ... # type: 'Qt.MouseButton' + ExtraButton22 = ... # type: 'Qt.MouseButton' + ExtraButton23 = ... # type: 'Qt.MouseButton' + ExtraButton24 = ... # type: 'Qt.MouseButton' + + class Modifier(int): ... + META = ... # type: 'Qt.Modifier' + SHIFT = ... # type: 'Qt.Modifier' + CTRL = ... # type: 'Qt.Modifier' + ALT = ... # type: 'Qt.Modifier' + MODIFIER_MASK = ... # type: 'Qt.Modifier' + UNICODE_ACCEL = ... # type: 'Qt.Modifier' + + class KeyboardModifier(int): ... + NoModifier = ... # type: 'Qt.KeyboardModifier' + ShiftModifier = ... # type: 'Qt.KeyboardModifier' + ControlModifier = ... # type: 'Qt.KeyboardModifier' + AltModifier = ... # type: 'Qt.KeyboardModifier' + MetaModifier = ... # type: 'Qt.KeyboardModifier' + KeypadModifier = ... # type: 'Qt.KeyboardModifier' + GroupSwitchModifier = ... # type: 'Qt.KeyboardModifier' + KeyboardModifierMask = ... # type: 'Qt.KeyboardModifier' + + class GlobalColor(int): ... + color0 = ... # type: 'Qt.GlobalColor' + color1 = ... # type: 'Qt.GlobalColor' + black = ... # type: 'Qt.GlobalColor' + white = ... # type: 'Qt.GlobalColor' + darkGray = ... # type: 'Qt.GlobalColor' + gray = ... # type: 'Qt.GlobalColor' + lightGray = ... # type: 'Qt.GlobalColor' + red = ... # type: 'Qt.GlobalColor' + green = ... # type: 'Qt.GlobalColor' + blue = ... # type: 'Qt.GlobalColor' + cyan = ... # type: 'Qt.GlobalColor' + magenta = ... # type: 'Qt.GlobalColor' + yellow = ... # type: 'Qt.GlobalColor' + darkRed = ... # type: 'Qt.GlobalColor' + darkGreen = ... # type: 'Qt.GlobalColor' + darkBlue = ... # type: 'Qt.GlobalColor' + darkCyan = ... # type: 'Qt.GlobalColor' + darkMagenta = ... # type: 'Qt.GlobalColor' + darkYellow = ... # type: 'Qt.GlobalColor' + transparent = ... # type: 'Qt.GlobalColor' + + class KeyboardModifiers(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.KeyboardModifiers', 'Qt.KeyboardModifier']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.KeyboardModifiers') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.KeyboardModifiers': ... + def __int__(self) -> int: ... + + class MouseButtons(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.MouseButtons', 'Qt.MouseButton']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.MouseButtons') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.MouseButtons': ... + def __int__(self) -> int: ... + + class Orientations(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.Orientations', 'Qt.Orientation']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.Orientations') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.Orientations': ... + def __int__(self) -> int: ... + + class Alignment(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.Alignment', 'Qt.AlignmentFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.Alignment') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.Alignment': ... + def __int__(self) -> int: ... + + class WindowFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.WindowFlags', 'Qt.WindowType']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.WindowFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.WindowFlags': ... + def __int__(self) -> int: ... + + class WindowStates(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.WindowStates', 'Qt.WindowState']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.WindowStates') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.WindowStates': ... + def __int__(self) -> int: ... + + class ImageConversionFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.ImageConversionFlags', 'Qt.ImageConversionFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.ImageConversionFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.ImageConversionFlags': ... + def __int__(self) -> int: ... + + class DockWidgetAreas(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.DockWidgetAreas', 'Qt.DockWidgetArea']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.DockWidgetAreas') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.DockWidgetAreas': ... + def __int__(self) -> int: ... + + class ToolBarAreas(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.ToolBarAreas', 'Qt.ToolBarArea']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.ToolBarAreas') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.ToolBarAreas': ... + def __int__(self) -> int: ... + + class InputMethodQueries(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.InputMethodQueries', 'Qt.InputMethodQuery']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.InputMethodQueries') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.InputMethodQueries': ... + def __int__(self) -> int: ... + + class DropActions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.DropActions', 'Qt.DropAction']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.DropActions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.DropActions': ... + def __int__(self) -> int: ... + + class ItemFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.ItemFlags', 'Qt.ItemFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.ItemFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.ItemFlags': ... + def __int__(self) -> int: ... + + class MatchFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.MatchFlags', 'Qt.MatchFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.MatchFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.MatchFlags': ... + def __int__(self) -> int: ... + + class TextInteractionFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.TextInteractionFlags', 'Qt.TextInteractionFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.TextInteractionFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.TextInteractionFlags': ... + def __int__(self) -> int: ... + + class InputMethodHints(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.InputMethodHints', 'Qt.InputMethodHint']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.InputMethodHints') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.InputMethodHints': ... + def __int__(self) -> int: ... + + class TouchPointStates(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.TouchPointStates', 'Qt.TouchPointState']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.TouchPointStates') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.TouchPointStates': ... + def __int__(self) -> int: ... + + class GestureFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.GestureFlags', 'Qt.GestureFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.GestureFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.GestureFlags': ... + def __int__(self) -> int: ... + + class ScreenOrientations(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.ScreenOrientations', 'Qt.ScreenOrientation']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.ScreenOrientations') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.ScreenOrientations': ... + def __int__(self) -> int: ... + + class FindChildOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.FindChildOptions', 'Qt.FindChildOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.FindChildOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.FindChildOptions': ... + def __int__(self) -> int: ... + + class ApplicationStates(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.ApplicationStates', 'Qt.ApplicationState']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.ApplicationStates') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.ApplicationStates': ... + def __int__(self) -> int: ... + + class Edges(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.Edges', 'Qt.Edge']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.Edges') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.Edges': ... + def __int__(self) -> int: ... + + class MouseEventFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['Qt.MouseEventFlags', 'Qt.MouseEventFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'Qt.MouseEventFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'Qt.MouseEventFlags': ... + def __int__(self) -> int: ... + + +class QObject(sip.wrapper): + + staticMetaObject = ... # type: 'QMetaObject' + + def __init__(self, parent: typing.Optional['QObject'] = ...) -> None: ... + + @typing.overload + @staticmethod + def disconnect(a0: 'QMetaObject.Connection') -> bool: ... + @typing.overload + def disconnect(self) -> None: ... + def isSignalConnected(self, signal: 'QMetaMethod') -> bool: ... + def senderSignalIndex(self) -> int: ... + def disconnectNotify(self, signal: 'QMetaMethod') -> None: ... + def connectNotify(self, signal: 'QMetaMethod') -> None: ... + def customEvent(self, a0: 'QEvent') -> None: ... + def childEvent(self, a0: 'QChildEvent') -> None: ... + def timerEvent(self, a0: 'QTimerEvent') -> None: ... + def receivers(self, signal: PYQT_SIGNAL) -> int: ... + def sender(self) -> 'QObject': ... + def deleteLater(self) -> None: ... + def inherits(self, classname: str) -> bool: ... + def parent(self) -> 'QObject': ... + def objectNameChanged(self, objectName: str) -> None: ... + def destroyed(self, object: typing.Optional['QObject'] = ...) -> None: ... + def property(self, name: str) -> typing.Any: ... + def setProperty(self, name: str, value: typing.Any) -> bool: ... + def dynamicPropertyNames(self) -> typing.List['QByteArray']: ... + def dumpObjectTree(self) -> None: ... + def dumpObjectInfo(self) -> None: ... + def removeEventFilter(self, a0: 'QObject') -> None: ... + def installEventFilter(self, a0: 'QObject') -> None: ... + def setParent(self, a0: 'QObject') -> None: ... + def children(self) -> typing.List['QObject']: ... + def killTimer(self, id: int) -> None: ... + def startTimer(self, interval: int, timerType: Qt.TimerType = ...) -> int: ... + def moveToThread(self, thread: 'QThread') -> None: ... + def thread(self) -> 'QThread': ... + def blockSignals(self, b: bool) -> bool: ... + def signalsBlocked(self) -> bool: ... + def isWindowType(self) -> bool: ... + def isWidgetType(self) -> bool: ... + def setObjectName(self, name: str) -> None: ... + def objectName(self) -> str: ... + @typing.overload + def findChildren(self, type: type, name: str = ..., options: typing.Union[Qt.FindChildOptions, Qt.FindChildOption] = ...) -> typing.List['QObject']: ... + @typing.overload + def findChildren(self, types: typing.Tuple, name: str = ..., options: typing.Union[Qt.FindChildOptions, Qt.FindChildOption] = ...) -> typing.List['QObject']: ... + @typing.overload + def findChildren(self, type: type, regExp: 'QRegExp', options: typing.Union[Qt.FindChildOptions, Qt.FindChildOption] = ...) -> typing.List['QObject']: ... + @typing.overload + def findChildren(self, types: typing.Tuple, regExp: 'QRegExp', options: typing.Union[Qt.FindChildOptions, Qt.FindChildOption] = ...) -> typing.List['QObject']: ... + @typing.overload + def findChildren(self, type: type, re: 'QRegularExpression', options: typing.Union[Qt.FindChildOptions, Qt.FindChildOption] = ...) -> typing.List['QObject']: ... + @typing.overload + def findChildren(self, types: typing.Tuple, re: 'QRegularExpression', options: typing.Union[Qt.FindChildOptions, Qt.FindChildOption] = ...) -> typing.List['QObject']: ... + @typing.overload + def findChild(self, type: type, name: str = ..., options: typing.Union[Qt.FindChildOptions, Qt.FindChildOption] = ...) -> 'QObject': ... + @typing.overload + def findChild(self, types: typing.Tuple, name: str = ..., options: typing.Union[Qt.FindChildOptions, Qt.FindChildOption] = ...) -> 'QObject': ... + def tr(self, sourceText: str, disambiguation: typing.Optional[str] = ..., n: int = ...) -> str: ... + def eventFilter(self, a0: 'QObject', a1: 'QEvent') -> bool: ... + def event(self, a0: 'QEvent') -> bool: ... + def __getattr__(self, name: str) -> typing.Any: ... + def pyqtConfigure(self, a0: typing.Any) -> None: ... + def metaObject(self) -> 'QMetaObject': ... + + +class QAbstractAnimation(QObject): + + class DeletionPolicy(int): ... + KeepWhenStopped = ... # type: 'QAbstractAnimation.DeletionPolicy' + DeleteWhenStopped = ... # type: 'QAbstractAnimation.DeletionPolicy' + + class State(int): ... + Stopped = ... # type: 'QAbstractAnimation.State' + Paused = ... # type: 'QAbstractAnimation.State' + Running = ... # type: 'QAbstractAnimation.State' + + class Direction(int): ... + Forward = ... # type: 'QAbstractAnimation.Direction' + Backward = ... # type: 'QAbstractAnimation.Direction' + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def updateDirection(self, direction: 'QAbstractAnimation.Direction') -> None: ... + def updateState(self, newState: 'QAbstractAnimation.State', oldState: 'QAbstractAnimation.State') -> None: ... + def updateCurrentTime(self, currentTime: int) -> None: ... + def event(self, event: 'QEvent') -> bool: ... + def setCurrentTime(self, msecs: int) -> None: ... + def stop(self) -> None: ... + def setPaused(self, a0: bool) -> None: ... + def resume(self) -> None: ... + def pause(self) -> None: ... + def start(self, policy: 'QAbstractAnimation.DeletionPolicy' = ...) -> None: ... + def directionChanged(self, a0: 'QAbstractAnimation.Direction') -> None: ... + def currentLoopChanged(self, currentLoop: int) -> None: ... + def stateChanged(self, newState: 'QAbstractAnimation.State', oldState: 'QAbstractAnimation.State') -> None: ... + def finished(self) -> None: ... + def totalDuration(self) -> int: ... + def duration(self) -> int: ... + def currentLoop(self) -> int: ... + def setLoopCount(self, loopCount: int) -> None: ... + def loopCount(self) -> int: ... + def currentLoopTime(self) -> int: ... + def currentTime(self) -> int: ... + def setDirection(self, direction: 'QAbstractAnimation.Direction') -> None: ... + def direction(self) -> 'QAbstractAnimation.Direction': ... + def group(self) -> 'QAnimationGroup': ... + def state(self) -> 'QAbstractAnimation.State': ... + + +class QAbstractEventDispatcher(QObject): + + class TimerInfo(sip.simplewrapper): + + interval = ... # type: int + timerId = ... # type: int + timerType = ... # type: Qt.TimerType + + @typing.overload + def __init__(self, id: int, i: int, t: Qt.TimerType) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstractEventDispatcher.TimerInfo') -> None: ... + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def awake(self) -> None: ... + def aboutToBlock(self) -> None: ... + def filterNativeEvent(self, eventType: typing.Union['QByteArray', bytes, bytearray], message: sip.voidptr) -> typing.Tuple[bool, int]: ... + def removeNativeEventFilter(self, filterObj: 'QAbstractNativeEventFilter') -> None: ... + def installNativeEventFilter(self, filterObj: 'QAbstractNativeEventFilter') -> None: ... + def remainingTime(self, timerId: int) -> int: ... + def closingDown(self) -> None: ... + def startingUp(self) -> None: ... + def flush(self) -> None: ... + def interrupt(self) -> None: ... + def wakeUp(self) -> None: ... + def registeredTimers(self, object: QObject) -> typing.List['QAbstractEventDispatcher.TimerInfo']: ... + def unregisterTimers(self, object: QObject) -> bool: ... + def unregisterTimer(self, timerId: int) -> bool: ... + @typing.overload + def registerTimer(self, interval: int, timerType: Qt.TimerType, object: QObject) -> int: ... + @typing.overload + def registerTimer(self, timerId: int, interval: int, timerType: Qt.TimerType, object: QObject) -> None: ... + def unregisterSocketNotifier(self, notifier: 'QSocketNotifier') -> None: ... + def registerSocketNotifier(self, notifier: 'QSocketNotifier') -> None: ... + def hasPendingEvents(self) -> bool: ... + def processEvents(self, flags: typing.Union['QEventLoop.ProcessEventsFlags', 'QEventLoop.ProcessEventsFlag']) -> bool: ... + @staticmethod + def instance(thread: typing.Optional['QThread'] = ...) -> 'QAbstractEventDispatcher': ... + + +class QModelIndex(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QModelIndex') -> None: ... + @typing.overload + def __init__(self, a0: 'QPersistentModelIndex') -> None: ... + + def __hash__(self) -> int: ... + def siblingAtRow(self, row: int) -> 'QModelIndex': ... + def siblingAtColumn(self, column: int) -> 'QModelIndex': ... + def sibling(self, arow: int, acolumn: int) -> 'QModelIndex': ... + def parent(self) -> 'QModelIndex': ... + def isValid(self) -> bool: ... + def model(self) -> 'QAbstractItemModel': ... + def internalId(self) -> int: ... + def internalPointer(self) -> typing.Any: ... + def flags(self) -> Qt.ItemFlags: ... + def data(self, role: int = ...) -> typing.Any: ... + def column(self) -> int: ... + def row(self) -> int: ... + def child(self, arow: int, acolumn: int) -> 'QModelIndex': ... + + +class QPersistentModelIndex(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, index: QModelIndex) -> None: ... + @typing.overload + def __init__(self, other: 'QPersistentModelIndex') -> None: ... + + def __hash__(self) -> int: ... + def swap(self, other: 'QPersistentModelIndex') -> None: ... + def isValid(self) -> bool: ... + def model(self) -> 'QAbstractItemModel': ... + def child(self, row: int, column: int) -> QModelIndex: ... + def sibling(self, row: int, column: int) -> QModelIndex: ... + def parent(self) -> QModelIndex: ... + def flags(self) -> Qt.ItemFlags: ... + def data(self, role: int = ...) -> typing.Any: ... + def column(self) -> int: ... + def row(self) -> int: ... + + +class QAbstractItemModel(QObject): + + class CheckIndexOption(int): ... + NoOption = ... # type: 'QAbstractItemModel.CheckIndexOption' + IndexIsValid = ... # type: 'QAbstractItemModel.CheckIndexOption' + DoNotUseParent = ... # type: 'QAbstractItemModel.CheckIndexOption' + ParentIsInvalid = ... # type: 'QAbstractItemModel.CheckIndexOption' + + class LayoutChangeHint(int): ... + NoLayoutChangeHint = ... # type: 'QAbstractItemModel.LayoutChangeHint' + VerticalSortHint = ... # type: 'QAbstractItemModel.LayoutChangeHint' + HorizontalSortHint = ... # type: 'QAbstractItemModel.LayoutChangeHint' + + class CheckIndexOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QAbstractItemModel.CheckIndexOptions', 'QAbstractItemModel.CheckIndexOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstractItemModel.CheckIndexOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QAbstractItemModel.CheckIndexOptions': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def checkIndex(self, index: QModelIndex, options: typing.Union['QAbstractItemModel.CheckIndexOptions', 'QAbstractItemModel.CheckIndexOption'] = ...) -> bool: ... + def moveColumn(self, sourceParent: QModelIndex, sourceColumn: int, destinationParent: QModelIndex, destinationChild: int) -> bool: ... + def moveRow(self, sourceParent: QModelIndex, sourceRow: int, destinationParent: QModelIndex, destinationChild: int) -> bool: ... + def moveColumns(self, sourceParent: QModelIndex, sourceColumn: int, count: int, destinationParent: QModelIndex, destinationChild: int) -> bool: ... + def moveRows(self, sourceParent: QModelIndex, sourceRow: int, count: int, destinationParent: QModelIndex, destinationChild: int) -> bool: ... + def canDropMimeData(self, data: 'QMimeData', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def resetInternalData(self) -> None: ... + def endResetModel(self) -> None: ... + def beginResetModel(self) -> None: ... + def endMoveColumns(self) -> None: ... + def beginMoveColumns(self, sourceParent: QModelIndex, sourceFirst: int, sourceLast: int, destinationParent: QModelIndex, destinationColumn: int) -> bool: ... + def endMoveRows(self) -> None: ... + def beginMoveRows(self, sourceParent: QModelIndex, sourceFirst: int, sourceLast: int, destinationParent: QModelIndex, destinationRow: int) -> bool: ... + def columnsMoved(self, parent: QModelIndex, start: int, end: int, destination: QModelIndex, column: int) -> None: ... + def columnsAboutToBeMoved(self, sourceParent: QModelIndex, sourceStart: int, sourceEnd: int, destinationParent: QModelIndex, destinationColumn: int) -> None: ... + def rowsMoved(self, parent: QModelIndex, start: int, end: int, destination: QModelIndex, row: int) -> None: ... + def rowsAboutToBeMoved(self, sourceParent: QModelIndex, sourceStart: int, sourceEnd: int, destinationParent: QModelIndex, destinationRow: int) -> None: ... + def createIndex(self, row: int, column: int, object: typing.Any = ...) -> QModelIndex: ... + def roleNames(self) -> typing.Dict[int, 'QByteArray']: ... + def supportedDragActions(self) -> Qt.DropActions: ... + def removeColumn(self, column: int, parent: QModelIndex = ...) -> bool: ... + def removeRow(self, row: int, parent: QModelIndex = ...) -> bool: ... + def insertColumn(self, column: int, parent: QModelIndex = ...) -> bool: ... + def insertRow(self, row: int, parent: QModelIndex = ...) -> bool: ... + def changePersistentIndexList(self, from_: typing.Iterable[QModelIndex], to: typing.Iterable[QModelIndex]) -> None: ... + def changePersistentIndex(self, from_: QModelIndex, to: QModelIndex) -> None: ... + def persistentIndexList(self) -> typing.List[QModelIndex]: ... + def endRemoveColumns(self) -> None: ... + def beginRemoveColumns(self, parent: QModelIndex, first: int, last: int) -> None: ... + def endInsertColumns(self) -> None: ... + def beginInsertColumns(self, parent: QModelIndex, first: int, last: int) -> None: ... + def endRemoveRows(self) -> None: ... + def beginRemoveRows(self, parent: QModelIndex, first: int, last: int) -> None: ... + def endInsertRows(self) -> None: ... + def beginInsertRows(self, parent: QModelIndex, first: int, last: int) -> None: ... + def decodeData(self, row: int, column: int, parent: QModelIndex, stream: 'QDataStream') -> bool: ... + def encodeData(self, indexes: typing.Iterable[QModelIndex], stream: 'QDataStream') -> None: ... + def revert(self) -> None: ... + def submit(self) -> bool: ... + def modelReset(self) -> None: ... + def modelAboutToBeReset(self) -> None: ... + def columnsRemoved(self, parent: QModelIndex, first: int, last: int) -> None: ... + def columnsAboutToBeRemoved(self, parent: QModelIndex, first: int, last: int) -> None: ... + def columnsInserted(self, parent: QModelIndex, first: int, last: int) -> None: ... + def columnsAboutToBeInserted(self, parent: QModelIndex, first: int, last: int) -> None: ... + def rowsRemoved(self, parent: QModelIndex, first: int, last: int) -> None: ... + def rowsAboutToBeRemoved(self, parent: QModelIndex, first: int, last: int) -> None: ... + def rowsInserted(self, parent: QModelIndex, first: int, last: int) -> None: ... + def rowsAboutToBeInserted(self, parent: QModelIndex, first: int, last: int) -> None: ... + def layoutChanged(self, parents: typing.Iterable[QPersistentModelIndex] = ..., hint: 'QAbstractItemModel.LayoutChangeHint' = ...) -> None: ... + def layoutAboutToBeChanged(self, parents: typing.Iterable[QPersistentModelIndex] = ..., hint: 'QAbstractItemModel.LayoutChangeHint' = ...) -> None: ... + def headerDataChanged(self, orientation: Qt.Orientation, first: int, last: int) -> None: ... + def dataChanged(self, topLeft: QModelIndex, bottomRight: QModelIndex, roles: typing.Iterable[int] = ...) -> None: ... + def span(self, index: QModelIndex) -> 'QSize': ... + def match(self, start: QModelIndex, role: int, value: typing.Any, hits: int = ..., flags: typing.Union[Qt.MatchFlags, Qt.MatchFlag] = ...) -> typing.List[QModelIndex]: ... + def buddy(self, index: QModelIndex) -> QModelIndex: ... + def sort(self, column: int, order: Qt.SortOrder = ...) -> None: ... + def flags(self, index: QModelIndex) -> Qt.ItemFlags: ... + def canFetchMore(self, parent: QModelIndex) -> bool: ... + def fetchMore(self, parent: QModelIndex) -> None: ... + def removeColumns(self, column: int, count: int, parent: QModelIndex = ...) -> bool: ... + def removeRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... + def insertColumns(self, column: int, count: int, parent: QModelIndex = ...) -> bool: ... + def insertRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... + def supportedDropActions(self) -> Qt.DropActions: ... + def dropMimeData(self, data: 'QMimeData', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def mimeData(self, indexes: typing.Iterable[QModelIndex]) -> 'QMimeData': ... + def mimeTypes(self) -> typing.List[str]: ... + def setItemData(self, index: QModelIndex, roles: typing.Dict[int, typing.Any]) -> bool: ... + def itemData(self, index: QModelIndex) -> typing.Dict[int, typing.Any]: ... + def setHeaderData(self, section: int, orientation: Qt.Orientation, value: typing.Any, role: int = ...) -> bool: ... + def headerData(self, section: int, orientation: Qt.Orientation, role: int = ...) -> typing.Any: ... + def setData(self, index: QModelIndex, value: typing.Any, role: int = ...) -> bool: ... + def data(self, index: QModelIndex, role: int = ...) -> typing.Any: ... + def hasChildren(self, parent: QModelIndex = ...) -> bool: ... + def columnCount(self, parent: QModelIndex = ...) -> int: ... + def rowCount(self, parent: QModelIndex = ...) -> int: ... + def sibling(self, row: int, column: int, idx: QModelIndex) -> QModelIndex: ... + @typing.overload + def parent(self, child: QModelIndex) -> QModelIndex: ... + @typing.overload + def parent(self) -> QObject: ... + def index(self, row: int, column: int, parent: QModelIndex = ...) -> QModelIndex: ... + def hasIndex(self, row: int, column: int, parent: QModelIndex = ...) -> bool: ... + + +class QAbstractTableModel(QAbstractItemModel): + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def sibling(self, row: int, column: int, idx: QModelIndex) -> QModelIndex: ... + def parent(self) -> QObject: ... + def flags(self, index: QModelIndex) -> Qt.ItemFlags: ... + def dropMimeData(self, data: 'QMimeData', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def index(self, row: int, column: int, parent: QModelIndex = ...) -> QModelIndex: ... + + +class QAbstractListModel(QAbstractItemModel): + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def sibling(self, row: int, column: int, idx: QModelIndex) -> QModelIndex: ... + def parent(self) -> QObject: ... + def flags(self, index: QModelIndex) -> Qt.ItemFlags: ... + def dropMimeData(self, data: 'QMimeData', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def index(self, row: int, column: int = ..., parent: QModelIndex = ...) -> QModelIndex: ... + + +class QAbstractNativeEventFilter(sip.simplewrapper): + + def __init__(self) -> None: ... + + def nativeEventFilter(self, eventType: typing.Union['QByteArray', bytes, bytearray], message: sip.voidptr) -> typing.Tuple[bool, int]: ... + + +class QAbstractProxyModel(QAbstractItemModel): + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def supportedDragActions(self) -> Qt.DropActions: ... + def dropMimeData(self, data: 'QMimeData', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def canDropMimeData(self, data: 'QMimeData', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def sourceModelChanged(self) -> None: ... + def resetInternalData(self) -> None: ... + def sibling(self, row: int, column: int, idx: QModelIndex) -> QModelIndex: ... + def supportedDropActions(self) -> Qt.DropActions: ... + def mimeTypes(self) -> typing.List[str]: ... + def mimeData(self, indexes: typing.Iterable[QModelIndex]) -> 'QMimeData': ... + def hasChildren(self, parent: QModelIndex = ...) -> bool: ... + def span(self, index: QModelIndex) -> 'QSize': ... + def sort(self, column: int, order: Qt.SortOrder = ...) -> None: ... + def fetchMore(self, parent: QModelIndex) -> None: ... + def canFetchMore(self, parent: QModelIndex) -> bool: ... + def buddy(self, index: QModelIndex) -> QModelIndex: ... + def setItemData(self, index: QModelIndex, roles: typing.Dict[int, typing.Any]) -> bool: ... + def flags(self, index: QModelIndex) -> Qt.ItemFlags: ... + def itemData(self, index: QModelIndex) -> typing.Dict[int, typing.Any]: ... + def setHeaderData(self, section: int, orientation: Qt.Orientation, value: typing.Any, role: int = ...) -> bool: ... + def headerData(self, section: int, orientation: Qt.Orientation, role: int = ...) -> typing.Any: ... + def setData(self, index: QModelIndex, value: typing.Any, role: int = ...) -> bool: ... + def data(self, proxyIndex: QModelIndex, role: int = ...) -> typing.Any: ... + def revert(self) -> None: ... + def submit(self) -> bool: ... + def mapSelectionFromSource(self, selection: 'QItemSelection') -> 'QItemSelection': ... + def mapSelectionToSource(self, selection: 'QItemSelection') -> 'QItemSelection': ... + def mapFromSource(self, sourceIndex: QModelIndex) -> QModelIndex: ... + def mapToSource(self, proxyIndex: QModelIndex) -> QModelIndex: ... + def sourceModel(self) -> QAbstractItemModel: ... + def setSourceModel(self, sourceModel: QAbstractItemModel) -> None: ... + + +class QAbstractState(QObject): + + def __init__(self, parent: typing.Optional['QState'] = ...) -> None: ... + + def event(self, e: 'QEvent') -> bool: ... + def onExit(self, event: 'QEvent') -> None: ... + def onEntry(self, event: 'QEvent') -> None: ... + def exited(self) -> None: ... + def entered(self) -> None: ... + def activeChanged(self, active: bool) -> None: ... + def active(self) -> bool: ... + def machine(self) -> 'QStateMachine': ... + def parentState(self) -> 'QState': ... + + +class QAbstractTransition(QObject): + + class TransitionType(int): ... + ExternalTransition = ... # type: 'QAbstractTransition.TransitionType' + InternalTransition = ... # type: 'QAbstractTransition.TransitionType' + + def __init__(self, sourceState: typing.Optional['QState'] = ...) -> None: ... + + def setTransitionType(self, type: 'QAbstractTransition.TransitionType') -> None: ... + def transitionType(self) -> 'QAbstractTransition.TransitionType': ... + def event(self, e: 'QEvent') -> bool: ... + def onTransition(self, event: 'QEvent') -> None: ... + def eventTest(self, event: 'QEvent') -> bool: ... + def targetStatesChanged(self) -> None: ... + def targetStateChanged(self) -> None: ... + def triggered(self) -> None: ... + def animations(self) -> typing.List[QAbstractAnimation]: ... + def removeAnimation(self, animation: QAbstractAnimation) -> None: ... + def addAnimation(self, animation: QAbstractAnimation) -> None: ... + def machine(self) -> 'QStateMachine': ... + def setTargetStates(self, targets: typing.Iterable[QAbstractState]) -> None: ... + def targetStates(self) -> typing.List[QAbstractState]: ... + def setTargetState(self, target: QAbstractState) -> None: ... + def targetState(self) -> QAbstractState: ... + def sourceState(self) -> 'QState': ... + + +class QAnimationGroup(QAbstractAnimation): + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def event(self, event: 'QEvent') -> bool: ... + def clear(self) -> None: ... + def takeAnimation(self, index: int) -> QAbstractAnimation: ... + def removeAnimation(self, animation: QAbstractAnimation) -> None: ... + def insertAnimation(self, index: int, animation: QAbstractAnimation) -> None: ... + def addAnimation(self, animation: QAbstractAnimation) -> None: ... + def indexOfAnimation(self, animation: QAbstractAnimation) -> int: ... + def animationCount(self) -> int: ... + def animationAt(self, index: int) -> QAbstractAnimation: ... + + +class QBasicTimer(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QBasicTimer') -> None: ... + + def stop(self) -> None: ... + @typing.overload + def start(self, msec: int, timerType: Qt.TimerType, obj: QObject) -> None: ... + @typing.overload + def start(self, msec: int, obj: QObject) -> None: ... + def timerId(self) -> int: ... + def isActive(self) -> bool: ... + + +class QBitArray(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, size: int, value: bool = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QBitArray') -> None: ... + + @staticmethod + def fromBits(data: str, len: int) -> 'QBitArray': ... + def bits(self) -> bytes: ... + def swap(self, other: 'QBitArray') -> None: ... + def __hash__(self) -> int: ... + def at(self, i: int) -> bool: ... + def __getitem__(self, i: int) -> bool: ... + def toggleBit(self, i: int) -> bool: ... + def clearBit(self, i: int) -> None: ... + @typing.overload + def setBit(self, i: int) -> None: ... + @typing.overload + def setBit(self, i: int, val: bool) -> None: ... + def testBit(self, i: int) -> bool: ... + def truncate(self, pos: int) -> None: ... + @typing.overload + def fill(self, val: bool, first: int, last: int) -> None: ... + @typing.overload + def fill(self, value: bool, size: int = ...) -> bool: ... + def __invert__(self) -> 'QBitArray': ... + def clear(self) -> None: ... + def isDetached(self) -> bool: ... + def detach(self) -> None: ... + def resize(self, size: int) -> None: ... + def isNull(self) -> bool: ... + def isEmpty(self) -> bool: ... + def __len__(self) -> int: ... + @typing.overload + def count(self) -> int: ... + @typing.overload + def count(self, on: bool) -> int: ... + def size(self) -> int: ... + + +class QIODevice(QObject): + + class OpenModeFlag(int): ... + NotOpen = ... # type: 'QIODevice.OpenModeFlag' + ReadOnly = ... # type: 'QIODevice.OpenModeFlag' + WriteOnly = ... # type: 'QIODevice.OpenModeFlag' + ReadWrite = ... # type: 'QIODevice.OpenModeFlag' + Append = ... # type: 'QIODevice.OpenModeFlag' + Truncate = ... # type: 'QIODevice.OpenModeFlag' + Text = ... # type: 'QIODevice.OpenModeFlag' + Unbuffered = ... # type: 'QIODevice.OpenModeFlag' + NewOnly = ... # type: 'QIODevice.OpenModeFlag' + ExistingOnly = ... # type: 'QIODevice.OpenModeFlag' + + class OpenMode(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QIODevice.OpenMode', 'QIODevice.OpenModeFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QIODevice.OpenMode') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QIODevice.OpenMode': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, parent: QObject) -> None: ... + + def skip(self, maxSize: int) -> int: ... + def channelBytesWritten(self, channel: int, bytes: int) -> None: ... + def channelReadyRead(self, channel: int) -> None: ... + def isTransactionStarted(self) -> bool: ... + def rollbackTransaction(self) -> None: ... + def commitTransaction(self) -> None: ... + def startTransaction(self) -> None: ... + def setCurrentWriteChannel(self, channel: int) -> None: ... + def currentWriteChannel(self) -> int: ... + def setCurrentReadChannel(self, channel: int) -> None: ... + def currentReadChannel(self) -> int: ... + def writeChannelCount(self) -> int: ... + def readChannelCount(self) -> int: ... + def setErrorString(self, errorString: str) -> None: ... + def setOpenMode(self, openMode: typing.Union['QIODevice.OpenMode', 'QIODevice.OpenModeFlag']) -> None: ... + def writeData(self, data: bytes) -> int: ... + def readLineData(self, maxlen: int) -> bytes: ... + def readData(self, maxlen: int) -> bytes: ... + def readChannelFinished(self) -> None: ... + def aboutToClose(self) -> None: ... + def bytesWritten(self, bytes: int) -> None: ... + def readyRead(self) -> None: ... + def errorString(self) -> str: ... + def getChar(self) -> typing.Tuple[bool, str]: ... + def putChar(self, c: str) -> bool: ... + def ungetChar(self, c: str) -> None: ... + def waitForBytesWritten(self, msecs: int) -> bool: ... + def waitForReadyRead(self, msecs: int) -> bool: ... + def write(self, data: typing.Union['QByteArray', bytes, bytearray]) -> int: ... + def peek(self, maxlen: int) -> 'QByteArray': ... + def canReadLine(self) -> bool: ... + def readLine(self, maxlen: int = ...) -> bytes: ... + def readAll(self) -> 'QByteArray': ... + def read(self, maxlen: int) -> bytes: ... + def bytesToWrite(self) -> int: ... + def bytesAvailable(self) -> int: ... + def reset(self) -> bool: ... + def atEnd(self) -> bool: ... + def seek(self, pos: int) -> bool: ... + def size(self) -> int: ... + def pos(self) -> int: ... + def close(self) -> None: ... + def open(self, mode: typing.Union['QIODevice.OpenMode', 'QIODevice.OpenModeFlag']) -> bool: ... + def isSequential(self) -> bool: ... + def isWritable(self) -> bool: ... + def isReadable(self) -> bool: ... + def isOpen(self) -> bool: ... + def isTextModeEnabled(self) -> bool: ... + def setTextModeEnabled(self, enabled: bool) -> None: ... + def openMode(self) -> 'QIODevice.OpenMode': ... + + +class QBuffer(QIODevice): + + @typing.overload + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload + def __init__(self, byteArray: 'QByteArray', parent: typing.Optional[QObject] = ...) -> None: ... + + def disconnectNotify(self, a0: 'QMetaMethod') -> None: ... + def connectNotify(self, a0: 'QMetaMethod') -> None: ... + def writeData(self, data: bytes) -> int: ... + def readData(self, maxlen: int) -> bytes: ... + def canReadLine(self) -> bool: ... + def atEnd(self) -> bool: ... + def seek(self, off: int) -> bool: ... + def pos(self) -> int: ... + def size(self) -> int: ... + def close(self) -> None: ... + def open(self, openMode: typing.Union[QIODevice.OpenMode, QIODevice.OpenModeFlag]) -> bool: ... + @typing.overload + def setData(self, data: typing.Union['QByteArray', bytes, bytearray]) -> None: ... + @typing.overload + def setData(self, adata: bytes) -> None: ... + def setBuffer(self, a: 'QByteArray') -> None: ... + def data(self) -> 'QByteArray': ... + def buffer(self) -> 'QByteArray': ... + + +class QByteArray(sip.simplewrapper): + + class Base64Option(int): ... + Base64Encoding = ... # type: 'QByteArray.Base64Option' + Base64UrlEncoding = ... # type: 'QByteArray.Base64Option' + KeepTrailingEquals = ... # type: 'QByteArray.Base64Option' + OmitTrailingEquals = ... # type: 'QByteArray.Base64Option' + + class Base64Options(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QByteArray.Base64Options', 'QByteArray.Base64Option']) -> None: ... + @typing.overload + def __init__(self, a0: 'QByteArray.Base64Options') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QByteArray.Base64Options': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, size: int, c: str) -> None: ... + @typing.overload + def __init__(self, a: typing.Union['QByteArray', bytes, bytearray]) -> None: ... + + def isLower(self) -> bool: ... + def isUpper(self) -> bool: ... + def compare(self, a: typing.Union['QByteArray', bytes, bytearray], cs: Qt.CaseSensitivity = ...) -> int: ... + def chopped(self, len: int) -> 'QByteArray': ... + def swap(self, other: 'QByteArray') -> None: ... + def repeated(self, times: int) -> 'QByteArray': ... + @staticmethod + def fromPercentEncoding(input: typing.Union['QByteArray', bytes, bytearray], percent: str = ...) -> 'QByteArray': ... + def toPercentEncoding(self, exclude: typing.Union['QByteArray', bytes, bytearray] = ..., include: typing.Union['QByteArray', bytes, bytearray] = ..., percent: str = ...) -> 'QByteArray': ... + @typing.overload + def toHex(self) -> 'QByteArray': ... + @typing.overload + def toHex(self, separator: str) -> 'QByteArray': ... + def contains(self, a: typing.Union['QByteArray', bytes, bytearray]) -> bool: ... + def push_front(self, a: typing.Union['QByteArray', bytes, bytearray]) -> None: ... + def push_back(self, a: typing.Union['QByteArray', bytes, bytearray]) -> None: ... + def squeeze(self) -> None: ... + def reserve(self, size: int) -> None: ... + def capacity(self) -> int: ... + def data(self) -> bytes: ... + def isEmpty(self) -> bool: ... + def __repr__(self) -> str: ... + def __str__(self) -> str: ... + def __hash__(self) -> int: ... + def __contains__(self, a: typing.Union['QByteArray', bytes, bytearray]) -> int: ... + @typing.overload + def __getitem__(self, i: int) -> str: ... + @typing.overload + def __getitem__(self, slice: slice) -> 'QByteArray': ... + def at(self, i: int) -> str: ... + def size(self) -> int: ... + def isNull(self) -> bool: ... + def length(self) -> int: ... + def __len__(self) -> int: ... + @staticmethod + def fromHex(hexEncoded: typing.Union['QByteArray', bytes, bytearray]) -> 'QByteArray': ... + @staticmethod + def fromRawData(a0: bytes) -> 'QByteArray': ... + @typing.overload + @staticmethod + def fromBase64(base64: typing.Union['QByteArray', bytes, bytearray]) -> 'QByteArray': ... + @typing.overload + @staticmethod + def fromBase64(base64: typing.Union['QByteArray', bytes, bytearray], options: typing.Union['QByteArray.Base64Options', 'QByteArray.Base64Option']) -> 'QByteArray': ... + @typing.overload + @staticmethod + def number(n: float, format: str = ..., precision: int = ...) -> 'QByteArray': ... + @typing.overload + @staticmethod + def number(n: int, base: int = ...) -> 'QByteArray': ... + @typing.overload + def setNum(self, n: float, format: str = ..., precision: int = ...) -> 'QByteArray': ... + @typing.overload + def setNum(self, n: int, base: int = ...) -> 'QByteArray': ... + @typing.overload + def toBase64(self) -> 'QByteArray': ... + @typing.overload + def toBase64(self, options: typing.Union['QByteArray.Base64Options', 'QByteArray.Base64Option']) -> 'QByteArray': ... + def toDouble(self) -> typing.Tuple[float, bool]: ... + def toFloat(self) -> typing.Tuple[float, bool]: ... + def toULongLong(self, base: int = ...) -> typing.Tuple[int, bool]: ... + def toLongLong(self, base: int = ...) -> typing.Tuple[int, bool]: ... + def toULong(self, base: int = ...) -> typing.Tuple[int, bool]: ... + def toLong(self, base: int = ...) -> typing.Tuple[int, bool]: ... + def toUInt(self, base: int = ...) -> typing.Tuple[int, bool]: ... + def toInt(self, base: int = ...) -> typing.Tuple[int, bool]: ... + def toUShort(self, base: int = ...) -> typing.Tuple[int, bool]: ... + def toShort(self, base: int = ...) -> typing.Tuple[int, bool]: ... + def split(self, sep: str) -> typing.List['QByteArray']: ... + @typing.overload + def replace(self, index: int, len: int, s: typing.Union['QByteArray', bytes, bytearray]) -> 'QByteArray': ... + @typing.overload + def replace(self, before: typing.Union['QByteArray', bytes, bytearray], after: typing.Union['QByteArray', bytes, bytearray]) -> 'QByteArray': ... + @typing.overload + def replace(self, before: str, after: typing.Union['QByteArray', bytes, bytearray]) -> 'QByteArray': ... + def remove(self, index: int, len: int) -> 'QByteArray': ... + @typing.overload + def insert(self, i: int, a: typing.Union['QByteArray', bytes, bytearray]) -> 'QByteArray': ... + @typing.overload + def insert(self, i: int, s: str) -> 'QByteArray': ... + @typing.overload + def insert(self, i: int, count: int, c: str) -> 'QByteArray': ... + @typing.overload + def append(self, a: typing.Union['QByteArray', bytes, bytearray]) -> 'QByteArray': ... + @typing.overload + def append(self, s: str) -> 'QByteArray': ... + @typing.overload + def append(self, count: int, c: str) -> 'QByteArray': ... + @typing.overload + def prepend(self, a: typing.Union['QByteArray', bytes, bytearray]) -> 'QByteArray': ... + @typing.overload + def prepend(self, count: int, c: str) -> 'QByteArray': ... + def rightJustified(self, width: int, fill: str = ..., truncate: bool = ...) -> 'QByteArray': ... + def leftJustified(self, width: int, fill: str = ..., truncate: bool = ...) -> 'QByteArray': ... + def simplified(self) -> 'QByteArray': ... + def trimmed(self) -> 'QByteArray': ... + def toUpper(self) -> 'QByteArray': ... + def toLower(self) -> 'QByteArray': ... + def chop(self, n: int) -> None: ... + def truncate(self, pos: int) -> None: ... + def endsWith(self, a: typing.Union['QByteArray', bytes, bytearray]) -> bool: ... + def startsWith(self, a: typing.Union['QByteArray', bytes, bytearray]) -> bool: ... + def mid(self, pos: int, length: int = ...) -> 'QByteArray': ... + def right(self, len: int) -> 'QByteArray': ... + def left(self, len: int) -> 'QByteArray': ... + @typing.overload + def count(self, a: typing.Union['QByteArray', bytes, bytearray]) -> int: ... + @typing.overload + def count(self) -> int: ... + @typing.overload + def lastIndexOf(self, ba: typing.Union['QByteArray', bytes, bytearray], from_: int = ...) -> int: ... + @typing.overload + def lastIndexOf(self, str: str, from_: int = ...) -> int: ... + @typing.overload + def indexOf(self, ba: typing.Union['QByteArray', bytes, bytearray], from_: int = ...) -> int: ... + @typing.overload + def indexOf(self, str: str, from_: int = ...) -> int: ... + def clear(self) -> None: ... + def fill(self, ch: str, size: int = ...) -> 'QByteArray': ... + def resize(self, size: int) -> None: ... + + +class QByteArrayMatcher(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, pattern: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + @typing.overload + def __init__(self, other: 'QByteArrayMatcher') -> None: ... + + def pattern(self) -> QByteArray: ... + def indexIn(self, ba: typing.Union[QByteArray, bytes, bytearray], from_: int = ...) -> int: ... + def setPattern(self, pattern: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + + +class QCborError(sip.simplewrapper): + + class Code(int): ... + UnknownError = ... # type: 'QCborError.Code' + AdvancePastEnd = ... # type: 'QCborError.Code' + InputOutputError = ... # type: 'QCborError.Code' + GarbageAtEnd = ... # type: 'QCborError.Code' + EndOfFile = ... # type: 'QCborError.Code' + UnexpectedBreak = ... # type: 'QCborError.Code' + UnknownType = ... # type: 'QCborError.Code' + IllegalType = ... # type: 'QCborError.Code' + IllegalNumber = ... # type: 'QCborError.Code' + IllegalSimpleType = ... # type: 'QCborError.Code' + InvalidUtf8String = ... # type: 'QCborError.Code' + DataTooLarge = ... # type: 'QCborError.Code' + NestingTooDeep = ... # type: 'QCborError.Code' + UnsupportedType = ... # type: 'QCborError.Code' + NoError = ... # type: 'QCborError.Code' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QCborError') -> None: ... + + def toString(self) -> str: ... + def code(self) -> 'QCborError.Code': ... + + +class QCborStreamWriter(sip.simplewrapper): + + @typing.overload + def __init__(self, device: QIODevice) -> None: ... + @typing.overload + def __init__(self, data: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + + def endMap(self) -> bool: ... + @typing.overload + def startMap(self) -> None: ... + @typing.overload + def startMap(self, count: int) -> None: ... + def endArray(self) -> bool: ... + @typing.overload + def startArray(self) -> None: ... + @typing.overload + def startArray(self, count: int) -> None: ... + def appendUndefined(self) -> None: ... + def appendNull(self) -> None: ... + @typing.overload + def append(self, st: QCborSimpleType) -> None: ... + @typing.overload + def append(self, tag: QCborKnownTags) -> None: ... + @typing.overload + def append(self, str: str) -> None: ... + @typing.overload + def append(self, ba: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + @typing.overload + def append(self, b: bool) -> None: ... + @typing.overload + def append(self, d: float) -> None: ... + @typing.overload + def append(self, a0: int) -> None: ... + def device(self) -> QIODevice: ... + def setDevice(self, device: QIODevice) -> None: ... + + +class QCborStreamReader(sip.simplewrapper): + + class StringResultCode(int): ... + EndOfString = ... # type: 'QCborStreamReader.StringResultCode' + Ok = ... # type: 'QCborStreamReader.StringResultCode' + Error = ... # type: 'QCborStreamReader.StringResultCode' + + class Type(int): ... + UnsignedInteger = ... # type: 'QCborStreamReader.Type' + NegativeInteger = ... # type: 'QCborStreamReader.Type' + ByteString = ... # type: 'QCborStreamReader.Type' + ByteArray = ... # type: 'QCborStreamReader.Type' + TextString = ... # type: 'QCborStreamReader.Type' + String = ... # type: 'QCborStreamReader.Type' + Array = ... # type: 'QCborStreamReader.Type' + Map = ... # type: 'QCborStreamReader.Type' + Tag = ... # type: 'QCborStreamReader.Type' + SimpleType = ... # type: 'QCborStreamReader.Type' + HalfFloat = ... # type: 'QCborStreamReader.Type' + Float16 = ... # type: 'QCborStreamReader.Type' + Float = ... # type: 'QCborStreamReader.Type' + Double = ... # type: 'QCborStreamReader.Type' + Invalid = ... # type: 'QCborStreamReader.Type' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, data: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + @typing.overload + def __init__(self, device: QIODevice) -> None: ... + + def toInteger(self) -> int: ... + def toDouble(self) -> float: ... + def toSimpleType(self) -> QCborSimpleType: ... + def toUnsignedInteger(self) -> int: ... + def toBool(self) -> bool: ... + def readByteArray(self) -> typing.Tuple[QByteArray, 'QCborStreamReader.StringResultCode']: ... + def readString(self) -> typing.Tuple[str, 'QCborStreamReader.StringResultCode']: ... + def leaveContainer(self) -> bool: ... + def enterContainer(self) -> bool: ... + def isContainer(self) -> bool: ... + def __len__(self) -> int: ... + def length(self) -> int: ... + def isLengthKnown(self) -> bool: ... + def isUndefined(self) -> bool: ... + def isNull(self) -> bool: ... + def isBool(self) -> bool: ... + def isTrue(self) -> bool: ... + def isFalse(self) -> bool: ... + def isInvalid(self) -> bool: ... + def isDouble(self) -> bool: ... + def isFloat(self) -> bool: ... + def isFloat16(self) -> bool: ... + @typing.overload + def isSimpleType(self) -> bool: ... + @typing.overload + def isSimpleType(self, st: QCborSimpleType) -> bool: ... + def isTag(self) -> bool: ... + def isMap(self) -> bool: ... + def isArray(self) -> bool: ... + def isString(self) -> bool: ... + def isByteArray(self) -> bool: ... + def isInteger(self) -> bool: ... + def isNegativeInteger(self) -> bool: ... + def isUnsignedInteger(self) -> bool: ... + def type(self) -> 'QCborStreamReader.Type': ... + def next(self, maxRecursion: int = ...) -> bool: ... + def hasNext(self) -> bool: ... + def parentContainerType(self) -> 'QCborStreamReader.Type': ... + def containerDepth(self) -> int: ... + def isValid(self) -> bool: ... + def currentOffset(self) -> int: ... + def lastError(self) -> QCborError: ... + def reset(self) -> None: ... + def clear(self) -> None: ... + def reparse(self) -> None: ... + def addData(self, data: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + def device(self) -> QIODevice: ... + def setDevice(self, device: QIODevice) -> None: ... + + +class QCollatorSortKey(sip.simplewrapper): + + def __init__(self, other: 'QCollatorSortKey') -> None: ... + + def compare(self, key: 'QCollatorSortKey') -> int: ... + def swap(self, other: 'QCollatorSortKey') -> None: ... + + +class QCollator(sip.simplewrapper): + + @typing.overload + def __init__(self, locale: 'QLocale' = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QCollator') -> None: ... + + def sortKey(self, string: str) -> QCollatorSortKey: ... + def compare(self, s1: str, s2: str) -> int: ... + def ignorePunctuation(self) -> bool: ... + def setIgnorePunctuation(self, on: bool) -> None: ... + def numericMode(self) -> bool: ... + def setNumericMode(self, on: bool) -> None: ... + def setCaseSensitivity(self, cs: Qt.CaseSensitivity) -> None: ... + def caseSensitivity(self) -> Qt.CaseSensitivity: ... + def locale(self) -> 'QLocale': ... + def setLocale(self, locale: 'QLocale') -> None: ... + def swap(self, other: 'QCollator') -> None: ... + + +class QCommandLineOption(sip.simplewrapper): + + class Flag(int): ... + HiddenFromHelp = ... # type: 'QCommandLineOption.Flag' + ShortOptionStyle = ... # type: 'QCommandLineOption.Flag' + + class Flags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QCommandLineOption.Flags', 'QCommandLineOption.Flag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QCommandLineOption.Flags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QCommandLineOption.Flags': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, name: str) -> None: ... + @typing.overload + def __init__(self, names: typing.Iterable[str]) -> None: ... + @typing.overload + def __init__(self, name: str, description: str, valueName: str = ..., defaultValue: str = ...) -> None: ... + @typing.overload + def __init__(self, names: typing.Iterable[str], description: str, valueName: str = ..., defaultValue: str = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QCommandLineOption') -> None: ... + + def setFlags(self, aflags: typing.Union['QCommandLineOption.Flags', 'QCommandLineOption.Flag']) -> None: ... + def flags(self) -> 'QCommandLineOption.Flags': ... + def isHidden(self) -> bool: ... + def setHidden(self, hidden: bool) -> None: ... + def defaultValues(self) -> typing.List[str]: ... + def setDefaultValues(self, defaultValues: typing.Iterable[str]) -> None: ... + def setDefaultValue(self, defaultValue: str) -> None: ... + def description(self) -> str: ... + def setDescription(self, description: str) -> None: ... + def valueName(self) -> str: ... + def setValueName(self, name: str) -> None: ... + def names(self) -> typing.List[str]: ... + def swap(self, other: 'QCommandLineOption') -> None: ... + + +class QCommandLineParser(sip.simplewrapper): + + class OptionsAfterPositionalArgumentsMode(int): ... + ParseAsOptions = ... # type: 'QCommandLineParser.OptionsAfterPositionalArgumentsMode' + ParseAsPositionalArguments = ... # type: 'QCommandLineParser.OptionsAfterPositionalArgumentsMode' + + class SingleDashWordOptionMode(int): ... + ParseAsCompactedShortOptions = ... # type: 'QCommandLineParser.SingleDashWordOptionMode' + ParseAsLongOptions = ... # type: 'QCommandLineParser.SingleDashWordOptionMode' + + def __init__(self) -> None: ... + + def setOptionsAfterPositionalArgumentsMode(self, mode: 'QCommandLineParser.OptionsAfterPositionalArgumentsMode') -> None: ... + def showVersion(self) -> None: ... + def addOptions(self, options: typing.Iterable[QCommandLineOption]) -> bool: ... + def helpText(self) -> str: ... + def showHelp(self, exitCode: int = ...) -> None: ... + def unknownOptionNames(self) -> typing.List[str]: ... + def optionNames(self) -> typing.List[str]: ... + def positionalArguments(self) -> typing.List[str]: ... + @typing.overload + def values(self, name: str) -> typing.List[str]: ... + @typing.overload + def values(self, option: QCommandLineOption) -> typing.List[str]: ... + @typing.overload + def value(self, name: str) -> str: ... + @typing.overload + def value(self, option: QCommandLineOption) -> str: ... + @typing.overload + def isSet(self, name: str) -> bool: ... + @typing.overload + def isSet(self, option: QCommandLineOption) -> bool: ... + def errorText(self) -> str: ... + def parse(self, arguments: typing.Iterable[str]) -> bool: ... + @typing.overload + def process(self, arguments: typing.Iterable[str]) -> None: ... + @typing.overload + def process(self, app: 'QCoreApplication') -> None: ... + def clearPositionalArguments(self) -> None: ... + def addPositionalArgument(self, name: str, description: str, syntax: str = ...) -> None: ... + def applicationDescription(self) -> str: ... + def setApplicationDescription(self, description: str) -> None: ... + def addHelpOption(self) -> QCommandLineOption: ... + def addVersionOption(self) -> QCommandLineOption: ... + def addOption(self, commandLineOption: QCommandLineOption) -> bool: ... + def setSingleDashWordOptionMode(self, parsingMode: 'QCommandLineParser.SingleDashWordOptionMode') -> None: ... + + +class QConcatenateTablesProxyModel(QAbstractItemModel): + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def span(self, index: QModelIndex) -> 'QSize': ... + def dropMimeData(self, data: 'QMimeData', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def canDropMimeData(self, data: 'QMimeData', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def mimeData(self, indexes: typing.Iterable[QModelIndex]) -> 'QMimeData': ... + def mimeTypes(self) -> typing.List[str]: ... + def columnCount(self, parent: QModelIndex = ...) -> int: ... + def headerData(self, section: int, orientation: Qt.Orientation, role: int = ...) -> typing.Any: ... + def rowCount(self, parent: QModelIndex = ...) -> int: ... + def parent(self, index: QModelIndex) -> QModelIndex: ... + def index(self, row: int, column: int, parent: QModelIndex = ...) -> QModelIndex: ... + def flags(self, index: QModelIndex) -> Qt.ItemFlags: ... + def setItemData(self, index: QModelIndex, roles: typing.Dict[int, typing.Any]) -> bool: ... + def itemData(self, proxyIndex: QModelIndex) -> typing.Dict[int, typing.Any]: ... + def setData(self, index: QModelIndex, value: typing.Any, role: int = ...) -> bool: ... + def data(self, index: QModelIndex, role: int = ...) -> typing.Any: ... + def mapToSource(self, proxyIndex: QModelIndex) -> QModelIndex: ... + def mapFromSource(self, sourceIndex: QModelIndex) -> QModelIndex: ... + def removeSourceModel(self, sourceModel: QAbstractItemModel) -> None: ... + def addSourceModel(self, sourceModel: QAbstractItemModel) -> None: ... + + +class QCoreApplication(QObject): + + def __init__(self, argv: typing.List[str]) -> None: ... + + def __exit__(self, type: typing.Any, value: typing.Any, traceback: typing.Any) -> None: ... + def __enter__(self) -> typing.Any: ... + @staticmethod + def isSetuidAllowed() -> bool: ... + @staticmethod + def setSetuidAllowed(allow: bool) -> None: ... + def removeNativeEventFilter(self, filterObj: QAbstractNativeEventFilter) -> None: ... + def installNativeEventFilter(self, filterObj: QAbstractNativeEventFilter) -> None: ... + @staticmethod + def setQuitLockEnabled(enabled: bool) -> None: ... + @staticmethod + def isQuitLockEnabled() -> bool: ... + @staticmethod + def setEventDispatcher(eventDispatcher: QAbstractEventDispatcher) -> None: ... + @staticmethod + def eventDispatcher() -> QAbstractEventDispatcher: ... + @staticmethod + def applicationPid() -> int: ... + @staticmethod + def applicationVersion() -> str: ... + @staticmethod + def setApplicationVersion(version: str) -> None: ... + def event(self, a0: 'QEvent') -> bool: ... + def aboutToQuit(self) -> None: ... + @staticmethod + def quit() -> None: ... + @staticmethod + def testAttribute(attribute: Qt.ApplicationAttribute) -> bool: ... + @staticmethod + def setAttribute(attribute: Qt.ApplicationAttribute, on: bool = ...) -> None: ... + @staticmethod + def flush() -> None: ... + @staticmethod + def translate(context: str, sourceText: str, disambiguation: typing.Optional[str] = ..., n: int = ...) -> str: ... + @staticmethod + def removeTranslator(messageFile: 'QTranslator') -> bool: ... + @staticmethod + def installTranslator(messageFile: 'QTranslator') -> bool: ... + @staticmethod + def removeLibraryPath(a0: str) -> None: ... + @staticmethod + def addLibraryPath(a0: str) -> None: ... + @staticmethod + def libraryPaths() -> typing.List[str]: ... + @staticmethod + def setLibraryPaths(a0: typing.Iterable[str]) -> None: ... + @staticmethod + def applicationFilePath() -> str: ... + @staticmethod + def applicationDirPath() -> str: ... + @staticmethod + def closingDown() -> bool: ... + @staticmethod + def startingUp() -> bool: ... + def notify(self, a0: QObject, a1: 'QEvent') -> bool: ... + @staticmethod + def hasPendingEvents() -> bool: ... + @staticmethod + def removePostedEvents(receiver: QObject, eventType: int = ...) -> None: ... + @staticmethod + def sendPostedEvents(receiver: typing.Optional[QObject] = ..., eventType: int = ...) -> None: ... + @staticmethod + def postEvent(receiver: QObject, event: 'QEvent', priority: int = ...) -> None: ... + @staticmethod + def sendEvent(receiver: QObject, event: 'QEvent') -> bool: ... + @staticmethod + def exit(returnCode: int = ...) -> None: ... + @typing.overload + @staticmethod + def processEvents(flags: typing.Union['QEventLoop.ProcessEventsFlags', 'QEventLoop.ProcessEventsFlag'] = ...) -> None: ... + @typing.overload + @staticmethod + def processEvents(flags: typing.Union['QEventLoop.ProcessEventsFlags', 'QEventLoop.ProcessEventsFlag'], maxtime: int) -> None: ... + @staticmethod + def exec() -> int: ... + @staticmethod + def exec_() -> int: ... + @staticmethod + def instance() -> 'QCoreApplication': ... + @staticmethod + def arguments() -> typing.List[str]: ... + @staticmethod + def applicationName() -> str: ... + @staticmethod + def setApplicationName(application: str) -> None: ... + @staticmethod + def organizationName() -> str: ... + @staticmethod + def setOrganizationName(orgName: str) -> None: ... + @staticmethod + def organizationDomain() -> str: ... + @staticmethod + def setOrganizationDomain(orgDomain: str) -> None: ... + + +class QEvent(sip.wrapper): + + class Type(int): ... + None_ = ... # type: 'QEvent.Type' + Timer = ... # type: 'QEvent.Type' + MouseButtonPress = ... # type: 'QEvent.Type' + MouseButtonRelease = ... # type: 'QEvent.Type' + MouseButtonDblClick = ... # type: 'QEvent.Type' + MouseMove = ... # type: 'QEvent.Type' + KeyPress = ... # type: 'QEvent.Type' + KeyRelease = ... # type: 'QEvent.Type' + FocusIn = ... # type: 'QEvent.Type' + FocusOut = ... # type: 'QEvent.Type' + Enter = ... # type: 'QEvent.Type' + Leave = ... # type: 'QEvent.Type' + Paint = ... # type: 'QEvent.Type' + Move = ... # type: 'QEvent.Type' + Resize = ... # type: 'QEvent.Type' + Show = ... # type: 'QEvent.Type' + Hide = ... # type: 'QEvent.Type' + Close = ... # type: 'QEvent.Type' + ParentChange = ... # type: 'QEvent.Type' + ParentAboutToChange = ... # type: 'QEvent.Type' + ThreadChange = ... # type: 'QEvent.Type' + WindowActivate = ... # type: 'QEvent.Type' + WindowDeactivate = ... # type: 'QEvent.Type' + ShowToParent = ... # type: 'QEvent.Type' + HideToParent = ... # type: 'QEvent.Type' + Wheel = ... # type: 'QEvent.Type' + WindowTitleChange = ... # type: 'QEvent.Type' + WindowIconChange = ... # type: 'QEvent.Type' + ApplicationWindowIconChange = ... # type: 'QEvent.Type' + ApplicationFontChange = ... # type: 'QEvent.Type' + ApplicationLayoutDirectionChange = ... # type: 'QEvent.Type' + ApplicationPaletteChange = ... # type: 'QEvent.Type' + PaletteChange = ... # type: 'QEvent.Type' + Clipboard = ... # type: 'QEvent.Type' + MetaCall = ... # type: 'QEvent.Type' + SockAct = ... # type: 'QEvent.Type' + WinEventAct = ... # type: 'QEvent.Type' + DeferredDelete = ... # type: 'QEvent.Type' + DragEnter = ... # type: 'QEvent.Type' + DragMove = ... # type: 'QEvent.Type' + DragLeave = ... # type: 'QEvent.Type' + Drop = ... # type: 'QEvent.Type' + ChildAdded = ... # type: 'QEvent.Type' + ChildPolished = ... # type: 'QEvent.Type' + ChildRemoved = ... # type: 'QEvent.Type' + PolishRequest = ... # type: 'QEvent.Type' + Polish = ... # type: 'QEvent.Type' + LayoutRequest = ... # type: 'QEvent.Type' + UpdateRequest = ... # type: 'QEvent.Type' + UpdateLater = ... # type: 'QEvent.Type' + ContextMenu = ... # type: 'QEvent.Type' + InputMethod = ... # type: 'QEvent.Type' + TabletMove = ... # type: 'QEvent.Type' + LocaleChange = ... # type: 'QEvent.Type' + LanguageChange = ... # type: 'QEvent.Type' + LayoutDirectionChange = ... # type: 'QEvent.Type' + TabletPress = ... # type: 'QEvent.Type' + TabletRelease = ... # type: 'QEvent.Type' + OkRequest = ... # type: 'QEvent.Type' + IconDrag = ... # type: 'QEvent.Type' + FontChange = ... # type: 'QEvent.Type' + EnabledChange = ... # type: 'QEvent.Type' + ActivationChange = ... # type: 'QEvent.Type' + StyleChange = ... # type: 'QEvent.Type' + IconTextChange = ... # type: 'QEvent.Type' + ModifiedChange = ... # type: 'QEvent.Type' + MouseTrackingChange = ... # type: 'QEvent.Type' + WindowBlocked = ... # type: 'QEvent.Type' + WindowUnblocked = ... # type: 'QEvent.Type' + WindowStateChange = ... # type: 'QEvent.Type' + ToolTip = ... # type: 'QEvent.Type' + WhatsThis = ... # type: 'QEvent.Type' + StatusTip = ... # type: 'QEvent.Type' + ActionChanged = ... # type: 'QEvent.Type' + ActionAdded = ... # type: 'QEvent.Type' + ActionRemoved = ... # type: 'QEvent.Type' + FileOpen = ... # type: 'QEvent.Type' + Shortcut = ... # type: 'QEvent.Type' + ShortcutOverride = ... # type: 'QEvent.Type' + WhatsThisClicked = ... # type: 'QEvent.Type' + ToolBarChange = ... # type: 'QEvent.Type' + ApplicationActivate = ... # type: 'QEvent.Type' + ApplicationActivated = ... # type: 'QEvent.Type' + ApplicationDeactivate = ... # type: 'QEvent.Type' + ApplicationDeactivated = ... # type: 'QEvent.Type' + QueryWhatsThis = ... # type: 'QEvent.Type' + EnterWhatsThisMode = ... # type: 'QEvent.Type' + LeaveWhatsThisMode = ... # type: 'QEvent.Type' + ZOrderChange = ... # type: 'QEvent.Type' + HoverEnter = ... # type: 'QEvent.Type' + HoverLeave = ... # type: 'QEvent.Type' + HoverMove = ... # type: 'QEvent.Type' + GraphicsSceneMouseMove = ... # type: 'QEvent.Type' + GraphicsSceneMousePress = ... # type: 'QEvent.Type' + GraphicsSceneMouseRelease = ... # type: 'QEvent.Type' + GraphicsSceneMouseDoubleClick = ... # type: 'QEvent.Type' + GraphicsSceneContextMenu = ... # type: 'QEvent.Type' + GraphicsSceneHoverEnter = ... # type: 'QEvent.Type' + GraphicsSceneHoverMove = ... # type: 'QEvent.Type' + GraphicsSceneHoverLeave = ... # type: 'QEvent.Type' + GraphicsSceneHelp = ... # type: 'QEvent.Type' + GraphicsSceneDragEnter = ... # type: 'QEvent.Type' + GraphicsSceneDragMove = ... # type: 'QEvent.Type' + GraphicsSceneDragLeave = ... # type: 'QEvent.Type' + GraphicsSceneDrop = ... # type: 'QEvent.Type' + GraphicsSceneWheel = ... # type: 'QEvent.Type' + GraphicsSceneResize = ... # type: 'QEvent.Type' + GraphicsSceneMove = ... # type: 'QEvent.Type' + KeyboardLayoutChange = ... # type: 'QEvent.Type' + DynamicPropertyChange = ... # type: 'QEvent.Type' + TabletEnterProximity = ... # type: 'QEvent.Type' + TabletLeaveProximity = ... # type: 'QEvent.Type' + NonClientAreaMouseMove = ... # type: 'QEvent.Type' + NonClientAreaMouseButtonPress = ... # type: 'QEvent.Type' + NonClientAreaMouseButtonRelease = ... # type: 'QEvent.Type' + NonClientAreaMouseButtonDblClick = ... # type: 'QEvent.Type' + MacSizeChange = ... # type: 'QEvent.Type' + ContentsRectChange = ... # type: 'QEvent.Type' + CursorChange = ... # type: 'QEvent.Type' + ToolTipChange = ... # type: 'QEvent.Type' + GrabMouse = ... # type: 'QEvent.Type' + UngrabMouse = ... # type: 'QEvent.Type' + GrabKeyboard = ... # type: 'QEvent.Type' + UngrabKeyboard = ... # type: 'QEvent.Type' + StateMachineSignal = ... # type: 'QEvent.Type' + StateMachineWrapped = ... # type: 'QEvent.Type' + TouchBegin = ... # type: 'QEvent.Type' + TouchUpdate = ... # type: 'QEvent.Type' + TouchEnd = ... # type: 'QEvent.Type' + RequestSoftwareInputPanel = ... # type: 'QEvent.Type' + CloseSoftwareInputPanel = ... # type: 'QEvent.Type' + WinIdChange = ... # type: 'QEvent.Type' + Gesture = ... # type: 'QEvent.Type' + GestureOverride = ... # type: 'QEvent.Type' + FocusAboutToChange = ... # type: 'QEvent.Type' + ScrollPrepare = ... # type: 'QEvent.Type' + Scroll = ... # type: 'QEvent.Type' + Expose = ... # type: 'QEvent.Type' + InputMethodQuery = ... # type: 'QEvent.Type' + OrientationChange = ... # type: 'QEvent.Type' + TouchCancel = ... # type: 'QEvent.Type' + PlatformPanel = ... # type: 'QEvent.Type' + ApplicationStateChange = ... # type: 'QEvent.Type' + ReadOnlyChange = ... # type: 'QEvent.Type' + PlatformSurface = ... # type: 'QEvent.Type' + TabletTrackingChange = ... # type: 'QEvent.Type' + User = ... # type: 'QEvent.Type' + MaxUser = ... # type: 'QEvent.Type' + + @typing.overload + def __init__(self, type: 'QEvent.Type') -> None: ... + @typing.overload + def __init__(self, other: 'QEvent') -> None: ... + + @staticmethod + def registerEventType(hint: int = ...) -> int: ... + def ignore(self) -> None: ... + def accept(self) -> None: ... + def isAccepted(self) -> bool: ... + def setAccepted(self, accepted: bool) -> None: ... + def spontaneous(self) -> bool: ... + def type(self) -> 'QEvent.Type': ... + + +class QTimerEvent(QEvent): + + @typing.overload + def __init__(self, timerId: int) -> None: ... + @typing.overload + def __init__(self, a0: 'QTimerEvent') -> None: ... + + def timerId(self) -> int: ... + + +class QChildEvent(QEvent): + + @typing.overload + def __init__(self, type: QEvent.Type, child: QObject) -> None: ... + @typing.overload + def __init__(self, a0: 'QChildEvent') -> None: ... + + def removed(self) -> bool: ... + def polished(self) -> bool: ... + def added(self) -> bool: ... + def child(self) -> QObject: ... + + +class QDynamicPropertyChangeEvent(QEvent): + + @typing.overload + def __init__(self, name: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + @typing.overload + def __init__(self, a0: 'QDynamicPropertyChangeEvent') -> None: ... + + def propertyName(self) -> QByteArray: ... + + +class QCryptographicHash(sip.simplewrapper): + + class Algorithm(int): ... + Md4 = ... # type: 'QCryptographicHash.Algorithm' + Md5 = ... # type: 'QCryptographicHash.Algorithm' + Sha1 = ... # type: 'QCryptographicHash.Algorithm' + Sha224 = ... # type: 'QCryptographicHash.Algorithm' + Sha256 = ... # type: 'QCryptographicHash.Algorithm' + Sha384 = ... # type: 'QCryptographicHash.Algorithm' + Sha512 = ... # type: 'QCryptographicHash.Algorithm' + Sha3_224 = ... # type: 'QCryptographicHash.Algorithm' + Sha3_256 = ... # type: 'QCryptographicHash.Algorithm' + Sha3_384 = ... # type: 'QCryptographicHash.Algorithm' + Sha3_512 = ... # type: 'QCryptographicHash.Algorithm' + Keccak_224 = ... # type: 'QCryptographicHash.Algorithm' + Keccak_256 = ... # type: 'QCryptographicHash.Algorithm' + Keccak_384 = ... # type: 'QCryptographicHash.Algorithm' + Keccak_512 = ... # type: 'QCryptographicHash.Algorithm' + + def __init__(self, method: 'QCryptographicHash.Algorithm') -> None: ... + + @staticmethod + def hashLength(method: 'QCryptographicHash.Algorithm') -> int: ... + @staticmethod + def hash(data: typing.Union[QByteArray, bytes, bytearray], method: 'QCryptographicHash.Algorithm') -> QByteArray: ... + def result(self) -> QByteArray: ... + @typing.overload + def addData(self, data: bytes) -> None: ... + @typing.overload + def addData(self, data: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + @typing.overload + def addData(self, device: QIODevice) -> bool: ... + def reset(self) -> None: ... + + +class QDataStream(sip.simplewrapper): + + class FloatingPointPrecision(int): ... + SinglePrecision = ... # type: 'QDataStream.FloatingPointPrecision' + DoublePrecision = ... # type: 'QDataStream.FloatingPointPrecision' + + class Status(int): ... + Ok = ... # type: 'QDataStream.Status' + ReadPastEnd = ... # type: 'QDataStream.Status' + ReadCorruptData = ... # type: 'QDataStream.Status' + WriteFailed = ... # type: 'QDataStream.Status' + + class ByteOrder(int): ... + BigEndian = ... # type: 'QDataStream.ByteOrder' + LittleEndian = ... # type: 'QDataStream.ByteOrder' + + class Version(int): ... + Qt_1_0 = ... # type: 'QDataStream.Version' + Qt_2_0 = ... # type: 'QDataStream.Version' + Qt_2_1 = ... # type: 'QDataStream.Version' + Qt_3_0 = ... # type: 'QDataStream.Version' + Qt_3_1 = ... # type: 'QDataStream.Version' + Qt_3_3 = ... # type: 'QDataStream.Version' + Qt_4_0 = ... # type: 'QDataStream.Version' + Qt_4_1 = ... # type: 'QDataStream.Version' + Qt_4_2 = ... # type: 'QDataStream.Version' + Qt_4_3 = ... # type: 'QDataStream.Version' + Qt_4_4 = ... # type: 'QDataStream.Version' + Qt_4_5 = ... # type: 'QDataStream.Version' + Qt_4_6 = ... # type: 'QDataStream.Version' + Qt_4_7 = ... # type: 'QDataStream.Version' + Qt_4_8 = ... # type: 'QDataStream.Version' + Qt_4_9 = ... # type: 'QDataStream.Version' + Qt_5_0 = ... # type: 'QDataStream.Version' + Qt_5_1 = ... # type: 'QDataStream.Version' + Qt_5_2 = ... # type: 'QDataStream.Version' + Qt_5_3 = ... # type: 'QDataStream.Version' + Qt_5_4 = ... # type: 'QDataStream.Version' + Qt_5_5 = ... # type: 'QDataStream.Version' + Qt_5_6 = ... # type: 'QDataStream.Version' + Qt_5_7 = ... # type: 'QDataStream.Version' + Qt_5_8 = ... # type: 'QDataStream.Version' + Qt_5_9 = ... # type: 'QDataStream.Version' + Qt_5_10 = ... # type: 'QDataStream.Version' + Qt_5_11 = ... # type: 'QDataStream.Version' + Qt_5_12 = ... # type: 'QDataStream.Version' + Qt_5_13 = ... # type: 'QDataStream.Version' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: QIODevice) -> None: ... + @typing.overload + def __init__(self, a0: QByteArray, flags: typing.Union[QIODevice.OpenMode, QIODevice.OpenModeFlag]) -> None: ... + @typing.overload + def __init__(self, a0: QByteArray) -> None: ... + + def abortTransaction(self) -> None: ... + def rollbackTransaction(self) -> None: ... + def commitTransaction(self) -> bool: ... + def startTransaction(self) -> None: ... + def setFloatingPointPrecision(self, precision: 'QDataStream.FloatingPointPrecision') -> None: ... + def floatingPointPrecision(self) -> 'QDataStream.FloatingPointPrecision': ... + def writeRawData(self, a0: bytes) -> int: ... + def writeBytes(self, a0: bytes) -> 'QDataStream': ... + def readRawData(self, len: int) -> bytes: ... + def readBytes(self) -> bytes: ... + def writeQVariantHash(self, qvarhash: typing.Dict[str, typing.Any]) -> None: ... + def readQVariantHash(self) -> typing.Dict[str, typing.Any]: ... + def writeQVariantMap(self, qvarmap: typing.Dict[str, typing.Any]) -> None: ... + def readQVariantMap(self) -> typing.Dict[str, typing.Any]: ... + def writeQVariantList(self, qvarlst: typing.Iterable[typing.Any]) -> None: ... + def readQVariantList(self) -> typing.List[typing.Any]: ... + def writeQVariant(self, qvar: typing.Any) -> None: ... + def readQVariant(self) -> typing.Any: ... + def writeQStringList(self, qstrlst: typing.Iterable[str]) -> None: ... + def readQStringList(self) -> typing.List[str]: ... + def writeQString(self, qstr: str) -> None: ... + def readQString(self) -> str: ... + def writeString(self, str: str) -> None: ... + def writeDouble(self, f: float) -> None: ... + def writeFloat(self, f: float) -> None: ... + def writeBool(self, i: bool) -> None: ... + def writeUInt64(self, i: int) -> None: ... + def writeInt64(self, i: int) -> None: ... + def writeUInt32(self, i: int) -> None: ... + def writeInt32(self, i: int) -> None: ... + def writeUInt16(self, i: int) -> None: ... + def writeInt16(self, i: int) -> None: ... + def writeUInt8(self, i: int) -> None: ... + def writeInt8(self, i: int) -> None: ... + def writeInt(self, i: int) -> None: ... + def readString(self) -> bytes: ... + def readDouble(self) -> float: ... + def readFloat(self) -> float: ... + def readBool(self) -> bool: ... + def readUInt64(self) -> int: ... + def readInt64(self) -> int: ... + def readUInt32(self) -> int: ... + def readInt32(self) -> int: ... + def readUInt16(self) -> int: ... + def readInt16(self) -> int: ... + def readUInt8(self) -> int: ... + def readInt8(self) -> int: ... + def readInt(self) -> int: ... + def skipRawData(self, len: int) -> int: ... + def setVersion(self, v: int) -> None: ... + def version(self) -> int: ... + def setByteOrder(self, a0: 'QDataStream.ByteOrder') -> None: ... + def byteOrder(self) -> 'QDataStream.ByteOrder': ... + def resetStatus(self) -> None: ... + def setStatus(self, status: 'QDataStream.Status') -> None: ... + def status(self) -> 'QDataStream.Status': ... + def atEnd(self) -> bool: ... + def setDevice(self, a0: QIODevice) -> None: ... + def device(self) -> QIODevice: ... + + +class QDate(sip.simplewrapper): + + class MonthNameType(int): ... + DateFormat = ... # type: 'QDate.MonthNameType' + StandaloneFormat = ... # type: 'QDate.MonthNameType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, y: int, m: int, d: int) -> None: ... + @typing.overload + def __init__(self, a0: 'QDate') -> None: ... + + def getDate(self) -> typing.Tuple[int, int, int]: ... + def setDate(self, year: int, month: int, date: int) -> bool: ... + def toJulianDay(self) -> int: ... + @staticmethod + def fromJulianDay(jd: int) -> 'QDate': ... + @staticmethod + def isLeapYear(year: int) -> bool: ... + @typing.overload + @staticmethod + def fromString(string: str, format: Qt.DateFormat = ...) -> 'QDate': ... + @typing.overload + @staticmethod + def fromString(s: str, format: str) -> 'QDate': ... + @staticmethod + def currentDate() -> 'QDate': ... + def daysTo(self, a0: typing.Union['QDate', datetime.date]) -> int: ... + def addYears(self, years: int) -> 'QDate': ... + def addMonths(self, months: int) -> 'QDate': ... + def addDays(self, days: int) -> 'QDate': ... + @typing.overload + def toString(self, format: Qt.DateFormat = ...) -> str: ... + @typing.overload + def toString(self, format: str) -> str: ... + @staticmethod + def longDayName(weekday: int, type: 'QDate.MonthNameType' = ...) -> str: ... + @staticmethod + def longMonthName(month: int, type: 'QDate.MonthNameType' = ...) -> str: ... + @staticmethod + def shortDayName(weekday: int, type: 'QDate.MonthNameType' = ...) -> str: ... + @staticmethod + def shortMonthName(month: int, type: 'QDate.MonthNameType' = ...) -> str: ... + def weekNumber(self) -> typing.Tuple[int, int]: ... + def daysInYear(self) -> int: ... + def daysInMonth(self) -> int: ... + def dayOfYear(self) -> int: ... + def dayOfWeek(self) -> int: ... + def day(self) -> int: ... + def month(self) -> int: ... + def year(self) -> int: ... + @typing.overload + def isValid(self) -> bool: ... + @typing.overload + @staticmethod + def isValid(y: int, m: int, d: int) -> bool: ... + def __bool__(self) -> int: ... + def isNull(self) -> bool: ... + def toPyDate(self) -> datetime.date: ... + def __hash__(self) -> int: ... + def __repr__(self) -> str: ... + + +class QTime(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, h: int, m: int, second: int = ..., msec: int = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QTime') -> None: ... + + def msecsSinceStartOfDay(self) -> int: ... + @staticmethod + def fromMSecsSinceStartOfDay(msecs: int) -> 'QTime': ... + def elapsed(self) -> int: ... + def restart(self) -> int: ... + def start(self) -> None: ... + @typing.overload + @staticmethod + def fromString(string: str, format: Qt.DateFormat = ...) -> 'QTime': ... + @typing.overload + @staticmethod + def fromString(s: str, format: str) -> 'QTime': ... + @staticmethod + def currentTime() -> 'QTime': ... + def msecsTo(self, a0: typing.Union['QTime', datetime.time]) -> int: ... + def addMSecs(self, ms: int) -> 'QTime': ... + def secsTo(self, a0: typing.Union['QTime', datetime.time]) -> int: ... + def addSecs(self, secs: int) -> 'QTime': ... + def setHMS(self, h: int, m: int, s: int, msec: int = ...) -> bool: ... + @typing.overload + def toString(self, format: Qt.DateFormat = ...) -> str: ... + @typing.overload + def toString(self, format: str) -> str: ... + def msec(self) -> int: ... + def second(self) -> int: ... + def minute(self) -> int: ... + def hour(self) -> int: ... + @typing.overload + def isValid(self) -> bool: ... + @typing.overload + @staticmethod + def isValid(h: int, m: int, s: int, msec: int = ...) -> bool: ... + def __bool__(self) -> int: ... + def isNull(self) -> bool: ... + def toPyTime(self) -> datetime.time: ... + def __hash__(self) -> int: ... + def __repr__(self) -> str: ... + + +class QDateTime(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: typing.Union['QDateTime', datetime.datetime]) -> None: ... + @typing.overload + def __init__(self, a0: typing.Union[QDate, datetime.date]) -> None: ... + @typing.overload + def __init__(self, date: typing.Union[QDate, datetime.date], time: typing.Union[QTime, datetime.time], timeSpec: Qt.TimeSpec = ...) -> None: ... + @typing.overload + def __init__(self, year: int, month: int, day: int, hour: int, minute: int, second: int = ..., msec: int = ..., timeSpec: int = ...) -> None: ... + @typing.overload + def __init__(self, date: typing.Union[QDate, datetime.date], time: typing.Union[QTime, datetime.time], spec: Qt.TimeSpec, offsetSeconds: int) -> None: ... + @typing.overload + def __init__(self, date: typing.Union[QDate, datetime.date], time: typing.Union[QTime, datetime.time], timeZone: 'QTimeZone') -> None: ... + + @staticmethod + def currentSecsSinceEpoch() -> int: ... + @typing.overload + @staticmethod + def fromSecsSinceEpoch(secs: int, spec: Qt.TimeSpec = ..., offsetSeconds: int = ...) -> 'QDateTime': ... + @typing.overload + @staticmethod + def fromSecsSinceEpoch(secs: int, timeZone: 'QTimeZone') -> 'QDateTime': ... + def setSecsSinceEpoch(self, secs: int) -> None: ... + def toSecsSinceEpoch(self) -> int: ... + def toTimeZone(self, toZone: 'QTimeZone') -> 'QDateTime': ... + def toOffsetFromUtc(self, offsetSeconds: int) -> 'QDateTime': ... + def setTimeZone(self, toZone: 'QTimeZone') -> None: ... + def setOffsetFromUtc(self, offsetSeconds: int) -> None: ... + def isDaylightTime(self) -> bool: ... + def timeZoneAbbreviation(self) -> str: ... + def timeZone(self) -> 'QTimeZone': ... + def offsetFromUtc(self) -> int: ... + def swap(self, other: 'QDateTime') -> None: ... + @staticmethod + def currentMSecsSinceEpoch() -> int: ... + @typing.overload + @staticmethod + def fromMSecsSinceEpoch(msecs: int) -> 'QDateTime': ... + @typing.overload + @staticmethod + def fromMSecsSinceEpoch(msecs: int, spec: Qt.TimeSpec, offsetSeconds: int = ...) -> 'QDateTime': ... + @typing.overload + @staticmethod + def fromMSecsSinceEpoch(msecs: int, timeZone: 'QTimeZone') -> 'QDateTime': ... + @staticmethod + def currentDateTimeUtc() -> 'QDateTime': ... + def msecsTo(self, a0: typing.Union['QDateTime', datetime.datetime]) -> int: ... + def setMSecsSinceEpoch(self, msecs: int) -> None: ... + def toMSecsSinceEpoch(self) -> int: ... + @typing.overload + @staticmethod + def fromTime_t(secsSince1Jan1970UTC: int) -> 'QDateTime': ... + @typing.overload + @staticmethod + def fromTime_t(secsSince1Jan1970UTC: int, spec: Qt.TimeSpec, offsetSeconds: int = ...) -> 'QDateTime': ... + @typing.overload + @staticmethod + def fromTime_t(secsSince1Jan1970UTC: int, timeZone: 'QTimeZone') -> 'QDateTime': ... + @typing.overload + @staticmethod + def fromString(string: str, format: Qt.DateFormat = ...) -> 'QDateTime': ... + @typing.overload + @staticmethod + def fromString(s: str, format: str) -> 'QDateTime': ... + @staticmethod + def currentDateTime() -> 'QDateTime': ... + def secsTo(self, a0: typing.Union['QDateTime', datetime.datetime]) -> int: ... + def daysTo(self, a0: typing.Union['QDateTime', datetime.datetime]) -> int: ... + def toUTC(self) -> 'QDateTime': ... + def toLocalTime(self) -> 'QDateTime': ... + def toTimeSpec(self, spec: Qt.TimeSpec) -> 'QDateTime': ... + def addMSecs(self, msecs: int) -> 'QDateTime': ... + def addSecs(self, secs: int) -> 'QDateTime': ... + def addYears(self, years: int) -> 'QDateTime': ... + def addMonths(self, months: int) -> 'QDateTime': ... + def addDays(self, days: int) -> 'QDateTime': ... + @typing.overload + def toString(self, format: Qt.DateFormat = ...) -> str: ... + @typing.overload + def toString(self, format: str) -> str: ... + def setTime_t(self, secsSince1Jan1970UTC: int) -> None: ... + def setTimeSpec(self, spec: Qt.TimeSpec) -> None: ... + def setTime(self, time: typing.Union[QTime, datetime.time]) -> None: ... + def setDate(self, date: typing.Union[QDate, datetime.date]) -> None: ... + def toTime_t(self) -> int: ... + def timeSpec(self) -> Qt.TimeSpec: ... + def time(self) -> QTime: ... + def date(self) -> QDate: ... + def isValid(self) -> bool: ... + def __bool__(self) -> int: ... + def isNull(self) -> bool: ... + def toPyDateTime(self) -> datetime.datetime: ... + def __hash__(self) -> int: ... + def __repr__(self) -> str: ... + + +class QDeadlineTimer(sip.simplewrapper): + + class ForeverConstant(int): ... + Forever = ... # type: 'QDeadlineTimer.ForeverConstant' + + @typing.overload + def __init__(self, type: Qt.TimerType = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QDeadlineTimer.ForeverConstant', type: Qt.TimerType = ...) -> None: ... + @typing.overload + def __init__(self, msecs: int, type: Qt.TimerType = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QDeadlineTimer') -> None: ... + + @staticmethod + def current(type: Qt.TimerType = ...) -> 'QDeadlineTimer': ... + @staticmethod + def addNSecs(dt: 'QDeadlineTimer', nsecs: int) -> 'QDeadlineTimer': ... + def setPreciseDeadline(self, secs: int, nsecs: int = ..., type: Qt.TimerType = ...) -> None: ... + def setDeadline(self, msecs: int, type: Qt.TimerType = ...) -> None: ... + def deadlineNSecs(self) -> int: ... + def deadline(self) -> int: ... + def setPreciseRemainingTime(self, secs: int, nsecs: int = ..., type: Qt.TimerType = ...) -> None: ... + def setRemainingTime(self, msecs: int, type: Qt.TimerType = ...) -> None: ... + def remainingTimeNSecs(self) -> int: ... + def remainingTime(self) -> int: ... + def setTimerType(self, type: Qt.TimerType) -> None: ... + def timerType(self) -> Qt.TimerType: ... + def hasExpired(self) -> bool: ... + def isForever(self) -> bool: ... + def swap(self, other: 'QDeadlineTimer') -> None: ... + + +class QDir(sip.simplewrapper): + + class SortFlag(int): ... + Name = ... # type: 'QDir.SortFlag' + Time = ... # type: 'QDir.SortFlag' + Size = ... # type: 'QDir.SortFlag' + Unsorted = ... # type: 'QDir.SortFlag' + SortByMask = ... # type: 'QDir.SortFlag' + DirsFirst = ... # type: 'QDir.SortFlag' + Reversed = ... # type: 'QDir.SortFlag' + IgnoreCase = ... # type: 'QDir.SortFlag' + DirsLast = ... # type: 'QDir.SortFlag' + LocaleAware = ... # type: 'QDir.SortFlag' + Type = ... # type: 'QDir.SortFlag' + NoSort = ... # type: 'QDir.SortFlag' + + class Filter(int): ... + Dirs = ... # type: 'QDir.Filter' + Files = ... # type: 'QDir.Filter' + Drives = ... # type: 'QDir.Filter' + NoSymLinks = ... # type: 'QDir.Filter' + AllEntries = ... # type: 'QDir.Filter' + TypeMask = ... # type: 'QDir.Filter' + Readable = ... # type: 'QDir.Filter' + Writable = ... # type: 'QDir.Filter' + Executable = ... # type: 'QDir.Filter' + PermissionMask = ... # type: 'QDir.Filter' + Modified = ... # type: 'QDir.Filter' + Hidden = ... # type: 'QDir.Filter' + System = ... # type: 'QDir.Filter' + AccessMask = ... # type: 'QDir.Filter' + AllDirs = ... # type: 'QDir.Filter' + CaseSensitive = ... # type: 'QDir.Filter' + NoDotAndDotDot = ... # type: 'QDir.Filter' + NoFilter = ... # type: 'QDir.Filter' + NoDot = ... # type: 'QDir.Filter' + NoDotDot = ... # type: 'QDir.Filter' + + class Filters(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QDir.Filters', 'QDir.Filter']) -> None: ... + @typing.overload + def __init__(self, a0: 'QDir.Filters') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QDir.Filters': ... + def __int__(self) -> int: ... + + class SortFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QDir.SortFlags', 'QDir.SortFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QDir.SortFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QDir.SortFlags': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, a0: 'QDir') -> None: ... + @typing.overload + def __init__(self, path: str = ...) -> None: ... + @typing.overload + def __init__(self, path: str, nameFilter: str, sort: 'QDir.SortFlags' = ..., filters: 'QDir.Filters' = ...) -> None: ... + + def isEmpty(self, filters: typing.Union['QDir.Filters', 'QDir.Filter'] = ...) -> bool: ... + @staticmethod + def listSeparator() -> str: ... + def swap(self, other: 'QDir') -> None: ... + def removeRecursively(self) -> bool: ... + @staticmethod + def searchPaths(prefix: str) -> typing.List[str]: ... + @staticmethod + def addSearchPath(prefix: str, path: str) -> None: ... + @staticmethod + def setSearchPaths(prefix: str, searchPaths: typing.Iterable[str]) -> None: ... + @staticmethod + def fromNativeSeparators(pathName: str) -> str: ... + @staticmethod + def toNativeSeparators(pathName: str) -> str: ... + @staticmethod + def cleanPath(path: str) -> str: ... + @typing.overload + @staticmethod + def match(filters: typing.Iterable[str], fileName: str) -> bool: ... + @typing.overload + @staticmethod + def match(filter: str, fileName: str) -> bool: ... + @staticmethod + def tempPath() -> str: ... + @staticmethod + def temp() -> 'QDir': ... + @staticmethod + def rootPath() -> str: ... + @staticmethod + def root() -> 'QDir': ... + @staticmethod + def homePath() -> str: ... + @staticmethod + def home() -> 'QDir': ... + @staticmethod + def currentPath() -> str: ... + @staticmethod + def current() -> 'QDir': ... + @staticmethod + def setCurrent(path: str) -> bool: ... + @staticmethod + def separator() -> str: ... + @staticmethod + def drives() -> typing.List['QFileInfo']: ... + def refresh(self) -> None: ... + def rename(self, oldName: str, newName: str) -> bool: ... + def remove(self, fileName: str) -> bool: ... + def makeAbsolute(self) -> bool: ... + def isAbsolute(self) -> bool: ... + def isRelative(self) -> bool: ... + @staticmethod + def isAbsolutePath(path: str) -> bool: ... + @staticmethod + def isRelativePath(path: str) -> bool: ... + def isRoot(self) -> bool: ... + @typing.overload + def exists(self) -> bool: ... + @typing.overload + def exists(self, name: str) -> bool: ... + def isReadable(self) -> bool: ... + def rmpath(self, dirPath: str) -> bool: ... + def mkpath(self, dirPath: str) -> bool: ... + def rmdir(self, dirName: str) -> bool: ... + def mkdir(self, dirName: str) -> bool: ... + @typing.overload + def entryInfoList(self, filters: typing.Union['QDir.Filters', 'QDir.Filter'] = ..., sort: typing.Union['QDir.SortFlags', 'QDir.SortFlag'] = ...) -> typing.List['QFileInfo']: ... + @typing.overload + def entryInfoList(self, nameFilters: typing.Iterable[str], filters: typing.Union['QDir.Filters', 'QDir.Filter'] = ..., sort: typing.Union['QDir.SortFlags', 'QDir.SortFlag'] = ...) -> typing.List['QFileInfo']: ... + @typing.overload + def entryList(self, filters: typing.Union['QDir.Filters', 'QDir.Filter'] = ..., sort: typing.Union['QDir.SortFlags', 'QDir.SortFlag'] = ...) -> typing.List[str]: ... + @typing.overload + def entryList(self, nameFilters: typing.Iterable[str], filters: typing.Union['QDir.Filters', 'QDir.Filter'] = ..., sort: typing.Union['QDir.SortFlags', 'QDir.SortFlag'] = ...) -> typing.List[str]: ... + @staticmethod + def nameFiltersFromString(nameFilter: str) -> typing.List[str]: ... + def __contains__(self, a0: str) -> int: ... + @typing.overload + def __getitem__(self, a0: int) -> str: ... + @typing.overload + def __getitem__(self, a0: slice) -> typing.List[str]: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def setSorting(self, sort: typing.Union['QDir.SortFlags', 'QDir.SortFlag']) -> None: ... + def sorting(self) -> 'QDir.SortFlags': ... + def setFilter(self, filter: typing.Union['QDir.Filters', 'QDir.Filter']) -> None: ... + def filter(self) -> 'QDir.Filters': ... + def setNameFilters(self, nameFilters: typing.Iterable[str]) -> None: ... + def nameFilters(self) -> typing.List[str]: ... + def cdUp(self) -> bool: ... + def cd(self, dirName: str) -> bool: ... + def relativeFilePath(self, fileName: str) -> str: ... + def absoluteFilePath(self, fileName: str) -> str: ... + def filePath(self, fileName: str) -> str: ... + def dirName(self) -> str: ... + def canonicalPath(self) -> str: ... + def absolutePath(self) -> str: ... + def path(self) -> str: ... + def setPath(self, path: str) -> None: ... + + +class QDirIterator(sip.simplewrapper): + + class IteratorFlag(int): ... + NoIteratorFlags = ... # type: 'QDirIterator.IteratorFlag' + FollowSymlinks = ... # type: 'QDirIterator.IteratorFlag' + Subdirectories = ... # type: 'QDirIterator.IteratorFlag' + + class IteratorFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QDirIterator.IteratorFlags', 'QDirIterator.IteratorFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QDirIterator.IteratorFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QDirIterator.IteratorFlags': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, dir: QDir, flags: 'QDirIterator.IteratorFlags' = ...) -> None: ... + @typing.overload + def __init__(self, path: str, flags: 'QDirIterator.IteratorFlags' = ...) -> None: ... + @typing.overload + def __init__(self, path: str, filters: QDir.Filters, flags: 'QDirIterator.IteratorFlags' = ...) -> None: ... + @typing.overload + def __init__(self, path: str, nameFilters: typing.Iterable[str], filters: QDir.Filters = ..., flags: 'QDirIterator.IteratorFlags' = ...) -> None: ... + + def path(self) -> str: ... + def fileInfo(self) -> 'QFileInfo': ... + def filePath(self) -> str: ... + def fileName(self) -> str: ... + def hasNext(self) -> bool: ... + def next(self) -> str: ... + + +class QEasingCurve(sip.simplewrapper): + + class Type(int): ... + Linear = ... # type: 'QEasingCurve.Type' + InQuad = ... # type: 'QEasingCurve.Type' + OutQuad = ... # type: 'QEasingCurve.Type' + InOutQuad = ... # type: 'QEasingCurve.Type' + OutInQuad = ... # type: 'QEasingCurve.Type' + InCubic = ... # type: 'QEasingCurve.Type' + OutCubic = ... # type: 'QEasingCurve.Type' + InOutCubic = ... # type: 'QEasingCurve.Type' + OutInCubic = ... # type: 'QEasingCurve.Type' + InQuart = ... # type: 'QEasingCurve.Type' + OutQuart = ... # type: 'QEasingCurve.Type' + InOutQuart = ... # type: 'QEasingCurve.Type' + OutInQuart = ... # type: 'QEasingCurve.Type' + InQuint = ... # type: 'QEasingCurve.Type' + OutQuint = ... # type: 'QEasingCurve.Type' + InOutQuint = ... # type: 'QEasingCurve.Type' + OutInQuint = ... # type: 'QEasingCurve.Type' + InSine = ... # type: 'QEasingCurve.Type' + OutSine = ... # type: 'QEasingCurve.Type' + InOutSine = ... # type: 'QEasingCurve.Type' + OutInSine = ... # type: 'QEasingCurve.Type' + InExpo = ... # type: 'QEasingCurve.Type' + OutExpo = ... # type: 'QEasingCurve.Type' + InOutExpo = ... # type: 'QEasingCurve.Type' + OutInExpo = ... # type: 'QEasingCurve.Type' + InCirc = ... # type: 'QEasingCurve.Type' + OutCirc = ... # type: 'QEasingCurve.Type' + InOutCirc = ... # type: 'QEasingCurve.Type' + OutInCirc = ... # type: 'QEasingCurve.Type' + InElastic = ... # type: 'QEasingCurve.Type' + OutElastic = ... # type: 'QEasingCurve.Type' + InOutElastic = ... # type: 'QEasingCurve.Type' + OutInElastic = ... # type: 'QEasingCurve.Type' + InBack = ... # type: 'QEasingCurve.Type' + OutBack = ... # type: 'QEasingCurve.Type' + InOutBack = ... # type: 'QEasingCurve.Type' + OutInBack = ... # type: 'QEasingCurve.Type' + InBounce = ... # type: 'QEasingCurve.Type' + OutBounce = ... # type: 'QEasingCurve.Type' + InOutBounce = ... # type: 'QEasingCurve.Type' + OutInBounce = ... # type: 'QEasingCurve.Type' + InCurve = ... # type: 'QEasingCurve.Type' + OutCurve = ... # type: 'QEasingCurve.Type' + SineCurve = ... # type: 'QEasingCurve.Type' + CosineCurve = ... # type: 'QEasingCurve.Type' + BezierSpline = ... # type: 'QEasingCurve.Type' + TCBSpline = ... # type: 'QEasingCurve.Type' + Custom = ... # type: 'QEasingCurve.Type' + + @typing.overload + def __init__(self, type: 'QEasingCurve.Type' = ...) -> None: ... + @typing.overload + def __init__(self, other: typing.Union['QEasingCurve', 'QEasingCurve.Type']) -> None: ... + + def toCubicSpline(self) -> typing.List['QPointF']: ... + def addTCBSegment(self, nextPoint: typing.Union['QPointF', 'QPoint'], t: float, c: float, b: float) -> None: ... + def addCubicBezierSegment(self, c1: typing.Union['QPointF', 'QPoint'], c2: typing.Union['QPointF', 'QPoint'], endPoint: typing.Union['QPointF', 'QPoint']) -> None: ... + def swap(self, other: 'QEasingCurve') -> None: ... + def valueForProgress(self, progress: float) -> float: ... + def customType(self) -> typing.Callable[[float], float]: ... + def setCustomType(self, func: typing.Callable[[float], float]) -> None: ... + def setType(self, type: 'QEasingCurve.Type') -> None: ... + def type(self) -> 'QEasingCurve.Type': ... + def setOvershoot(self, overshoot: float) -> None: ... + def overshoot(self) -> float: ... + def setPeriod(self, period: float) -> None: ... + def period(self) -> float: ... + def setAmplitude(self, amplitude: float) -> None: ... + def amplitude(self) -> float: ... + + +class QElapsedTimer(sip.simplewrapper): + + class ClockType(int): ... + SystemTime = ... # type: 'QElapsedTimer.ClockType' + MonotonicClock = ... # type: 'QElapsedTimer.ClockType' + TickCounter = ... # type: 'QElapsedTimer.ClockType' + MachAbsoluteTime = ... # type: 'QElapsedTimer.ClockType' + PerformanceCounter = ... # type: 'QElapsedTimer.ClockType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QElapsedTimer') -> None: ... + + def nsecsElapsed(self) -> int: ... + def secsTo(self, other: 'QElapsedTimer') -> int: ... + def msecsTo(self, other: 'QElapsedTimer') -> int: ... + def msecsSinceReference(self) -> int: ... + def hasExpired(self, timeout: int) -> bool: ... + def elapsed(self) -> int: ... + def isValid(self) -> bool: ... + def invalidate(self) -> None: ... + def restart(self) -> int: ... + def start(self) -> None: ... + @staticmethod + def isMonotonic() -> bool: ... + @staticmethod + def clockType() -> 'QElapsedTimer.ClockType': ... + + +class QEventLoop(QObject): + + class ProcessEventsFlag(int): ... + AllEvents = ... # type: 'QEventLoop.ProcessEventsFlag' + ExcludeUserInputEvents = ... # type: 'QEventLoop.ProcessEventsFlag' + ExcludeSocketNotifiers = ... # type: 'QEventLoop.ProcessEventsFlag' + WaitForMoreEvents = ... # type: 'QEventLoop.ProcessEventsFlag' + X11ExcludeTimers = ... # type: 'QEventLoop.ProcessEventsFlag' + + class ProcessEventsFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QEventLoop.ProcessEventsFlags', 'QEventLoop.ProcessEventsFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QEventLoop.ProcessEventsFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QEventLoop.ProcessEventsFlags': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def event(self, event: QEvent) -> bool: ... + def quit(self) -> None: ... + def wakeUp(self) -> None: ... + def isRunning(self) -> bool: ... + def exit(self, returnCode: int = ...) -> None: ... + def exec(self, flags: 'QEventLoop.ProcessEventsFlags' = ...) -> int: ... + def exec_(self, flags: 'QEventLoop.ProcessEventsFlags' = ...) -> int: ... + @typing.overload + def processEvents(self, flags: typing.Union['QEventLoop.ProcessEventsFlags', 'QEventLoop.ProcessEventsFlag'] = ...) -> bool: ... + @typing.overload + def processEvents(self, flags: typing.Union['QEventLoop.ProcessEventsFlags', 'QEventLoop.ProcessEventsFlag'], maximumTime: int) -> None: ... + + +class QEventLoopLocker(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, loop: QEventLoop) -> None: ... + @typing.overload + def __init__(self, thread: 'QThread') -> None: ... + + +class QEventTransition(QAbstractTransition): + + @typing.overload + def __init__(self, sourceState: typing.Optional['QState'] = ...) -> None: ... + @typing.overload + def __init__(self, object: QObject, type: QEvent.Type, sourceState: typing.Optional['QState'] = ...) -> None: ... + + def event(self, e: QEvent) -> bool: ... + def onTransition(self, event: QEvent) -> None: ... + def eventTest(self, event: QEvent) -> bool: ... + def setEventType(self, type: QEvent.Type) -> None: ... + def eventType(self) -> QEvent.Type: ... + def setEventSource(self, object: QObject) -> None: ... + def eventSource(self) -> QObject: ... + + +class QFileDevice(QIODevice): + + class FileTime(int): ... + FileAccessTime = ... # type: 'QFileDevice.FileTime' + FileBirthTime = ... # type: 'QFileDevice.FileTime' + FileMetadataChangeTime = ... # type: 'QFileDevice.FileTime' + FileModificationTime = ... # type: 'QFileDevice.FileTime' + + class MemoryMapFlags(int): ... + NoOptions = ... # type: 'QFileDevice.MemoryMapFlags' + MapPrivateOption = ... # type: 'QFileDevice.MemoryMapFlags' + + class FileHandleFlag(int): ... + AutoCloseHandle = ... # type: 'QFileDevice.FileHandleFlag' + DontCloseHandle = ... # type: 'QFileDevice.FileHandleFlag' + + class Permission(int): ... + ReadOwner = ... # type: 'QFileDevice.Permission' + WriteOwner = ... # type: 'QFileDevice.Permission' + ExeOwner = ... # type: 'QFileDevice.Permission' + ReadUser = ... # type: 'QFileDevice.Permission' + WriteUser = ... # type: 'QFileDevice.Permission' + ExeUser = ... # type: 'QFileDevice.Permission' + ReadGroup = ... # type: 'QFileDevice.Permission' + WriteGroup = ... # type: 'QFileDevice.Permission' + ExeGroup = ... # type: 'QFileDevice.Permission' + ReadOther = ... # type: 'QFileDevice.Permission' + WriteOther = ... # type: 'QFileDevice.Permission' + ExeOther = ... # type: 'QFileDevice.Permission' + + class FileError(int): ... + NoError = ... # type: 'QFileDevice.FileError' + ReadError = ... # type: 'QFileDevice.FileError' + WriteError = ... # type: 'QFileDevice.FileError' + FatalError = ... # type: 'QFileDevice.FileError' + ResourceError = ... # type: 'QFileDevice.FileError' + OpenError = ... # type: 'QFileDevice.FileError' + AbortError = ... # type: 'QFileDevice.FileError' + TimeOutError = ... # type: 'QFileDevice.FileError' + UnspecifiedError = ... # type: 'QFileDevice.FileError' + RemoveError = ... # type: 'QFileDevice.FileError' + RenameError = ... # type: 'QFileDevice.FileError' + PositionError = ... # type: 'QFileDevice.FileError' + ResizeError = ... # type: 'QFileDevice.FileError' + PermissionsError = ... # type: 'QFileDevice.FileError' + CopyError = ... # type: 'QFileDevice.FileError' + + class Permissions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QFileDevice.Permissions', 'QFileDevice.Permission']) -> None: ... + @typing.overload + def __init__(self, a0: 'QFileDevice.Permissions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QFileDevice.Permissions': ... + def __int__(self) -> int: ... + + class FileHandleFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QFileDevice.FileHandleFlags', 'QFileDevice.FileHandleFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QFileDevice.FileHandleFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QFileDevice.FileHandleFlags': ... + def __int__(self) -> int: ... + + def setFileTime(self, newDate: typing.Union[QDateTime, datetime.datetime], fileTime: 'QFileDevice.FileTime') -> bool: ... + def fileTime(self, time: 'QFileDevice.FileTime') -> QDateTime: ... + def readLineData(self, maxlen: int) -> bytes: ... + def writeData(self, data: bytes) -> int: ... + def readData(self, maxlen: int) -> bytes: ... + def unmap(self, address: sip.voidptr) -> bool: ... + def map(self, offset: int, size: int, flags: 'QFileDevice.MemoryMapFlags' = ...) -> sip.voidptr: ... + def setPermissions(self, permissionSpec: typing.Union['QFileDevice.Permissions', 'QFileDevice.Permission']) -> bool: ... + def permissions(self) -> 'QFileDevice.Permissions': ... + def resize(self, sz: int) -> bool: ... + def size(self) -> int: ... + def flush(self) -> bool: ... + def atEnd(self) -> bool: ... + def seek(self, offset: int) -> bool: ... + def pos(self) -> int: ... + def fileName(self) -> str: ... + def handle(self) -> int: ... + def isSequential(self) -> bool: ... + def close(self) -> None: ... + def unsetError(self) -> None: ... + def error(self) -> 'QFileDevice.FileError': ... + + +class QFile(QFileDevice): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, name: str) -> None: ... + @typing.overload + def __init__(self, parent: QObject) -> None: ... + @typing.overload + def __init__(self, name: str, parent: QObject) -> None: ... + + @typing.overload + def setPermissions(self, permissionSpec: typing.Union[QFileDevice.Permissions, QFileDevice.Permission]) -> bool: ... + @typing.overload + @staticmethod + def setPermissions(filename: str, permissionSpec: typing.Union[QFileDevice.Permissions, QFileDevice.Permission]) -> bool: ... + @typing.overload + def permissions(self) -> QFileDevice.Permissions: ... + @typing.overload + @staticmethod + def permissions(filename: str) -> QFileDevice.Permissions: ... + @typing.overload + def resize(self, sz: int) -> bool: ... + @typing.overload + @staticmethod + def resize(filename: str, sz: int) -> bool: ... + def size(self) -> int: ... + @typing.overload + def open(self, flags: typing.Union[QIODevice.OpenMode, QIODevice.OpenModeFlag]) -> bool: ... + @typing.overload + def open(self, fd: int, ioFlags: typing.Union[QIODevice.OpenMode, QIODevice.OpenModeFlag], handleFlags: typing.Union[QFileDevice.FileHandleFlags, QFileDevice.FileHandleFlag] = ...) -> bool: ... + @typing.overload + def copy(self, newName: str) -> bool: ... + @typing.overload + @staticmethod + def copy(fileName: str, newName: str) -> bool: ... + @typing.overload + def link(self, newName: str) -> bool: ... + @typing.overload + @staticmethod + def link(oldname: str, newName: str) -> bool: ... + @typing.overload + def rename(self, newName: str) -> bool: ... + @typing.overload + @staticmethod + def rename(oldName: str, newName: str) -> bool: ... + @typing.overload + def remove(self) -> bool: ... + @typing.overload + @staticmethod + def remove(fileName: str) -> bool: ... + @typing.overload + def symLinkTarget(self) -> str: ... + @typing.overload + @staticmethod + def symLinkTarget(fileName: str) -> str: ... + @typing.overload + def exists(self) -> bool: ... + @typing.overload + @staticmethod + def exists(fileName: str) -> bool: ... + @typing.overload + @staticmethod + def decodeName(localFileName: typing.Union[QByteArray, bytes, bytearray]) -> str: ... + @typing.overload + @staticmethod + def decodeName(localFileName: str) -> str: ... + @staticmethod + def encodeName(fileName: str) -> QByteArray: ... + def setFileName(self, name: str) -> None: ... + def fileName(self) -> str: ... + + +class QFileInfo(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, file: str) -> None: ... + @typing.overload + def __init__(self, file: QFile) -> None: ... + @typing.overload + def __init__(self, dir: QDir, file: str) -> None: ... + @typing.overload + def __init__(self, fileinfo: 'QFileInfo') -> None: ... + + def fileTime(self, time: QFileDevice.FileTime) -> QDateTime: ... + def metadataChangeTime(self) -> QDateTime: ... + def birthTime(self) -> QDateTime: ... + def swap(self, other: 'QFileInfo') -> None: ... + def isNativePath(self) -> bool: ... + def isBundle(self) -> bool: ... + def bundleName(self) -> str: ... + def symLinkTarget(self) -> str: ... + def setCaching(self, on: bool) -> None: ... + def caching(self) -> bool: ... + def lastRead(self) -> QDateTime: ... + def lastModified(self) -> QDateTime: ... + def created(self) -> QDateTime: ... + def size(self) -> int: ... + def permissions(self) -> QFileDevice.Permissions: ... + def permission(self, permissions: typing.Union[QFileDevice.Permissions, QFileDevice.Permission]) -> bool: ... + def groupId(self) -> int: ... + def group(self) -> str: ... + def ownerId(self) -> int: ... + def owner(self) -> str: ... + def isRoot(self) -> bool: ... + def isSymLink(self) -> bool: ... + def isDir(self) -> bool: ... + def isFile(self) -> bool: ... + def makeAbsolute(self) -> bool: ... + def isAbsolute(self) -> bool: ... + def isRelative(self) -> bool: ... + def isHidden(self) -> bool: ... + def isExecutable(self) -> bool: ... + def isWritable(self) -> bool: ... + def isReadable(self) -> bool: ... + def absoluteDir(self) -> QDir: ... + def dir(self) -> QDir: ... + def canonicalPath(self) -> str: ... + def absolutePath(self) -> str: ... + def path(self) -> str: ... + def completeSuffix(self) -> str: ... + def suffix(self) -> str: ... + def completeBaseName(self) -> str: ... + def baseName(self) -> str: ... + def fileName(self) -> str: ... + def canonicalFilePath(self) -> str: ... + def absoluteFilePath(self) -> str: ... + def __fspath__(self) -> typing.Any: ... + def filePath(self) -> str: ... + def refresh(self) -> None: ... + @typing.overload + def exists(self) -> bool: ... + @typing.overload + @staticmethod + def exists(file: str) -> bool: ... + @typing.overload + def setFile(self, file: str) -> None: ... + @typing.overload + def setFile(self, file: QFile) -> None: ... + @typing.overload + def setFile(self, dir: QDir, file: str) -> None: ... + + +class QFileSelector(QObject): + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def allSelectors(self) -> typing.List[str]: ... + def setExtraSelectors(self, list: typing.Iterable[str]) -> None: ... + def extraSelectors(self) -> typing.List[str]: ... + @typing.overload + def select(self, filePath: str) -> str: ... + @typing.overload + def select(self, filePath: 'QUrl') -> 'QUrl': ... + + +class QFileSystemWatcher(QObject): + + @typing.overload + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload + def __init__(self, paths: typing.Iterable[str], parent: typing.Optional[QObject] = ...) -> None: ... + + def fileChanged(self, path: str) -> None: ... + def directoryChanged(self, path: str) -> None: ... + def removePaths(self, files: typing.Iterable[str]) -> typing.List[str]: ... + def removePath(self, file: str) -> bool: ... + def files(self) -> typing.List[str]: ... + def directories(self) -> typing.List[str]: ... + def addPaths(self, files: typing.Iterable[str]) -> typing.List[str]: ... + def addPath(self, file: str) -> bool: ... + + +class QFinalState(QAbstractState): + + def __init__(self, parent: typing.Optional['QState'] = ...) -> None: ... + + def event(self, e: QEvent) -> bool: ... + def onExit(self, event: QEvent) -> None: ... + def onEntry(self, event: QEvent) -> None: ... + + +class QHistoryState(QAbstractState): + + class HistoryType(int): ... + ShallowHistory = ... # type: 'QHistoryState.HistoryType' + DeepHistory = ... # type: 'QHistoryState.HistoryType' + + @typing.overload + def __init__(self, parent: typing.Optional['QState'] = ...) -> None: ... + @typing.overload + def __init__(self, type: 'QHistoryState.HistoryType', parent: typing.Optional['QState'] = ...) -> None: ... + + def defaultTransitionChanged(self) -> None: ... + def setDefaultTransition(self, transition: QAbstractTransition) -> None: ... + def defaultTransition(self) -> QAbstractTransition: ... + def historyTypeChanged(self) -> None: ... + def defaultStateChanged(self) -> None: ... + def event(self, e: QEvent) -> bool: ... + def onExit(self, event: QEvent) -> None: ... + def onEntry(self, event: QEvent) -> None: ... + def setHistoryType(self, type: 'QHistoryState.HistoryType') -> None: ... + def historyType(self) -> 'QHistoryState.HistoryType': ... + def setDefaultState(self, state: QAbstractState) -> None: ... + def defaultState(self) -> QAbstractState: ... + + +class QIdentityProxyModel(QAbstractProxyModel): + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def sibling(self, row: int, column: int, idx: QModelIndex) -> QModelIndex: ... + def headerData(self, section: int, orientation: Qt.Orientation, role: int = ...) -> typing.Any: ... + def removeRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... + def removeColumns(self, column: int, count: int, parent: QModelIndex = ...) -> bool: ... + def insertRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... + def insertColumns(self, column: int, count: int, parent: QModelIndex = ...) -> bool: ... + def setSourceModel(self, sourceModel: QAbstractItemModel) -> None: ... + def match(self, start: QModelIndex, role: int, value: typing.Any, hits: int = ..., flags: typing.Union[Qt.MatchFlags, Qt.MatchFlag] = ...) -> typing.List[QModelIndex]: ... + def mapSelectionToSource(self, selection: 'QItemSelection') -> 'QItemSelection': ... + def mapSelectionFromSource(self, selection: 'QItemSelection') -> 'QItemSelection': ... + def dropMimeData(self, data: 'QMimeData', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def rowCount(self, parent: QModelIndex = ...) -> int: ... + def parent(self, child: QModelIndex) -> QModelIndex: ... + def mapToSource(self, proxyIndex: QModelIndex) -> QModelIndex: ... + def mapFromSource(self, sourceIndex: QModelIndex) -> QModelIndex: ... + def index(self, row: int, column: int, parent: QModelIndex = ...) -> QModelIndex: ... + def columnCount(self, parent: QModelIndex = ...) -> int: ... + + +class QItemSelectionRange(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QItemSelectionRange') -> None: ... + @typing.overload + def __init__(self, atopLeft: QModelIndex, abottomRight: QModelIndex) -> None: ... + @typing.overload + def __init__(self, index: QModelIndex) -> None: ... + + def swap(self, other: 'QItemSelectionRange') -> None: ... + def isEmpty(self) -> bool: ... + def __hash__(self) -> int: ... + def intersected(self, other: 'QItemSelectionRange') -> 'QItemSelectionRange': ... + def indexes(self) -> typing.List[QModelIndex]: ... + def isValid(self) -> bool: ... + def intersects(self, other: 'QItemSelectionRange') -> bool: ... + @typing.overload + def contains(self, index: QModelIndex) -> bool: ... + @typing.overload + def contains(self, row: int, column: int, parentIndex: QModelIndex) -> bool: ... + def model(self) -> QAbstractItemModel: ... + def parent(self) -> QModelIndex: ... + def bottomRight(self) -> QPersistentModelIndex: ... + def topLeft(self) -> QPersistentModelIndex: ... + def height(self) -> int: ... + def width(self) -> int: ... + def right(self) -> int: ... + def bottom(self) -> int: ... + def left(self) -> int: ... + def top(self) -> int: ... + + +class QItemSelectionModel(QObject): + + class SelectionFlag(int): ... + NoUpdate = ... # type: 'QItemSelectionModel.SelectionFlag' + Clear = ... # type: 'QItemSelectionModel.SelectionFlag' + Select = ... # type: 'QItemSelectionModel.SelectionFlag' + Deselect = ... # type: 'QItemSelectionModel.SelectionFlag' + Toggle = ... # type: 'QItemSelectionModel.SelectionFlag' + Current = ... # type: 'QItemSelectionModel.SelectionFlag' + Rows = ... # type: 'QItemSelectionModel.SelectionFlag' + Columns = ... # type: 'QItemSelectionModel.SelectionFlag' + SelectCurrent = ... # type: 'QItemSelectionModel.SelectionFlag' + ToggleCurrent = ... # type: 'QItemSelectionModel.SelectionFlag' + ClearAndSelect = ... # type: 'QItemSelectionModel.SelectionFlag' + + class SelectionFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QItemSelectionModel.SelectionFlags', 'QItemSelectionModel.SelectionFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QItemSelectionModel.SelectionFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QItemSelectionModel.SelectionFlags': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, model: typing.Optional[QAbstractItemModel] = ...) -> None: ... + @typing.overload + def __init__(self, model: QAbstractItemModel, parent: QObject) -> None: ... + + def modelChanged(self, model: QAbstractItemModel) -> None: ... + def setModel(self, model: QAbstractItemModel) -> None: ... + def selectedColumns(self, row: int = ...) -> typing.List[QModelIndex]: ... + def selectedRows(self, column: int = ...) -> typing.List[QModelIndex]: ... + def hasSelection(self) -> bool: ... + def emitSelectionChanged(self, newSelection: 'QItemSelection', oldSelection: 'QItemSelection') -> None: ... + def currentColumnChanged(self, current: QModelIndex, previous: QModelIndex) -> None: ... + def currentRowChanged(self, current: QModelIndex, previous: QModelIndex) -> None: ... + def currentChanged(self, current: QModelIndex, previous: QModelIndex) -> None: ... + def selectionChanged(self, selected: 'QItemSelection', deselected: 'QItemSelection') -> None: ... + def clearCurrentIndex(self) -> None: ... + def setCurrentIndex(self, index: QModelIndex, command: typing.Union['QItemSelectionModel.SelectionFlags', 'QItemSelectionModel.SelectionFlag']) -> None: ... + @typing.overload + def select(self, index: QModelIndex, command: typing.Union['QItemSelectionModel.SelectionFlags', 'QItemSelectionModel.SelectionFlag']) -> None: ... + @typing.overload + def select(self, selection: 'QItemSelection', command: typing.Union['QItemSelectionModel.SelectionFlags', 'QItemSelectionModel.SelectionFlag']) -> None: ... + def reset(self) -> None: ... + def clearSelection(self) -> None: ... + def clear(self) -> None: ... + def model(self) -> QAbstractItemModel: ... + def selection(self) -> 'QItemSelection': ... + def selectedIndexes(self) -> typing.List[QModelIndex]: ... + def columnIntersectsSelection(self, column: int, parent: QModelIndex) -> bool: ... + def rowIntersectsSelection(self, row: int, parent: QModelIndex) -> bool: ... + def isColumnSelected(self, column: int, parent: QModelIndex) -> bool: ... + def isRowSelected(self, row: int, parent: QModelIndex) -> bool: ... + def isSelected(self, index: QModelIndex) -> bool: ... + def currentIndex(self) -> QModelIndex: ... + + +class QItemSelection(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, topLeft: QModelIndex, bottomRight: QModelIndex) -> None: ... + @typing.overload + def __init__(self, a0: 'QItemSelection') -> None: ... + + def lastIndexOf(self, value: QItemSelectionRange, from_: int = ...) -> int: ... + def indexOf(self, value: QItemSelectionRange, from_: int = ...) -> int: ... + def last(self) -> QItemSelectionRange: ... + def first(self) -> QItemSelectionRange: ... + def __len__(self) -> int: ... + @typing.overload + def count(self, range: QItemSelectionRange) -> int: ... + @typing.overload + def count(self) -> int: ... + def swap(self, i: int, j: int) -> None: ... + def move(self, from_: int, to: int) -> None: ... + def takeLast(self) -> QItemSelectionRange: ... + def takeFirst(self) -> QItemSelectionRange: ... + def takeAt(self, i: int) -> QItemSelectionRange: ... + def removeAll(self, range: QItemSelectionRange) -> int: ... + def removeAt(self, i: int) -> None: ... + def replace(self, i: int, range: QItemSelectionRange) -> None: ... + def insert(self, i: int, range: QItemSelectionRange) -> None: ... + def prepend(self, range: QItemSelectionRange) -> None: ... + def append(self, range: QItemSelectionRange) -> None: ... + def isEmpty(self) -> bool: ... + def clear(self) -> None: ... + @typing.overload + def __getitem__(self, i: int) -> QItemSelectionRange: ... + @typing.overload + def __getitem__(self, slice: slice) -> 'QItemSelection': ... + @typing.overload + def __delitem__(self, i: int) -> None: ... + @typing.overload + def __delitem__(self, slice: slice) -> None: ... + @typing.overload + def __setitem__(self, i: int, range: QItemSelectionRange) -> None: ... + @typing.overload + def __setitem__(self, slice: slice, list: 'QItemSelection') -> None: ... + @staticmethod + def split(range: QItemSelectionRange, other: QItemSelectionRange, result: 'QItemSelection') -> None: ... + def merge(self, other: 'QItemSelection', command: typing.Union[QItemSelectionModel.SelectionFlags, QItemSelectionModel.SelectionFlag]) -> None: ... + def indexes(self) -> typing.List[QModelIndex]: ... + def __contains__(self, index: QModelIndex) -> int: ... + def contains(self, index: QModelIndex) -> bool: ... + def select(self, topLeft: QModelIndex, bottomRight: QModelIndex) -> None: ... + + +class QJsonParseError(sip.simplewrapper): + + class ParseError(int): ... + NoError = ... # type: 'QJsonParseError.ParseError' + UnterminatedObject = ... # type: 'QJsonParseError.ParseError' + MissingNameSeparator = ... # type: 'QJsonParseError.ParseError' + UnterminatedArray = ... # type: 'QJsonParseError.ParseError' + MissingValueSeparator = ... # type: 'QJsonParseError.ParseError' + IllegalValue = ... # type: 'QJsonParseError.ParseError' + TerminationByNumber = ... # type: 'QJsonParseError.ParseError' + IllegalNumber = ... # type: 'QJsonParseError.ParseError' + IllegalEscapeSequence = ... # type: 'QJsonParseError.ParseError' + IllegalUTF8String = ... # type: 'QJsonParseError.ParseError' + UnterminatedString = ... # type: 'QJsonParseError.ParseError' + MissingObject = ... # type: 'QJsonParseError.ParseError' + DeepNesting = ... # type: 'QJsonParseError.ParseError' + DocumentTooLarge = ... # type: 'QJsonParseError.ParseError' + GarbageAtEnd = ... # type: 'QJsonParseError.ParseError' + + error = ... # type: 'QJsonParseError.ParseError' + offset = ... # type: int + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QJsonParseError') -> None: ... + + def errorString(self) -> str: ... + + +class QJsonDocument(sip.simplewrapper): + + class JsonFormat(int): ... + Indented = ... # type: 'QJsonDocument.JsonFormat' + Compact = ... # type: 'QJsonDocument.JsonFormat' + + class DataValidation(int): ... + Validate = ... # type: 'QJsonDocument.DataValidation' + BypassValidation = ... # type: 'QJsonDocument.DataValidation' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, object: typing.Dict[str, 'QJsonValue']) -> None: ... + @typing.overload + def __init__(self, array: typing.Iterable[typing.Union['QJsonValue', 'QJsonValue.Type', typing.Dict[str, 'QJsonValue'], bool, int, float, str]]) -> None: ... + @typing.overload + def __init__(self, other: 'QJsonDocument') -> None: ... + + @typing.overload + def __getitem__(self, key: str) -> 'QJsonValue': ... + @typing.overload + def __getitem__(self, i: int) -> 'QJsonValue': ... + def swap(self, other: 'QJsonDocument') -> None: ... + def isNull(self) -> bool: ... + def setArray(self, array: typing.Iterable[typing.Union['QJsonValue', 'QJsonValue.Type', typing.Dict[str, 'QJsonValue'], bool, int, float, str]]) -> None: ... + def setObject(self, object: typing.Dict[str, 'QJsonValue']) -> None: ... + def array(self) -> typing.List['QJsonValue']: ... + def object(self) -> typing.Dict[str, 'QJsonValue']: ... + def isObject(self) -> bool: ... + def isArray(self) -> bool: ... + def isEmpty(self) -> bool: ... + @typing.overload + def toJson(self) -> QByteArray: ... + @typing.overload + def toJson(self, format: 'QJsonDocument.JsonFormat') -> QByteArray: ... + @staticmethod + def fromJson(json: typing.Union[QByteArray, bytes, bytearray], error: typing.Optional[QJsonParseError] = ...) -> 'QJsonDocument': ... + def toVariant(self) -> typing.Any: ... + @staticmethod + def fromVariant(variant: typing.Any) -> 'QJsonDocument': ... + def toBinaryData(self) -> QByteArray: ... + @staticmethod + def fromBinaryData(data: typing.Union[QByteArray, bytes, bytearray], validation: 'QJsonDocument.DataValidation' = ...) -> 'QJsonDocument': ... + def rawData(self) -> typing.Tuple[str, int]: ... + @staticmethod + def fromRawData(data: str, size: int, validation: 'QJsonDocument.DataValidation' = ...) -> 'QJsonDocument': ... + + +class QJsonValue(sip.simplewrapper): + + class Type(int): ... + Null = ... # type: 'QJsonValue.Type' + Bool = ... # type: 'QJsonValue.Type' + Double = ... # type: 'QJsonValue.Type' + String = ... # type: 'QJsonValue.Type' + Array = ... # type: 'QJsonValue.Type' + Object = ... # type: 'QJsonValue.Type' + Undefined = ... # type: 'QJsonValue.Type' + + @typing.overload + def __init__(self, type: 'QJsonValue.Type' = ...) -> None: ... + @typing.overload + def __init__(self, other: typing.Union['QJsonValue', 'QJsonValue.Type', typing.Dict[str, 'QJsonValue'], bool, int, float, str]) -> None: ... + + def __hash__(self) -> int: ... + @typing.overload + def __getitem__(self, key: str) -> 'QJsonValue': ... + @typing.overload + def __getitem__(self, i: int) -> 'QJsonValue': ... + def swap(self, other: 'QJsonValue') -> None: ... + @typing.overload + def toString(self) -> str: ... + @typing.overload + def toString(self, defaultValue: str) -> str: ... + @typing.overload + def toObject(self) -> typing.Dict[str, 'QJsonValue']: ... + @typing.overload + def toObject(self, defaultValue: typing.Dict[str, 'QJsonValue']) -> typing.Dict[str, 'QJsonValue']: ... + @typing.overload + def toArray(self) -> typing.List['QJsonValue']: ... + @typing.overload + def toArray(self, defaultValue: typing.Iterable[typing.Union['QJsonValue', 'QJsonValue.Type', typing.Dict[str, 'QJsonValue'], bool, int, float, str]]) -> typing.List['QJsonValue']: ... + def toDouble(self, defaultValue: float = ...) -> float: ... + def toInt(self, defaultValue: int = ...) -> int: ... + def toBool(self, defaultValue: bool = ...) -> bool: ... + def isUndefined(self) -> bool: ... + def isObject(self) -> bool: ... + def isArray(self) -> bool: ... + def isString(self) -> bool: ... + def isDouble(self) -> bool: ... + def isBool(self) -> bool: ... + def isNull(self) -> bool: ... + def type(self) -> 'QJsonValue.Type': ... + def toVariant(self) -> typing.Any: ... + @staticmethod + def fromVariant(variant: typing.Any) -> 'QJsonValue': ... + + +class QLibrary(QObject): + + class LoadHint(int): ... + ResolveAllSymbolsHint = ... # type: 'QLibrary.LoadHint' + ExportExternalSymbolsHint = ... # type: 'QLibrary.LoadHint' + LoadArchiveMemberHint = ... # type: 'QLibrary.LoadHint' + PreventUnloadHint = ... # type: 'QLibrary.LoadHint' + DeepBindHint = ... # type: 'QLibrary.LoadHint' + + class LoadHints(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QLibrary.LoadHints', 'QLibrary.LoadHint']) -> None: ... + @typing.overload + def __init__(self, a0: 'QLibrary.LoadHints') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QLibrary.LoadHints': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload + def __init__(self, fileName: str, parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload + def __init__(self, fileName: str, verNum: int, parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload + def __init__(self, fileName: str, version: str, parent: typing.Optional[QObject] = ...) -> None: ... + + def setLoadHints(self, hints: typing.Union['QLibrary.LoadHints', 'QLibrary.LoadHint']) -> None: ... + @typing.overload + def setFileNameAndVersion(self, fileName: str, verNum: int) -> None: ... + @typing.overload + def setFileNameAndVersion(self, fileName: str, version: str) -> None: ... + def setFileName(self, fileName: str) -> None: ... + @staticmethod + def isLibrary(fileName: str) -> bool: ... + def unload(self) -> bool: ... + @typing.overload + def resolve(self, symbol: str) -> sip.voidptr: ... + @typing.overload + @staticmethod + def resolve(fileName: str, symbol: str) -> sip.voidptr: ... + @typing.overload + @staticmethod + def resolve(fileName: str, verNum: int, symbol: str) -> sip.voidptr: ... + @typing.overload + @staticmethod + def resolve(fileName: str, version: str, symbol: str) -> sip.voidptr: ... + def loadHints(self) -> 'QLibrary.LoadHints': ... + def load(self) -> bool: ... + def isLoaded(self) -> bool: ... + def fileName(self) -> str: ... + def errorString(self) -> str: ... + + +class QLibraryInfo(sip.simplewrapper): + + class LibraryLocation(int): ... + PrefixPath = ... # type: 'QLibraryInfo.LibraryLocation' + DocumentationPath = ... # type: 'QLibraryInfo.LibraryLocation' + HeadersPath = ... # type: 'QLibraryInfo.LibraryLocation' + LibrariesPath = ... # type: 'QLibraryInfo.LibraryLocation' + BinariesPath = ... # type: 'QLibraryInfo.LibraryLocation' + PluginsPath = ... # type: 'QLibraryInfo.LibraryLocation' + DataPath = ... # type: 'QLibraryInfo.LibraryLocation' + TranslationsPath = ... # type: 'QLibraryInfo.LibraryLocation' + SettingsPath = ... # type: 'QLibraryInfo.LibraryLocation' + ExamplesPath = ... # type: 'QLibraryInfo.LibraryLocation' + ImportsPath = ... # type: 'QLibraryInfo.LibraryLocation' + TestsPath = ... # type: 'QLibraryInfo.LibraryLocation' + LibraryExecutablesPath = ... # type: 'QLibraryInfo.LibraryLocation' + Qml2ImportsPath = ... # type: 'QLibraryInfo.LibraryLocation' + ArchDataPath = ... # type: 'QLibraryInfo.LibraryLocation' + + def __init__(self, a0: 'QLibraryInfo') -> None: ... + + @staticmethod + def version() -> 'QVersionNumber': ... + @staticmethod + def isDebugBuild() -> bool: ... + @staticmethod + def buildDate() -> QDate: ... + @staticmethod + def location(a0: 'QLibraryInfo.LibraryLocation') -> str: ... + @staticmethod + def licensedProducts() -> str: ... + @staticmethod + def licensee() -> str: ... + + +class QLine(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, pt1_: 'QPoint', pt2_: 'QPoint') -> None: ... + @typing.overload + def __init__(self, x1pos: int, y1pos: int, x2pos: int, y2pos: int) -> None: ... + @typing.overload + def __init__(self, a0: 'QLine') -> None: ... + + def center(self) -> 'QPoint': ... + def setLine(self, aX1: int, aY1: int, aX2: int, aY2: int) -> None: ... + def setPoints(self, aP1: 'QPoint', aP2: 'QPoint') -> None: ... + def setP2(self, aP2: 'QPoint') -> None: ... + def setP1(self, aP1: 'QPoint') -> None: ... + @typing.overload + def translated(self, p: 'QPoint') -> 'QLine': ... + @typing.overload + def translated(self, adx: int, ady: int) -> 'QLine': ... + @typing.overload + def translate(self, point: 'QPoint') -> None: ... + @typing.overload + def translate(self, adx: int, ady: int) -> None: ... + def dy(self) -> int: ... + def dx(self) -> int: ... + def p2(self) -> 'QPoint': ... + def p1(self) -> 'QPoint': ... + def y2(self) -> int: ... + def x2(self) -> int: ... + def y1(self) -> int: ... + def x1(self) -> int: ... + def __bool__(self) -> int: ... + def isNull(self) -> bool: ... + def __repr__(self) -> str: ... + + +class QLineF(sip.simplewrapper): + + class IntersectType(int): ... + NoIntersection = ... # type: 'QLineF.IntersectType' + BoundedIntersection = ... # type: 'QLineF.IntersectType' + UnboundedIntersection = ... # type: 'QLineF.IntersectType' + + @typing.overload + def __init__(self, line: QLine) -> None: ... + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, apt1: typing.Union['QPointF', 'QPoint'], apt2: typing.Union['QPointF', 'QPoint']) -> None: ... + @typing.overload + def __init__(self, x1pos: float, y1pos: float, x2pos: float, y2pos: float) -> None: ... + @typing.overload + def __init__(self, a0: 'QLineF') -> None: ... + + def center(self) -> 'QPointF': ... + def setLine(self, aX1: float, aY1: float, aX2: float, aY2: float) -> None: ... + def setPoints(self, aP1: typing.Union['QPointF', 'QPoint'], aP2: typing.Union['QPointF', 'QPoint']) -> None: ... + def setP2(self, aP2: typing.Union['QPointF', 'QPoint']) -> None: ... + def setP1(self, aP1: typing.Union['QPointF', 'QPoint']) -> None: ... + @typing.overload + def translated(self, p: typing.Union['QPointF', 'QPoint']) -> 'QLineF': ... + @typing.overload + def translated(self, adx: float, ady: float) -> 'QLineF': ... + def angleTo(self, l: 'QLineF') -> float: ... + def setAngle(self, angle: float) -> None: ... + def angle(self) -> float: ... + @staticmethod + def fromPolar(length: float, angle: float) -> 'QLineF': ... + def toLine(self) -> QLine: ... + def pointAt(self, t: float) -> 'QPointF': ... + def setLength(self, len: float) -> None: ... + @typing.overload + def translate(self, point: typing.Union['QPointF', 'QPoint']) -> None: ... + @typing.overload + def translate(self, adx: float, ady: float) -> None: ... + def normalVector(self) -> 'QLineF': ... + def dy(self) -> float: ... + def dx(self) -> float: ... + def p2(self) -> 'QPointF': ... + def p1(self) -> 'QPointF': ... + def y2(self) -> float: ... + def x2(self) -> float: ... + def y1(self) -> float: ... + def x1(self) -> float: ... + def __repr__(self) -> str: ... + def intersect(self, l: 'QLineF', intersectionPoint: typing.Union['QPointF', 'QPoint']) -> 'QLineF.IntersectType': ... + def unitVector(self) -> 'QLineF': ... + def length(self) -> float: ... + def __bool__(self) -> int: ... + def isNull(self) -> bool: ... + + +class QLocale(sip.simplewrapper): + + class DataSizeFormat(int): ... + DataSizeIecFormat = ... # type: 'QLocale.DataSizeFormat' + DataSizeTraditionalFormat = ... # type: 'QLocale.DataSizeFormat' + DataSizeSIFormat = ... # type: 'QLocale.DataSizeFormat' + + class FloatingPointPrecisionOption(int): ... + FloatingPointShortest = ... # type: 'QLocale.FloatingPointPrecisionOption' + + class QuotationStyle(int): ... + StandardQuotation = ... # type: 'QLocale.QuotationStyle' + AlternateQuotation = ... # type: 'QLocale.QuotationStyle' + + class CurrencySymbolFormat(int): ... + CurrencyIsoCode = ... # type: 'QLocale.CurrencySymbolFormat' + CurrencySymbol = ... # type: 'QLocale.CurrencySymbolFormat' + CurrencyDisplayName = ... # type: 'QLocale.CurrencySymbolFormat' + + class Script(int): ... + AnyScript = ... # type: 'QLocale.Script' + ArabicScript = ... # type: 'QLocale.Script' + CyrillicScript = ... # type: 'QLocale.Script' + DeseretScript = ... # type: 'QLocale.Script' + GurmukhiScript = ... # type: 'QLocale.Script' + SimplifiedHanScript = ... # type: 'QLocale.Script' + TraditionalHanScript = ... # type: 'QLocale.Script' + LatinScript = ... # type: 'QLocale.Script' + MongolianScript = ... # type: 'QLocale.Script' + TifinaghScript = ... # type: 'QLocale.Script' + SimplifiedChineseScript = ... # type: 'QLocale.Script' + TraditionalChineseScript = ... # type: 'QLocale.Script' + ArmenianScript = ... # type: 'QLocale.Script' + BengaliScript = ... # type: 'QLocale.Script' + CherokeeScript = ... # type: 'QLocale.Script' + DevanagariScript = ... # type: 'QLocale.Script' + EthiopicScript = ... # type: 'QLocale.Script' + GeorgianScript = ... # type: 'QLocale.Script' + GreekScript = ... # type: 'QLocale.Script' + GujaratiScript = ... # type: 'QLocale.Script' + HebrewScript = ... # type: 'QLocale.Script' + JapaneseScript = ... # type: 'QLocale.Script' + KhmerScript = ... # type: 'QLocale.Script' + KannadaScript = ... # type: 'QLocale.Script' + KoreanScript = ... # type: 'QLocale.Script' + LaoScript = ... # type: 'QLocale.Script' + MalayalamScript = ... # type: 'QLocale.Script' + MyanmarScript = ... # type: 'QLocale.Script' + OriyaScript = ... # type: 'QLocale.Script' + TamilScript = ... # type: 'QLocale.Script' + TeluguScript = ... # type: 'QLocale.Script' + ThaanaScript = ... # type: 'QLocale.Script' + ThaiScript = ... # type: 'QLocale.Script' + TibetanScript = ... # type: 'QLocale.Script' + SinhalaScript = ... # type: 'QLocale.Script' + SyriacScript = ... # type: 'QLocale.Script' + YiScript = ... # type: 'QLocale.Script' + VaiScript = ... # type: 'QLocale.Script' + AvestanScript = ... # type: 'QLocale.Script' + BalineseScript = ... # type: 'QLocale.Script' + BamumScript = ... # type: 'QLocale.Script' + BatakScript = ... # type: 'QLocale.Script' + BopomofoScript = ... # type: 'QLocale.Script' + BrahmiScript = ... # type: 'QLocale.Script' + BugineseScript = ... # type: 'QLocale.Script' + BuhidScript = ... # type: 'QLocale.Script' + CanadianAboriginalScript = ... # type: 'QLocale.Script' + CarianScript = ... # type: 'QLocale.Script' + ChakmaScript = ... # type: 'QLocale.Script' + ChamScript = ... # type: 'QLocale.Script' + CopticScript = ... # type: 'QLocale.Script' + CypriotScript = ... # type: 'QLocale.Script' + EgyptianHieroglyphsScript = ... # type: 'QLocale.Script' + FraserScript = ... # type: 'QLocale.Script' + GlagoliticScript = ... # type: 'QLocale.Script' + GothicScript = ... # type: 'QLocale.Script' + HanScript = ... # type: 'QLocale.Script' + HangulScript = ... # type: 'QLocale.Script' + HanunooScript = ... # type: 'QLocale.Script' + ImperialAramaicScript = ... # type: 'QLocale.Script' + InscriptionalPahlaviScript = ... # type: 'QLocale.Script' + InscriptionalParthianScript = ... # type: 'QLocale.Script' + JavaneseScript = ... # type: 'QLocale.Script' + KaithiScript = ... # type: 'QLocale.Script' + KatakanaScript = ... # type: 'QLocale.Script' + KayahLiScript = ... # type: 'QLocale.Script' + KharoshthiScript = ... # type: 'QLocale.Script' + LannaScript = ... # type: 'QLocale.Script' + LepchaScript = ... # type: 'QLocale.Script' + LimbuScript = ... # type: 'QLocale.Script' + LinearBScript = ... # type: 'QLocale.Script' + LycianScript = ... # type: 'QLocale.Script' + LydianScript = ... # type: 'QLocale.Script' + MandaeanScript = ... # type: 'QLocale.Script' + MeiteiMayekScript = ... # type: 'QLocale.Script' + MeroiticScript = ... # type: 'QLocale.Script' + MeroiticCursiveScript = ... # type: 'QLocale.Script' + NkoScript = ... # type: 'QLocale.Script' + NewTaiLueScript = ... # type: 'QLocale.Script' + OghamScript = ... # type: 'QLocale.Script' + OlChikiScript = ... # type: 'QLocale.Script' + OldItalicScript = ... # type: 'QLocale.Script' + OldPersianScript = ... # type: 'QLocale.Script' + OldSouthArabianScript = ... # type: 'QLocale.Script' + OrkhonScript = ... # type: 'QLocale.Script' + OsmanyaScript = ... # type: 'QLocale.Script' + PhagsPaScript = ... # type: 'QLocale.Script' + PhoenicianScript = ... # type: 'QLocale.Script' + PollardPhoneticScript = ... # type: 'QLocale.Script' + RejangScript = ... # type: 'QLocale.Script' + RunicScript = ... # type: 'QLocale.Script' + SamaritanScript = ... # type: 'QLocale.Script' + SaurashtraScript = ... # type: 'QLocale.Script' + SharadaScript = ... # type: 'QLocale.Script' + ShavianScript = ... # type: 'QLocale.Script' + SoraSompengScript = ... # type: 'QLocale.Script' + CuneiformScript = ... # type: 'QLocale.Script' + SundaneseScript = ... # type: 'QLocale.Script' + SylotiNagriScript = ... # type: 'QLocale.Script' + TagalogScript = ... # type: 'QLocale.Script' + TagbanwaScript = ... # type: 'QLocale.Script' + TaiLeScript = ... # type: 'QLocale.Script' + TaiVietScript = ... # type: 'QLocale.Script' + TakriScript = ... # type: 'QLocale.Script' + UgariticScript = ... # type: 'QLocale.Script' + BrailleScript = ... # type: 'QLocale.Script' + HiraganaScript = ... # type: 'QLocale.Script' + CaucasianAlbanianScript = ... # type: 'QLocale.Script' + BassaVahScript = ... # type: 'QLocale.Script' + DuployanScript = ... # type: 'QLocale.Script' + ElbasanScript = ... # type: 'QLocale.Script' + GranthaScript = ... # type: 'QLocale.Script' + PahawhHmongScript = ... # type: 'QLocale.Script' + KhojkiScript = ... # type: 'QLocale.Script' + LinearAScript = ... # type: 'QLocale.Script' + MahajaniScript = ... # type: 'QLocale.Script' + ManichaeanScript = ... # type: 'QLocale.Script' + MendeKikakuiScript = ... # type: 'QLocale.Script' + ModiScript = ... # type: 'QLocale.Script' + MroScript = ... # type: 'QLocale.Script' + OldNorthArabianScript = ... # type: 'QLocale.Script' + NabataeanScript = ... # type: 'QLocale.Script' + PalmyreneScript = ... # type: 'QLocale.Script' + PauCinHauScript = ... # type: 'QLocale.Script' + OldPermicScript = ... # type: 'QLocale.Script' + PsalterPahlaviScript = ... # type: 'QLocale.Script' + SiddhamScript = ... # type: 'QLocale.Script' + KhudawadiScript = ... # type: 'QLocale.Script' + TirhutaScript = ... # type: 'QLocale.Script' + VarangKshitiScript = ... # type: 'QLocale.Script' + AhomScript = ... # type: 'QLocale.Script' + AnatolianHieroglyphsScript = ... # type: 'QLocale.Script' + HatranScript = ... # type: 'QLocale.Script' + MultaniScript = ... # type: 'QLocale.Script' + OldHungarianScript = ... # type: 'QLocale.Script' + SignWritingScript = ... # type: 'QLocale.Script' + AdlamScript = ... # type: 'QLocale.Script' + BhaiksukiScript = ... # type: 'QLocale.Script' + MarchenScript = ... # type: 'QLocale.Script' + NewaScript = ... # type: 'QLocale.Script' + OsageScript = ... # type: 'QLocale.Script' + TangutScript = ... # type: 'QLocale.Script' + HanWithBopomofoScript = ... # type: 'QLocale.Script' + JamoScript = ... # type: 'QLocale.Script' + + class MeasurementSystem(int): ... + MetricSystem = ... # type: 'QLocale.MeasurementSystem' + ImperialSystem = ... # type: 'QLocale.MeasurementSystem' + ImperialUSSystem = ... # type: 'QLocale.MeasurementSystem' + ImperialUKSystem = ... # type: 'QLocale.MeasurementSystem' + + class FormatType(int): ... + LongFormat = ... # type: 'QLocale.FormatType' + ShortFormat = ... # type: 'QLocale.FormatType' + NarrowFormat = ... # type: 'QLocale.FormatType' + + class NumberOption(int): ... + OmitGroupSeparator = ... # type: 'QLocale.NumberOption' + RejectGroupSeparator = ... # type: 'QLocale.NumberOption' + DefaultNumberOptions = ... # type: 'QLocale.NumberOption' + OmitLeadingZeroInExponent = ... # type: 'QLocale.NumberOption' + RejectLeadingZeroInExponent = ... # type: 'QLocale.NumberOption' + IncludeTrailingZeroesAfterDot = ... # type: 'QLocale.NumberOption' + RejectTrailingZeroesAfterDot = ... # type: 'QLocale.NumberOption' + + class Country(int): ... + AnyCountry = ... # type: 'QLocale.Country' + Afghanistan = ... # type: 'QLocale.Country' + Albania = ... # type: 'QLocale.Country' + Algeria = ... # type: 'QLocale.Country' + AmericanSamoa = ... # type: 'QLocale.Country' + Andorra = ... # type: 'QLocale.Country' + Angola = ... # type: 'QLocale.Country' + Anguilla = ... # type: 'QLocale.Country' + Antarctica = ... # type: 'QLocale.Country' + AntiguaAndBarbuda = ... # type: 'QLocale.Country' + Argentina = ... # type: 'QLocale.Country' + Armenia = ... # type: 'QLocale.Country' + Aruba = ... # type: 'QLocale.Country' + Australia = ... # type: 'QLocale.Country' + Austria = ... # type: 'QLocale.Country' + Azerbaijan = ... # type: 'QLocale.Country' + Bahamas = ... # type: 'QLocale.Country' + Bahrain = ... # type: 'QLocale.Country' + Bangladesh = ... # type: 'QLocale.Country' + Barbados = ... # type: 'QLocale.Country' + Belarus = ... # type: 'QLocale.Country' + Belgium = ... # type: 'QLocale.Country' + Belize = ... # type: 'QLocale.Country' + Benin = ... # type: 'QLocale.Country' + Bermuda = ... # type: 'QLocale.Country' + Bhutan = ... # type: 'QLocale.Country' + Bolivia = ... # type: 'QLocale.Country' + BosniaAndHerzegowina = ... # type: 'QLocale.Country' + Botswana = ... # type: 'QLocale.Country' + BouvetIsland = ... # type: 'QLocale.Country' + Brazil = ... # type: 'QLocale.Country' + BritishIndianOceanTerritory = ... # type: 'QLocale.Country' + Bulgaria = ... # type: 'QLocale.Country' + BurkinaFaso = ... # type: 'QLocale.Country' + Burundi = ... # type: 'QLocale.Country' + Cambodia = ... # type: 'QLocale.Country' + Cameroon = ... # type: 'QLocale.Country' + Canada = ... # type: 'QLocale.Country' + CapeVerde = ... # type: 'QLocale.Country' + CaymanIslands = ... # type: 'QLocale.Country' + CentralAfricanRepublic = ... # type: 'QLocale.Country' + Chad = ... # type: 'QLocale.Country' + Chile = ... # type: 'QLocale.Country' + China = ... # type: 'QLocale.Country' + ChristmasIsland = ... # type: 'QLocale.Country' + CocosIslands = ... # type: 'QLocale.Country' + Colombia = ... # type: 'QLocale.Country' + Comoros = ... # type: 'QLocale.Country' + DemocraticRepublicOfCongo = ... # type: 'QLocale.Country' + PeoplesRepublicOfCongo = ... # type: 'QLocale.Country' + CookIslands = ... # type: 'QLocale.Country' + CostaRica = ... # type: 'QLocale.Country' + IvoryCoast = ... # type: 'QLocale.Country' + Croatia = ... # type: 'QLocale.Country' + Cuba = ... # type: 'QLocale.Country' + Cyprus = ... # type: 'QLocale.Country' + CzechRepublic = ... # type: 'QLocale.Country' + Denmark = ... # type: 'QLocale.Country' + Djibouti = ... # type: 'QLocale.Country' + Dominica = ... # type: 'QLocale.Country' + DominicanRepublic = ... # type: 'QLocale.Country' + EastTimor = ... # type: 'QLocale.Country' + Ecuador = ... # type: 'QLocale.Country' + Egypt = ... # type: 'QLocale.Country' + ElSalvador = ... # type: 'QLocale.Country' + EquatorialGuinea = ... # type: 'QLocale.Country' + Eritrea = ... # type: 'QLocale.Country' + Estonia = ... # type: 'QLocale.Country' + Ethiopia = ... # type: 'QLocale.Country' + FalklandIslands = ... # type: 'QLocale.Country' + FaroeIslands = ... # type: 'QLocale.Country' + Finland = ... # type: 'QLocale.Country' + France = ... # type: 'QLocale.Country' + FrenchGuiana = ... # type: 'QLocale.Country' + FrenchPolynesia = ... # type: 'QLocale.Country' + FrenchSouthernTerritories = ... # type: 'QLocale.Country' + Gabon = ... # type: 'QLocale.Country' + Gambia = ... # type: 'QLocale.Country' + Georgia = ... # type: 'QLocale.Country' + Germany = ... # type: 'QLocale.Country' + Ghana = ... # type: 'QLocale.Country' + Gibraltar = ... # type: 'QLocale.Country' + Greece = ... # type: 'QLocale.Country' + Greenland = ... # type: 'QLocale.Country' + Grenada = ... # type: 'QLocale.Country' + Guadeloupe = ... # type: 'QLocale.Country' + Guam = ... # type: 'QLocale.Country' + Guatemala = ... # type: 'QLocale.Country' + Guinea = ... # type: 'QLocale.Country' + GuineaBissau = ... # type: 'QLocale.Country' + Guyana = ... # type: 'QLocale.Country' + Haiti = ... # type: 'QLocale.Country' + HeardAndMcDonaldIslands = ... # type: 'QLocale.Country' + Honduras = ... # type: 'QLocale.Country' + HongKong = ... # type: 'QLocale.Country' + Hungary = ... # type: 'QLocale.Country' + Iceland = ... # type: 'QLocale.Country' + India = ... # type: 'QLocale.Country' + Indonesia = ... # type: 'QLocale.Country' + Iran = ... # type: 'QLocale.Country' + Iraq = ... # type: 'QLocale.Country' + Ireland = ... # type: 'QLocale.Country' + Israel = ... # type: 'QLocale.Country' + Italy = ... # type: 'QLocale.Country' + Jamaica = ... # type: 'QLocale.Country' + Japan = ... # type: 'QLocale.Country' + Jordan = ... # type: 'QLocale.Country' + Kazakhstan = ... # type: 'QLocale.Country' + Kenya = ... # type: 'QLocale.Country' + Kiribati = ... # type: 'QLocale.Country' + DemocraticRepublicOfKorea = ... # type: 'QLocale.Country' + RepublicOfKorea = ... # type: 'QLocale.Country' + Kuwait = ... # type: 'QLocale.Country' + Kyrgyzstan = ... # type: 'QLocale.Country' + Latvia = ... # type: 'QLocale.Country' + Lebanon = ... # type: 'QLocale.Country' + Lesotho = ... # type: 'QLocale.Country' + Liberia = ... # type: 'QLocale.Country' + Liechtenstein = ... # type: 'QLocale.Country' + Lithuania = ... # type: 'QLocale.Country' + Luxembourg = ... # type: 'QLocale.Country' + Macau = ... # type: 'QLocale.Country' + Macedonia = ... # type: 'QLocale.Country' + Madagascar = ... # type: 'QLocale.Country' + Malawi = ... # type: 'QLocale.Country' + Malaysia = ... # type: 'QLocale.Country' + Maldives = ... # type: 'QLocale.Country' + Mali = ... # type: 'QLocale.Country' + Malta = ... # type: 'QLocale.Country' + MarshallIslands = ... # type: 'QLocale.Country' + Martinique = ... # type: 'QLocale.Country' + Mauritania = ... # type: 'QLocale.Country' + Mauritius = ... # type: 'QLocale.Country' + Mayotte = ... # type: 'QLocale.Country' + Mexico = ... # type: 'QLocale.Country' + Micronesia = ... # type: 'QLocale.Country' + Moldova = ... # type: 'QLocale.Country' + Monaco = ... # type: 'QLocale.Country' + Mongolia = ... # type: 'QLocale.Country' + Montserrat = ... # type: 'QLocale.Country' + Morocco = ... # type: 'QLocale.Country' + Mozambique = ... # type: 'QLocale.Country' + Myanmar = ... # type: 'QLocale.Country' + Namibia = ... # type: 'QLocale.Country' + NauruCountry = ... # type: 'QLocale.Country' + Nepal = ... # type: 'QLocale.Country' + Netherlands = ... # type: 'QLocale.Country' + NewCaledonia = ... # type: 'QLocale.Country' + NewZealand = ... # type: 'QLocale.Country' + Nicaragua = ... # type: 'QLocale.Country' + Niger = ... # type: 'QLocale.Country' + Nigeria = ... # type: 'QLocale.Country' + Niue = ... # type: 'QLocale.Country' + NorfolkIsland = ... # type: 'QLocale.Country' + NorthernMarianaIslands = ... # type: 'QLocale.Country' + Norway = ... # type: 'QLocale.Country' + Oman = ... # type: 'QLocale.Country' + Pakistan = ... # type: 'QLocale.Country' + Palau = ... # type: 'QLocale.Country' + Panama = ... # type: 'QLocale.Country' + PapuaNewGuinea = ... # type: 'QLocale.Country' + Paraguay = ... # type: 'QLocale.Country' + Peru = ... # type: 'QLocale.Country' + Philippines = ... # type: 'QLocale.Country' + Pitcairn = ... # type: 'QLocale.Country' + Poland = ... # type: 'QLocale.Country' + Portugal = ... # type: 'QLocale.Country' + PuertoRico = ... # type: 'QLocale.Country' + Qatar = ... # type: 'QLocale.Country' + Reunion = ... # type: 'QLocale.Country' + Romania = ... # type: 'QLocale.Country' + RussianFederation = ... # type: 'QLocale.Country' + Rwanda = ... # type: 'QLocale.Country' + SaintKittsAndNevis = ... # type: 'QLocale.Country' + Samoa = ... # type: 'QLocale.Country' + SanMarino = ... # type: 'QLocale.Country' + SaoTomeAndPrincipe = ... # type: 'QLocale.Country' + SaudiArabia = ... # type: 'QLocale.Country' + Senegal = ... # type: 'QLocale.Country' + Seychelles = ... # type: 'QLocale.Country' + SierraLeone = ... # type: 'QLocale.Country' + Singapore = ... # type: 'QLocale.Country' + Slovakia = ... # type: 'QLocale.Country' + Slovenia = ... # type: 'QLocale.Country' + SolomonIslands = ... # type: 'QLocale.Country' + Somalia = ... # type: 'QLocale.Country' + SouthAfrica = ... # type: 'QLocale.Country' + SouthGeorgiaAndTheSouthSandwichIslands = ... # type: 'QLocale.Country' + Spain = ... # type: 'QLocale.Country' + SriLanka = ... # type: 'QLocale.Country' + Sudan = ... # type: 'QLocale.Country' + Suriname = ... # type: 'QLocale.Country' + SvalbardAndJanMayenIslands = ... # type: 'QLocale.Country' + Swaziland = ... # type: 'QLocale.Country' + Sweden = ... # type: 'QLocale.Country' + Switzerland = ... # type: 'QLocale.Country' + SyrianArabRepublic = ... # type: 'QLocale.Country' + Taiwan = ... # type: 'QLocale.Country' + Tajikistan = ... # type: 'QLocale.Country' + Tanzania = ... # type: 'QLocale.Country' + Thailand = ... # type: 'QLocale.Country' + Togo = ... # type: 'QLocale.Country' + Tokelau = ... # type: 'QLocale.Country' + TrinidadAndTobago = ... # type: 'QLocale.Country' + Tunisia = ... # type: 'QLocale.Country' + Turkey = ... # type: 'QLocale.Country' + Turkmenistan = ... # type: 'QLocale.Country' + TurksAndCaicosIslands = ... # type: 'QLocale.Country' + Tuvalu = ... # type: 'QLocale.Country' + Uganda = ... # type: 'QLocale.Country' + Ukraine = ... # type: 'QLocale.Country' + UnitedArabEmirates = ... # type: 'QLocale.Country' + UnitedKingdom = ... # type: 'QLocale.Country' + UnitedStates = ... # type: 'QLocale.Country' + UnitedStatesMinorOutlyingIslands = ... # type: 'QLocale.Country' + Uruguay = ... # type: 'QLocale.Country' + Uzbekistan = ... # type: 'QLocale.Country' + Vanuatu = ... # type: 'QLocale.Country' + VaticanCityState = ... # type: 'QLocale.Country' + Venezuela = ... # type: 'QLocale.Country' + BritishVirginIslands = ... # type: 'QLocale.Country' + WallisAndFutunaIslands = ... # type: 'QLocale.Country' + WesternSahara = ... # type: 'QLocale.Country' + Yemen = ... # type: 'QLocale.Country' + Zambia = ... # type: 'QLocale.Country' + Zimbabwe = ... # type: 'QLocale.Country' + Montenegro = ... # type: 'QLocale.Country' + Serbia = ... # type: 'QLocale.Country' + SaintBarthelemy = ... # type: 'QLocale.Country' + SaintMartin = ... # type: 'QLocale.Country' + LatinAmericaAndTheCaribbean = ... # type: 'QLocale.Country' + LastCountry = ... # type: 'QLocale.Country' + Brunei = ... # type: 'QLocale.Country' + CongoKinshasa = ... # type: 'QLocale.Country' + CongoBrazzaville = ... # type: 'QLocale.Country' + Fiji = ... # type: 'QLocale.Country' + Guernsey = ... # type: 'QLocale.Country' + NorthKorea = ... # type: 'QLocale.Country' + SouthKorea = ... # type: 'QLocale.Country' + Laos = ... # type: 'QLocale.Country' + Libya = ... # type: 'QLocale.Country' + CuraSao = ... # type: 'QLocale.Country' + PalestinianTerritories = ... # type: 'QLocale.Country' + Russia = ... # type: 'QLocale.Country' + SaintLucia = ... # type: 'QLocale.Country' + SaintVincentAndTheGrenadines = ... # type: 'QLocale.Country' + SaintHelena = ... # type: 'QLocale.Country' + SaintPierreAndMiquelon = ... # type: 'QLocale.Country' + Syria = ... # type: 'QLocale.Country' + Tonga = ... # type: 'QLocale.Country' + Vietnam = ... # type: 'QLocale.Country' + UnitedStatesVirginIslands = ... # type: 'QLocale.Country' + CanaryIslands = ... # type: 'QLocale.Country' + ClippertonIsland = ... # type: 'QLocale.Country' + AscensionIsland = ... # type: 'QLocale.Country' + AlandIslands = ... # type: 'QLocale.Country' + DiegoGarcia = ... # type: 'QLocale.Country' + CeutaAndMelilla = ... # type: 'QLocale.Country' + IsleOfMan = ... # type: 'QLocale.Country' + Jersey = ... # type: 'QLocale.Country' + TristanDaCunha = ... # type: 'QLocale.Country' + SouthSudan = ... # type: 'QLocale.Country' + Bonaire = ... # type: 'QLocale.Country' + SintMaarten = ... # type: 'QLocale.Country' + Kosovo = ... # type: 'QLocale.Country' + TokelauCountry = ... # type: 'QLocale.Country' + TuvaluCountry = ... # type: 'QLocale.Country' + EuropeanUnion = ... # type: 'QLocale.Country' + OutlyingOceania = ... # type: 'QLocale.Country' + LatinAmerica = ... # type: 'QLocale.Country' + World = ... # type: 'QLocale.Country' + Europe = ... # type: 'QLocale.Country' + + class Language(int): ... + C = ... # type: 'QLocale.Language' + Abkhazian = ... # type: 'QLocale.Language' + Afan = ... # type: 'QLocale.Language' + Afar = ... # type: 'QLocale.Language' + Afrikaans = ... # type: 'QLocale.Language' + Albanian = ... # type: 'QLocale.Language' + Amharic = ... # type: 'QLocale.Language' + Arabic = ... # type: 'QLocale.Language' + Armenian = ... # type: 'QLocale.Language' + Assamese = ... # type: 'QLocale.Language' + Aymara = ... # type: 'QLocale.Language' + Azerbaijani = ... # type: 'QLocale.Language' + Bashkir = ... # type: 'QLocale.Language' + Basque = ... # type: 'QLocale.Language' + Bengali = ... # type: 'QLocale.Language' + Bhutani = ... # type: 'QLocale.Language' + Bihari = ... # type: 'QLocale.Language' + Bislama = ... # type: 'QLocale.Language' + Breton = ... # type: 'QLocale.Language' + Bulgarian = ... # type: 'QLocale.Language' + Burmese = ... # type: 'QLocale.Language' + Byelorussian = ... # type: 'QLocale.Language' + Cambodian = ... # type: 'QLocale.Language' + Catalan = ... # type: 'QLocale.Language' + Chinese = ... # type: 'QLocale.Language' + Corsican = ... # type: 'QLocale.Language' + Croatian = ... # type: 'QLocale.Language' + Czech = ... # type: 'QLocale.Language' + Danish = ... # type: 'QLocale.Language' + Dutch = ... # type: 'QLocale.Language' + English = ... # type: 'QLocale.Language' + Esperanto = ... # type: 'QLocale.Language' + Estonian = ... # type: 'QLocale.Language' + Faroese = ... # type: 'QLocale.Language' + Finnish = ... # type: 'QLocale.Language' + French = ... # type: 'QLocale.Language' + Frisian = ... # type: 'QLocale.Language' + Gaelic = ... # type: 'QLocale.Language' + Galician = ... # type: 'QLocale.Language' + Georgian = ... # type: 'QLocale.Language' + German = ... # type: 'QLocale.Language' + Greek = ... # type: 'QLocale.Language' + Greenlandic = ... # type: 'QLocale.Language' + Guarani = ... # type: 'QLocale.Language' + Gujarati = ... # type: 'QLocale.Language' + Hausa = ... # type: 'QLocale.Language' + Hebrew = ... # type: 'QLocale.Language' + Hindi = ... # type: 'QLocale.Language' + Hungarian = ... # type: 'QLocale.Language' + Icelandic = ... # type: 'QLocale.Language' + Indonesian = ... # type: 'QLocale.Language' + Interlingua = ... # type: 'QLocale.Language' + Interlingue = ... # type: 'QLocale.Language' + Inuktitut = ... # type: 'QLocale.Language' + Inupiak = ... # type: 'QLocale.Language' + Irish = ... # type: 'QLocale.Language' + Italian = ... # type: 'QLocale.Language' + Japanese = ... # type: 'QLocale.Language' + Javanese = ... # type: 'QLocale.Language' + Kannada = ... # type: 'QLocale.Language' + Kashmiri = ... # type: 'QLocale.Language' + Kazakh = ... # type: 'QLocale.Language' + Kinyarwanda = ... # type: 'QLocale.Language' + Kirghiz = ... # type: 'QLocale.Language' + Korean = ... # type: 'QLocale.Language' + Kurdish = ... # type: 'QLocale.Language' + Kurundi = ... # type: 'QLocale.Language' + Latin = ... # type: 'QLocale.Language' + Latvian = ... # type: 'QLocale.Language' + Lingala = ... # type: 'QLocale.Language' + Lithuanian = ... # type: 'QLocale.Language' + Macedonian = ... # type: 'QLocale.Language' + Malagasy = ... # type: 'QLocale.Language' + Malay = ... # type: 'QLocale.Language' + Malayalam = ... # type: 'QLocale.Language' + Maltese = ... # type: 'QLocale.Language' + Maori = ... # type: 'QLocale.Language' + Marathi = ... # type: 'QLocale.Language' + Moldavian = ... # type: 'QLocale.Language' + Mongolian = ... # type: 'QLocale.Language' + NauruLanguage = ... # type: 'QLocale.Language' + Nepali = ... # type: 'QLocale.Language' + Norwegian = ... # type: 'QLocale.Language' + Occitan = ... # type: 'QLocale.Language' + Oriya = ... # type: 'QLocale.Language' + Pashto = ... # type: 'QLocale.Language' + Persian = ... # type: 'QLocale.Language' + Polish = ... # type: 'QLocale.Language' + Portuguese = ... # type: 'QLocale.Language' + Punjabi = ... # type: 'QLocale.Language' + Quechua = ... # type: 'QLocale.Language' + RhaetoRomance = ... # type: 'QLocale.Language' + Romanian = ... # type: 'QLocale.Language' + Russian = ... # type: 'QLocale.Language' + Samoan = ... # type: 'QLocale.Language' + Sanskrit = ... # type: 'QLocale.Language' + Serbian = ... # type: 'QLocale.Language' + SerboCroatian = ... # type: 'QLocale.Language' + Shona = ... # type: 'QLocale.Language' + Sindhi = ... # type: 'QLocale.Language' + Slovak = ... # type: 'QLocale.Language' + Slovenian = ... # type: 'QLocale.Language' + Somali = ... # type: 'QLocale.Language' + Spanish = ... # type: 'QLocale.Language' + Sundanese = ... # type: 'QLocale.Language' + Swahili = ... # type: 'QLocale.Language' + Swedish = ... # type: 'QLocale.Language' + Tagalog = ... # type: 'QLocale.Language' + Tajik = ... # type: 'QLocale.Language' + Tamil = ... # type: 'QLocale.Language' + Tatar = ... # type: 'QLocale.Language' + Telugu = ... # type: 'QLocale.Language' + Thai = ... # type: 'QLocale.Language' + Tibetan = ... # type: 'QLocale.Language' + Tigrinya = ... # type: 'QLocale.Language' + Tsonga = ... # type: 'QLocale.Language' + Turkish = ... # type: 'QLocale.Language' + Turkmen = ... # type: 'QLocale.Language' + Twi = ... # type: 'QLocale.Language' + Uigur = ... # type: 'QLocale.Language' + Ukrainian = ... # type: 'QLocale.Language' + Urdu = ... # type: 'QLocale.Language' + Uzbek = ... # type: 'QLocale.Language' + Vietnamese = ... # type: 'QLocale.Language' + Volapuk = ... # type: 'QLocale.Language' + Welsh = ... # type: 'QLocale.Language' + Wolof = ... # type: 'QLocale.Language' + Xhosa = ... # type: 'QLocale.Language' + Yiddish = ... # type: 'QLocale.Language' + Yoruba = ... # type: 'QLocale.Language' + Zhuang = ... # type: 'QLocale.Language' + Zulu = ... # type: 'QLocale.Language' + Bosnian = ... # type: 'QLocale.Language' + Divehi = ... # type: 'QLocale.Language' + Manx = ... # type: 'QLocale.Language' + Cornish = ... # type: 'QLocale.Language' + LastLanguage = ... # type: 'QLocale.Language' + NorwegianBokmal = ... # type: 'QLocale.Language' + NorwegianNynorsk = ... # type: 'QLocale.Language' + Akan = ... # type: 'QLocale.Language' + Konkani = ... # type: 'QLocale.Language' + Ga = ... # type: 'QLocale.Language' + Igbo = ... # type: 'QLocale.Language' + Kamba = ... # type: 'QLocale.Language' + Syriac = ... # type: 'QLocale.Language' + Blin = ... # type: 'QLocale.Language' + Geez = ... # type: 'QLocale.Language' + Koro = ... # type: 'QLocale.Language' + Sidamo = ... # type: 'QLocale.Language' + Atsam = ... # type: 'QLocale.Language' + Tigre = ... # type: 'QLocale.Language' + Jju = ... # type: 'QLocale.Language' + Friulian = ... # type: 'QLocale.Language' + Venda = ... # type: 'QLocale.Language' + Ewe = ... # type: 'QLocale.Language' + Walamo = ... # type: 'QLocale.Language' + Hawaiian = ... # type: 'QLocale.Language' + Tyap = ... # type: 'QLocale.Language' + Chewa = ... # type: 'QLocale.Language' + Filipino = ... # type: 'QLocale.Language' + SwissGerman = ... # type: 'QLocale.Language' + SichuanYi = ... # type: 'QLocale.Language' + Kpelle = ... # type: 'QLocale.Language' + LowGerman = ... # type: 'QLocale.Language' + SouthNdebele = ... # type: 'QLocale.Language' + NorthernSotho = ... # type: 'QLocale.Language' + NorthernSami = ... # type: 'QLocale.Language' + Taroko = ... # type: 'QLocale.Language' + Gusii = ... # type: 'QLocale.Language' + Taita = ... # type: 'QLocale.Language' + Fulah = ... # type: 'QLocale.Language' + Kikuyu = ... # type: 'QLocale.Language' + Samburu = ... # type: 'QLocale.Language' + Sena = ... # type: 'QLocale.Language' + NorthNdebele = ... # type: 'QLocale.Language' + Rombo = ... # type: 'QLocale.Language' + Tachelhit = ... # type: 'QLocale.Language' + Kabyle = ... # type: 'QLocale.Language' + Nyankole = ... # type: 'QLocale.Language' + Bena = ... # type: 'QLocale.Language' + Vunjo = ... # type: 'QLocale.Language' + Bambara = ... # type: 'QLocale.Language' + Embu = ... # type: 'QLocale.Language' + Cherokee = ... # type: 'QLocale.Language' + Morisyen = ... # type: 'QLocale.Language' + Makonde = ... # type: 'QLocale.Language' + Langi = ... # type: 'QLocale.Language' + Ganda = ... # type: 'QLocale.Language' + Bemba = ... # type: 'QLocale.Language' + Kabuverdianu = ... # type: 'QLocale.Language' + Meru = ... # type: 'QLocale.Language' + Kalenjin = ... # type: 'QLocale.Language' + Nama = ... # type: 'QLocale.Language' + Machame = ... # type: 'QLocale.Language' + Colognian = ... # type: 'QLocale.Language' + Masai = ... # type: 'QLocale.Language' + Soga = ... # type: 'QLocale.Language' + Luyia = ... # type: 'QLocale.Language' + Asu = ... # type: 'QLocale.Language' + Teso = ... # type: 'QLocale.Language' + Saho = ... # type: 'QLocale.Language' + KoyraChiini = ... # type: 'QLocale.Language' + Rwa = ... # type: 'QLocale.Language' + Luo = ... # type: 'QLocale.Language' + Chiga = ... # type: 'QLocale.Language' + CentralMoroccoTamazight = ... # type: 'QLocale.Language' + KoyraboroSenni = ... # type: 'QLocale.Language' + Shambala = ... # type: 'QLocale.Language' + AnyLanguage = ... # type: 'QLocale.Language' + Rundi = ... # type: 'QLocale.Language' + Bodo = ... # type: 'QLocale.Language' + Aghem = ... # type: 'QLocale.Language' + Basaa = ... # type: 'QLocale.Language' + Zarma = ... # type: 'QLocale.Language' + Duala = ... # type: 'QLocale.Language' + JolaFonyi = ... # type: 'QLocale.Language' + Ewondo = ... # type: 'QLocale.Language' + Bafia = ... # type: 'QLocale.Language' + LubaKatanga = ... # type: 'QLocale.Language' + MakhuwaMeetto = ... # type: 'QLocale.Language' + Mundang = ... # type: 'QLocale.Language' + Kwasio = ... # type: 'QLocale.Language' + Nuer = ... # type: 'QLocale.Language' + Sakha = ... # type: 'QLocale.Language' + Sangu = ... # type: 'QLocale.Language' + CongoSwahili = ... # type: 'QLocale.Language' + Tasawaq = ... # type: 'QLocale.Language' + Vai = ... # type: 'QLocale.Language' + Walser = ... # type: 'QLocale.Language' + Yangben = ... # type: 'QLocale.Language' + Oromo = ... # type: 'QLocale.Language' + Dzongkha = ... # type: 'QLocale.Language' + Belarusian = ... # type: 'QLocale.Language' + Khmer = ... # type: 'QLocale.Language' + Fijian = ... # type: 'QLocale.Language' + WesternFrisian = ... # type: 'QLocale.Language' + Lao = ... # type: 'QLocale.Language' + Marshallese = ... # type: 'QLocale.Language' + Romansh = ... # type: 'QLocale.Language' + Sango = ... # type: 'QLocale.Language' + Ossetic = ... # type: 'QLocale.Language' + SouthernSotho = ... # type: 'QLocale.Language' + Tswana = ... # type: 'QLocale.Language' + Sinhala = ... # type: 'QLocale.Language' + Swati = ... # type: 'QLocale.Language' + Sardinian = ... # type: 'QLocale.Language' + Tongan = ... # type: 'QLocale.Language' + Tahitian = ... # type: 'QLocale.Language' + Nyanja = ... # type: 'QLocale.Language' + Avaric = ... # type: 'QLocale.Language' + Chamorro = ... # type: 'QLocale.Language' + Chechen = ... # type: 'QLocale.Language' + Church = ... # type: 'QLocale.Language' + Chuvash = ... # type: 'QLocale.Language' + Cree = ... # type: 'QLocale.Language' + Haitian = ... # type: 'QLocale.Language' + Herero = ... # type: 'QLocale.Language' + HiriMotu = ... # type: 'QLocale.Language' + Kanuri = ... # type: 'QLocale.Language' + Komi = ... # type: 'QLocale.Language' + Kongo = ... # type: 'QLocale.Language' + Kwanyama = ... # type: 'QLocale.Language' + Limburgish = ... # type: 'QLocale.Language' + Luxembourgish = ... # type: 'QLocale.Language' + Navaho = ... # type: 'QLocale.Language' + Ndonga = ... # type: 'QLocale.Language' + Ojibwa = ... # type: 'QLocale.Language' + Pali = ... # type: 'QLocale.Language' + Walloon = ... # type: 'QLocale.Language' + Avestan = ... # type: 'QLocale.Language' + Asturian = ... # type: 'QLocale.Language' + Ngomba = ... # type: 'QLocale.Language' + Kako = ... # type: 'QLocale.Language' + Meta = ... # type: 'QLocale.Language' + Ngiemboon = ... # type: 'QLocale.Language' + Uighur = ... # type: 'QLocale.Language' + Aragonese = ... # type: 'QLocale.Language' + Akkadian = ... # type: 'QLocale.Language' + AncientEgyptian = ... # type: 'QLocale.Language' + AncientGreek = ... # type: 'QLocale.Language' + Aramaic = ... # type: 'QLocale.Language' + Balinese = ... # type: 'QLocale.Language' + Bamun = ... # type: 'QLocale.Language' + BatakToba = ... # type: 'QLocale.Language' + Buginese = ... # type: 'QLocale.Language' + Buhid = ... # type: 'QLocale.Language' + Carian = ... # type: 'QLocale.Language' + Chakma = ... # type: 'QLocale.Language' + ClassicalMandaic = ... # type: 'QLocale.Language' + Coptic = ... # type: 'QLocale.Language' + Dogri = ... # type: 'QLocale.Language' + EasternCham = ... # type: 'QLocale.Language' + EasternKayah = ... # type: 'QLocale.Language' + Etruscan = ... # type: 'QLocale.Language' + Gothic = ... # type: 'QLocale.Language' + Hanunoo = ... # type: 'QLocale.Language' + Ingush = ... # type: 'QLocale.Language' + LargeFloweryMiao = ... # type: 'QLocale.Language' + Lepcha = ... # type: 'QLocale.Language' + Limbu = ... # type: 'QLocale.Language' + Lisu = ... # type: 'QLocale.Language' + Lu = ... # type: 'QLocale.Language' + Lycian = ... # type: 'QLocale.Language' + Lydian = ... # type: 'QLocale.Language' + Mandingo = ... # type: 'QLocale.Language' + Manipuri = ... # type: 'QLocale.Language' + Meroitic = ... # type: 'QLocale.Language' + NorthernThai = ... # type: 'QLocale.Language' + OldIrish = ... # type: 'QLocale.Language' + OldNorse = ... # type: 'QLocale.Language' + OldPersian = ... # type: 'QLocale.Language' + OldTurkish = ... # type: 'QLocale.Language' + Pahlavi = ... # type: 'QLocale.Language' + Parthian = ... # type: 'QLocale.Language' + Phoenician = ... # type: 'QLocale.Language' + PrakritLanguage = ... # type: 'QLocale.Language' + Rejang = ... # type: 'QLocale.Language' + Sabaean = ... # type: 'QLocale.Language' + Samaritan = ... # type: 'QLocale.Language' + Santali = ... # type: 'QLocale.Language' + Saurashtra = ... # type: 'QLocale.Language' + Sora = ... # type: 'QLocale.Language' + Sylheti = ... # type: 'QLocale.Language' + Tagbanwa = ... # type: 'QLocale.Language' + TaiDam = ... # type: 'QLocale.Language' + TaiNua = ... # type: 'QLocale.Language' + Ugaritic = ... # type: 'QLocale.Language' + Akoose = ... # type: 'QLocale.Language' + Lakota = ... # type: 'QLocale.Language' + StandardMoroccanTamazight = ... # type: 'QLocale.Language' + Mapuche = ... # type: 'QLocale.Language' + CentralKurdish = ... # type: 'QLocale.Language' + LowerSorbian = ... # type: 'QLocale.Language' + UpperSorbian = ... # type: 'QLocale.Language' + Kenyang = ... # type: 'QLocale.Language' + Mohawk = ... # type: 'QLocale.Language' + Nko = ... # type: 'QLocale.Language' + Prussian = ... # type: 'QLocale.Language' + Kiche = ... # type: 'QLocale.Language' + SouthernSami = ... # type: 'QLocale.Language' + LuleSami = ... # type: 'QLocale.Language' + InariSami = ... # type: 'QLocale.Language' + SkoltSami = ... # type: 'QLocale.Language' + Warlpiri = ... # type: 'QLocale.Language' + ManichaeanMiddlePersian = ... # type: 'QLocale.Language' + Mende = ... # type: 'QLocale.Language' + AncientNorthArabian = ... # type: 'QLocale.Language' + LinearA = ... # type: 'QLocale.Language' + HmongNjua = ... # type: 'QLocale.Language' + Ho = ... # type: 'QLocale.Language' + Lezghian = ... # type: 'QLocale.Language' + Bassa = ... # type: 'QLocale.Language' + Mono = ... # type: 'QLocale.Language' + TedimChin = ... # type: 'QLocale.Language' + Maithili = ... # type: 'QLocale.Language' + Ahom = ... # type: 'QLocale.Language' + AmericanSignLanguage = ... # type: 'QLocale.Language' + ArdhamagadhiPrakrit = ... # type: 'QLocale.Language' + Bhojpuri = ... # type: 'QLocale.Language' + HieroglyphicLuwian = ... # type: 'QLocale.Language' + LiteraryChinese = ... # type: 'QLocale.Language' + Mazanderani = ... # type: 'QLocale.Language' + Mru = ... # type: 'QLocale.Language' + Newari = ... # type: 'QLocale.Language' + NorthernLuri = ... # type: 'QLocale.Language' + Palauan = ... # type: 'QLocale.Language' + Papiamento = ... # type: 'QLocale.Language' + Saraiki = ... # type: 'QLocale.Language' + TokelauLanguage = ... # type: 'QLocale.Language' + TokPisin = ... # type: 'QLocale.Language' + TuvaluLanguage = ... # type: 'QLocale.Language' + UncodedLanguages = ... # type: 'QLocale.Language' + Cantonese = ... # type: 'QLocale.Language' + Osage = ... # type: 'QLocale.Language' + Tangut = ... # type: 'QLocale.Language' + Ido = ... # type: 'QLocale.Language' + Lojban = ... # type: 'QLocale.Language' + Sicilian = ... # type: 'QLocale.Language' + SouthernKurdish = ... # type: 'QLocale.Language' + WesternBalochi = ... # type: 'QLocale.Language' + + class NumberOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QLocale.NumberOptions', 'QLocale.NumberOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QLocale.NumberOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QLocale.NumberOptions': ... + def __int__(self) -> int: ... + + class DataSizeFormats(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QLocale.DataSizeFormats', 'QLocale.DataSizeFormat']) -> None: ... + @typing.overload + def __init__(self, a0: 'QLocale.DataSizeFormats') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QLocale.DataSizeFormats': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, name: str) -> None: ... + @typing.overload + def __init__(self, language: 'QLocale.Language', country: 'QLocale.Country' = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QLocale') -> None: ... + @typing.overload + def __init__(self, language: 'QLocale.Language', script: 'QLocale.Script', country: 'QLocale.Country') -> None: ... + + def toULong(self, s: str) -> typing.Tuple[int, bool]: ... + def toLong(self, s: str) -> typing.Tuple[int, bool]: ... + def formattedDataSize(self, bytes: int, precision: int = ..., format: typing.Union['QLocale.DataSizeFormats', 'QLocale.DataSizeFormat'] = ...) -> str: ... + def swap(self, other: 'QLocale') -> None: ... + def __hash__(self) -> int: ... + def createSeparatedList(self, list: typing.Iterable[str]) -> str: ... + def quoteString(self, str: str, style: 'QLocale.QuotationStyle' = ...) -> str: ... + @staticmethod + def matchingLocales(language: 'QLocale.Language', script: 'QLocale.Script', country: 'QLocale.Country') -> typing.List['QLocale']: ... + @staticmethod + def scriptToString(script: 'QLocale.Script') -> str: ... + def uiLanguages(self) -> typing.List[str]: ... + @typing.overload + def toCurrencyString(self, value: float, symbol: str = ...) -> str: ... + @typing.overload + def toCurrencyString(self, value: float, symbol: str, precision: int) -> str: ... + @typing.overload + def toCurrencyString(self, value: int, symbol: str = ...) -> str: ... + def currencySymbol(self, format: 'QLocale.CurrencySymbolFormat' = ...) -> str: ... + def toLower(self, str: str) -> str: ... + def toUpper(self, str: str) -> str: ... + def weekdays(self) -> typing.List[Qt.DayOfWeek]: ... + def firstDayOfWeek(self) -> Qt.DayOfWeek: ... + def nativeCountryName(self) -> str: ... + def nativeLanguageName(self) -> str: ... + def bcp47Name(self) -> str: ... + def script(self) -> 'QLocale.Script': ... + def textDirection(self) -> Qt.LayoutDirection: ... + def pmText(self) -> str: ... + def amText(self) -> str: ... + def standaloneDayName(self, a0: int, format: 'QLocale.FormatType' = ...) -> str: ... + def standaloneMonthName(self, a0: int, format: 'QLocale.FormatType' = ...) -> str: ... + def positiveSign(self) -> str: ... + def measurementSystem(self) -> 'QLocale.MeasurementSystem': ... + def numberOptions(self) -> 'QLocale.NumberOptions': ... + def setNumberOptions(self, options: typing.Union['QLocale.NumberOptions', 'QLocale.NumberOption']) -> None: ... + def dayName(self, a0: int, format: 'QLocale.FormatType' = ...) -> str: ... + def monthName(self, a0: int, format: 'QLocale.FormatType' = ...) -> str: ... + def exponential(self) -> str: ... + def negativeSign(self) -> str: ... + def zeroDigit(self) -> str: ... + def percent(self) -> str: ... + def groupSeparator(self) -> str: ... + def decimalPoint(self) -> str: ... + @typing.overload + def toDateTime(self, string: str, format: 'QLocale.FormatType' = ...) -> QDateTime: ... + @typing.overload + def toDateTime(self, string: str, format: str) -> QDateTime: ... + @typing.overload + def toTime(self, string: str, format: 'QLocale.FormatType' = ...) -> QTime: ... + @typing.overload + def toTime(self, string: str, format: str) -> QTime: ... + @typing.overload + def toDate(self, string: str, format: 'QLocale.FormatType' = ...) -> QDate: ... + @typing.overload + def toDate(self, string: str, format: str) -> QDate: ... + def dateTimeFormat(self, format: 'QLocale.FormatType' = ...) -> str: ... + def timeFormat(self, format: 'QLocale.FormatType' = ...) -> str: ... + def dateFormat(self, format: 'QLocale.FormatType' = ...) -> str: ... + @staticmethod + def system() -> 'QLocale': ... + @staticmethod + def c() -> 'QLocale': ... + @staticmethod + def setDefault(locale: 'QLocale') -> None: ... + @staticmethod + def countryToString(country: 'QLocale.Country') -> str: ... + @staticmethod + def languageToString(language: 'QLocale.Language') -> str: ... + @typing.overload + def toString(self, i: float, format: str = ..., precision: int = ...) -> str: ... + @typing.overload + def toString(self, dateTime: typing.Union[QDateTime, datetime.datetime], format: str) -> str: ... + @typing.overload + def toString(self, dateTime: typing.Union[QDateTime, datetime.datetime], format: 'QLocale.FormatType' = ...) -> str: ... + @typing.overload + def toString(self, date: typing.Union[QDate, datetime.date], formatStr: str) -> str: ... + @typing.overload + def toString(self, date: typing.Union[QDate, datetime.date], format: 'QLocale.FormatType' = ...) -> str: ... + @typing.overload + def toString(self, time: typing.Union[QTime, datetime.time], formatStr: str) -> str: ... + @typing.overload + def toString(self, time: typing.Union[QTime, datetime.time], format: 'QLocale.FormatType' = ...) -> str: ... + @typing.overload + def toString(self, i: int) -> str: ... + def toDouble(self, s: str) -> typing.Tuple[float, bool]: ... + def toFloat(self, s: str) -> typing.Tuple[float, bool]: ... + def toULongLong(self, s: str) -> typing.Tuple[int, bool]: ... + def toLongLong(self, s: str) -> typing.Tuple[int, bool]: ... + def toUInt(self, s: str) -> typing.Tuple[int, bool]: ... + def toInt(self, s: str) -> typing.Tuple[int, bool]: ... + def toUShort(self, s: str) -> typing.Tuple[int, bool]: ... + def toShort(self, s: str) -> typing.Tuple[int, bool]: ... + def name(self) -> str: ... + def country(self) -> 'QLocale.Country': ... + def language(self) -> 'QLocale.Language': ... + + +class QLockFile(sip.simplewrapper): + + class LockError(int): ... + NoError = ... # type: 'QLockFile.LockError' + LockFailedError = ... # type: 'QLockFile.LockError' + PermissionError = ... # type: 'QLockFile.LockError' + UnknownError = ... # type: 'QLockFile.LockError' + + def __init__(self, fileName: str) -> None: ... + + def error(self) -> 'QLockFile.LockError': ... + def removeStaleLockFile(self) -> bool: ... + def getLockInfo(self) -> typing.Tuple[bool, int, str, str]: ... + def isLocked(self) -> bool: ... + def staleLockTime(self) -> int: ... + def setStaleLockTime(self, a0: int) -> None: ... + def unlock(self) -> None: ... + def tryLock(self, timeout: int = ...) -> bool: ... + def lock(self) -> bool: ... + + +class QMessageLogContext(sip.simplewrapper): + + category = ... # type: str + file = ... # type: str + function = ... # type: str + line = ... # type: int + + +class QMessageLogger(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, file: str, line: int, function: str) -> None: ... + @typing.overload + def __init__(self, file: str, line: int, function: str, category: str) -> None: ... + + def info(self, msg: str) -> None: ... + def fatal(self, msg: str) -> None: ... + def critical(self, msg: str) -> None: ... + def warning(self, msg: str) -> None: ... + def debug(self, msg: str) -> None: ... + + +class QLoggingCategory(sip.simplewrapper): + + @typing.overload + def __init__(self, category: str) -> None: ... + @typing.overload + def __init__(self, category: str, severityLevel: QtMsgType) -> None: ... + + @staticmethod + def setFilterRules(rules: str) -> None: ... + @staticmethod + def defaultCategory() -> 'QLoggingCategory': ... + def __call__(self) -> 'QLoggingCategory': ... + def categoryName(self) -> str: ... + def isCriticalEnabled(self) -> bool: ... + def isWarningEnabled(self) -> bool: ... + def isInfoEnabled(self) -> bool: ... + def isDebugEnabled(self) -> bool: ... + def setEnabled(self, type: QtMsgType, enable: bool) -> None: ... + def isEnabled(self, type: QtMsgType) -> bool: ... + + +class QMargins(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, aleft: int, atop: int, aright: int, abottom: int) -> None: ... + @typing.overload + def __init__(self, a0: 'QMargins') -> None: ... + + def __neg__(self) -> 'QMargins': ... + def __pos__(self) -> 'QMargins': ... + def setBottom(self, abottom: int) -> None: ... + def setRight(self, aright: int) -> None: ... + def setTop(self, atop: int) -> None: ... + def setLeft(self, aleft: int) -> None: ... + def bottom(self) -> int: ... + def right(self) -> int: ... + def top(self) -> int: ... + def left(self) -> int: ... + def isNull(self) -> bool: ... + + +class QMarginsF(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, aleft: float, atop: float, aright: float, abottom: float) -> None: ... + @typing.overload + def __init__(self, margins: QMargins) -> None: ... + @typing.overload + def __init__(self, a0: 'QMarginsF') -> None: ... + + def __neg__(self) -> 'QMarginsF': ... + def __pos__(self) -> 'QMarginsF': ... + def toMargins(self) -> QMargins: ... + def setBottom(self, abottom: float) -> None: ... + def setRight(self, aright: float) -> None: ... + def setTop(self, atop: float) -> None: ... + def setLeft(self, aleft: float) -> None: ... + def bottom(self) -> float: ... + def right(self) -> float: ... + def top(self) -> float: ... + def left(self) -> float: ... + def isNull(self) -> bool: ... + + +class QMessageAuthenticationCode(sip.simplewrapper): + + def __init__(self, method: QCryptographicHash.Algorithm, key: typing.Union[QByteArray, bytes, bytearray] = ...) -> None: ... + + @staticmethod + def hash(message: typing.Union[QByteArray, bytes, bytearray], key: typing.Union[QByteArray, bytes, bytearray], method: QCryptographicHash.Algorithm) -> QByteArray: ... + def result(self) -> QByteArray: ... + @typing.overload + def addData(self, data: str, length: int) -> None: ... + @typing.overload + def addData(self, data: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + @typing.overload + def addData(self, device: QIODevice) -> bool: ... + def setKey(self, key: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + def reset(self) -> None: ... + + +class QMetaMethod(sip.simplewrapper): + + class MethodType(int): ... + Method = ... # type: 'QMetaMethod.MethodType' + Signal = ... # type: 'QMetaMethod.MethodType' + Slot = ... # type: 'QMetaMethod.MethodType' + Constructor = ... # type: 'QMetaMethod.MethodType' + + class Access(int): ... + Private = ... # type: 'QMetaMethod.Access' + Protected = ... # type: 'QMetaMethod.Access' + Public = ... # type: 'QMetaMethod.Access' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QMetaMethod') -> None: ... + + def parameterType(self, index: int) -> int: ... + def parameterCount(self) -> int: ... + def returnType(self) -> int: ... + def name(self) -> QByteArray: ... + def methodSignature(self) -> QByteArray: ... + def isValid(self) -> bool: ... + def methodIndex(self) -> int: ... + @typing.overload + def invoke(self, object: QObject, connectionType: Qt.ConnectionType, returnValue: 'QGenericReturnArgument', value0: 'QGenericArgument' = ..., value1: 'QGenericArgument' = ..., value2: 'QGenericArgument' = ..., value3: 'QGenericArgument' = ..., value4: 'QGenericArgument' = ..., value5: 'QGenericArgument' = ..., value6: 'QGenericArgument' = ..., value7: 'QGenericArgument' = ..., value8: 'QGenericArgument' = ..., value9: 'QGenericArgument' = ...) -> typing.Any: ... + @typing.overload + def invoke(self, object: QObject, returnValue: 'QGenericReturnArgument', value0: 'QGenericArgument' = ..., value1: 'QGenericArgument' = ..., value2: 'QGenericArgument' = ..., value3: 'QGenericArgument' = ..., value4: 'QGenericArgument' = ..., value5: 'QGenericArgument' = ..., value6: 'QGenericArgument' = ..., value7: 'QGenericArgument' = ..., value8: 'QGenericArgument' = ..., value9: 'QGenericArgument' = ...) -> typing.Any: ... + @typing.overload + def invoke(self, object: QObject, connectionType: Qt.ConnectionType, value0: 'QGenericArgument' = ..., value1: 'QGenericArgument' = ..., value2: 'QGenericArgument' = ..., value3: 'QGenericArgument' = ..., value4: 'QGenericArgument' = ..., value5: 'QGenericArgument' = ..., value6: 'QGenericArgument' = ..., value7: 'QGenericArgument' = ..., value8: 'QGenericArgument' = ..., value9: 'QGenericArgument' = ...) -> typing.Any: ... + @typing.overload + def invoke(self, object: QObject, value0: 'QGenericArgument' = ..., value1: 'QGenericArgument' = ..., value2: 'QGenericArgument' = ..., value3: 'QGenericArgument' = ..., value4: 'QGenericArgument' = ..., value5: 'QGenericArgument' = ..., value6: 'QGenericArgument' = ..., value7: 'QGenericArgument' = ..., value8: 'QGenericArgument' = ..., value9: 'QGenericArgument' = ...) -> typing.Any: ... + def methodType(self) -> 'QMetaMethod.MethodType': ... + def access(self) -> 'QMetaMethod.Access': ... + def tag(self) -> str: ... + def parameterNames(self) -> typing.List[QByteArray]: ... + def parameterTypes(self) -> typing.List[QByteArray]: ... + def typeName(self) -> str: ... + + +class QMetaEnum(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QMetaEnum') -> None: ... + + def enumName(self) -> str: ... + def isScoped(self) -> bool: ... + def isValid(self) -> bool: ... + def valueToKeys(self, value: int) -> QByteArray: ... + def keysToValue(self, keys: str) -> typing.Tuple[int, bool]: ... + def valueToKey(self, value: int) -> str: ... + def keyToValue(self, key: str) -> typing.Tuple[int, bool]: ... + def scope(self) -> str: ... + def value(self, index: int) -> int: ... + def key(self, index: int) -> str: ... + def keyCount(self) -> int: ... + def isFlag(self) -> bool: ... + def name(self) -> str: ... + + +class QMetaProperty(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QMetaProperty') -> None: ... + + def isFinal(self) -> bool: ... + def isConstant(self) -> bool: ... + def propertyIndex(self) -> int: ... + def notifySignalIndex(self) -> int: ... + def notifySignal(self) -> QMetaMethod: ... + def hasNotifySignal(self) -> bool: ... + def userType(self) -> int: ... + def isUser(self, object: typing.Optional[QObject] = ...) -> bool: ... + def isResettable(self) -> bool: ... + def isValid(self) -> bool: ... + def hasStdCppSet(self) -> bool: ... + def reset(self, obj: QObject) -> bool: ... + def write(self, obj: QObject, value: typing.Any) -> bool: ... + def read(self, obj: QObject) -> typing.Any: ... + def enumerator(self) -> QMetaEnum: ... + def isEnumType(self) -> bool: ... + def isFlagType(self) -> bool: ... + def isStored(self, object: typing.Optional[QObject] = ...) -> bool: ... + def isScriptable(self, object: typing.Optional[QObject] = ...) -> bool: ... + def isDesignable(self, object: typing.Optional[QObject] = ...) -> bool: ... + def isWritable(self) -> bool: ... + def isReadable(self) -> bool: ... + def type(self) -> 'QVariant.Type': ... + def typeName(self) -> str: ... + def name(self) -> str: ... + + +class QMetaClassInfo(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QMetaClassInfo') -> None: ... + + def value(self) -> str: ... + def name(self) -> str: ... + + +class QMetaType(sip.simplewrapper): + + class TypeFlag(int): ... + NeedsConstruction = ... # type: 'QMetaType.TypeFlag' + NeedsDestruction = ... # type: 'QMetaType.TypeFlag' + MovableType = ... # type: 'QMetaType.TypeFlag' + PointerToQObject = ... # type: 'QMetaType.TypeFlag' + IsEnumeration = ... # type: 'QMetaType.TypeFlag' + + class Type(int): ... + UnknownType = ... # type: 'QMetaType.Type' + Void = ... # type: 'QMetaType.Type' + Bool = ... # type: 'QMetaType.Type' + Int = ... # type: 'QMetaType.Type' + UInt = ... # type: 'QMetaType.Type' + LongLong = ... # type: 'QMetaType.Type' + ULongLong = ... # type: 'QMetaType.Type' + Double = ... # type: 'QMetaType.Type' + QChar = ... # type: 'QMetaType.Type' + QVariantMap = ... # type: 'QMetaType.Type' + QVariantList = ... # type: 'QMetaType.Type' + QVariantHash = ... # type: 'QMetaType.Type' + QString = ... # type: 'QMetaType.Type' + QStringList = ... # type: 'QMetaType.Type' + QByteArray = ... # type: 'QMetaType.Type' + QBitArray = ... # type: 'QMetaType.Type' + QDate = ... # type: 'QMetaType.Type' + QTime = ... # type: 'QMetaType.Type' + QDateTime = ... # type: 'QMetaType.Type' + QUrl = ... # type: 'QMetaType.Type' + QLocale = ... # type: 'QMetaType.Type' + QRect = ... # type: 'QMetaType.Type' + QRectF = ... # type: 'QMetaType.Type' + QSize = ... # type: 'QMetaType.Type' + QSizeF = ... # type: 'QMetaType.Type' + QLine = ... # type: 'QMetaType.Type' + QLineF = ... # type: 'QMetaType.Type' + QPoint = ... # type: 'QMetaType.Type' + QPointF = ... # type: 'QMetaType.Type' + QRegExp = ... # type: 'QMetaType.Type' + LastCoreType = ... # type: 'QMetaType.Type' + FirstGuiType = ... # type: 'QMetaType.Type' + QFont = ... # type: 'QMetaType.Type' + QPixmap = ... # type: 'QMetaType.Type' + QBrush = ... # type: 'QMetaType.Type' + QColor = ... # type: 'QMetaType.Type' + QPalette = ... # type: 'QMetaType.Type' + QIcon = ... # type: 'QMetaType.Type' + QImage = ... # type: 'QMetaType.Type' + QPolygon = ... # type: 'QMetaType.Type' + QRegion = ... # type: 'QMetaType.Type' + QBitmap = ... # type: 'QMetaType.Type' + QCursor = ... # type: 'QMetaType.Type' + QSizePolicy = ... # type: 'QMetaType.Type' + QKeySequence = ... # type: 'QMetaType.Type' + QPen = ... # type: 'QMetaType.Type' + QTextLength = ... # type: 'QMetaType.Type' + QTextFormat = ... # type: 'QMetaType.Type' + QMatrix = ... # type: 'QMetaType.Type' + QTransform = ... # type: 'QMetaType.Type' + VoidStar = ... # type: 'QMetaType.Type' + Long = ... # type: 'QMetaType.Type' + Short = ... # type: 'QMetaType.Type' + Char = ... # type: 'QMetaType.Type' + ULong = ... # type: 'QMetaType.Type' + UShort = ... # type: 'QMetaType.Type' + UChar = ... # type: 'QMetaType.Type' + Float = ... # type: 'QMetaType.Type' + QObjectStar = ... # type: 'QMetaType.Type' + QMatrix4x4 = ... # type: 'QMetaType.Type' + QVector2D = ... # type: 'QMetaType.Type' + QVector3D = ... # type: 'QMetaType.Type' + QVector4D = ... # type: 'QMetaType.Type' + QQuaternion = ... # type: 'QMetaType.Type' + QEasingCurve = ... # type: 'QMetaType.Type' + QVariant = ... # type: 'QMetaType.Type' + QUuid = ... # type: 'QMetaType.Type' + QModelIndex = ... # type: 'QMetaType.Type' + QPolygonF = ... # type: 'QMetaType.Type' + SChar = ... # type: 'QMetaType.Type' + QRegularExpression = ... # type: 'QMetaType.Type' + QJsonValue = ... # type: 'QMetaType.Type' + QJsonObject = ... # type: 'QMetaType.Type' + QJsonArray = ... # type: 'QMetaType.Type' + QJsonDocument = ... # type: 'QMetaType.Type' + QByteArrayList = ... # type: 'QMetaType.Type' + QPersistentModelIndex = ... # type: 'QMetaType.Type' + QCborSimpleType = ... # type: 'QMetaType.Type' + QCborValue = ... # type: 'QMetaType.Type' + QCborArray = ... # type: 'QMetaType.Type' + QCborMap = ... # type: 'QMetaType.Type' + User = ... # type: 'QMetaType.Type' + + class TypeFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QMetaType.TypeFlags', 'QMetaType.TypeFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QMetaType.TypeFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QMetaType.TypeFlags': ... + def __int__(self) -> int: ... + + def __init__(self, type: int) -> None: ... + + def id(self) -> int: ... + @staticmethod + def metaObjectForType(type: int) -> 'QMetaObject': ... + def isValid(self) -> bool: ... + def flags(self) -> 'QMetaType.TypeFlags': ... + @staticmethod + def typeFlags(type: int) -> 'QMetaType.TypeFlags': ... + @typing.overload + @staticmethod + def isRegistered(type: int) -> bool: ... + @typing.overload + def isRegistered(self) -> bool: ... + @staticmethod + def typeName(type: int) -> str: ... + @staticmethod + def type(typeName: str) -> int: ... + + +class QMimeData(QObject): + + def __init__(self) -> None: ... + + def retrieveData(self, mimetype: str, preferredType: 'QVariant.Type') -> typing.Any: ... + def removeFormat(self, mimetype: str) -> None: ... + def clear(self) -> None: ... + def formats(self) -> typing.List[str]: ... + def hasFormat(self, mimetype: str) -> bool: ... + def setData(self, mimetype: str, data: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + def data(self, mimetype: str) -> QByteArray: ... + def hasColor(self) -> bool: ... + def setColorData(self, color: typing.Any) -> None: ... + def colorData(self) -> typing.Any: ... + def hasImage(self) -> bool: ... + def setImageData(self, image: typing.Any) -> None: ... + def imageData(self) -> typing.Any: ... + def hasHtml(self) -> bool: ... + def setHtml(self, html: str) -> None: ... + def html(self) -> str: ... + def hasText(self) -> bool: ... + def setText(self, text: str) -> None: ... + def text(self) -> str: ... + def hasUrls(self) -> bool: ... + def setUrls(self, urls: typing.Iterable['QUrl']) -> None: ... + def urls(self) -> typing.List['QUrl']: ... + + +class QMimeDatabase(sip.simplewrapper): + + class MatchMode(int): ... + MatchDefault = ... # type: 'QMimeDatabase.MatchMode' + MatchExtension = ... # type: 'QMimeDatabase.MatchMode' + MatchContent = ... # type: 'QMimeDatabase.MatchMode' + + def __init__(self) -> None: ... + + def allMimeTypes(self) -> typing.List['QMimeType']: ... + def suffixForFileName(self, fileName: str) -> str: ... + @typing.overload + def mimeTypeForFileNameAndData(self, fileName: str, device: QIODevice) -> 'QMimeType': ... + @typing.overload + def mimeTypeForFileNameAndData(self, fileName: str, data: typing.Union[QByteArray, bytes, bytearray]) -> 'QMimeType': ... + def mimeTypeForUrl(self, url: 'QUrl') -> 'QMimeType': ... + @typing.overload + def mimeTypeForData(self, data: typing.Union[QByteArray, bytes, bytearray]) -> 'QMimeType': ... + @typing.overload + def mimeTypeForData(self, device: QIODevice) -> 'QMimeType': ... + def mimeTypesForFileName(self, fileName: str) -> typing.List['QMimeType']: ... + @typing.overload + def mimeTypeForFile(self, fileName: str, mode: 'QMimeDatabase.MatchMode' = ...) -> 'QMimeType': ... + @typing.overload + def mimeTypeForFile(self, fileInfo: QFileInfo, mode: 'QMimeDatabase.MatchMode' = ...) -> 'QMimeType': ... + def mimeTypeForName(self, nameOrAlias: str) -> 'QMimeType': ... + + +class QMimeType(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMimeType') -> None: ... + + def __hash__(self) -> int: ... + def filterString(self) -> str: ... + def inherits(self, mimeTypeName: str) -> bool: ... + def preferredSuffix(self) -> str: ... + def suffixes(self) -> typing.List[str]: ... + def aliases(self) -> typing.List[str]: ... + def allAncestors(self) -> typing.List[str]: ... + def parentMimeTypes(self) -> typing.List[str]: ... + def globPatterns(self) -> typing.List[str]: ... + def iconName(self) -> str: ... + def genericIconName(self) -> str: ... + def comment(self) -> str: ... + def name(self) -> str: ... + def isDefault(self) -> bool: ... + def isValid(self) -> bool: ... + def swap(self, other: 'QMimeType') -> None: ... + + +class QMutexLocker(sip.simplewrapper): + + def __init__(self, m: 'QMutex') -> None: ... + + def __exit__(self, type: typing.Any, value: typing.Any, traceback: typing.Any) -> None: ... + def __enter__(self) -> typing.Any: ... + def mutex(self) -> 'QMutex': ... + def relock(self) -> None: ... + def unlock(self) -> None: ... + + +class QMutex(sip.simplewrapper): + + class RecursionMode(int): ... + NonRecursive = ... # type: 'QMutex.RecursionMode' + Recursive = ... # type: 'QMutex.RecursionMode' + + def __init__(self, mode: 'QMutex.RecursionMode' = ...) -> None: ... + + def isRecursive(self) -> bool: ... + def unlock(self) -> None: ... + def tryLock(self, timeout: int = ...) -> bool: ... + def lock(self) -> None: ... + + +class QSignalBlocker(sip.simplewrapper): + + def __init__(self, o: QObject) -> None: ... + + def __exit__(self, type: typing.Any, value: typing.Any, traceback: typing.Any) -> None: ... + def __enter__(self) -> typing.Any: ... + def unblock(self) -> None: ... + def reblock(self) -> None: ... + + +class QObjectCleanupHandler(QObject): + + def __init__(self) -> None: ... + + def clear(self) -> None: ... + def isEmpty(self) -> bool: ... + def remove(self, object: QObject) -> None: ... + def add(self, object: QObject) -> QObject: ... + + +class QMetaObject(sip.simplewrapper): + + class Connection(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMetaObject.Connection') -> None: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QMetaObject') -> None: ... + + def inherits(self, metaObject: 'QMetaObject') -> bool: ... + def constructor(self, index: int) -> QMetaMethod: ... + def indexOfConstructor(self, constructor: str) -> int: ... + def constructorCount(self) -> int: ... + @typing.overload + @staticmethod + def invokeMethod(obj: QObject, member: str, type: Qt.ConnectionType, ret: 'QGenericReturnArgument', value0: 'QGenericArgument' = ..., value1: 'QGenericArgument' = ..., value2: 'QGenericArgument' = ..., value3: 'QGenericArgument' = ..., value4: 'QGenericArgument' = ..., value5: 'QGenericArgument' = ..., value6: 'QGenericArgument' = ..., value7: 'QGenericArgument' = ..., value8: 'QGenericArgument' = ..., value9: 'QGenericArgument' = ...) -> typing.Any: ... + @typing.overload + @staticmethod + def invokeMethod(obj: QObject, member: str, ret: 'QGenericReturnArgument', value0: 'QGenericArgument' = ..., value1: 'QGenericArgument' = ..., value2: 'QGenericArgument' = ..., value3: 'QGenericArgument' = ..., value4: 'QGenericArgument' = ..., value5: 'QGenericArgument' = ..., value6: 'QGenericArgument' = ..., value7: 'QGenericArgument' = ..., value8: 'QGenericArgument' = ..., value9: 'QGenericArgument' = ...) -> typing.Any: ... + @typing.overload + @staticmethod + def invokeMethod(obj: QObject, member: str, type: Qt.ConnectionType, value0: 'QGenericArgument' = ..., value1: 'QGenericArgument' = ..., value2: 'QGenericArgument' = ..., value3: 'QGenericArgument' = ..., value4: 'QGenericArgument' = ..., value5: 'QGenericArgument' = ..., value6: 'QGenericArgument' = ..., value7: 'QGenericArgument' = ..., value8: 'QGenericArgument' = ..., value9: 'QGenericArgument' = ...) -> typing.Any: ... + @typing.overload + @staticmethod + def invokeMethod(obj: QObject, member: str, value0: 'QGenericArgument' = ..., value1: 'QGenericArgument' = ..., value2: 'QGenericArgument' = ..., value3: 'QGenericArgument' = ..., value4: 'QGenericArgument' = ..., value5: 'QGenericArgument' = ..., value6: 'QGenericArgument' = ..., value7: 'QGenericArgument' = ..., value8: 'QGenericArgument' = ..., value9: 'QGenericArgument' = ...) -> typing.Any: ... + @staticmethod + def normalizedType(type: str) -> QByteArray: ... + @staticmethod + def normalizedSignature(method: str) -> QByteArray: ... + @staticmethod + def connectSlotsByName(o: QObject) -> None: ... + @typing.overload + @staticmethod + def checkConnectArgs(signal: str, method: str) -> bool: ... + @typing.overload + @staticmethod + def checkConnectArgs(signal: QMetaMethod, method: QMetaMethod) -> bool: ... + def classInfo(self, index: int) -> QMetaClassInfo: ... + def property(self, index: int) -> QMetaProperty: ... + def enumerator(self, index: int) -> QMetaEnum: ... + def method(self, index: int) -> QMetaMethod: ... + def indexOfClassInfo(self, name: str) -> int: ... + def indexOfProperty(self, name: str) -> int: ... + def indexOfEnumerator(self, name: str) -> int: ... + def indexOfSlot(self, slot: str) -> int: ... + def indexOfSignal(self, signal: str) -> int: ... + def indexOfMethod(self, method: str) -> int: ... + def classInfoCount(self) -> int: ... + def propertyCount(self) -> int: ... + def enumeratorCount(self) -> int: ... + def methodCount(self) -> int: ... + def classInfoOffset(self) -> int: ... + def propertyOffset(self) -> int: ... + def enumeratorOffset(self) -> int: ... + def methodOffset(self) -> int: ... + def userProperty(self) -> QMetaProperty: ... + def superClass(self) -> 'QMetaObject': ... + def className(self) -> str: ... + + +class QGenericArgument(sip.simplewrapper): ... + + +class QGenericReturnArgument(sip.simplewrapper): ... + + +class QOperatingSystemVersion(sip.simplewrapper): + + class OSType(int): ... + Unknown = ... # type: 'QOperatingSystemVersion.OSType' + Windows = ... # type: 'QOperatingSystemVersion.OSType' + MacOS = ... # type: 'QOperatingSystemVersion.OSType' + IOS = ... # type: 'QOperatingSystemVersion.OSType' + TvOS = ... # type: 'QOperatingSystemVersion.OSType' + WatchOS = ... # type: 'QOperatingSystemVersion.OSType' + Android = ... # type: 'QOperatingSystemVersion.OSType' + + AndroidJellyBean = ... # type: 'QOperatingSystemVersion' + AndroidJellyBean_MR1 = ... # type: 'QOperatingSystemVersion' + AndroidJellyBean_MR2 = ... # type: 'QOperatingSystemVersion' + AndroidKitKat = ... # type: 'QOperatingSystemVersion' + AndroidLollipop = ... # type: 'QOperatingSystemVersion' + AndroidLollipop_MR1 = ... # type: 'QOperatingSystemVersion' + AndroidMarshmallow = ... # type: 'QOperatingSystemVersion' + AndroidNougat = ... # type: 'QOperatingSystemVersion' + AndroidNougat_MR1 = ... # type: 'QOperatingSystemVersion' + AndroidOreo = ... # type: 'QOperatingSystemVersion' + MacOSHighSierra = ... # type: 'QOperatingSystemVersion' + MacOSMojave = ... # type: 'QOperatingSystemVersion' + MacOSSierra = ... # type: 'QOperatingSystemVersion' + OSXElCapitan = ... # type: 'QOperatingSystemVersion' + OSXMavericks = ... # type: 'QOperatingSystemVersion' + OSXYosemite = ... # type: 'QOperatingSystemVersion' + Windows10 = ... # type: 'QOperatingSystemVersion' + Windows7 = ... # type: 'QOperatingSystemVersion' + Windows8 = ... # type: 'QOperatingSystemVersion' + Windows8_1 = ... # type: 'QOperatingSystemVersion' + + @typing.overload + def __init__(self, osType: 'QOperatingSystemVersion.OSType', vmajor: int, vminor: int = ..., vmicro: int = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QOperatingSystemVersion') -> None: ... + + def name(self) -> str: ... + def type(self) -> 'QOperatingSystemVersion.OSType': ... + def segmentCount(self) -> int: ... + def microVersion(self) -> int: ... + def minorVersion(self) -> int: ... + def majorVersion(self) -> int: ... + @staticmethod + def currentType() -> 'QOperatingSystemVersion.OSType': ... + @staticmethod + def current() -> 'QOperatingSystemVersion': ... + + +class QParallelAnimationGroup(QAnimationGroup): + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def updateDirection(self, direction: QAbstractAnimation.Direction) -> None: ... + def updateState(self, newState: QAbstractAnimation.State, oldState: QAbstractAnimation.State) -> None: ... + def updateCurrentTime(self, currentTime: int) -> None: ... + def event(self, event: QEvent) -> bool: ... + def duration(self) -> int: ... + + +class QPauseAnimation(QAbstractAnimation): + + @typing.overload + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload + def __init__(self, msecs: int, parent: typing.Optional[QObject] = ...) -> None: ... + + def updateCurrentTime(self, a0: int) -> None: ... + def event(self, e: QEvent) -> bool: ... + def setDuration(self, msecs: int) -> None: ... + def duration(self) -> int: ... + + +class QVariantAnimation(QAbstractAnimation): + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def interpolated(self, from_: typing.Any, to: typing.Any, progress: float) -> typing.Any: ... + def updateCurrentValue(self, value: typing.Any) -> None: ... + def updateState(self, newState: QAbstractAnimation.State, oldState: QAbstractAnimation.State) -> None: ... + def updateCurrentTime(self, a0: int) -> None: ... + def event(self, event: QEvent) -> bool: ... + def valueChanged(self, value: typing.Any) -> None: ... + def setEasingCurve(self, easing: typing.Union[QEasingCurve, QEasingCurve.Type]) -> None: ... + def easingCurve(self) -> QEasingCurve: ... + def setDuration(self, msecs: int) -> None: ... + def duration(self) -> int: ... + def currentValue(self) -> typing.Any: ... + def setKeyValues(self, values: typing.Iterable[typing.Tuple[float, typing.Any]]) -> None: ... + def keyValues(self) -> typing.List[typing.Tuple[float, typing.Any]]: ... + def setKeyValueAt(self, step: float, value: typing.Any) -> None: ... + def keyValueAt(self, step: float) -> typing.Any: ... + def setEndValue(self, value: typing.Any) -> None: ... + def endValue(self) -> typing.Any: ... + def setStartValue(self, value: typing.Any) -> None: ... + def startValue(self) -> typing.Any: ... + + +class QPropertyAnimation(QVariantAnimation): + + @typing.overload + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload + def __init__(self, target: QObject, propertyName: typing.Union[QByteArray, bytes, bytearray], parent: typing.Optional[QObject] = ...) -> None: ... + + def updateState(self, newState: QAbstractAnimation.State, oldState: QAbstractAnimation.State) -> None: ... + def updateCurrentValue(self, value: typing.Any) -> None: ... + def event(self, event: QEvent) -> bool: ... + def setPropertyName(self, propertyName: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + def propertyName(self) -> QByteArray: ... + def setTargetObject(self, target: QObject) -> None: ... + def targetObject(self) -> QObject: ... + + +class QPluginLoader(QObject): + + @typing.overload + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload + def __init__(self, fileName: str, parent: typing.Optional[QObject] = ...) -> None: ... + + def loadHints(self) -> QLibrary.LoadHints: ... + def setLoadHints(self, loadHints: typing.Union[QLibrary.LoadHints, QLibrary.LoadHint]) -> None: ... + def errorString(self) -> str: ... + def fileName(self) -> str: ... + def setFileName(self, fileName: str) -> None: ... + def isLoaded(self) -> bool: ... + def unload(self) -> bool: ... + def load(self) -> bool: ... + @staticmethod + def staticInstances() -> typing.List[QObject]: ... + def instance(self) -> QObject: ... + + +class QPoint(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, xpos: int, ypos: int) -> None: ... + @typing.overload + def __init__(self, a0: 'QPoint') -> None: ... + + def __neg__(self) -> 'QPoint': ... + def __pos__(self) -> 'QPoint': ... + @staticmethod + def dotProduct(p1: 'QPoint', p2: 'QPoint') -> int: ... + def setY(self, ypos: int) -> None: ... + def setX(self, xpos: int) -> None: ... + def y(self) -> int: ... + def x(self) -> int: ... + def __bool__(self) -> int: ... + def isNull(self) -> bool: ... + def __repr__(self) -> str: ... + def manhattanLength(self) -> int: ... + + +class QPointF(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, xpos: float, ypos: float) -> None: ... + @typing.overload + def __init__(self, p: QPoint) -> None: ... + @typing.overload + def __init__(self, a0: 'QPointF') -> None: ... + + def __neg__(self) -> 'QPointF': ... + def __pos__(self) -> 'QPointF': ... + @staticmethod + def dotProduct(p1: typing.Union['QPointF', QPoint], p2: typing.Union['QPointF', QPoint]) -> float: ... + def manhattanLength(self) -> float: ... + def toPoint(self) -> QPoint: ... + def setY(self, ypos: float) -> None: ... + def setX(self, xpos: float) -> None: ... + def y(self) -> float: ... + def x(self) -> float: ... + def __bool__(self) -> int: ... + def isNull(self) -> bool: ... + def __repr__(self) -> str: ... + + +class QProcess(QIODevice): + + class InputChannelMode(int): ... + ManagedInputChannel = ... # type: 'QProcess.InputChannelMode' + ForwardedInputChannel = ... # type: 'QProcess.InputChannelMode' + + class ProcessChannelMode(int): ... + SeparateChannels = ... # type: 'QProcess.ProcessChannelMode' + MergedChannels = ... # type: 'QProcess.ProcessChannelMode' + ForwardedChannels = ... # type: 'QProcess.ProcessChannelMode' + ForwardedOutputChannel = ... # type: 'QProcess.ProcessChannelMode' + ForwardedErrorChannel = ... # type: 'QProcess.ProcessChannelMode' + + class ProcessChannel(int): ... + StandardOutput = ... # type: 'QProcess.ProcessChannel' + StandardError = ... # type: 'QProcess.ProcessChannel' + + class ProcessState(int): ... + NotRunning = ... # type: 'QProcess.ProcessState' + Starting = ... # type: 'QProcess.ProcessState' + Running = ... # type: 'QProcess.ProcessState' + + class ProcessError(int): ... + FailedToStart = ... # type: 'QProcess.ProcessError' + Crashed = ... # type: 'QProcess.ProcessError' + Timedout = ... # type: 'QProcess.ProcessError' + ReadError = ... # type: 'QProcess.ProcessError' + WriteError = ... # type: 'QProcess.ProcessError' + UnknownError = ... # type: 'QProcess.ProcessError' + + class ExitStatus(int): ... + NormalExit = ... # type: 'QProcess.ExitStatus' + CrashExit = ... # type: 'QProcess.ExitStatus' + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def processId(self) -> int: ... + @staticmethod + def nullDevice() -> str: ... + def setInputChannelMode(self, mode: 'QProcess.InputChannelMode') -> None: ... + def inputChannelMode(self) -> 'QProcess.InputChannelMode': ... + def open(self, mode: typing.Union[QIODevice.OpenMode, QIODevice.OpenModeFlag] = ...) -> bool: ... + def setArguments(self, arguments: typing.Iterable[str]) -> None: ... + def arguments(self) -> typing.List[str]: ... + def setProgram(self, program: str) -> None: ... + def program(self) -> str: ... + def processEnvironment(self) -> 'QProcessEnvironment': ... + def setProcessEnvironment(self, environment: 'QProcessEnvironment') -> None: ... + def writeData(self, data: bytes) -> int: ... + def readData(self, maxlen: int) -> bytes: ... + def setupChildProcess(self) -> None: ... + def setProcessState(self, state: 'QProcess.ProcessState') -> None: ... + def errorOccurred(self, error: 'QProcess.ProcessError') -> None: ... + def readyReadStandardError(self) -> None: ... + def readyReadStandardOutput(self) -> None: ... + def stateChanged(self, state: 'QProcess.ProcessState') -> None: ... + def finished(self, exitCode: int, exitStatus: 'QProcess.ExitStatus') -> None: ... + def started(self) -> None: ... + def kill(self) -> None: ... + def terminate(self) -> None: ... + def setStandardOutputProcess(self, destination: 'QProcess') -> None: ... + def setStandardErrorFile(self, fileName: str, mode: typing.Union[QIODevice.OpenMode, QIODevice.OpenModeFlag] = ...) -> None: ... + def setStandardOutputFile(self, fileName: str, mode: typing.Union[QIODevice.OpenMode, QIODevice.OpenModeFlag] = ...) -> None: ... + def setStandardInputFile(self, fileName: str) -> None: ... + def setProcessChannelMode(self, mode: 'QProcess.ProcessChannelMode') -> None: ... + def processChannelMode(self) -> 'QProcess.ProcessChannelMode': ... + @staticmethod + def systemEnvironment() -> typing.List[str]: ... + @typing.overload + @staticmethod + def startDetached(program: str, arguments: typing.Iterable[str], workingDirectory: str) -> typing.Tuple[bool, int]: ... + @typing.overload + @staticmethod + def startDetached(program: str, arguments: typing.Iterable[str]) -> bool: ... + @typing.overload + @staticmethod + def startDetached(program: str) -> bool: ... + @typing.overload + def startDetached(self) -> typing.Tuple[bool, int]: ... + @typing.overload + @staticmethod + def execute(program: str, arguments: typing.Iterable[str]) -> int: ... + @typing.overload + @staticmethod + def execute(program: str) -> int: ... + def atEnd(self) -> bool: ... + def close(self) -> None: ... + def canReadLine(self) -> bool: ... + def isSequential(self) -> bool: ... + def bytesToWrite(self) -> int: ... + def bytesAvailable(self) -> int: ... + def exitStatus(self) -> 'QProcess.ExitStatus': ... + def exitCode(self) -> int: ... + def readAllStandardError(self) -> QByteArray: ... + def readAllStandardOutput(self) -> QByteArray: ... + def waitForFinished(self, msecs: int = ...) -> bool: ... + def waitForBytesWritten(self, msecs: int = ...) -> bool: ... + def waitForReadyRead(self, msecs: int = ...) -> bool: ... + def waitForStarted(self, msecs: int = ...) -> bool: ... + def pid(self) -> int: ... + def state(self) -> 'QProcess.ProcessState': ... + @typing.overload + def error(self) -> 'QProcess.ProcessError': ... + @typing.overload + def error(self, error: 'QProcess.ProcessError') -> None: ... + def setWorkingDirectory(self, dir: str) -> None: ... + def workingDirectory(self) -> str: ... + def closeWriteChannel(self) -> None: ... + def closeReadChannel(self, channel: 'QProcess.ProcessChannel') -> None: ... + def setReadChannel(self, channel: 'QProcess.ProcessChannel') -> None: ... + def readChannel(self) -> 'QProcess.ProcessChannel': ... + @typing.overload + def start(self, program: str, arguments: typing.Iterable[str], mode: typing.Union[QIODevice.OpenMode, QIODevice.OpenModeFlag] = ...) -> None: ... + @typing.overload + def start(self, command: str, mode: typing.Union[QIODevice.OpenMode, QIODevice.OpenModeFlag] = ...) -> None: ... + @typing.overload + def start(self, mode: typing.Union[QIODevice.OpenMode, QIODevice.OpenModeFlag] = ...) -> None: ... + + +class QProcessEnvironment(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QProcessEnvironment') -> None: ... + + def swap(self, other: 'QProcessEnvironment') -> None: ... + def keys(self) -> typing.List[str]: ... + @staticmethod + def systemEnvironment() -> 'QProcessEnvironment': ... + def toStringList(self) -> typing.List[str]: ... + def value(self, name: str, defaultValue: str = ...) -> str: ... + def remove(self, name: str) -> None: ... + @typing.overload + def insert(self, name: str, value: str) -> None: ... + @typing.overload + def insert(self, e: 'QProcessEnvironment') -> None: ... + def contains(self, name: str) -> bool: ... + def clear(self) -> None: ... + def isEmpty(self) -> bool: ... + + +class QRandomGenerator(sip.simplewrapper): + + @typing.overload + def __init__(self, seed: int = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QRandomGenerator') -> None: ... + + @staticmethod + def securelySeeded() -> 'QRandomGenerator': ... + @staticmethod + def global_() -> 'QRandomGenerator': ... + @staticmethod + def system() -> 'QRandomGenerator': ... + @staticmethod + def max() -> int: ... + @staticmethod + def min() -> int: ... + def discard(self, z: int) -> None: ... + def seed(self, seed: int = ...) -> None: ... + def __call__(self) -> int: ... + @typing.overload + def bounded(self, highest: float) -> float: ... + @typing.overload + def bounded(self, highest: int) -> int: ... + @typing.overload + def bounded(self, lowest: int, highest: int) -> int: ... + def generateDouble(self) -> float: ... + def generate64(self) -> int: ... + def generate(self) -> int: ... + + +class QReadWriteLock(sip.simplewrapper): + + class RecursionMode(int): ... + NonRecursive = ... # type: 'QReadWriteLock.RecursionMode' + Recursive = ... # type: 'QReadWriteLock.RecursionMode' + + def __init__(self, recursionMode: 'QReadWriteLock.RecursionMode' = ...) -> None: ... + + def unlock(self) -> None: ... + @typing.overload + def tryLockForWrite(self) -> bool: ... + @typing.overload + def tryLockForWrite(self, timeout: int) -> bool: ... + def lockForWrite(self) -> None: ... + @typing.overload + def tryLockForRead(self) -> bool: ... + @typing.overload + def tryLockForRead(self, timeout: int) -> bool: ... + def lockForRead(self) -> None: ... + + +class QReadLocker(sip.simplewrapper): + + def __init__(self, areadWriteLock: QReadWriteLock) -> None: ... + + def __exit__(self, type: typing.Any, value: typing.Any, traceback: typing.Any) -> None: ... + def __enter__(self) -> typing.Any: ... + def readWriteLock(self) -> QReadWriteLock: ... + def relock(self) -> None: ... + def unlock(self) -> None: ... + + +class QWriteLocker(sip.simplewrapper): + + def __init__(self, areadWriteLock: QReadWriteLock) -> None: ... + + def __exit__(self, type: typing.Any, value: typing.Any, traceback: typing.Any) -> None: ... + def __enter__(self) -> typing.Any: ... + def readWriteLock(self) -> QReadWriteLock: ... + def relock(self) -> None: ... + def unlock(self) -> None: ... + + +class QRect(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, aleft: int, atop: int, awidth: int, aheight: int) -> None: ... + @typing.overload + def __init__(self, atopLeft: QPoint, abottomRight: QPoint) -> None: ... + @typing.overload + def __init__(self, atopLeft: QPoint, asize: 'QSize') -> None: ... + @typing.overload + def __init__(self, a0: 'QRect') -> None: ... + + def transposed(self) -> 'QRect': ... + def marginsRemoved(self, margins: QMargins) -> 'QRect': ... + def marginsAdded(self, margins: QMargins) -> 'QRect': ... + def united(self, r: 'QRect') -> 'QRect': ... + def intersected(self, other: 'QRect') -> 'QRect': ... + def setSize(self, s: 'QSize') -> None: ... + def setHeight(self, h: int) -> None: ... + def setWidth(self, w: int) -> None: ... + def adjust(self, dx1: int, dy1: int, dx2: int, dy2: int) -> None: ... + def adjusted(self, xp1: int, yp1: int, xp2: int, yp2: int) -> 'QRect': ... + def setCoords(self, xp1: int, yp1: int, xp2: int, yp2: int) -> None: ... + def getCoords(self) -> typing.Tuple[int, int, int, int]: ... + def setRect(self, ax: int, ay: int, aw: int, ah: int) -> None: ... + def getRect(self) -> typing.Tuple[int, int, int, int]: ... + def moveBottomLeft(self, p: QPoint) -> None: ... + def moveTopRight(self, p: QPoint) -> None: ... + def moveBottomRight(self, p: QPoint) -> None: ... + def moveTopLeft(self, p: QPoint) -> None: ... + def moveBottom(self, pos: int) -> None: ... + def moveRight(self, pos: int) -> None: ... + def moveTop(self, pos: int) -> None: ... + def moveLeft(self, pos: int) -> None: ... + @typing.overload + def moveTo(self, ax: int, ay: int) -> None: ... + @typing.overload + def moveTo(self, p: QPoint) -> None: ... + @typing.overload + def translated(self, dx: int, dy: int) -> 'QRect': ... + @typing.overload + def translated(self, p: QPoint) -> 'QRect': ... + @typing.overload + def translate(self, dx: int, dy: int) -> None: ... + @typing.overload + def translate(self, p: QPoint) -> None: ... + def size(self) -> 'QSize': ... + def height(self) -> int: ... + def width(self) -> int: ... + def center(self) -> QPoint: ... + def bottomLeft(self) -> QPoint: ... + def topRight(self) -> QPoint: ... + def bottomRight(self) -> QPoint: ... + def topLeft(self) -> QPoint: ... + def setY(self, ay: int) -> None: ... + def setX(self, ax: int) -> None: ... + def setBottomLeft(self, p: QPoint) -> None: ... + def setTopRight(self, p: QPoint) -> None: ... + def setBottomRight(self, p: QPoint) -> None: ... + def setTopLeft(self, p: QPoint) -> None: ... + def setBottom(self, pos: int) -> None: ... + def setRight(self, pos: int) -> None: ... + def setTop(self, pos: int) -> None: ... + def setLeft(self, pos: int) -> None: ... + def y(self) -> int: ... + def x(self) -> int: ... + def bottom(self) -> int: ... + def right(self) -> int: ... + def top(self) -> int: ... + def left(self) -> int: ... + def __bool__(self) -> int: ... + def isValid(self) -> bool: ... + def isEmpty(self) -> bool: ... + def isNull(self) -> bool: ... + def __repr__(self) -> str: ... + def intersects(self, r: 'QRect') -> bool: ... + @typing.overload + def __contains__(self, p: QPoint) -> int: ... + @typing.overload + def __contains__(self, r: 'QRect') -> int: ... + @typing.overload + def contains(self, point: QPoint, proper: bool = ...) -> bool: ... + @typing.overload + def contains(self, rectangle: 'QRect', proper: bool = ...) -> bool: ... + @typing.overload + def contains(self, ax: int, ay: int, aproper: bool) -> bool: ... + @typing.overload + def contains(self, ax: int, ay: int) -> bool: ... + def moveCenter(self, p: QPoint) -> None: ... + def normalized(self) -> 'QRect': ... + + +class QRectF(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, atopLeft: typing.Union[QPointF, QPoint], asize: 'QSizeF') -> None: ... + @typing.overload + def __init__(self, atopLeft: typing.Union[QPointF, QPoint], abottomRight: typing.Union[QPointF, QPoint]) -> None: ... + @typing.overload + def __init__(self, aleft: float, atop: float, awidth: float, aheight: float) -> None: ... + @typing.overload + def __init__(self, r: QRect) -> None: ... + @typing.overload + def __init__(self, a0: 'QRectF') -> None: ... + + def transposed(self) -> 'QRectF': ... + def marginsRemoved(self, margins: QMarginsF) -> 'QRectF': ... + def marginsAdded(self, margins: QMarginsF) -> 'QRectF': ... + def toRect(self) -> QRect: ... + def toAlignedRect(self) -> QRect: ... + def united(self, r: 'QRectF') -> 'QRectF': ... + def intersected(self, r: 'QRectF') -> 'QRectF': ... + def setSize(self, s: 'QSizeF') -> None: ... + def setHeight(self, ah: float) -> None: ... + def setWidth(self, aw: float) -> None: ... + def adjusted(self, xp1: float, yp1: float, xp2: float, yp2: float) -> 'QRectF': ... + def adjust(self, xp1: float, yp1: float, xp2: float, yp2: float) -> None: ... + def setCoords(self, xp1: float, yp1: float, xp2: float, yp2: float) -> None: ... + def getCoords(self) -> typing.Tuple[float, float, float, float]: ... + def setRect(self, ax: float, ay: float, aaw: float, aah: float) -> None: ... + def getRect(self) -> typing.Tuple[float, float, float, float]: ... + @typing.overload + def translated(self, dx: float, dy: float) -> 'QRectF': ... + @typing.overload + def translated(self, p: typing.Union[QPointF, QPoint]) -> 'QRectF': ... + @typing.overload + def moveTo(self, ax: float, ay: float) -> None: ... + @typing.overload + def moveTo(self, p: typing.Union[QPointF, QPoint]) -> None: ... + @typing.overload + def translate(self, dx: float, dy: float) -> None: ... + @typing.overload + def translate(self, p: typing.Union[QPointF, QPoint]) -> None: ... + def size(self) -> 'QSizeF': ... + def height(self) -> float: ... + def width(self) -> float: ... + def moveCenter(self, p: typing.Union[QPointF, QPoint]) -> None: ... + def moveBottomRight(self, p: typing.Union[QPointF, QPoint]) -> None: ... + def moveBottomLeft(self, p: typing.Union[QPointF, QPoint]) -> None: ... + def moveTopRight(self, p: typing.Union[QPointF, QPoint]) -> None: ... + def moveTopLeft(self, p: typing.Union[QPointF, QPoint]) -> None: ... + def moveBottom(self, pos: float) -> None: ... + def moveRight(self, pos: float) -> None: ... + def moveTop(self, pos: float) -> None: ... + def moveLeft(self, pos: float) -> None: ... + def center(self) -> QPointF: ... + def setBottomRight(self, p: typing.Union[QPointF, QPoint]) -> None: ... + def setBottomLeft(self, p: typing.Union[QPointF, QPoint]) -> None: ... + def setTopRight(self, p: typing.Union[QPointF, QPoint]) -> None: ... + def setTopLeft(self, p: typing.Union[QPointF, QPoint]) -> None: ... + def setBottom(self, pos: float) -> None: ... + def setTop(self, pos: float) -> None: ... + def setRight(self, pos: float) -> None: ... + def setLeft(self, pos: float) -> None: ... + def y(self) -> float: ... + def x(self) -> float: ... + def __bool__(self) -> int: ... + def isValid(self) -> bool: ... + def isEmpty(self) -> bool: ... + def isNull(self) -> bool: ... + def intersects(self, r: 'QRectF') -> bool: ... + @typing.overload + def __contains__(self, p: typing.Union[QPointF, QPoint]) -> int: ... + @typing.overload + def __contains__(self, r: 'QRectF') -> int: ... + @typing.overload + def contains(self, p: typing.Union[QPointF, QPoint]) -> bool: ... + @typing.overload + def contains(self, r: 'QRectF') -> bool: ... + @typing.overload + def contains(self, ax: float, ay: float) -> bool: ... + def bottomLeft(self) -> QPointF: ... + def topRight(self) -> QPointF: ... + def bottomRight(self) -> QPointF: ... + def topLeft(self) -> QPointF: ... + def setY(self, pos: float) -> None: ... + def setX(self, pos: float) -> None: ... + def bottom(self) -> float: ... + def right(self) -> float: ... + def top(self) -> float: ... + def left(self) -> float: ... + def normalized(self) -> 'QRectF': ... + def __repr__(self) -> str: ... + + +class QRegExp(sip.simplewrapper): + + class CaretMode(int): ... + CaretAtZero = ... # type: 'QRegExp.CaretMode' + CaretAtOffset = ... # type: 'QRegExp.CaretMode' + CaretWontMatch = ... # type: 'QRegExp.CaretMode' + + class PatternSyntax(int): ... + RegExp = ... # type: 'QRegExp.PatternSyntax' + RegExp2 = ... # type: 'QRegExp.PatternSyntax' + Wildcard = ... # type: 'QRegExp.PatternSyntax' + FixedString = ... # type: 'QRegExp.PatternSyntax' + WildcardUnix = ... # type: 'QRegExp.PatternSyntax' + W3CXmlSchema11 = ... # type: 'QRegExp.PatternSyntax' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, pattern: str, cs: Qt.CaseSensitivity = ..., syntax: 'QRegExp.PatternSyntax' = ...) -> None: ... + @typing.overload + def __init__(self, rx: 'QRegExp') -> None: ... + + def __hash__(self) -> int: ... + def swap(self, other: 'QRegExp') -> None: ... + def captureCount(self) -> int: ... + @staticmethod + def escape(str: str) -> str: ... + def errorString(self) -> str: ... + def pos(self, nth: int = ...) -> int: ... + def cap(self, nth: int = ...) -> str: ... + def capturedTexts(self) -> typing.List[str]: ... + def matchedLength(self) -> int: ... + def lastIndexIn(self, str: str, offset: int = ..., caretMode: 'QRegExp.CaretMode' = ...) -> int: ... + def indexIn(self, str: str, offset: int = ..., caretMode: 'QRegExp.CaretMode' = ...) -> int: ... + def exactMatch(self, str: str) -> bool: ... + def setMinimal(self, minimal: bool) -> None: ... + def isMinimal(self) -> bool: ... + def setPatternSyntax(self, syntax: 'QRegExp.PatternSyntax') -> None: ... + def patternSyntax(self) -> 'QRegExp.PatternSyntax': ... + def setCaseSensitivity(self, cs: Qt.CaseSensitivity) -> None: ... + def caseSensitivity(self) -> Qt.CaseSensitivity: ... + def setPattern(self, pattern: str) -> None: ... + def pattern(self) -> str: ... + def isValid(self) -> bool: ... + def isEmpty(self) -> bool: ... + def __repr__(self) -> str: ... + + +class QRegularExpression(sip.simplewrapper): + + class MatchOption(int): ... + NoMatchOption = ... # type: 'QRegularExpression.MatchOption' + AnchoredMatchOption = ... # type: 'QRegularExpression.MatchOption' + DontCheckSubjectStringMatchOption = ... # type: 'QRegularExpression.MatchOption' + + class MatchType(int): ... + NormalMatch = ... # type: 'QRegularExpression.MatchType' + PartialPreferCompleteMatch = ... # type: 'QRegularExpression.MatchType' + PartialPreferFirstMatch = ... # type: 'QRegularExpression.MatchType' + NoMatch = ... # type: 'QRegularExpression.MatchType' + + class PatternOption(int): ... + NoPatternOption = ... # type: 'QRegularExpression.PatternOption' + CaseInsensitiveOption = ... # type: 'QRegularExpression.PatternOption' + DotMatchesEverythingOption = ... # type: 'QRegularExpression.PatternOption' + MultilineOption = ... # type: 'QRegularExpression.PatternOption' + ExtendedPatternSyntaxOption = ... # type: 'QRegularExpression.PatternOption' + InvertedGreedinessOption = ... # type: 'QRegularExpression.PatternOption' + DontCaptureOption = ... # type: 'QRegularExpression.PatternOption' + UseUnicodePropertiesOption = ... # type: 'QRegularExpression.PatternOption' + OptimizeOnFirstUsageOption = ... # type: 'QRegularExpression.PatternOption' + DontAutomaticallyOptimizeOption = ... # type: 'QRegularExpression.PatternOption' + + class PatternOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QRegularExpression.PatternOptions', 'QRegularExpression.PatternOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QRegularExpression.PatternOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QRegularExpression.PatternOptions': ... + def __int__(self) -> int: ... + + class MatchOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QRegularExpression.MatchOptions', 'QRegularExpression.MatchOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QRegularExpression.MatchOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QRegularExpression.MatchOptions': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, pattern: str, options: typing.Union['QRegularExpression.PatternOptions', 'QRegularExpression.PatternOption'] = ...) -> None: ... + @typing.overload + def __init__(self, re: 'QRegularExpression') -> None: ... + + @staticmethod + def anchoredPattern(expression: str) -> str: ... + @staticmethod + def wildcardToRegularExpression(str: str) -> str: ... + def __hash__(self) -> int: ... + def optimize(self) -> None: ... + def namedCaptureGroups(self) -> typing.List[str]: ... + @staticmethod + def escape(str: str) -> str: ... + def globalMatch(self, subject: str, offset: int = ..., matchType: 'QRegularExpression.MatchType' = ..., matchOptions: typing.Union['QRegularExpression.MatchOptions', 'QRegularExpression.MatchOption'] = ...) -> 'QRegularExpressionMatchIterator': ... + def match(self, subject: str, offset: int = ..., matchType: 'QRegularExpression.MatchType' = ..., matchOptions: typing.Union['QRegularExpression.MatchOptions', 'QRegularExpression.MatchOption'] = ...) -> 'QRegularExpressionMatch': ... + def captureCount(self) -> int: ... + def errorString(self) -> str: ... + def patternErrorOffset(self) -> int: ... + def isValid(self) -> bool: ... + def setPattern(self, pattern: str) -> None: ... + def pattern(self) -> str: ... + def swap(self, re: 'QRegularExpression') -> None: ... + def __repr__(self) -> str: ... + def setPatternOptions(self, options: typing.Union['QRegularExpression.PatternOptions', 'QRegularExpression.PatternOption']) -> None: ... + def patternOptions(self) -> 'QRegularExpression.PatternOptions': ... + + +class QRegularExpressionMatch(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, match: 'QRegularExpressionMatch') -> None: ... + + @typing.overload + def capturedEnd(self, nth: int = ...) -> int: ... + @typing.overload + def capturedEnd(self, name: str) -> int: ... + @typing.overload + def capturedLength(self, nth: int = ...) -> int: ... + @typing.overload + def capturedLength(self, name: str) -> int: ... + @typing.overload + def capturedStart(self, nth: int = ...) -> int: ... + @typing.overload + def capturedStart(self, name: str) -> int: ... + def capturedTexts(self) -> typing.List[str]: ... + @typing.overload + def captured(self, nth: int = ...) -> str: ... + @typing.overload + def captured(self, name: str) -> str: ... + def lastCapturedIndex(self) -> int: ... + def isValid(self) -> bool: ... + def hasPartialMatch(self) -> bool: ... + def hasMatch(self) -> bool: ... + def matchOptions(self) -> QRegularExpression.MatchOptions: ... + def matchType(self) -> QRegularExpression.MatchType: ... + def regularExpression(self) -> QRegularExpression: ... + def swap(self, match: 'QRegularExpressionMatch') -> None: ... + + +class QRegularExpressionMatchIterator(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, iterator: 'QRegularExpressionMatchIterator') -> None: ... + + def matchOptions(self) -> QRegularExpression.MatchOptions: ... + def matchType(self) -> QRegularExpression.MatchType: ... + def regularExpression(self) -> QRegularExpression: ... + def peekNext(self) -> QRegularExpressionMatch: ... + def next(self) -> QRegularExpressionMatch: ... + def hasNext(self) -> bool: ... + def isValid(self) -> bool: ... + def swap(self, iterator: 'QRegularExpressionMatchIterator') -> None: ... + + +class QResource(sip.simplewrapper): + + class Compression(int): ... + NoCompression = ... # type: 'QResource.Compression' + ZlibCompression = ... # type: 'QResource.Compression' + ZstdCompression = ... # type: 'QResource.Compression' + + def __init__(self, fileName: str = ..., locale: QLocale = ...) -> None: ... + + def compressionAlgorithm(self) -> 'QResource.Compression': ... + def lastModified(self) -> QDateTime: ... + def isFile(self) -> bool: ... + def isDir(self) -> bool: ... + def children(self) -> typing.List[str]: ... + @staticmethod + def unregisterResourceData(rccData: bytes, mapRoot: str = ...) -> bool: ... + @staticmethod + def unregisterResource(rccFileName: str, mapRoot: str = ...) -> bool: ... + @staticmethod + def registerResourceData(rccData: bytes, mapRoot: str = ...) -> bool: ... + @staticmethod + def registerResource(rccFileName: str, mapRoot: str = ...) -> bool: ... + def size(self) -> int: ... + def setLocale(self, locale: QLocale) -> None: ... + def setFileName(self, file: str) -> None: ... + def locale(self) -> QLocale: ... + def isValid(self) -> bool: ... + def isCompressed(self) -> bool: ... + def fileName(self) -> str: ... + def data(self) -> bytes: ... + def absoluteFilePath(self) -> str: ... + + +class QRunnable(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QRunnable') -> None: ... + + def setAutoDelete(self, _autoDelete: bool) -> None: ... + def autoDelete(self) -> bool: ... + def run(self) -> None: ... + + +class QSaveFile(QFileDevice): + + @typing.overload + def __init__(self, name: str) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload + def __init__(self, name: str, parent: QObject) -> None: ... + + def writeData(self, data: bytes) -> int: ... + def directWriteFallback(self) -> bool: ... + def setDirectWriteFallback(self, enabled: bool) -> None: ... + def cancelWriting(self) -> None: ... + def commit(self) -> bool: ... + def open(self, flags: typing.Union[QIODevice.OpenMode, QIODevice.OpenModeFlag]) -> bool: ... + def setFileName(self, name: str) -> None: ... + def fileName(self) -> str: ... + + +class QSemaphore(sip.simplewrapper): + + def __init__(self, n: int = ...) -> None: ... + + def available(self) -> int: ... + def release(self, n: int = ...) -> None: ... + @typing.overload + def tryAcquire(self, n: int = ...) -> bool: ... + @typing.overload + def tryAcquire(self, n: int, timeout: int) -> bool: ... + def acquire(self, n: int = ...) -> None: ... + + +class QSemaphoreReleaser(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, sem: QSemaphore, n: int = ...) -> None: ... + + def cancel(self) -> QSemaphore: ... + def semaphore(self) -> QSemaphore: ... + def swap(self, other: 'QSemaphoreReleaser') -> None: ... + + +class QSequentialAnimationGroup(QAnimationGroup): + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def updateDirection(self, direction: QAbstractAnimation.Direction) -> None: ... + def updateState(self, newState: QAbstractAnimation.State, oldState: QAbstractAnimation.State) -> None: ... + def updateCurrentTime(self, a0: int) -> None: ... + def event(self, event: QEvent) -> bool: ... + def currentAnimationChanged(self, current: QAbstractAnimation) -> None: ... + def duration(self) -> int: ... + def currentAnimation(self) -> QAbstractAnimation: ... + def insertPause(self, index: int, msecs: int) -> QPauseAnimation: ... + def addPause(self, msecs: int) -> QPauseAnimation: ... + + +class QSettings(QObject): + + class Scope(int): ... + UserScope = ... # type: 'QSettings.Scope' + SystemScope = ... # type: 'QSettings.Scope' + + class Format(int): ... + NativeFormat = ... # type: 'QSettings.Format' + IniFormat = ... # type: 'QSettings.Format' + InvalidFormat = ... # type: 'QSettings.Format' + + class Status(int): ... + NoError = ... # type: 'QSettings.Status' + AccessError = ... # type: 'QSettings.Status' + FormatError = ... # type: 'QSettings.Status' + + @typing.overload + def __init__(self, organization: str, application: str = ..., parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload + def __init__(self, scope: 'QSettings.Scope', organization: str, application: str = ..., parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload + def __init__(self, format: 'QSettings.Format', scope: 'QSettings.Scope', organization: str, application: str = ..., parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload + def __init__(self, fileName: str, format: 'QSettings.Format', parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload + def __init__(self, scope: 'QSettings.Scope', parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def event(self, event: QEvent) -> bool: ... + def setAtomicSyncRequired(self, enable: bool) -> None: ... + def isAtomicSyncRequired(self) -> bool: ... + def iniCodec(self) -> 'QTextCodec': ... + @typing.overload + def setIniCodec(self, codec: 'QTextCodec') -> None: ... + @typing.overload + def setIniCodec(self, codecName: str) -> None: ... + @staticmethod + def defaultFormat() -> 'QSettings.Format': ... + @staticmethod + def setDefaultFormat(format: 'QSettings.Format') -> None: ... + def applicationName(self) -> str: ... + def organizationName(self) -> str: ... + def scope(self) -> 'QSettings.Scope': ... + def format(self) -> 'QSettings.Format': ... + @staticmethod + def setPath(format: 'QSettings.Format', scope: 'QSettings.Scope', path: str) -> None: ... + def fileName(self) -> str: ... + def fallbacksEnabled(self) -> bool: ... + def setFallbacksEnabled(self, b: bool) -> None: ... + def contains(self, key: str) -> bool: ... + def remove(self, key: str) -> None: ... + def value(self, key: str, defaultValue: typing.Any = ..., type: type = ...) -> typing.Any: ... + def setValue(self, key: str, value: typing.Any) -> None: ... + def isWritable(self) -> bool: ... + def childGroups(self) -> typing.List[str]: ... + def childKeys(self) -> typing.List[str]: ... + def allKeys(self) -> typing.List[str]: ... + def setArrayIndex(self, i: int) -> None: ... + def endArray(self) -> None: ... + def beginWriteArray(self, prefix: str, size: int = ...) -> None: ... + def beginReadArray(self, prefix: str) -> int: ... + def group(self) -> str: ... + def endGroup(self) -> None: ... + def beginGroup(self, prefix: str) -> None: ... + def status(self) -> 'QSettings.Status': ... + def sync(self) -> None: ... + def clear(self) -> None: ... + + +class QSharedMemory(QObject): + + class SharedMemoryError(int): ... + NoError = ... # type: 'QSharedMemory.SharedMemoryError' + PermissionDenied = ... # type: 'QSharedMemory.SharedMemoryError' + InvalidSize = ... # type: 'QSharedMemory.SharedMemoryError' + KeyError = ... # type: 'QSharedMemory.SharedMemoryError' + AlreadyExists = ... # type: 'QSharedMemory.SharedMemoryError' + NotFound = ... # type: 'QSharedMemory.SharedMemoryError' + LockError = ... # type: 'QSharedMemory.SharedMemoryError' + OutOfResources = ... # type: 'QSharedMemory.SharedMemoryError' + UnknownError = ... # type: 'QSharedMemory.SharedMemoryError' + + class AccessMode(int): ... + ReadOnly = ... # type: 'QSharedMemory.AccessMode' + ReadWrite = ... # type: 'QSharedMemory.AccessMode' + + @typing.overload + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload + def __init__(self, key: str, parent: typing.Optional[QObject] = ...) -> None: ... + + def nativeKey(self) -> str: ... + def setNativeKey(self, key: str) -> None: ... + def errorString(self) -> str: ... + def error(self) -> 'QSharedMemory.SharedMemoryError': ... + def unlock(self) -> bool: ... + def lock(self) -> bool: ... + def constData(self) -> sip.voidptr: ... + def data(self) -> sip.voidptr: ... + def detach(self) -> bool: ... + def isAttached(self) -> bool: ... + def attach(self, mode: 'QSharedMemory.AccessMode' = ...) -> bool: ... + def size(self) -> int: ... + def create(self, size: int, mode: 'QSharedMemory.AccessMode' = ...) -> bool: ... + def key(self) -> str: ... + def setKey(self, key: str) -> None: ... + + +class QSignalMapper(QObject): + + from PyQt5.QtWidgets import QWidget + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + @typing.overload + def map(self) -> None: ... + @typing.overload + def map(self, sender: QObject) -> None: ... + @typing.overload + def mapped(self, a0: int) -> None: ... + @typing.overload + def mapped(self, a0: str) -> None: ... + @typing.overload + def mapped(self, a0: QWidget) -> None: ... + @typing.overload + def mapped(self, a0: QObject) -> None: ... + @typing.overload + def mapping(self, id: int) -> QObject: ... + @typing.overload + def mapping(self, text: str) -> QObject: ... + @typing.overload + def mapping(self, widget: QWidget) -> QObject: ... + @typing.overload + def mapping(self, object: QObject) -> QObject: ... + def removeMappings(self, sender: QObject) -> None: ... + @typing.overload + def setMapping(self, sender: QObject, id: int) -> None: ... + @typing.overload + def setMapping(self, sender: QObject, text: str) -> None: ... + @typing.overload + def setMapping(self, sender: QObject, widget: QWidget) -> None: ... + @typing.overload + def setMapping(self, sender: QObject, object: QObject) -> None: ... + + +class QSignalTransition(QAbstractTransition): + + @typing.overload + def __init__(self, sourceState: typing.Optional['QState'] = ...) -> None: ... + @typing.overload + def __init__(self, signal: pyqtBoundSignal, sourceState: typing.Optional['QState'] = ...) -> None: ... + + def signalChanged(self) -> None: ... + def senderObjectChanged(self) -> None: ... + def event(self, e: QEvent) -> bool: ... + def onTransition(self, event: QEvent) -> None: ... + def eventTest(self, event: QEvent) -> bool: ... + def setSignal(self, signal: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + def signal(self) -> QByteArray: ... + def setSenderObject(self, sender: QObject) -> None: ... + def senderObject(self) -> QObject: ... + + +class QSize(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, w: int, h: int) -> None: ... + @typing.overload + def __init__(self, a0: 'QSize') -> None: ... + + def transposed(self) -> 'QSize': ... + @typing.overload + def scaled(self, s: 'QSize', mode: Qt.AspectRatioMode) -> 'QSize': ... + @typing.overload + def scaled(self, w: int, h: int, mode: Qt.AspectRatioMode) -> 'QSize': ... + def boundedTo(self, otherSize: 'QSize') -> 'QSize': ... + def expandedTo(self, otherSize: 'QSize') -> 'QSize': ... + def setHeight(self, h: int) -> None: ... + def setWidth(self, w: int) -> None: ... + def height(self) -> int: ... + def width(self) -> int: ... + def __bool__(self) -> int: ... + def isValid(self) -> bool: ... + def isEmpty(self) -> bool: ... + def isNull(self) -> bool: ... + def __repr__(self) -> str: ... + @typing.overload + def scale(self, s: 'QSize', mode: Qt.AspectRatioMode) -> None: ... + @typing.overload + def scale(self, w: int, h: int, mode: Qt.AspectRatioMode) -> None: ... + def transpose(self) -> None: ... + + +class QSizeF(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, sz: QSize) -> None: ... + @typing.overload + def __init__(self, w: float, h: float) -> None: ... + @typing.overload + def __init__(self, a0: 'QSizeF') -> None: ... + + def transposed(self) -> 'QSizeF': ... + @typing.overload + def scaled(self, s: 'QSizeF', mode: Qt.AspectRatioMode) -> 'QSizeF': ... + @typing.overload + def scaled(self, w: float, h: float, mode: Qt.AspectRatioMode) -> 'QSizeF': ... + def toSize(self) -> QSize: ... + def boundedTo(self, otherSize: 'QSizeF') -> 'QSizeF': ... + def expandedTo(self, otherSize: 'QSizeF') -> 'QSizeF': ... + def setHeight(self, h: float) -> None: ... + def setWidth(self, w: float) -> None: ... + def height(self) -> float: ... + def width(self) -> float: ... + def __bool__(self) -> int: ... + def isValid(self) -> bool: ... + def isEmpty(self) -> bool: ... + def isNull(self) -> bool: ... + def __repr__(self) -> str: ... + @typing.overload + def scale(self, s: 'QSizeF', mode: Qt.AspectRatioMode) -> None: ... + @typing.overload + def scale(self, w: float, h: float, mode: Qt.AspectRatioMode) -> None: ... + def transpose(self) -> None: ... + + +class QSocketNotifier(QObject): + + class Type(int): ... + Read = ... # type: 'QSocketNotifier.Type' + Write = ... # type: 'QSocketNotifier.Type' + Exception = ... # type: 'QSocketNotifier.Type' + + def __init__(self, socket: sip.voidptr, a1: 'QSocketNotifier.Type', parent: typing.Optional[QObject] = ...) -> None: ... + + def event(self, a0: QEvent) -> bool: ... + def activated(self, socket: int) -> None: ... + def setEnabled(self, a0: bool) -> None: ... + def isEnabled(self) -> bool: ... + def type(self) -> 'QSocketNotifier.Type': ... + def socket(self) -> sip.voidptr: ... + + +class QSortFilterProxyModel(QAbstractProxyModel): + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def invalidateFilter(self) -> None: ... + def setRecursiveFilteringEnabled(self, recursive: bool) -> None: ... + def isRecursiveFilteringEnabled(self) -> bool: ... + def sibling(self, row: int, column: int, idx: QModelIndex) -> QModelIndex: ... + def setSortLocaleAware(self, on: bool) -> None: ... + def isSortLocaleAware(self) -> bool: ... + def supportedDropActions(self) -> Qt.DropActions: ... + def mimeTypes(self) -> typing.List[str]: ... + def setFilterRole(self, role: int) -> None: ... + def filterRole(self) -> int: ... + def sortOrder(self) -> Qt.SortOrder: ... + def sortColumn(self) -> int: ... + def setSortRole(self, role: int) -> None: ... + def sortRole(self) -> int: ... + def setDynamicSortFilter(self, enable: bool) -> None: ... + def dynamicSortFilter(self) -> bool: ... + def setSortCaseSensitivity(self, cs: Qt.CaseSensitivity) -> None: ... + def sortCaseSensitivity(self) -> Qt.CaseSensitivity: ... + def sort(self, column: int, order: Qt.SortOrder = ...) -> None: ... + def match(self, start: QModelIndex, role: int, value: typing.Any, hits: int = ..., flags: typing.Union[Qt.MatchFlags, Qt.MatchFlag] = ...) -> typing.List[QModelIndex]: ... + def span(self, index: QModelIndex) -> QSize: ... + def buddy(self, index: QModelIndex) -> QModelIndex: ... + def flags(self, index: QModelIndex) -> Qt.ItemFlags: ... + def canFetchMore(self, parent: QModelIndex) -> bool: ... + def fetchMore(self, parent: QModelIndex) -> None: ... + def removeColumns(self, column: int, count: int, parent: QModelIndex = ...) -> bool: ... + def removeRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... + def insertColumns(self, column: int, count: int, parent: QModelIndex = ...) -> bool: ... + def insertRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... + def dropMimeData(self, data: QMimeData, action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def mimeData(self, indexes: typing.Iterable[QModelIndex]) -> QMimeData: ... + def setHeaderData(self, section: int, orientation: Qt.Orientation, value: typing.Any, role: int = ...) -> bool: ... + def headerData(self, section: int, orientation: Qt.Orientation, role: int = ...) -> typing.Any: ... + def setData(self, index: QModelIndex, value: typing.Any, role: int = ...) -> bool: ... + def data(self, index: QModelIndex, role: int = ...) -> typing.Any: ... + def hasChildren(self, parent: QModelIndex = ...) -> bool: ... + def columnCount(self, parent: QModelIndex = ...) -> int: ... + def rowCount(self, parent: QModelIndex = ...) -> int: ... + @typing.overload + def parent(self, child: QModelIndex) -> QModelIndex: ... + @typing.overload + def parent(self) -> QObject: ... + def index(self, row: int, column: int, parent: QModelIndex = ...) -> QModelIndex: ... + def lessThan(self, left: QModelIndex, right: QModelIndex) -> bool: ... + def filterAcceptsColumn(self, source_column: int, source_parent: QModelIndex) -> bool: ... + def filterAcceptsRow(self, source_row: int, source_parent: QModelIndex) -> bool: ... + def setFilterWildcard(self, pattern: str) -> None: ... + @typing.overload + def setFilterRegularExpression(self, regularExpression: QRegularExpression) -> None: ... + @typing.overload + def setFilterRegularExpression(self, pattern: str) -> None: ... + @typing.overload + def setFilterRegExp(self, regExp: QRegExp) -> None: ... + @typing.overload + def setFilterRegExp(self, pattern: str) -> None: ... + def setFilterFixedString(self, pattern: str) -> None: ... + def invalidate(self) -> None: ... + def setFilterCaseSensitivity(self, cs: Qt.CaseSensitivity) -> None: ... + def filterCaseSensitivity(self) -> Qt.CaseSensitivity: ... + def setFilterKeyColumn(self, column: int) -> None: ... + def filterKeyColumn(self) -> int: ... + def filterRegularExpression(self) -> QRegularExpression: ... + def filterRegExp(self) -> QRegExp: ... + def mapSelectionFromSource(self, sourceSelection: QItemSelection) -> QItemSelection: ... + def mapSelectionToSource(self, proxySelection: QItemSelection) -> QItemSelection: ... + def mapFromSource(self, sourceIndex: QModelIndex) -> QModelIndex: ... + def mapToSource(self, proxyIndex: QModelIndex) -> QModelIndex: ... + def setSourceModel(self, sourceModel: QAbstractItemModel) -> None: ... + + +class QStandardPaths(sip.simplewrapper): + + class LocateOption(int): ... + LocateFile = ... # type: 'QStandardPaths.LocateOption' + LocateDirectory = ... # type: 'QStandardPaths.LocateOption' + + class StandardLocation(int): ... + DesktopLocation = ... # type: 'QStandardPaths.StandardLocation' + DocumentsLocation = ... # type: 'QStandardPaths.StandardLocation' + FontsLocation = ... # type: 'QStandardPaths.StandardLocation' + ApplicationsLocation = ... # type: 'QStandardPaths.StandardLocation' + MusicLocation = ... # type: 'QStandardPaths.StandardLocation' + MoviesLocation = ... # type: 'QStandardPaths.StandardLocation' + PicturesLocation = ... # type: 'QStandardPaths.StandardLocation' + TempLocation = ... # type: 'QStandardPaths.StandardLocation' + HomeLocation = ... # type: 'QStandardPaths.StandardLocation' + DataLocation = ... # type: 'QStandardPaths.StandardLocation' + CacheLocation = ... # type: 'QStandardPaths.StandardLocation' + GenericDataLocation = ... # type: 'QStandardPaths.StandardLocation' + RuntimeLocation = ... # type: 'QStandardPaths.StandardLocation' + ConfigLocation = ... # type: 'QStandardPaths.StandardLocation' + DownloadLocation = ... # type: 'QStandardPaths.StandardLocation' + GenericCacheLocation = ... # type: 'QStandardPaths.StandardLocation' + GenericConfigLocation = ... # type: 'QStandardPaths.StandardLocation' + AppDataLocation = ... # type: 'QStandardPaths.StandardLocation' + AppLocalDataLocation = ... # type: 'QStandardPaths.StandardLocation' + AppConfigLocation = ... # type: 'QStandardPaths.StandardLocation' + + class LocateOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QStandardPaths.LocateOptions', 'QStandardPaths.LocateOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QStandardPaths.LocateOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QStandardPaths.LocateOptions': ... + def __int__(self) -> int: ... + + def __init__(self, a0: 'QStandardPaths') -> None: ... + + @staticmethod + def setTestModeEnabled(testMode: bool) -> None: ... + @staticmethod + def enableTestMode(testMode: bool) -> None: ... + @staticmethod + def findExecutable(executableName: str, paths: typing.Iterable[str] = ...) -> str: ... + @staticmethod + def displayName(type: 'QStandardPaths.StandardLocation') -> str: ... + @staticmethod + def locateAll(type: 'QStandardPaths.StandardLocation', fileName: str, options: 'QStandardPaths.LocateOptions' = ...) -> typing.List[str]: ... + @staticmethod + def locate(type: 'QStandardPaths.StandardLocation', fileName: str, options: 'QStandardPaths.LocateOptions' = ...) -> str: ... + @staticmethod + def standardLocations(type: 'QStandardPaths.StandardLocation') -> typing.List[str]: ... + @staticmethod + def writableLocation(type: 'QStandardPaths.StandardLocation') -> str: ... + + +class QState(QAbstractState): + + class RestorePolicy(int): ... + DontRestoreProperties = ... # type: 'QState.RestorePolicy' + RestoreProperties = ... # type: 'QState.RestorePolicy' + + class ChildMode(int): ... + ExclusiveStates = ... # type: 'QState.ChildMode' + ParallelStates = ... # type: 'QState.ChildMode' + + @typing.overload + def __init__(self, parent: typing.Optional['QState'] = ...) -> None: ... + @typing.overload + def __init__(self, childMode: 'QState.ChildMode', parent: typing.Optional['QState'] = ...) -> None: ... + + def errorStateChanged(self) -> None: ... + def initialStateChanged(self) -> None: ... + def childModeChanged(self) -> None: ... + def event(self, e: QEvent) -> bool: ... + def onExit(self, event: QEvent) -> None: ... + def onEntry(self, event: QEvent) -> None: ... + def propertiesAssigned(self) -> None: ... + def finished(self) -> None: ... + def assignProperty(self, object: QObject, name: str, value: typing.Any) -> None: ... + def setChildMode(self, mode: 'QState.ChildMode') -> None: ... + def childMode(self) -> 'QState.ChildMode': ... + def setInitialState(self, state: QAbstractState) -> None: ... + def initialState(self) -> QAbstractState: ... + def transitions(self) -> typing.List[QAbstractTransition]: ... + def removeTransition(self, transition: QAbstractTransition) -> None: ... + @typing.overload + def addTransition(self, transition: QAbstractTransition) -> None: ... + @typing.overload + def addTransition(self, signal: pyqtBoundSignal, target: QAbstractState) -> QSignalTransition: ... + @typing.overload + def addTransition(self, target: QAbstractState) -> QAbstractTransition: ... + def setErrorState(self, state: QAbstractState) -> None: ... + def errorState(self) -> QAbstractState: ... + + +class QStateMachine(QState): + + class Error(int): ... + NoError = ... # type: 'QStateMachine.Error' + NoInitialStateError = ... # type: 'QStateMachine.Error' + NoDefaultStateInHistoryStateError = ... # type: 'QStateMachine.Error' + NoCommonAncestorForTransitionError = ... # type: 'QStateMachine.Error' + + class EventPriority(int): ... + NormalPriority = ... # type: 'QStateMachine.EventPriority' + HighPriority = ... # type: 'QStateMachine.EventPriority' + + class SignalEvent(QEvent): + + def arguments(self) -> typing.List[typing.Any]: ... + def signalIndex(self) -> int: ... + def sender(self) -> QObject: ... + + class WrappedEvent(QEvent): + + def event(self) -> QEvent: ... + def object(self) -> QObject: ... + + @typing.overload + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload + def __init__(self, childMode: QState.ChildMode, parent: typing.Optional[QObject] = ...) -> None: ... + + def event(self, e: QEvent) -> bool: ... + def onExit(self, event: QEvent) -> None: ... + def onEntry(self, event: QEvent) -> None: ... + def runningChanged(self, running: bool) -> None: ... + def stopped(self) -> None: ... + def started(self) -> None: ... + def setRunning(self, running: bool) -> None: ... + def stop(self) -> None: ... + def start(self) -> None: ... + def eventFilter(self, watched: QObject, event: QEvent) -> bool: ... + def configuration(self) -> typing.Set[QAbstractState]: ... + def cancelDelayedEvent(self, id: int) -> bool: ... + def postDelayedEvent(self, event: QEvent, delay: int) -> int: ... + def postEvent(self, event: QEvent, priority: 'QStateMachine.EventPriority' = ...) -> None: ... + def setGlobalRestorePolicy(self, restorePolicy: QState.RestorePolicy) -> None: ... + def globalRestorePolicy(self) -> QState.RestorePolicy: ... + def removeDefaultAnimation(self, animation: QAbstractAnimation) -> None: ... + def defaultAnimations(self) -> typing.List[QAbstractAnimation]: ... + def addDefaultAnimation(self, animation: QAbstractAnimation) -> None: ... + def setAnimated(self, enabled: bool) -> None: ... + def isAnimated(self) -> bool: ... + def isRunning(self) -> bool: ... + def clearError(self) -> None: ... + def errorString(self) -> str: ... + def error(self) -> 'QStateMachine.Error': ... + def removeState(self, state: QAbstractState) -> None: ... + def addState(self, state: QAbstractState) -> None: ... + + +class QStorageInfo(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, path: str) -> None: ... + @typing.overload + def __init__(self, dir: QDir) -> None: ... + @typing.overload + def __init__(self, other: 'QStorageInfo') -> None: ... + + def subvolume(self) -> QByteArray: ... + def blockSize(self) -> int: ... + def isRoot(self) -> bool: ... + @staticmethod + def root() -> 'QStorageInfo': ... + @staticmethod + def mountedVolumes() -> typing.List['QStorageInfo']: ... + def refresh(self) -> None: ... + def isValid(self) -> bool: ... + def isReady(self) -> bool: ... + def isReadOnly(self) -> bool: ... + def bytesAvailable(self) -> int: ... + def bytesFree(self) -> int: ... + def bytesTotal(self) -> int: ... + def displayName(self) -> str: ... + def name(self) -> str: ... + def fileSystemType(self) -> QByteArray: ... + def device(self) -> QByteArray: ... + def rootPath(self) -> str: ... + def setPath(self, path: str) -> None: ... + def swap(self, other: 'QStorageInfo') -> None: ... + + +class QStringListModel(QAbstractListModel): + + @typing.overload + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload + def __init__(self, strings: typing.Iterable[str], parent: typing.Optional[QObject] = ...) -> None: ... + + def setItemData(self, index: QModelIndex, roles: typing.Dict[int, typing.Any]) -> bool: ... + def itemData(self, index: QModelIndex) -> typing.Dict[int, typing.Any]: ... + def moveRows(self, sourceParent: QModelIndex, sourceRow: int, count: int, destinationParent: QModelIndex, destinationChild: int) -> bool: ... + def sibling(self, row: int, column: int, idx: QModelIndex) -> QModelIndex: ... + def supportedDropActions(self) -> Qt.DropActions: ... + def sort(self, column: int, order: Qt.SortOrder = ...) -> None: ... + def setStringList(self, strings: typing.Iterable[str]) -> None: ... + def stringList(self) -> typing.List[str]: ... + def removeRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... + def insertRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... + def flags(self, index: QModelIndex) -> Qt.ItemFlags: ... + def setData(self, index: QModelIndex, value: typing.Any, role: int = ...) -> bool: ... + def data(self, index: QModelIndex, role: int) -> typing.Any: ... + def rowCount(self, parent: QModelIndex = ...) -> int: ... + + +class QSystemSemaphore(sip.simplewrapper): + + class SystemSemaphoreError(int): ... + NoError = ... # type: 'QSystemSemaphore.SystemSemaphoreError' + PermissionDenied = ... # type: 'QSystemSemaphore.SystemSemaphoreError' + KeyError = ... # type: 'QSystemSemaphore.SystemSemaphoreError' + AlreadyExists = ... # type: 'QSystemSemaphore.SystemSemaphoreError' + NotFound = ... # type: 'QSystemSemaphore.SystemSemaphoreError' + OutOfResources = ... # type: 'QSystemSemaphore.SystemSemaphoreError' + UnknownError = ... # type: 'QSystemSemaphore.SystemSemaphoreError' + + class AccessMode(int): ... + Open = ... # type: 'QSystemSemaphore.AccessMode' + Create = ... # type: 'QSystemSemaphore.AccessMode' + + def __init__(self, key: str, initialValue: int = ..., mode: 'QSystemSemaphore.AccessMode' = ...) -> None: ... + + def errorString(self) -> str: ... + def error(self) -> 'QSystemSemaphore.SystemSemaphoreError': ... + def release(self, n: int = ...) -> bool: ... + def acquire(self) -> bool: ... + def key(self) -> str: ... + def setKey(self, key: str, initialValue: int = ..., mode: 'QSystemSemaphore.AccessMode' = ...) -> None: ... + + +class QTemporaryDir(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, templateName: str) -> None: ... + + def filePath(self, fileName: str) -> str: ... + def errorString(self) -> str: ... + def path(self) -> str: ... + def remove(self) -> bool: ... + def setAutoRemove(self, b: bool) -> None: ... + def autoRemove(self) -> bool: ... + def isValid(self) -> bool: ... + + +class QTemporaryFile(QFile): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, templateName: str) -> None: ... + @typing.overload + def __init__(self, parent: QObject) -> None: ... + @typing.overload + def __init__(self, templateName: str, parent: QObject) -> None: ... + + def rename(self, newName: str) -> bool: ... + @typing.overload + @staticmethod + def createNativeFile(fileName: str) -> 'QTemporaryFile': ... + @typing.overload + @staticmethod + def createNativeFile(file: QFile) -> 'QTemporaryFile': ... + def setFileTemplate(self, name: str) -> None: ... + def fileTemplate(self) -> str: ... + def fileName(self) -> str: ... + @typing.overload + def open(self) -> bool: ... + @typing.overload + def open(self, flags: typing.Union[QIODevice.OpenMode, QIODevice.OpenModeFlag]) -> bool: ... + def setAutoRemove(self, b: bool) -> None: ... + def autoRemove(self) -> bool: ... + + +class QTextBoundaryFinder(sip.simplewrapper): + + class BoundaryType(int): ... + Grapheme = ... # type: 'QTextBoundaryFinder.BoundaryType' + Word = ... # type: 'QTextBoundaryFinder.BoundaryType' + Line = ... # type: 'QTextBoundaryFinder.BoundaryType' + Sentence = ... # type: 'QTextBoundaryFinder.BoundaryType' + + class BoundaryReason(int): ... + NotAtBoundary = ... # type: 'QTextBoundaryFinder.BoundaryReason' + SoftHyphen = ... # type: 'QTextBoundaryFinder.BoundaryReason' + BreakOpportunity = ... # type: 'QTextBoundaryFinder.BoundaryReason' + StartOfItem = ... # type: 'QTextBoundaryFinder.BoundaryReason' + EndOfItem = ... # type: 'QTextBoundaryFinder.BoundaryReason' + MandatoryBreak = ... # type: 'QTextBoundaryFinder.BoundaryReason' + + class BoundaryReasons(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QTextBoundaryFinder.BoundaryReasons', 'QTextBoundaryFinder.BoundaryReason']) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextBoundaryFinder.BoundaryReasons') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QTextBoundaryFinder.BoundaryReasons': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QTextBoundaryFinder') -> None: ... + @typing.overload + def __init__(self, type: 'QTextBoundaryFinder.BoundaryType', string: str) -> None: ... + + def boundaryReasons(self) -> 'QTextBoundaryFinder.BoundaryReasons': ... + def isAtBoundary(self) -> bool: ... + def toPreviousBoundary(self) -> int: ... + def toNextBoundary(self) -> int: ... + def setPosition(self, position: int) -> None: ... + def position(self) -> int: ... + def toEnd(self) -> None: ... + def toStart(self) -> None: ... + def string(self) -> str: ... + def type(self) -> 'QTextBoundaryFinder.BoundaryType': ... + def isValid(self) -> bool: ... + + +class QTextCodec(sip.wrapper): + + class ConversionFlag(int): ... + DefaultConversion = ... # type: 'QTextCodec.ConversionFlag' + ConvertInvalidToNull = ... # type: 'QTextCodec.ConversionFlag' + IgnoreHeader = ... # type: 'QTextCodec.ConversionFlag' + + class ConversionFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QTextCodec.ConversionFlags', 'QTextCodec.ConversionFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextCodec.ConversionFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QTextCodec.ConversionFlags': ... + def __int__(self) -> int: ... + + class ConverterState(sip.simplewrapper): + + def __init__(self, flags: typing.Union['QTextCodec.ConversionFlags', 'QTextCodec.ConversionFlag'] = ...) -> None: ... + + def __init__(self) -> None: ... + + def convertToUnicode(self, in_: bytes, state: 'QTextCodec.ConverterState') -> str: ... + def mibEnum(self) -> int: ... + def aliases(self) -> typing.List[QByteArray]: ... + def name(self) -> QByteArray: ... + def fromUnicode(self, uc: str) -> QByteArray: ... + @typing.overload + def toUnicode(self, a0: typing.Union[QByteArray, bytes, bytearray]) -> str: ... + @typing.overload + def toUnicode(self, chars: str) -> str: ... + @typing.overload + def toUnicode(self, in_: bytes, state: typing.Optional['QTextCodec.ConverterState'] = ...) -> str: ... + def canEncode(self, a0: str) -> bool: ... + def makeEncoder(self, flags: typing.Union['QTextCodec.ConversionFlags', 'QTextCodec.ConversionFlag'] = ...) -> 'QTextEncoder': ... + def makeDecoder(self, flags: typing.Union['QTextCodec.ConversionFlags', 'QTextCodec.ConversionFlag'] = ...) -> 'QTextDecoder': ... + @staticmethod + def setCodecForLocale(c: 'QTextCodec') -> None: ... + @staticmethod + def codecForLocale() -> 'QTextCodec': ... + @staticmethod + def availableMibs() -> typing.List[int]: ... + @staticmethod + def availableCodecs() -> typing.List[QByteArray]: ... + @typing.overload + @staticmethod + def codecForUtfText(ba: typing.Union[QByteArray, bytes, bytearray]) -> 'QTextCodec': ... + @typing.overload + @staticmethod + def codecForUtfText(ba: typing.Union[QByteArray, bytes, bytearray], defaultCodec: 'QTextCodec') -> 'QTextCodec': ... + @typing.overload + @staticmethod + def codecForHtml(ba: typing.Union[QByteArray, bytes, bytearray]) -> 'QTextCodec': ... + @typing.overload + @staticmethod + def codecForHtml(ba: typing.Union[QByteArray, bytes, bytearray], defaultCodec: 'QTextCodec') -> 'QTextCodec': ... + @staticmethod + def codecForMib(mib: int) -> 'QTextCodec': ... + @typing.overload + @staticmethod + def codecForName(name: typing.Union[QByteArray, bytes, bytearray]) -> 'QTextCodec': ... + @typing.overload + @staticmethod + def codecForName(name: str) -> 'QTextCodec': ... + + +class QTextEncoder(sip.wrapper): + + @typing.overload + def __init__(self, codec: QTextCodec) -> None: ... + @typing.overload + def __init__(self, codec: QTextCodec, flags: typing.Union[QTextCodec.ConversionFlags, QTextCodec.ConversionFlag]) -> None: ... + + def fromUnicode(self, str: str) -> QByteArray: ... + + +class QTextDecoder(sip.wrapper): + + @typing.overload + def __init__(self, codec: QTextCodec) -> None: ... + @typing.overload + def __init__(self, codec: QTextCodec, flags: typing.Union[QTextCodec.ConversionFlags, QTextCodec.ConversionFlag]) -> None: ... + + @typing.overload + def toUnicode(self, chars: bytes) -> str: ... + @typing.overload + def toUnicode(self, ba: typing.Union[QByteArray, bytes, bytearray]) -> str: ... + + +class QTextStream(sip.simplewrapper): + + class Status(int): ... + Ok = ... # type: 'QTextStream.Status' + ReadPastEnd = ... # type: 'QTextStream.Status' + ReadCorruptData = ... # type: 'QTextStream.Status' + WriteFailed = ... # type: 'QTextStream.Status' + + class NumberFlag(int): ... + ShowBase = ... # type: 'QTextStream.NumberFlag' + ForcePoint = ... # type: 'QTextStream.NumberFlag' + ForceSign = ... # type: 'QTextStream.NumberFlag' + UppercaseBase = ... # type: 'QTextStream.NumberFlag' + UppercaseDigits = ... # type: 'QTextStream.NumberFlag' + + class FieldAlignment(int): ... + AlignLeft = ... # type: 'QTextStream.FieldAlignment' + AlignRight = ... # type: 'QTextStream.FieldAlignment' + AlignCenter = ... # type: 'QTextStream.FieldAlignment' + AlignAccountingStyle = ... # type: 'QTextStream.FieldAlignment' + + class RealNumberNotation(int): ... + SmartNotation = ... # type: 'QTextStream.RealNumberNotation' + FixedNotation = ... # type: 'QTextStream.RealNumberNotation' + ScientificNotation = ... # type: 'QTextStream.RealNumberNotation' + + class NumberFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QTextStream.NumberFlags', 'QTextStream.NumberFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextStream.NumberFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QTextStream.NumberFlags': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, device: QIODevice) -> None: ... + @typing.overload + def __init__(self, array: QByteArray, mode: typing.Union[QIODevice.OpenMode, QIODevice.OpenModeFlag] = ...) -> None: ... + + def locale(self) -> QLocale: ... + def setLocale(self, locale: QLocale) -> None: ... + def pos(self) -> int: ... + def resetStatus(self) -> None: ... + def setStatus(self, status: 'QTextStream.Status') -> None: ... + def status(self) -> 'QTextStream.Status': ... + def realNumberPrecision(self) -> int: ... + def setRealNumberPrecision(self, precision: int) -> None: ... + def realNumberNotation(self) -> 'QTextStream.RealNumberNotation': ... + def setRealNumberNotation(self, notation: 'QTextStream.RealNumberNotation') -> None: ... + def integerBase(self) -> int: ... + def setIntegerBase(self, base: int) -> None: ... + def numberFlags(self) -> 'QTextStream.NumberFlags': ... + def setNumberFlags(self, flags: typing.Union['QTextStream.NumberFlags', 'QTextStream.NumberFlag']) -> None: ... + def fieldWidth(self) -> int: ... + def setFieldWidth(self, width: int) -> None: ... + def padChar(self) -> str: ... + def setPadChar(self, ch: str) -> None: ... + def fieldAlignment(self) -> 'QTextStream.FieldAlignment': ... + def setFieldAlignment(self, alignment: 'QTextStream.FieldAlignment') -> None: ... + def readAll(self) -> str: ... + def readLine(self, maxLength: int = ...) -> str: ... + def read(self, maxlen: int) -> str: ... + def skipWhiteSpace(self) -> None: ... + def seek(self, pos: int) -> bool: ... + def flush(self) -> None: ... + def reset(self) -> None: ... + def atEnd(self) -> bool: ... + def device(self) -> QIODevice: ... + def setDevice(self, device: QIODevice) -> None: ... + def generateByteOrderMark(self) -> bool: ... + def setGenerateByteOrderMark(self, generate: bool) -> None: ... + def autoDetectUnicode(self) -> bool: ... + def setAutoDetectUnicode(self, enabled: bool) -> None: ... + def codec(self) -> QTextCodec: ... + @typing.overload + def setCodec(self, codec: QTextCodec) -> None: ... + @typing.overload + def setCodec(self, codecName: str) -> None: ... + + +class QTextStreamManipulator(sip.simplewrapper): ... + + +class QThread(QObject): + + class Priority(int): ... + IdlePriority = ... # type: 'QThread.Priority' + LowestPriority = ... # type: 'QThread.Priority' + LowPriority = ... # type: 'QThread.Priority' + NormalPriority = ... # type: 'QThread.Priority' + HighPriority = ... # type: 'QThread.Priority' + HighestPriority = ... # type: 'QThread.Priority' + TimeCriticalPriority = ... # type: 'QThread.Priority' + InheritPriority = ... # type: 'QThread.Priority' + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def loopLevel(self) -> int: ... + def isInterruptionRequested(self) -> bool: ... + def requestInterruption(self) -> None: ... + def setEventDispatcher(self, eventDispatcher: QAbstractEventDispatcher) -> None: ... + def eventDispatcher(self) -> QAbstractEventDispatcher: ... + @staticmethod + def usleep(a0: int) -> None: ... + @staticmethod + def msleep(a0: int) -> None: ... + @staticmethod + def sleep(a0: int) -> None: ... + def event(self, event: QEvent) -> bool: ... + @staticmethod + def setTerminationEnabled(enabled: bool = ...) -> None: ... + def exec(self) -> int: ... + def exec_(self) -> int: ... + def run(self) -> None: ... + def finished(self) -> None: ... + def started(self) -> None: ... + def wait(self, msecs: int = ...) -> bool: ... + def quit(self) -> None: ... + def terminate(self) -> None: ... + def start(self, priority: 'QThread.Priority' = ...) -> None: ... + def exit(self, returnCode: int = ...) -> None: ... + def stackSize(self) -> int: ... + def setStackSize(self, stackSize: int) -> None: ... + def priority(self) -> 'QThread.Priority': ... + def setPriority(self, priority: 'QThread.Priority') -> None: ... + def isRunning(self) -> bool: ... + def isFinished(self) -> bool: ... + @staticmethod + def yieldCurrentThread() -> None: ... + @staticmethod + def idealThreadCount() -> int: ... + @staticmethod + def currentThreadId() -> sip.voidptr: ... + @staticmethod + def currentThread() -> 'QThread': ... + + +class QThreadPool(QObject): + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def stackSize(self) -> int: ... + def setStackSize(self, stackSize: int) -> None: ... + def cancel(self, runnable: QRunnable) -> None: ... + def clear(self) -> None: ... + def waitForDone(self, msecs: int = ...) -> bool: ... + def releaseThread(self) -> None: ... + def reserveThread(self) -> None: ... + def activeThreadCount(self) -> int: ... + def setMaxThreadCount(self, maxThreadCount: int) -> None: ... + def maxThreadCount(self) -> int: ... + def setExpiryTimeout(self, expiryTimeout: int) -> None: ... + def expiryTimeout(self) -> int: ... + def tryTake(self, runnable: QRunnable) -> bool: ... + def tryStart(self, runnable: QRunnable) -> bool: ... + def start(self, runnable: QRunnable, priority: int = ...) -> None: ... + @staticmethod + def globalInstance() -> 'QThreadPool': ... + + +class QTimeLine(QObject): + + class State(int): ... + NotRunning = ... # type: 'QTimeLine.State' + Paused = ... # type: 'QTimeLine.State' + Running = ... # type: 'QTimeLine.State' + + class Direction(int): ... + Forward = ... # type: 'QTimeLine.Direction' + Backward = ... # type: 'QTimeLine.Direction' + + class CurveShape(int): ... + EaseInCurve = ... # type: 'QTimeLine.CurveShape' + EaseOutCurve = ... # type: 'QTimeLine.CurveShape' + EaseInOutCurve = ... # type: 'QTimeLine.CurveShape' + LinearCurve = ... # type: 'QTimeLine.CurveShape' + SineCurve = ... # type: 'QTimeLine.CurveShape' + CosineCurve = ... # type: 'QTimeLine.CurveShape' + + def __init__(self, duration: int = ..., parent: typing.Optional[QObject] = ...) -> None: ... + + def setEasingCurve(self, curve: typing.Union[QEasingCurve, QEasingCurve.Type]) -> None: ... + def easingCurve(self) -> QEasingCurve: ... + def timerEvent(self, event: QTimerEvent) -> None: ... + def valueChanged(self, x: float) -> None: ... + def stateChanged(self, newState: 'QTimeLine.State') -> None: ... + def frameChanged(self, a0: int) -> None: ... + def finished(self) -> None: ... + def toggleDirection(self) -> None: ... + def stop(self) -> None: ... + def start(self) -> None: ... + def setPaused(self, paused: bool) -> None: ... + def setCurrentTime(self, msec: int) -> None: ... + def resume(self) -> None: ... + def valueForTime(self, msec: int) -> float: ... + def frameForTime(self, msec: int) -> int: ... + def currentValue(self) -> float: ... + def currentFrame(self) -> int: ... + def currentTime(self) -> int: ... + def setCurveShape(self, shape: 'QTimeLine.CurveShape') -> None: ... + def curveShape(self) -> 'QTimeLine.CurveShape': ... + def setUpdateInterval(self, interval: int) -> None: ... + def updateInterval(self) -> int: ... + def setFrameRange(self, startFrame: int, endFrame: int) -> None: ... + def setEndFrame(self, frame: int) -> None: ... + def endFrame(self) -> int: ... + def setStartFrame(self, frame: int) -> None: ... + def startFrame(self) -> int: ... + def setDuration(self, duration: int) -> None: ... + def duration(self) -> int: ... + def setDirection(self, direction: 'QTimeLine.Direction') -> None: ... + def direction(self) -> 'QTimeLine.Direction': ... + def setLoopCount(self, count: int) -> None: ... + def loopCount(self) -> int: ... + def state(self) -> 'QTimeLine.State': ... + + +class QTimer(QObject): + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def remainingTime(self) -> int: ... + def timerType(self) -> Qt.TimerType: ... + def setTimerType(self, atype: Qt.TimerType) -> None: ... + def timerEvent(self, a0: QTimerEvent) -> None: ... + def timeout(self) -> None: ... + def stop(self) -> None: ... + @typing.overload + def start(self, msec: int) -> None: ... + @typing.overload + def start(self) -> None: ... + @typing.overload + @staticmethod + def singleShot(msec: int, slot: PYQT_SLOT) -> None: ... + @typing.overload + @staticmethod + def singleShot(msec: int, timerType: Qt.TimerType, slot: PYQT_SLOT) -> None: ... + def setSingleShot(self, asingleShot: bool) -> None: ... + def isSingleShot(self) -> bool: ... + def interval(self) -> int: ... + def setInterval(self, msec: int) -> None: ... + def timerId(self) -> int: ... + def isActive(self) -> bool: ... + + +class QTimeZone(sip.simplewrapper): + + class NameType(int): ... + DefaultName = ... # type: 'QTimeZone.NameType' + LongName = ... # type: 'QTimeZone.NameType' + ShortName = ... # type: 'QTimeZone.NameType' + OffsetName = ... # type: 'QTimeZone.NameType' + + class TimeType(int): ... + StandardTime = ... # type: 'QTimeZone.TimeType' + DaylightTime = ... # type: 'QTimeZone.TimeType' + GenericTime = ... # type: 'QTimeZone.TimeType' + + class OffsetData(sip.simplewrapper): + + abbreviation = ... # type: str + atUtc = ... # type: typing.Union[QDateTime, datetime.datetime] + daylightTimeOffset = ... # type: int + offsetFromUtc = ... # type: int + standardTimeOffset = ... # type: int + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTimeZone.OffsetData') -> None: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, ianaId: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + @typing.overload + def __init__(self, offsetSeconds: int) -> None: ... + @typing.overload + def __init__(self, zoneId: typing.Union[QByteArray, bytes, bytearray], offsetSeconds: int, name: str, abbreviation: str, country: QLocale.Country = ..., comment: str = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QTimeZone') -> None: ... + + @staticmethod + def utc() -> 'QTimeZone': ... + @staticmethod + def systemTimeZone() -> 'QTimeZone': ... + @typing.overload + @staticmethod + def windowsIdToIanaIds(windowsId: typing.Union[QByteArray, bytes, bytearray]) -> typing.List[QByteArray]: ... + @typing.overload + @staticmethod + def windowsIdToIanaIds(windowsId: typing.Union[QByteArray, bytes, bytearray], country: QLocale.Country) -> typing.List[QByteArray]: ... + @typing.overload + @staticmethod + def windowsIdToDefaultIanaId(windowsId: typing.Union[QByteArray, bytes, bytearray]) -> QByteArray: ... + @typing.overload + @staticmethod + def windowsIdToDefaultIanaId(windowsId: typing.Union[QByteArray, bytes, bytearray], country: QLocale.Country) -> QByteArray: ... + @staticmethod + def ianaIdToWindowsId(ianaId: typing.Union[QByteArray, bytes, bytearray]) -> QByteArray: ... + @typing.overload + @staticmethod + def availableTimeZoneIds() -> typing.List[QByteArray]: ... + @typing.overload + @staticmethod + def availableTimeZoneIds(country: QLocale.Country) -> typing.List[QByteArray]: ... + @typing.overload + @staticmethod + def availableTimeZoneIds(offsetSeconds: int) -> typing.List[QByteArray]: ... + @staticmethod + def isTimeZoneIdAvailable(ianaId: typing.Union[QByteArray, bytes, bytearray]) -> bool: ... + @staticmethod + def systemTimeZoneId() -> QByteArray: ... + def transitions(self, fromDateTime: typing.Union[QDateTime, datetime.datetime], toDateTime: typing.Union[QDateTime, datetime.datetime]) -> typing.List['QTimeZone.OffsetData']: ... + def previousTransition(self, beforeDateTime: typing.Union[QDateTime, datetime.datetime]) -> 'QTimeZone.OffsetData': ... + def nextTransition(self, afterDateTime: typing.Union[QDateTime, datetime.datetime]) -> 'QTimeZone.OffsetData': ... + def hasTransitions(self) -> bool: ... + def offsetData(self, forDateTime: typing.Union[QDateTime, datetime.datetime]) -> 'QTimeZone.OffsetData': ... + def isDaylightTime(self, atDateTime: typing.Union[QDateTime, datetime.datetime]) -> bool: ... + def hasDaylightTime(self) -> bool: ... + def daylightTimeOffset(self, atDateTime: typing.Union[QDateTime, datetime.datetime]) -> int: ... + def standardTimeOffset(self, atDateTime: typing.Union[QDateTime, datetime.datetime]) -> int: ... + def offsetFromUtc(self, atDateTime: typing.Union[QDateTime, datetime.datetime]) -> int: ... + def abbreviation(self, atDateTime: typing.Union[QDateTime, datetime.datetime]) -> str: ... + @typing.overload + def displayName(self, atDateTime: typing.Union[QDateTime, datetime.datetime], nameType: 'QTimeZone.NameType' = ..., locale: QLocale = ...) -> str: ... + @typing.overload + def displayName(self, timeType: 'QTimeZone.TimeType', nameType: 'QTimeZone.NameType' = ..., locale: QLocale = ...) -> str: ... + def comment(self) -> str: ... + def country(self) -> QLocale.Country: ... + def id(self) -> QByteArray: ... + def isValid(self) -> bool: ... + def swap(self, other: 'QTimeZone') -> None: ... + + +class QTranslator(QObject): + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def loadFromData(self, data: bytes, directory: str = ...) -> bool: ... + @typing.overload + def load(self, fileName: str, directory: str = ..., searchDelimiters: str = ..., suffix: str = ...) -> bool: ... + @typing.overload + def load(self, locale: QLocale, fileName: str, prefix: str = ..., directory: str = ..., suffix: str = ...) -> bool: ... + def isEmpty(self) -> bool: ... + def translate(self, context: str, sourceText: str, disambiguation: typing.Optional[str] = ..., n: int = ...) -> str: ... + + +class QTransposeProxyModel(QAbstractProxyModel): + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def sort(self, column: int, order: Qt.SortOrder = ...) -> None: ... + def moveColumns(self, sourceParent: QModelIndex, sourceColumn: int, count: int, destinationParent: QModelIndex, destinationChild: int) -> bool: ... + def removeColumns(self, column: int, count: int, parent: QModelIndex = ...) -> bool: ... + def insertColumns(self, column: int, count: int, parent: QModelIndex = ...) -> bool: ... + def moveRows(self, sourceParent: QModelIndex, sourceRow: int, count: int, destinationParent: QModelIndex, destinationChild: int) -> bool: ... + def removeRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... + def insertRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... + def index(self, row: int, column: int, parent: QModelIndex = ...) -> QModelIndex: ... + def parent(self, index: QModelIndex) -> QModelIndex: ... + def mapToSource(self, proxyIndex: QModelIndex) -> QModelIndex: ... + def mapFromSource(self, sourceIndex: QModelIndex) -> QModelIndex: ... + def itemData(self, index: QModelIndex) -> typing.Dict[int, typing.Any]: ... + def span(self, index: QModelIndex) -> QSize: ... + def setItemData(self, index: QModelIndex, roles: typing.Dict[int, typing.Any]) -> bool: ... + def setHeaderData(self, section: int, orientation: Qt.Orientation, value: typing.Any, role: int = ...) -> bool: ... + def headerData(self, section: int, orientation: Qt.Orientation, role: int = ...) -> typing.Any: ... + def columnCount(self, parent: QModelIndex = ...) -> int: ... + def rowCount(self, parent: QModelIndex = ...) -> int: ... + def setSourceModel(self, newSourceModel: QAbstractItemModel) -> None: ... + + +class QUrl(sip.simplewrapper): + + class UserInputResolutionOption(int): ... + DefaultResolution = ... # type: 'QUrl.UserInputResolutionOption' + AssumeLocalFile = ... # type: 'QUrl.UserInputResolutionOption' + + class ComponentFormattingOption(int): ... + PrettyDecoded = ... # type: 'QUrl.ComponentFormattingOption' + EncodeSpaces = ... # type: 'QUrl.ComponentFormattingOption' + EncodeUnicode = ... # type: 'QUrl.ComponentFormattingOption' + EncodeDelimiters = ... # type: 'QUrl.ComponentFormattingOption' + EncodeReserved = ... # type: 'QUrl.ComponentFormattingOption' + DecodeReserved = ... # type: 'QUrl.ComponentFormattingOption' + FullyEncoded = ... # type: 'QUrl.ComponentFormattingOption' + FullyDecoded = ... # type: 'QUrl.ComponentFormattingOption' + + class UrlFormattingOption(int): ... + None_ = ... # type: 'QUrl.UrlFormattingOption' + RemoveScheme = ... # type: 'QUrl.UrlFormattingOption' + RemovePassword = ... # type: 'QUrl.UrlFormattingOption' + RemoveUserInfo = ... # type: 'QUrl.UrlFormattingOption' + RemovePort = ... # type: 'QUrl.UrlFormattingOption' + RemoveAuthority = ... # type: 'QUrl.UrlFormattingOption' + RemovePath = ... # type: 'QUrl.UrlFormattingOption' + RemoveQuery = ... # type: 'QUrl.UrlFormattingOption' + RemoveFragment = ... # type: 'QUrl.UrlFormattingOption' + PreferLocalFile = ... # type: 'QUrl.UrlFormattingOption' + StripTrailingSlash = ... # type: 'QUrl.UrlFormattingOption' + RemoveFilename = ... # type: 'QUrl.UrlFormattingOption' + NormalizePathSegments = ... # type: 'QUrl.UrlFormattingOption' + + class ParsingMode(int): ... + TolerantMode = ... # type: 'QUrl.ParsingMode' + StrictMode = ... # type: 'QUrl.ParsingMode' + DecodedMode = ... # type: 'QUrl.ParsingMode' + + class FormattingOptions(sip.simplewrapper): + + def __init__(self, a0: 'QUrl.FormattingOptions') -> None: ... + + + class ComponentFormattingOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QUrl.ComponentFormattingOptions', 'QUrl.ComponentFormattingOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QUrl.ComponentFormattingOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QUrl.ComponentFormattingOptions': ... + def __int__(self) -> int: ... + + class UserInputResolutionOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QUrl.UserInputResolutionOptions', 'QUrl.UserInputResolutionOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QUrl.UserInputResolutionOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QUrl.UserInputResolutionOptions': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, url: str, mode: 'QUrl.ParsingMode' = ...) -> None: ... + @typing.overload + def __init__(self, copy: 'QUrl') -> None: ... + + def matches(self, url: 'QUrl', options: 'QUrl.FormattingOptions') -> bool: ... + def fileName(self, options: typing.Union['QUrl.ComponentFormattingOptions', 'QUrl.ComponentFormattingOption'] = ...) -> str: ... + def adjusted(self, options: 'QUrl.FormattingOptions') -> 'QUrl': ... + @staticmethod + def fromStringList(uris: typing.Iterable[str], mode: 'QUrl.ParsingMode' = ...) -> typing.List['QUrl']: ... + @staticmethod + def toStringList(uris: typing.Iterable['QUrl'], options: 'QUrl.FormattingOptions' = ...) -> typing.List[str]: ... + def query(self, options: typing.Union['QUrl.ComponentFormattingOptions', 'QUrl.ComponentFormattingOption'] = ...) -> str: ... + @typing.overload + def setQuery(self, query: str, mode: 'QUrl.ParsingMode' = ...) -> None: ... + @typing.overload + def setQuery(self, query: 'QUrlQuery') -> None: ... + def toDisplayString(self, options: 'QUrl.FormattingOptions' = ...) -> str: ... + def isLocalFile(self) -> bool: ... + def topLevelDomain(self, options: typing.Union['QUrl.ComponentFormattingOptions', 'QUrl.ComponentFormattingOption'] = ...) -> str: ... + def swap(self, other: 'QUrl') -> None: ... + @typing.overload + @staticmethod + def fromUserInput(userInput: str) -> 'QUrl': ... + @typing.overload + @staticmethod + def fromUserInput(userInput: str, workingDirectory: str, options: typing.Union['QUrl.UserInputResolutionOptions', 'QUrl.UserInputResolutionOption'] = ...) -> 'QUrl': ... + @staticmethod + def setIdnWhitelist(a0: typing.Iterable[str]) -> None: ... + @staticmethod + def idnWhitelist() -> typing.List[str]: ... + @staticmethod + def toAce(a0: str) -> QByteArray: ... + @staticmethod + def fromAce(a0: typing.Union[QByteArray, bytes, bytearray]) -> str: ... + def errorString(self) -> str: ... + def hasFragment(self) -> bool: ... + def hasQuery(self) -> bool: ... + @staticmethod + def toPercentEncoding(input: str, exclude: typing.Union[QByteArray, bytes, bytearray] = ..., include: typing.Union[QByteArray, bytes, bytearray] = ...) -> QByteArray: ... + @staticmethod + def fromPercentEncoding(a0: typing.Union[QByteArray, bytes, bytearray]) -> str: ... + def isDetached(self) -> bool: ... + def detach(self) -> None: ... + @staticmethod + def fromEncoded(u: typing.Union[QByteArray, bytes, bytearray], mode: 'QUrl.ParsingMode' = ...) -> 'QUrl': ... + def toEncoded(self, options: 'QUrl.FormattingOptions' = ...) -> QByteArray: ... + def toString(self, options: 'QUrl.FormattingOptions' = ...) -> str: ... + def toLocalFile(self) -> str: ... + @staticmethod + def fromLocalFile(localfile: str) -> 'QUrl': ... + def isParentOf(self, url: 'QUrl') -> bool: ... + def isRelative(self) -> bool: ... + def resolved(self, relative: 'QUrl') -> 'QUrl': ... + def fragment(self, options: typing.Union['QUrl.ComponentFormattingOptions', 'QUrl.ComponentFormattingOption'] = ...) -> str: ... + def setFragment(self, fragment: str, mode: 'QUrl.ParsingMode' = ...) -> None: ... + def path(self, options: typing.Union['QUrl.ComponentFormattingOptions', 'QUrl.ComponentFormattingOption'] = ...) -> str: ... + def setPath(self, path: str, mode: 'QUrl.ParsingMode' = ...) -> None: ... + def port(self, defaultPort: int = ...) -> int: ... + def setPort(self, port: int) -> None: ... + def host(self, a0: typing.Union['QUrl.ComponentFormattingOptions', 'QUrl.ComponentFormattingOption'] = ...) -> str: ... + def setHost(self, host: str, mode: 'QUrl.ParsingMode' = ...) -> None: ... + def password(self, options: typing.Union['QUrl.ComponentFormattingOptions', 'QUrl.ComponentFormattingOption'] = ...) -> str: ... + def setPassword(self, password: str, mode: 'QUrl.ParsingMode' = ...) -> None: ... + def userName(self, options: typing.Union['QUrl.ComponentFormattingOptions', 'QUrl.ComponentFormattingOption'] = ...) -> str: ... + def setUserName(self, userName: str, mode: 'QUrl.ParsingMode' = ...) -> None: ... + def userInfo(self, options: typing.Union['QUrl.ComponentFormattingOptions', 'QUrl.ComponentFormattingOption'] = ...) -> str: ... + def setUserInfo(self, userInfo: str, mode: 'QUrl.ParsingMode' = ...) -> None: ... + def authority(self, options: typing.Union['QUrl.ComponentFormattingOptions', 'QUrl.ComponentFormattingOption'] = ...) -> str: ... + def setAuthority(self, authority: str, mode: 'QUrl.ParsingMode' = ...) -> None: ... + def scheme(self) -> str: ... + def setScheme(self, scheme: str) -> None: ... + def clear(self) -> None: ... + def isEmpty(self) -> bool: ... + def isValid(self) -> bool: ... + def setUrl(self, url: str, mode: 'QUrl.ParsingMode' = ...) -> None: ... + def url(self, options: 'QUrl.FormattingOptions' = ...) -> str: ... + def __repr__(self) -> str: ... + def __hash__(self) -> int: ... + + +class QUrlQuery(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, url: QUrl) -> None: ... + @typing.overload + def __init__(self, queryString: str) -> None: ... + @typing.overload + def __init__(self, other: 'QUrlQuery') -> None: ... + + def __hash__(self) -> int: ... + @staticmethod + def defaultQueryPairDelimiter() -> str: ... + @staticmethod + def defaultQueryValueDelimiter() -> str: ... + def removeAllQueryItems(self, key: str) -> None: ... + def allQueryItemValues(self, key: str, options: typing.Union[QUrl.ComponentFormattingOptions, QUrl.ComponentFormattingOption] = ...) -> typing.List[str]: ... + def queryItemValue(self, key: str, options: typing.Union[QUrl.ComponentFormattingOptions, QUrl.ComponentFormattingOption] = ...) -> str: ... + def removeQueryItem(self, key: str) -> None: ... + def addQueryItem(self, key: str, value: str) -> None: ... + def hasQueryItem(self, key: str) -> bool: ... + def queryItems(self, options: typing.Union[QUrl.ComponentFormattingOptions, QUrl.ComponentFormattingOption] = ...) -> typing.List[typing.Tuple[str, str]]: ... + def setQueryItems(self, query: typing.Iterable[typing.Tuple[str, str]]) -> None: ... + def queryPairDelimiter(self) -> str: ... + def queryValueDelimiter(self) -> str: ... + def setQueryDelimiters(self, valueDelimiter: str, pairDelimiter: str) -> None: ... + def toString(self, options: typing.Union[QUrl.ComponentFormattingOptions, QUrl.ComponentFormattingOption] = ...) -> str: ... + def setQuery(self, queryString: str) -> None: ... + def query(self, options: typing.Union[QUrl.ComponentFormattingOptions, QUrl.ComponentFormattingOption] = ...) -> str: ... + def clear(self) -> None: ... + def isDetached(self) -> bool: ... + def isEmpty(self) -> bool: ... + def swap(self, other: 'QUrlQuery') -> None: ... + + +class QUuid(sip.simplewrapper): + + class StringFormat(int): ... + WithBraces = ... # type: 'QUuid.StringFormat' + WithoutBraces = ... # type: 'QUuid.StringFormat' + Id128 = ... # type: 'QUuid.StringFormat' + + class Version(int): ... + VerUnknown = ... # type: 'QUuid.Version' + Time = ... # type: 'QUuid.Version' + EmbeddedPOSIX = ... # type: 'QUuid.Version' + Md5 = ... # type: 'QUuid.Version' + Name = ... # type: 'QUuid.Version' + Random = ... # type: 'QUuid.Version' + Sha1 = ... # type: 'QUuid.Version' + + class Variant(int): ... + VarUnknown = ... # type: 'QUuid.Variant' + NCS = ... # type: 'QUuid.Variant' + DCE = ... # type: 'QUuid.Variant' + Microsoft = ... # type: 'QUuid.Variant' + Reserved = ... # type: 'QUuid.Variant' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, l: int, w1: int, w2: int, b1: int, b2: int, b3: int, b4: int, b5: int, b6: int, b7: int, b8: int) -> None: ... + @typing.overload + def __init__(self, a0: str) -> None: ... + @typing.overload + def __init__(self, a0: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + @typing.overload + def __init__(self, a0: 'QUuid') -> None: ... + + @staticmethod + def fromRfc4122(a0: typing.Union[QByteArray, bytes, bytearray]) -> 'QUuid': ... + def toRfc4122(self) -> QByteArray: ... + @typing.overload + def toByteArray(self) -> QByteArray: ... + @typing.overload + def toByteArray(self, mode: 'QUuid.StringFormat') -> QByteArray: ... + def version(self) -> 'QUuid.Version': ... + def variant(self) -> 'QUuid.Variant': ... + @typing.overload + @staticmethod + def createUuidV5(ns: 'QUuid', baseData: typing.Union[QByteArray, bytes, bytearray]) -> 'QUuid': ... + @typing.overload + @staticmethod + def createUuidV5(ns: 'QUuid', baseData: str) -> 'QUuid': ... + @typing.overload + @staticmethod + def createUuidV3(ns: 'QUuid', baseData: typing.Union[QByteArray, bytes, bytearray]) -> 'QUuid': ... + @typing.overload + @staticmethod + def createUuidV3(ns: 'QUuid', baseData: str) -> 'QUuid': ... + @staticmethod + def createUuid() -> 'QUuid': ... + def isNull(self) -> bool: ... + @typing.overload + def toString(self) -> str: ... + @typing.overload + def toString(self, mode: 'QUuid.StringFormat') -> str: ... + def __repr__(self) -> str: ... + def __hash__(self) -> int: ... + + +class QVariant(sip.simplewrapper): + + class Type(int): ... + Invalid = ... # type: 'QVariant.Type' + Bool = ... # type: 'QVariant.Type' + Int = ... # type: 'QVariant.Type' + UInt = ... # type: 'QVariant.Type' + LongLong = ... # type: 'QVariant.Type' + ULongLong = ... # type: 'QVariant.Type' + Double = ... # type: 'QVariant.Type' + Char = ... # type: 'QVariant.Type' + Map = ... # type: 'QVariant.Type' + List = ... # type: 'QVariant.Type' + String = ... # type: 'QVariant.Type' + StringList = ... # type: 'QVariant.Type' + ByteArray = ... # type: 'QVariant.Type' + BitArray = ... # type: 'QVariant.Type' + Date = ... # type: 'QVariant.Type' + Time = ... # type: 'QVariant.Type' + DateTime = ... # type: 'QVariant.Type' + Url = ... # type: 'QVariant.Type' + Locale = ... # type: 'QVariant.Type' + Rect = ... # type: 'QVariant.Type' + RectF = ... # type: 'QVariant.Type' + Size = ... # type: 'QVariant.Type' + SizeF = ... # type: 'QVariant.Type' + Line = ... # type: 'QVariant.Type' + LineF = ... # type: 'QVariant.Type' + Point = ... # type: 'QVariant.Type' + PointF = ... # type: 'QVariant.Type' + RegExp = ... # type: 'QVariant.Type' + Font = ... # type: 'QVariant.Type' + Pixmap = ... # type: 'QVariant.Type' + Brush = ... # type: 'QVariant.Type' + Color = ... # type: 'QVariant.Type' + Palette = ... # type: 'QVariant.Type' + Icon = ... # type: 'QVariant.Type' + Image = ... # type: 'QVariant.Type' + Polygon = ... # type: 'QVariant.Type' + Region = ... # type: 'QVariant.Type' + Bitmap = ... # type: 'QVariant.Type' + Cursor = ... # type: 'QVariant.Type' + SizePolicy = ... # type: 'QVariant.Type' + KeySequence = ... # type: 'QVariant.Type' + Pen = ... # type: 'QVariant.Type' + TextLength = ... # type: 'QVariant.Type' + TextFormat = ... # type: 'QVariant.Type' + Matrix = ... # type: 'QVariant.Type' + Transform = ... # type: 'QVariant.Type' + Hash = ... # type: 'QVariant.Type' + Matrix4x4 = ... # type: 'QVariant.Type' + Vector2D = ... # type: 'QVariant.Type' + Vector3D = ... # type: 'QVariant.Type' + Vector4D = ... # type: 'QVariant.Type' + Quaternion = ... # type: 'QVariant.Type' + EasingCurve = ... # type: 'QVariant.Type' + Uuid = ... # type: 'QVariant.Type' + ModelIndex = ... # type: 'QVariant.Type' + PolygonF = ... # type: 'QVariant.Type' + RegularExpression = ... # type: 'QVariant.Type' + PersistentModelIndex = ... # type: 'QVariant.Type' + UserType = ... # type: 'QVariant.Type' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, type: 'QVariant.Type') -> None: ... + @typing.overload + def __init__(self, obj: typing.Any) -> None: ... + @typing.overload + def __init__(self, a0: 'QVariant') -> None: ... + + def swap(self, other: 'QVariant') -> None: ... + @staticmethod + def nameToType(name: str) -> 'QVariant.Type': ... + @staticmethod + def typeToName(typeId: int) -> str: ... + def save(self, ds: QDataStream) -> None: ... + def load(self, ds: QDataStream) -> None: ... + def clear(self) -> None: ... + def isNull(self) -> bool: ... + def isValid(self) -> bool: ... + def convert(self, targetTypeId: int) -> bool: ... + def canConvert(self, targetTypeId: int) -> bool: ... + def typeName(self) -> str: ... + def userType(self) -> int: ... + def type(self) -> 'QVariant.Type': ... + def value(self) -> typing.Any: ... + + +class QVersionNumber(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, seg: typing.Iterable[int]) -> None: ... + @typing.overload + def __init__(self, maj: int) -> None: ... + @typing.overload + def __init__(self, maj: int, min: int) -> None: ... + @typing.overload + def __init__(self, maj: int, min: int, mic: int) -> None: ... + @typing.overload + def __init__(self, a0: 'QVersionNumber') -> None: ... + + def __hash__(self) -> int: ... + @staticmethod + def fromString(string: str) -> typing.Tuple['QVersionNumber', int]: ... + def toString(self) -> str: ... + @staticmethod + def commonPrefix(v1: 'QVersionNumber', v2: 'QVersionNumber') -> 'QVersionNumber': ... + @staticmethod + def compare(v1: 'QVersionNumber', v2: 'QVersionNumber') -> int: ... + def isPrefixOf(self, other: 'QVersionNumber') -> bool: ... + def segmentCount(self) -> int: ... + def segmentAt(self, index: int) -> int: ... + def segments(self) -> typing.List[int]: ... + def normalized(self) -> 'QVersionNumber': ... + def microVersion(self) -> int: ... + def minorVersion(self) -> int: ... + def majorVersion(self) -> int: ... + def isNormalized(self) -> bool: ... + def isNull(self) -> bool: ... + + +class QWaitCondition(sip.simplewrapper): + + def __init__(self) -> None: ... + + def wakeAll(self) -> None: ... + def wakeOne(self) -> None: ... + @typing.overload + def wait(self, mutex: QMutex, msecs: int = ...) -> bool: ... + @typing.overload + def wait(self, readWriteLock: QReadWriteLock, msecs: int = ...) -> bool: ... + @typing.overload + def wait(self, lockedMutex: QMutex, deadline: QDeadlineTimer) -> bool: ... + @typing.overload + def wait(self, lockedReadWriteLock: QReadWriteLock, deadline: QDeadlineTimer) -> bool: ... + + +class QXmlStreamAttribute(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, qualifiedName: str, value: str) -> None: ... + @typing.overload + def __init__(self, namespaceUri: str, name: str, value: str) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlStreamAttribute') -> None: ... + + def isDefault(self) -> bool: ... + def value(self) -> str: ... + def prefix(self) -> str: ... + def qualifiedName(self) -> str: ... + def name(self) -> str: ... + def namespaceUri(self) -> str: ... + + +class QXmlStreamAttributes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlStreamAttributes') -> None: ... + + def __contains__(self, value: QXmlStreamAttribute) -> int: ... + @typing.overload + def __delitem__(self, i: int) -> None: ... + @typing.overload + def __delitem__(self, slice: slice) -> None: ... + @typing.overload + def __setitem__(self, i: int, value: QXmlStreamAttribute) -> None: ... + @typing.overload + def __setitem__(self, slice: slice, list: 'QXmlStreamAttributes') -> None: ... + @typing.overload + def __getitem__(self, i: int) -> QXmlStreamAttribute: ... + @typing.overload + def __getitem__(self, slice: slice) -> 'QXmlStreamAttributes': ... + def size(self) -> int: ... + def replace(self, i: int, value: QXmlStreamAttribute) -> None: ... + @typing.overload + def remove(self, i: int) -> None: ... + @typing.overload + def remove(self, i: int, count: int) -> None: ... + def prepend(self, value: QXmlStreamAttribute) -> None: ... + def lastIndexOf(self, value: QXmlStreamAttribute, from_: int = ...) -> int: ... + def last(self) -> QXmlStreamAttribute: ... + def isEmpty(self) -> bool: ... + def insert(self, i: int, value: QXmlStreamAttribute) -> None: ... + def indexOf(self, value: QXmlStreamAttribute, from_: int = ...) -> int: ... + def first(self) -> QXmlStreamAttribute: ... + def fill(self, value: QXmlStreamAttribute, size: int = ...) -> None: ... + def data(self) -> sip.voidptr: ... + def __len__(self) -> int: ... + @typing.overload + def count(self, value: QXmlStreamAttribute) -> int: ... + @typing.overload + def count(self) -> int: ... + def contains(self, value: QXmlStreamAttribute) -> bool: ... + def clear(self) -> None: ... + def at(self, i: int) -> QXmlStreamAttribute: ... + @typing.overload + def hasAttribute(self, qualifiedName: str) -> bool: ... + @typing.overload + def hasAttribute(self, namespaceUri: str, name: str) -> bool: ... + @typing.overload + def append(self, namespaceUri: str, name: str, value: str) -> None: ... + @typing.overload + def append(self, qualifiedName: str, value: str) -> None: ... + @typing.overload + def append(self, attribute: QXmlStreamAttribute) -> None: ... + @typing.overload + def value(self, namespaceUri: str, name: str) -> str: ... + @typing.overload + def value(self, qualifiedName: str) -> str: ... + + +class QXmlStreamNamespaceDeclaration(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlStreamNamespaceDeclaration') -> None: ... + @typing.overload + def __init__(self, prefix: str, namespaceUri: str) -> None: ... + + def namespaceUri(self) -> str: ... + def prefix(self) -> str: ... + + +class QXmlStreamNotationDeclaration(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlStreamNotationDeclaration') -> None: ... + + def publicId(self) -> str: ... + def systemId(self) -> str: ... + def name(self) -> str: ... + + +class QXmlStreamEntityDeclaration(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlStreamEntityDeclaration') -> None: ... + + def value(self) -> str: ... + def publicId(self) -> str: ... + def systemId(self) -> str: ... + def notationName(self) -> str: ... + def name(self) -> str: ... + + +class QXmlStreamEntityResolver(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlStreamEntityResolver') -> None: ... + + def resolveUndeclaredEntity(self, name: str) -> str: ... + + +class QXmlStreamReader(sip.simplewrapper): + + class Error(int): ... + NoError = ... # type: 'QXmlStreamReader.Error' + UnexpectedElementError = ... # type: 'QXmlStreamReader.Error' + CustomError = ... # type: 'QXmlStreamReader.Error' + NotWellFormedError = ... # type: 'QXmlStreamReader.Error' + PrematureEndOfDocumentError = ... # type: 'QXmlStreamReader.Error' + + class ReadElementTextBehaviour(int): ... + ErrorOnUnexpectedElement = ... # type: 'QXmlStreamReader.ReadElementTextBehaviour' + IncludeChildElements = ... # type: 'QXmlStreamReader.ReadElementTextBehaviour' + SkipChildElements = ... # type: 'QXmlStreamReader.ReadElementTextBehaviour' + + class TokenType(int): ... + NoToken = ... # type: 'QXmlStreamReader.TokenType' + Invalid = ... # type: 'QXmlStreamReader.TokenType' + StartDocument = ... # type: 'QXmlStreamReader.TokenType' + EndDocument = ... # type: 'QXmlStreamReader.TokenType' + StartElement = ... # type: 'QXmlStreamReader.TokenType' + EndElement = ... # type: 'QXmlStreamReader.TokenType' + Characters = ... # type: 'QXmlStreamReader.TokenType' + Comment = ... # type: 'QXmlStreamReader.TokenType' + DTD = ... # type: 'QXmlStreamReader.TokenType' + EntityReference = ... # type: 'QXmlStreamReader.TokenType' + ProcessingInstruction = ... # type: 'QXmlStreamReader.TokenType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, device: QIODevice) -> None: ... + @typing.overload + def __init__(self, data: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + @typing.overload + def __init__(self, data: str) -> None: ... + + def skipCurrentElement(self) -> None: ... + def readNextStartElement(self) -> bool: ... + def entityResolver(self) -> QXmlStreamEntityResolver: ... + def setEntityResolver(self, resolver: QXmlStreamEntityResolver) -> None: ... + def hasError(self) -> bool: ... + def error(self) -> 'QXmlStreamReader.Error': ... + def errorString(self) -> str: ... + def raiseError(self, message: str = ...) -> None: ... + def dtdSystemId(self) -> str: ... + def dtdPublicId(self) -> str: ... + def dtdName(self) -> str: ... + def entityDeclarations(self) -> typing.List[QXmlStreamEntityDeclaration]: ... + def notationDeclarations(self) -> typing.List[QXmlStreamNotationDeclaration]: ... + def addExtraNamespaceDeclarations(self, extraNamespaceDeclaractions: typing.Iterable[QXmlStreamNamespaceDeclaration]) -> None: ... + def addExtraNamespaceDeclaration(self, extraNamespaceDeclaraction: QXmlStreamNamespaceDeclaration) -> None: ... + def namespaceDeclarations(self) -> typing.List[QXmlStreamNamespaceDeclaration]: ... + def text(self) -> str: ... + def processingInstructionData(self) -> str: ... + def processingInstructionTarget(self) -> str: ... + def prefix(self) -> str: ... + def qualifiedName(self) -> str: ... + def namespaceUri(self) -> str: ... + def name(self) -> str: ... + def readElementText(self, behaviour: 'QXmlStreamReader.ReadElementTextBehaviour' = ...) -> str: ... + def attributes(self) -> QXmlStreamAttributes: ... + def characterOffset(self) -> int: ... + def columnNumber(self) -> int: ... + def lineNumber(self) -> int: ... + def documentEncoding(self) -> str: ... + def documentVersion(self) -> str: ... + def isStandaloneDocument(self) -> bool: ... + def isProcessingInstruction(self) -> bool: ... + def isEntityReference(self) -> bool: ... + def isDTD(self) -> bool: ... + def isComment(self) -> bool: ... + def isCDATA(self) -> bool: ... + def isWhitespace(self) -> bool: ... + def isCharacters(self) -> bool: ... + def isEndElement(self) -> bool: ... + def isStartElement(self) -> bool: ... + def isEndDocument(self) -> bool: ... + def isStartDocument(self) -> bool: ... + def namespaceProcessing(self) -> bool: ... + def setNamespaceProcessing(self, a0: bool) -> None: ... + def tokenString(self) -> str: ... + def tokenType(self) -> 'QXmlStreamReader.TokenType': ... + def readNext(self) -> 'QXmlStreamReader.TokenType': ... + def atEnd(self) -> bool: ... + def clear(self) -> None: ... + @typing.overload + def addData(self, data: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + @typing.overload + def addData(self, data: str) -> None: ... + def device(self) -> QIODevice: ... + def setDevice(self, device: QIODevice) -> None: ... + + +class QXmlStreamWriter(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, device: QIODevice) -> None: ... + @typing.overload + def __init__(self, array: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + + def hasError(self) -> bool: ... + def writeCurrentToken(self, reader: QXmlStreamReader) -> None: ... + @typing.overload + def writeStartElement(self, qualifiedName: str) -> None: ... + @typing.overload + def writeStartElement(self, namespaceUri: str, name: str) -> None: ... + @typing.overload + def writeStartDocument(self) -> None: ... + @typing.overload + def writeStartDocument(self, version: str) -> None: ... + @typing.overload + def writeStartDocument(self, version: str, standalone: bool) -> None: ... + def writeProcessingInstruction(self, target: str, data: str = ...) -> None: ... + def writeDefaultNamespace(self, namespaceUri: str) -> None: ... + def writeNamespace(self, namespaceUri: str, prefix: str = ...) -> None: ... + def writeEntityReference(self, name: str) -> None: ... + def writeEndElement(self) -> None: ... + def writeEndDocument(self) -> None: ... + @typing.overload + def writeTextElement(self, qualifiedName: str, text: str) -> None: ... + @typing.overload + def writeTextElement(self, namespaceUri: str, name: str, text: str) -> None: ... + @typing.overload + def writeEmptyElement(self, qualifiedName: str) -> None: ... + @typing.overload + def writeEmptyElement(self, namespaceUri: str, name: str) -> None: ... + def writeDTD(self, dtd: str) -> None: ... + def writeComment(self, text: str) -> None: ... + def writeCharacters(self, text: str) -> None: ... + def writeCDATA(self, text: str) -> None: ... + def writeAttributes(self, attributes: QXmlStreamAttributes) -> None: ... + @typing.overload + def writeAttribute(self, qualifiedName: str, value: str) -> None: ... + @typing.overload + def writeAttribute(self, namespaceUri: str, name: str, value: str) -> None: ... + @typing.overload + def writeAttribute(self, attribute: QXmlStreamAttribute) -> None: ... + def autoFormattingIndent(self) -> int: ... + def setAutoFormattingIndent(self, spaces: int) -> None: ... + def autoFormatting(self) -> bool: ... + def setAutoFormatting(self, a0: bool) -> None: ... + def codec(self) -> QTextCodec: ... + @typing.overload + def setCodec(self, codec: QTextCodec) -> None: ... + @typing.overload + def setCodec(self, codecName: str) -> None: ... + def device(self) -> QIODevice: ... + def setDevice(self, device: QIODevice) -> None: ... + + +class QSysInfo(sip.simplewrapper): + + class MacVersion(int): ... + MV_Unknown = ... # type: 'QSysInfo.MacVersion' + MV_9 = ... # type: 'QSysInfo.MacVersion' + MV_10_0 = ... # type: 'QSysInfo.MacVersion' + MV_10_1 = ... # type: 'QSysInfo.MacVersion' + MV_10_2 = ... # type: 'QSysInfo.MacVersion' + MV_10_3 = ... # type: 'QSysInfo.MacVersion' + MV_10_4 = ... # type: 'QSysInfo.MacVersion' + MV_10_5 = ... # type: 'QSysInfo.MacVersion' + MV_10_6 = ... # type: 'QSysInfo.MacVersion' + MV_10_7 = ... # type: 'QSysInfo.MacVersion' + MV_10_8 = ... # type: 'QSysInfo.MacVersion' + MV_10_9 = ... # type: 'QSysInfo.MacVersion' + MV_10_10 = ... # type: 'QSysInfo.MacVersion' + MV_10_11 = ... # type: 'QSysInfo.MacVersion' + MV_10_12 = ... # type: 'QSysInfo.MacVersion' + MV_CHEETAH = ... # type: 'QSysInfo.MacVersion' + MV_PUMA = ... # type: 'QSysInfo.MacVersion' + MV_JAGUAR = ... # type: 'QSysInfo.MacVersion' + MV_PANTHER = ... # type: 'QSysInfo.MacVersion' + MV_TIGER = ... # type: 'QSysInfo.MacVersion' + MV_LEOPARD = ... # type: 'QSysInfo.MacVersion' + MV_SNOWLEOPARD = ... # type: 'QSysInfo.MacVersion' + MV_LION = ... # type: 'QSysInfo.MacVersion' + MV_MOUNTAINLION = ... # type: 'QSysInfo.MacVersion' + MV_MAVERICKS = ... # type: 'QSysInfo.MacVersion' + MV_YOSEMITE = ... # type: 'QSysInfo.MacVersion' + MV_ELCAPITAN = ... # type: 'QSysInfo.MacVersion' + MV_SIERRA = ... # type: 'QSysInfo.MacVersion' + MV_IOS = ... # type: 'QSysInfo.MacVersion' + MV_IOS_4_3 = ... # type: 'QSysInfo.MacVersion' + MV_IOS_5_0 = ... # type: 'QSysInfo.MacVersion' + MV_IOS_5_1 = ... # type: 'QSysInfo.MacVersion' + MV_IOS_6_0 = ... # type: 'QSysInfo.MacVersion' + MV_IOS_6_1 = ... # type: 'QSysInfo.MacVersion' + MV_IOS_7_0 = ... # type: 'QSysInfo.MacVersion' + MV_IOS_7_1 = ... # type: 'QSysInfo.MacVersion' + MV_IOS_8_0 = ... # type: 'QSysInfo.MacVersion' + MV_IOS_8_1 = ... # type: 'QSysInfo.MacVersion' + MV_IOS_8_2 = ... # type: 'QSysInfo.MacVersion' + MV_IOS_8_3 = ... # type: 'QSysInfo.MacVersion' + MV_IOS_8_4 = ... # type: 'QSysInfo.MacVersion' + MV_IOS_9_0 = ... # type: 'QSysInfo.MacVersion' + MV_IOS_9_1 = ... # type: 'QSysInfo.MacVersion' + MV_IOS_9_2 = ... # type: 'QSysInfo.MacVersion' + MV_IOS_9_3 = ... # type: 'QSysInfo.MacVersion' + MV_IOS_10_0 = ... # type: 'QSysInfo.MacVersion' + MV_TVOS = ... # type: 'QSysInfo.MacVersion' + MV_TVOS_9_0 = ... # type: 'QSysInfo.MacVersion' + MV_TVOS_9_1 = ... # type: 'QSysInfo.MacVersion' + MV_TVOS_9_2 = ... # type: 'QSysInfo.MacVersion' + MV_TVOS_10_0 = ... # type: 'QSysInfo.MacVersion' + MV_WATCHOS = ... # type: 'QSysInfo.MacVersion' + MV_WATCHOS_2_0 = ... # type: 'QSysInfo.MacVersion' + MV_WATCHOS_2_1 = ... # type: 'QSysInfo.MacVersion' + MV_WATCHOS_2_2 = ... # type: 'QSysInfo.MacVersion' + MV_WATCHOS_3_0 = ... # type: 'QSysInfo.MacVersion' + + class Endian(int): ... + BigEndian = ... # type: 'QSysInfo.Endian' + LittleEndian = ... # type: 'QSysInfo.Endian' + ByteOrder = ... # type: 'QSysInfo.Endian' + + class Sizes(int): ... + WordSize = ... # type: 'QSysInfo.Sizes' + + MacintoshVersion = ... # type: 'QSysInfo.MacVersion' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSysInfo') -> None: ... + + @staticmethod + def machineHostName() -> str: ... + @staticmethod + def productVersion() -> str: ... + @staticmethod + def productType() -> str: ... + @staticmethod + def prettyProductName() -> str: ... + @staticmethod + def kernelVersion() -> str: ... + @staticmethod + def kernelType() -> str: ... + @staticmethod + def currentCpuArchitecture() -> str: ... + @staticmethod + def buildCpuArchitecture() -> str: ... + @staticmethod + def buildAbi() -> str: ... + @staticmethod + def macVersion() -> 'QSysInfo.MacVersion': ... + + +PYQT_VERSION = ... # type: int +PYQT_VERSION_STR = ... # type: str +QT_VERSION = ... # type: int +QT_VERSION_STR = ... # type: str + + +def pyqt5_enable_new_onexit_scheme(a0: bool) -> bool: ... +def qSetRealNumberPrecision(precision: int) -> QTextStreamManipulator: ... +def qSetPadChar(ch: str) -> QTextStreamManipulator: ... +def qSetFieldWidth(width: int) -> QTextStreamManipulator: ... +def ws(s: QTextStream) -> QTextStream: ... +def bom(s: QTextStream) -> QTextStream: ... +def reset(s: QTextStream) -> QTextStream: ... +def flush(s: QTextStream) -> QTextStream: ... +def endl(s: QTextStream) -> QTextStream: ... +def center(s: QTextStream) -> QTextStream: ... +def right(s: QTextStream) -> QTextStream: ... +def left(s: QTextStream) -> QTextStream: ... +def scientific(s: QTextStream) -> QTextStream: ... +def fixed(s: QTextStream) -> QTextStream: ... +def lowercasedigits(s: QTextStream) -> QTextStream: ... +def lowercasebase(s: QTextStream) -> QTextStream: ... +def uppercasedigits(s: QTextStream) -> QTextStream: ... +def uppercasebase(s: QTextStream) -> QTextStream: ... +def noforcepoint(s: QTextStream) -> QTextStream: ... +def noforcesign(s: QTextStream) -> QTextStream: ... +def noshowbase(s: QTextStream) -> QTextStream: ... +def forcepoint(s: QTextStream) -> QTextStream: ... +def forcesign(s: QTextStream) -> QTextStream: ... +def showbase(s: QTextStream) -> QTextStream: ... +def hex_(s: QTextStream) -> QTextStream: ... +def dec(s: QTextStream) -> QTextStream: ... +def oct_(s: QTextStream) -> QTextStream: ... +def bin_(s: QTextStream) -> QTextStream: ... +def Q_RETURN_ARG(type: typing.Any) -> QGenericReturnArgument: ... +def Q_ARG(type: typing.Any, data: typing.Any) -> QGenericArgument: ... +def pyqtSlot(*types, name: typing.Optional[str] = ..., result: typing.Optional[str] = ...) -> typing.Callable[..., typing.Optional[str]]: ... +def QT_TRANSLATE_NOOP(a0: str, a1: str) -> str: ... +def QT_TR_NOOP_UTF8(a0: str) -> str: ... +def QT_TR_NOOP(a0: str) -> str: ... +def Q_FLAGS(*a0) -> None: ... +def Q_FLAG(a0: typing.Union[type, enum.Enum]) -> None: ... +def Q_ENUMS(*a0) -> None: ... +def Q_ENUM(a0: typing.Union[type, enum.Enum]) -> None: ... +def Q_CLASSINFO(name: str, value: str) -> None: ... +def qFloatDistance(a: float, b: float) -> int: ... +def qQNaN() -> float: ... +def qSNaN() -> float: ... +def qInf() -> float: ... +def qIsNaN(d: float) -> bool: ... +def qIsFinite(d: float) -> bool: ... +def qIsInf(d: float) -> bool: ... +def qFormatLogMessage(type: QtMsgType, context: QMessageLogContext, buf: str) -> str: ... +def qSetMessagePattern(messagePattern: str) -> None: ... +def qInstallMessageHandler(a0: typing.Optional[typing.Callable[[QtMsgType, QMessageLogContext, str], None]]) -> typing.Optional[typing.Callable[[QtMsgType, QMessageLogContext, str], None]]: ... +def qWarning(msg: str) -> None: ... +def qInfo(msg: str) -> None: ... +def qFatal(msg: str) -> None: ... +@typing.overload +def qErrnoWarning(code: int, msg: str) -> None: ... +@typing.overload +def qErrnoWarning(msg: str) -> None: ... +def qDebug(msg: str) -> None: ... +def qCritical(msg: str) -> None: ... +def pyqtRestoreInputHook() -> None: ... +def pyqtRemoveInputHook() -> None: ... +def qAddPreRoutine(routine: Callable[[], None]) -> None: ... +def qRemovePostRoutine(a0: typing.Callable[..., None]) -> None: ... +def qAddPostRoutine(a0: typing.Callable[..., None]) -> None: ... +@typing.overload +def qChecksum(s: bytes) -> int: ... +@typing.overload +def qChecksum(s: bytes, standard: Qt.ChecksumType) -> int: ... +def qUncompress(data: typing.Union[QByteArray, bytes, bytearray]) -> QByteArray: ... +def qCompress(data: typing.Union[QByteArray, bytes, bytearray], compressionLevel: int = ...) -> QByteArray: ... +@typing.overload +def qEnvironmentVariable(varName: str) -> str: ... +@typing.overload +def qEnvironmentVariable(varName: str, defaultValue: str) -> str: ... +def pyqtPickleProtocol() -> typing.Optional[int]: ... +def pyqtSetPickleProtocol(a0: typing.Optional[int]) -> None: ... +def qrand() -> int: ... +def qsrand(seed: int) -> None: ... +def qIsNull(d: float) -> bool: ... +def qFuzzyCompare(p1: float, p2: float) -> bool: ... +def qUnregisterResourceData(a0: int, a1: bytes, a2: bytes, a3: bytes) -> bool: ... +def qRegisterResourceData(a0: int, a1: bytes, a2: bytes, a3: bytes) -> bool: ... +def qSharedBuild() -> bool: ... +def qVersion() -> str: ... +def qRound64(d: float) -> int: ... +def qRound(d: float) -> int: ... +def qAbs(t: float) -> float: ... diff --git a/tools/stubs/PyQt5/QtDBus.pyi b/tools/stubs/PyQt5/QtDBus.pyi new file mode 100644 index 000000000..57fdd67ca --- /dev/null +++ b/tools/stubs/PyQt5/QtDBus.pyi @@ -0,0 +1,514 @@ +# The PEP 484 type hints stub file for the QtDBus module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + + +class QDBusAbstractAdaptor(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject) -> None: ... + + def autoRelaySignals(self) -> bool: ... + def setAutoRelaySignals(self, enable: bool) -> None: ... + + +class QDBusAbstractInterface(QtCore.QObject): + + def __init__(self, service: str, path: str, interface: str, connection: 'QDBusConnection', parent: QtCore.QObject) -> None: ... + + def disconnectNotify(self, signal: QtCore.QMetaMethod) -> None: ... + def connectNotify(self, signal: QtCore.QMetaMethod) -> None: ... + def asyncCallWithArgumentList(self, method: str, args: typing.Iterable[typing.Any]) -> 'QDBusPendingCall': ... + def asyncCall(self, method: str, arg1: typing.Any = ..., arg2: typing.Any = ..., arg3: typing.Any = ..., arg4: typing.Any = ..., arg5: typing.Any = ..., arg6: typing.Any = ..., arg7: typing.Any = ..., arg8: typing.Any = ...) -> 'QDBusPendingCall': ... + @typing.overload + def callWithCallback(self, method: str, args: typing.Iterable[typing.Any], returnMethod: PYQT_SLOT, errorMethod: PYQT_SLOT) -> bool: ... + @typing.overload + def callWithCallback(self, method: str, args: typing.Iterable[typing.Any], slot: PYQT_SLOT) -> bool: ... + def callWithArgumentList(self, mode: 'QDBus.CallMode', method: str, args: typing.Iterable[typing.Any]) -> 'QDBusMessage': ... + @typing.overload + def call(self, method: str, arg1: typing.Any = ..., arg2: typing.Any = ..., arg3: typing.Any = ..., arg4: typing.Any = ..., arg5: typing.Any = ..., arg6: typing.Any = ..., arg7: typing.Any = ..., arg8: typing.Any = ...) -> 'QDBusMessage': ... + @typing.overload + def call(self, mode: 'QDBus.CallMode', method: str, arg1: typing.Any = ..., arg2: typing.Any = ..., arg3: typing.Any = ..., arg4: typing.Any = ..., arg5: typing.Any = ..., arg6: typing.Any = ..., arg7: typing.Any = ..., arg8: typing.Any = ...) -> 'QDBusMessage': ... + def timeout(self) -> int: ... + def setTimeout(self, timeout: int) -> None: ... + def lastError(self) -> 'QDBusError': ... + def interface(self) -> str: ... + def path(self) -> str: ... + def service(self) -> str: ... + def connection(self) -> 'QDBusConnection': ... + def isValid(self) -> bool: ... + + +class QDBusArgument(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QDBusArgument') -> None: ... + @typing.overload + def __init__(self, arg: typing.Any, id: int = ...) -> None: ... + + def swap(self, other: 'QDBusArgument') -> None: ... + def endMapEntry(self) -> None: ... + def beginMapEntry(self) -> None: ... + def endMap(self) -> None: ... + def beginMap(self, kid: int, vid: int) -> None: ... + def endArray(self) -> None: ... + def beginArray(self, id: int) -> None: ... + def endStructure(self) -> None: ... + def beginStructure(self) -> None: ... + def add(self, arg: typing.Any, id: int = ...) -> None: ... + + +class QDBus(sip.simplewrapper): + + class CallMode(int): ... + NoBlock = ... # type: 'QDBus.CallMode' + Block = ... # type: 'QDBus.CallMode' + BlockWithGui = ... # type: 'QDBus.CallMode' + AutoDetect = ... # type: 'QDBus.CallMode' + + +class QDBusConnection(sip.simplewrapper): + + class ConnectionCapability(int): ... + UnixFileDescriptorPassing = ... # type: 'QDBusConnection.ConnectionCapability' + + class UnregisterMode(int): ... + UnregisterNode = ... # type: 'QDBusConnection.UnregisterMode' + UnregisterTree = ... # type: 'QDBusConnection.UnregisterMode' + + class RegisterOption(int): ... + ExportAdaptors = ... # type: 'QDBusConnection.RegisterOption' + ExportScriptableSlots = ... # type: 'QDBusConnection.RegisterOption' + ExportScriptableSignals = ... # type: 'QDBusConnection.RegisterOption' + ExportScriptableProperties = ... # type: 'QDBusConnection.RegisterOption' + ExportScriptableInvokables = ... # type: 'QDBusConnection.RegisterOption' + ExportScriptableContents = ... # type: 'QDBusConnection.RegisterOption' + ExportNonScriptableSlots = ... # type: 'QDBusConnection.RegisterOption' + ExportNonScriptableSignals = ... # type: 'QDBusConnection.RegisterOption' + ExportNonScriptableProperties = ... # type: 'QDBusConnection.RegisterOption' + ExportNonScriptableInvokables = ... # type: 'QDBusConnection.RegisterOption' + ExportNonScriptableContents = ... # type: 'QDBusConnection.RegisterOption' + ExportAllSlots = ... # type: 'QDBusConnection.RegisterOption' + ExportAllSignals = ... # type: 'QDBusConnection.RegisterOption' + ExportAllProperties = ... # type: 'QDBusConnection.RegisterOption' + ExportAllInvokables = ... # type: 'QDBusConnection.RegisterOption' + ExportAllContents = ... # type: 'QDBusConnection.RegisterOption' + ExportAllSignal = ... # type: 'QDBusConnection.RegisterOption' + ExportChildObjects = ... # type: 'QDBusConnection.RegisterOption' + + class BusType(int): ... + SessionBus = ... # type: 'QDBusConnection.BusType' + SystemBus = ... # type: 'QDBusConnection.BusType' + ActivationBus = ... # type: 'QDBusConnection.BusType' + + class RegisterOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QDBusConnection.RegisterOptions', 'QDBusConnection.RegisterOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QDBusConnection.RegisterOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QDBusConnection.RegisterOptions': ... + def __int__(self) -> int: ... + + class ConnectionCapabilities(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QDBusConnection.ConnectionCapabilities', 'QDBusConnection.ConnectionCapability']) -> None: ... + @typing.overload + def __init__(self, a0: 'QDBusConnection.ConnectionCapabilities') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QDBusConnection.ConnectionCapabilities': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, name: str) -> None: ... + @typing.overload + def __init__(self, other: 'QDBusConnection') -> None: ... + + def swap(self, other: 'QDBusConnection') -> None: ... + @staticmethod + def sender() -> 'QDBusConnection': ... + @staticmethod + def systemBus() -> 'QDBusConnection': ... + @staticmethod + def sessionBus() -> 'QDBusConnection': ... + @staticmethod + def localMachineId() -> QtCore.QByteArray: ... + @staticmethod + def disconnectFromPeer(name: str) -> None: ... + @staticmethod + def disconnectFromBus(name: str) -> None: ... + @staticmethod + def connectToPeer(address: str, name: str) -> 'QDBusConnection': ... + @typing.overload + @staticmethod + def connectToBus(type: 'QDBusConnection.BusType', name: str) -> 'QDBusConnection': ... + @typing.overload + @staticmethod + def connectToBus(address: str, name: str) -> 'QDBusConnection': ... + def interface(self) -> 'QDBusConnectionInterface': ... + def unregisterService(self, serviceName: str) -> bool: ... + def registerService(self, serviceName: str) -> bool: ... + def objectRegisteredAt(self, path: str) -> QtCore.QObject: ... + def unregisterObject(self, path: str, mode: 'QDBusConnection.UnregisterMode' = ...) -> None: ... + @typing.overload + def registerObject(self, path: str, object: QtCore.QObject, options: typing.Union['QDBusConnection.RegisterOptions', 'QDBusConnection.RegisterOption'] = ...) -> bool: ... + @typing.overload + def registerObject(self, path: str, interface: str, object: QtCore.QObject, options: typing.Union['QDBusConnection.RegisterOptions', 'QDBusConnection.RegisterOption'] = ...) -> bool: ... + @typing.overload + def disconnect(self, service: str, path: str, interface: str, name: str, slot: PYQT_SLOT) -> bool: ... + @typing.overload + def disconnect(self, service: str, path: str, interface: str, name: str, signature: str, slot: PYQT_SLOT) -> bool: ... + @typing.overload + def disconnect(self, service: str, path: str, interface: str, name: str, argumentMatch: typing.Iterable[str], signature: str, slot: PYQT_SLOT) -> bool: ... + @typing.overload + def connect(self, service: str, path: str, interface: str, name: str, slot: PYQT_SLOT) -> bool: ... + @typing.overload + def connect(self, service: str, path: str, interface: str, name: str, signature: str, slot: PYQT_SLOT) -> bool: ... + @typing.overload + def connect(self, service: str, path: str, interface: str, name: str, argumentMatch: typing.Iterable[str], signature: str, slot: PYQT_SLOT) -> bool: ... + def asyncCall(self, message: 'QDBusMessage', timeout: int = ...) -> 'QDBusPendingCall': ... + def call(self, message: 'QDBusMessage', mode: QDBus.CallMode = ..., timeout: int = ...) -> 'QDBusMessage': ... + def callWithCallback(self, message: 'QDBusMessage', returnMethod: PYQT_SLOT, errorMethod: PYQT_SLOT, timeout: int = ...) -> bool: ... + def send(self, message: 'QDBusMessage') -> bool: ... + def connectionCapabilities(self) -> 'QDBusConnection.ConnectionCapabilities': ... + def name(self) -> str: ... + def lastError(self) -> 'QDBusError': ... + def baseService(self) -> str: ... + def isConnected(self) -> bool: ... + + +class QDBusConnectionInterface(QDBusAbstractInterface): + + class RegisterServiceReply(int): ... + ServiceNotRegistered = ... # type: 'QDBusConnectionInterface.RegisterServiceReply' + ServiceRegistered = ... # type: 'QDBusConnectionInterface.RegisterServiceReply' + ServiceQueued = ... # type: 'QDBusConnectionInterface.RegisterServiceReply' + + class ServiceReplacementOptions(int): ... + DontAllowReplacement = ... # type: 'QDBusConnectionInterface.ServiceReplacementOptions' + AllowReplacement = ... # type: 'QDBusConnectionInterface.ServiceReplacementOptions' + + class ServiceQueueOptions(int): ... + DontQueueService = ... # type: 'QDBusConnectionInterface.ServiceQueueOptions' + QueueService = ... # type: 'QDBusConnectionInterface.ServiceQueueOptions' + ReplaceExistingService = ... # type: 'QDBusConnectionInterface.ServiceQueueOptions' + + def disconnectNotify(self, a0: QtCore.QMetaMethod) -> None: ... + def connectNotify(self, a0: QtCore.QMetaMethod) -> None: ... + def callWithCallbackFailed(self, error: 'QDBusError', call: 'QDBusMessage') -> None: ... + def serviceOwnerChanged(self, name: str, oldOwner: str, newOwner: str) -> None: ... + def serviceUnregistered(self, service: str) -> None: ... + def serviceRegistered(self, service: str) -> None: ... + def startService(self, name: str) -> 'QDBusReply': ... + def serviceUid(self, serviceName: str) -> 'QDBusReply': ... + def servicePid(self, serviceName: str) -> 'QDBusReply': ... + def registerService(self, serviceName: str, qoption: 'QDBusConnectionInterface.ServiceQueueOptions' = ..., roption: 'QDBusConnectionInterface.ServiceReplacementOptions' = ...) -> 'QDBusReply': ... + def unregisterService(self, serviceName: str) -> 'QDBusReply': ... + def serviceOwner(self, name: str) -> 'QDBusReply': ... + def isServiceRegistered(self, serviceName: str) -> 'QDBusReply': ... + def registeredServiceNames(self) -> 'QDBusReply': ... + + +class QDBusError(sip.simplewrapper): + + class ErrorType(int): ... + NoError = ... # type: 'QDBusError.ErrorType' + Other = ... # type: 'QDBusError.ErrorType' + Failed = ... # type: 'QDBusError.ErrorType' + NoMemory = ... # type: 'QDBusError.ErrorType' + ServiceUnknown = ... # type: 'QDBusError.ErrorType' + NoReply = ... # type: 'QDBusError.ErrorType' + BadAddress = ... # type: 'QDBusError.ErrorType' + NotSupported = ... # type: 'QDBusError.ErrorType' + LimitsExceeded = ... # type: 'QDBusError.ErrorType' + AccessDenied = ... # type: 'QDBusError.ErrorType' + NoServer = ... # type: 'QDBusError.ErrorType' + Timeout = ... # type: 'QDBusError.ErrorType' + NoNetwork = ... # type: 'QDBusError.ErrorType' + AddressInUse = ... # type: 'QDBusError.ErrorType' + Disconnected = ... # type: 'QDBusError.ErrorType' + InvalidArgs = ... # type: 'QDBusError.ErrorType' + UnknownMethod = ... # type: 'QDBusError.ErrorType' + TimedOut = ... # type: 'QDBusError.ErrorType' + InvalidSignature = ... # type: 'QDBusError.ErrorType' + UnknownInterface = ... # type: 'QDBusError.ErrorType' + InternalError = ... # type: 'QDBusError.ErrorType' + UnknownObject = ... # type: 'QDBusError.ErrorType' + InvalidService = ... # type: 'QDBusError.ErrorType' + InvalidObjectPath = ... # type: 'QDBusError.ErrorType' + InvalidInterface = ... # type: 'QDBusError.ErrorType' + InvalidMember = ... # type: 'QDBusError.ErrorType' + UnknownProperty = ... # type: 'QDBusError.ErrorType' + PropertyReadOnly = ... # type: 'QDBusError.ErrorType' + + def __init__(self, other: 'QDBusError') -> None: ... + + def swap(self, other: 'QDBusError') -> None: ... + @staticmethod + def errorString(error: 'QDBusError.ErrorType') -> str: ... + def isValid(self) -> bool: ... + def message(self) -> str: ... + def name(self) -> str: ... + def type(self) -> 'QDBusError.ErrorType': ... + + +class QDBusObjectPath(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, objectPath: str) -> None: ... + @typing.overload + def __init__(self, a0: 'QDBusObjectPath') -> None: ... + + def swap(self, other: 'QDBusObjectPath') -> None: ... + def __hash__(self) -> int: ... + def setPath(self, objectPath: str) -> None: ... + def path(self) -> str: ... + + +class QDBusSignature(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, dBusSignature: str) -> None: ... + @typing.overload + def __init__(self, a0: 'QDBusSignature') -> None: ... + + def swap(self, other: 'QDBusSignature') -> None: ... + def __hash__(self) -> int: ... + def setSignature(self, dBusSignature: str) -> None: ... + def signature(self) -> str: ... + + +class QDBusVariant(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, dBusVariant: typing.Any) -> None: ... + @typing.overload + def __init__(self, a0: 'QDBusVariant') -> None: ... + + def swap(self, other: 'QDBusVariant') -> None: ... + def setVariant(self, dBusVariant: typing.Any) -> None: ... + def variant(self) -> typing.Any: ... + + +class QDBusInterface(QDBusAbstractInterface): + + def __init__(self, service: str, path: str, interface: str = ..., connection: QDBusConnection = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + +class QDBusMessage(sip.simplewrapper): + + class MessageType(int): ... + InvalidMessage = ... # type: 'QDBusMessage.MessageType' + MethodCallMessage = ... # type: 'QDBusMessage.MessageType' + ReplyMessage = ... # type: 'QDBusMessage.MessageType' + ErrorMessage = ... # type: 'QDBusMessage.MessageType' + SignalMessage = ... # type: 'QDBusMessage.MessageType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QDBusMessage') -> None: ... + + def isInteractiveAuthorizationAllowed(self) -> bool: ... + def setInteractiveAuthorizationAllowed(self, enable: bool) -> None: ... + @staticmethod + def createTargetedSignal(service: str, path: str, interface: str, name: str) -> 'QDBusMessage': ... + def swap(self, other: 'QDBusMessage') -> None: ... + def arguments(self) -> typing.List[typing.Any]: ... + def setArguments(self, arguments: typing.Iterable[typing.Any]) -> None: ... + def autoStartService(self) -> bool: ... + def setAutoStartService(self, enable: bool) -> None: ... + def isDelayedReply(self) -> bool: ... + def setDelayedReply(self, enable: bool) -> None: ... + def isReplyRequired(self) -> bool: ... + def signature(self) -> str: ... + def type(self) -> 'QDBusMessage.MessageType': ... + def errorMessage(self) -> str: ... + def errorName(self) -> str: ... + def member(self) -> str: ... + def interface(self) -> str: ... + def path(self) -> str: ... + def service(self) -> str: ... + @typing.overload + def createErrorReply(self, name: str, msg: str) -> 'QDBusMessage': ... + @typing.overload + def createErrorReply(self, error: QDBusError) -> 'QDBusMessage': ... + @typing.overload + def createErrorReply(self, type: QDBusError.ErrorType, msg: str) -> 'QDBusMessage': ... + @typing.overload + def createReply(self, arguments: typing.Iterable[typing.Any] = ...) -> 'QDBusMessage': ... + @typing.overload + def createReply(self, argument: typing.Any) -> 'QDBusMessage': ... + @typing.overload + @staticmethod + def createError(name: str, msg: str) -> 'QDBusMessage': ... + @typing.overload + @staticmethod + def createError(error: QDBusError) -> 'QDBusMessage': ... + @typing.overload + @staticmethod + def createError(type: QDBusError.ErrorType, msg: str) -> 'QDBusMessage': ... + @staticmethod + def createMethodCall(service: str, path: str, interface: str, method: str) -> 'QDBusMessage': ... + @staticmethod + def createSignal(path: str, interface: str, name: str) -> 'QDBusMessage': ... + + +class QDBusPendingCall(sip.simplewrapper): + + def __init__(self, other: 'QDBusPendingCall') -> None: ... + + def swap(self, other: 'QDBusPendingCall') -> None: ... + @staticmethod + def fromCompletedCall(message: QDBusMessage) -> 'QDBusPendingCall': ... + @staticmethod + def fromError(error: QDBusError) -> 'QDBusPendingCall': ... + + +class QDBusPendingCallWatcher(QtCore.QObject, QDBusPendingCall): + + def __init__(self, call: QDBusPendingCall, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def finished(self, watcher: typing.Optional['QDBusPendingCallWatcher'] = ...) -> None: ... + def waitForFinished(self) -> None: ... + def isFinished(self) -> bool: ... + + +class QDBusServiceWatcher(QtCore.QObject): + + class WatchModeFlag(int): ... + WatchForRegistration = ... # type: 'QDBusServiceWatcher.WatchModeFlag' + WatchForUnregistration = ... # type: 'QDBusServiceWatcher.WatchModeFlag' + WatchForOwnerChange = ... # type: 'QDBusServiceWatcher.WatchModeFlag' + + class WatchMode(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QDBusServiceWatcher.WatchMode', 'QDBusServiceWatcher.WatchModeFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QDBusServiceWatcher.WatchMode') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QDBusServiceWatcher.WatchMode': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, service: str, connection: QDBusConnection, watchMode: typing.Union['QDBusServiceWatcher.WatchMode', 'QDBusServiceWatcher.WatchModeFlag'] = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def serviceOwnerChanged(self, service: str, oldOwner: str, newOwner: str) -> None: ... + def serviceUnregistered(self, service: str) -> None: ... + def serviceRegistered(self, service: str) -> None: ... + def setConnection(self, connection: QDBusConnection) -> None: ... + def connection(self) -> QDBusConnection: ... + def setWatchMode(self, mode: typing.Union['QDBusServiceWatcher.WatchMode', 'QDBusServiceWatcher.WatchModeFlag']) -> None: ... + def watchMode(self) -> 'QDBusServiceWatcher.WatchMode': ... + def removeWatchedService(self, service: str) -> bool: ... + def addWatchedService(self, newService: str) -> None: ... + def setWatchedServices(self, services: typing.Iterable[str]) -> None: ... + def watchedServices(self) -> typing.List[str]: ... + + +class QDBusUnixFileDescriptor(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, fileDescriptor: int) -> None: ... + @typing.overload + def __init__(self, other: 'QDBusUnixFileDescriptor') -> None: ... + + def swap(self, other: 'QDBusUnixFileDescriptor') -> None: ... + @staticmethod + def isSupported() -> bool: ... + def setFileDescriptor(self, fileDescriptor: int) -> None: ... + def fileDescriptor(self) -> int: ... + def isValid(self) -> bool: ... + + +class QDBusReply(sip.simplewrapper): + + @typing.overload + def __init__(self, reply: QDBusMessage) -> None: ... + @typing.overload + def __init__(self, call: QDBusPendingCall) -> None: ... + @typing.overload + def __init__(self, error: QDBusError) -> None: ... + @typing.overload + def __init__(self, other: 'QDBusReply') -> None: ... + + def value(self, type: typing.Any = ...) -> typing.Any: ... + def isValid(self) -> bool: ... + def error(self) -> QDBusError: ... + + +class QDBusPendingReply(QDBusPendingCall): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QDBusPendingReply') -> None: ... + @typing.overload + def __init__(self, call: QDBusPendingCall) -> None: ... + @typing.overload + def __init__(self, reply: QDBusMessage) -> None: ... + + def value(self, type: typing.Any = ...) -> typing.Any: ... + def waitForFinished(self) -> None: ... + def reply(self) -> QDBusMessage: ... + def isValid(self) -> bool: ... + def isFinished(self) -> bool: ... + def isError(self) -> bool: ... + def error(self) -> QDBusError: ... + def argumentAt(self, index: int) -> typing.Any: ... diff --git a/tools/stubs/PyQt5/QtDesigner.pyi b/tools/stubs/PyQt5/QtDesigner.pyi new file mode 100644 index 000000000..c98c2baf5 --- /dev/null +++ b/tools/stubs/PyQt5/QtDesigner.pyi @@ -0,0 +1,481 @@ +# The PEP 484 type hints stub file for the QtDesigner module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtWidgets +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + +# Convenient aliases for complicated OpenGL types. +PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QDesignerActionEditorInterface(QtWidgets.QWidget): + + def __init__(self, parent: QtWidgets.QWidget, flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def setFormWindow(self, formWindow: 'QDesignerFormWindowInterface') -> None: ... + def unmanageAction(self, action: QtWidgets.QAction) -> None: ... + def manageAction(self, action: QtWidgets.QAction) -> None: ... + def core(self) -> 'QDesignerFormEditorInterface': ... + + +class QAbstractFormBuilder(sip.simplewrapper): + + def __init__(self) -> None: ... + + def errorString(self) -> str: ... + def workingDirectory(self) -> QtCore.QDir: ... + def setWorkingDirectory(self, directory: QtCore.QDir) -> None: ... + def save(self, dev: QtCore.QIODevice, widget: QtWidgets.QWidget) -> None: ... + def load(self, device: QtCore.QIODevice, parent: typing.Optional[QtWidgets.QWidget] = ...) -> QtWidgets.QWidget: ... + + +class QDesignerFormEditorInterface(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setActionEditor(self, actionEditor: QDesignerActionEditorInterface) -> None: ... + def setObjectInspector(self, objectInspector: 'QDesignerObjectInspectorInterface') -> None: ... + def setPropertyEditor(self, propertyEditor: 'QDesignerPropertyEditorInterface') -> None: ... + def setWidgetBox(self, widgetBox: 'QDesignerWidgetBoxInterface') -> None: ... + def actionEditor(self) -> QDesignerActionEditorInterface: ... + def formWindowManager(self) -> 'QDesignerFormWindowManagerInterface': ... + def objectInspector(self) -> 'QDesignerObjectInspectorInterface': ... + def propertyEditor(self) -> 'QDesignerPropertyEditorInterface': ... + def widgetBox(self) -> 'QDesignerWidgetBoxInterface': ... + def topLevel(self) -> QtWidgets.QWidget: ... + def extensionManager(self) -> 'QExtensionManager': ... + + +class QDesignerFormWindowInterface(QtWidgets.QWidget): + + class FeatureFlag(int): ... + EditFeature = ... # type: 'QDesignerFormWindowInterface.FeatureFlag' + GridFeature = ... # type: 'QDesignerFormWindowInterface.FeatureFlag' + TabOrderFeature = ... # type: 'QDesignerFormWindowInterface.FeatureFlag' + DefaultFeature = ... # type: 'QDesignerFormWindowInterface.FeatureFlag' + + class Feature(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QDesignerFormWindowInterface.Feature', 'QDesignerFormWindowInterface.FeatureFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesignerFormWindowInterface.Feature') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QDesignerFormWindowInterface.Feature': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def activateResourceFilePaths(self, paths: typing.Iterable[str]) -> typing.Tuple[int, str]: ... + def formContainer(self) -> QtWidgets.QWidget: ... + def activeResourceFilePaths(self) -> typing.List[str]: ... + def checkContents(self) -> typing.List[str]: ... + def objectRemoved(self, o: QtCore.QObject) -> None: ... + def widgetRemoved(self, w: QtWidgets.QWidget) -> None: ... + def changed(self) -> None: ... + def activated(self, widget: QtWidgets.QWidget) -> None: ... + def aboutToUnmanageWidget(self, widget: QtWidgets.QWidget) -> None: ... + def widgetUnmanaged(self, widget: QtWidgets.QWidget) -> None: ... + def widgetManaged(self, widget: QtWidgets.QWidget) -> None: ... + def resourceFilesChanged(self) -> None: ... + def geometryChanged(self) -> None: ... + def selectionChanged(self) -> None: ... + def featureChanged(self, f: typing.Union['QDesignerFormWindowInterface.Feature', 'QDesignerFormWindowInterface.FeatureFlag']) -> None: ... + def fileNameChanged(self, fileName: str) -> None: ... + def mainContainerChanged(self, mainContainer: QtWidgets.QWidget) -> None: ... + def setFileName(self, fileName: str) -> None: ... + def setGrid(self, grid: QtCore.QPoint) -> None: ... + def selectWidget(self, widget: QtWidgets.QWidget, select: bool = ...) -> None: ... + def clearSelection(self, update: bool = ...) -> None: ... + def setDirty(self, dirty: bool) -> None: ... + def setFeatures(self, f: typing.Union['QDesignerFormWindowInterface.Feature', 'QDesignerFormWindowInterface.FeatureFlag']) -> None: ... + def unmanageWidget(self, widget: QtWidgets.QWidget) -> None: ... + def manageWidget(self, widget: QtWidgets.QWidget) -> None: ... + def removeResourceFile(self, path: str) -> None: ... + def addResourceFile(self, path: str) -> None: ... + def resourceFiles(self) -> typing.List[str]: ... + def emitSelectionChanged(self) -> None: ... + @typing.overload + @staticmethod + def findFormWindow(w: QtWidgets.QWidget) -> 'QDesignerFormWindowInterface': ... + @typing.overload + @staticmethod + def findFormWindow(obj: QtCore.QObject) -> 'QDesignerFormWindowInterface': ... + def isDirty(self) -> bool: ... + def isManaged(self, widget: QtWidgets.QWidget) -> bool: ... + def setMainContainer(self, mainContainer: QtWidgets.QWidget) -> None: ... + def mainContainer(self) -> QtWidgets.QWidget: ... + def grid(self) -> QtCore.QPoint: ... + def cursor(self) -> 'QDesignerFormWindowCursorInterface': ... + def core(self) -> QDesignerFormEditorInterface: ... + def setIncludeHints(self, includeHints: typing.Iterable[str]) -> None: ... + def includeHints(self) -> typing.List[str]: ... + def setExportMacro(self, exportMacro: str) -> None: ... + def exportMacro(self) -> str: ... + def setPixmapFunction(self, pixmapFunction: str) -> None: ... + def pixmapFunction(self) -> str: ... + def setLayoutFunction(self, margin: str, spacing: str) -> None: ... + def layoutFunction(self) -> typing.Tuple[str, str]: ... + def setLayoutDefault(self, margin: int, spacing: int) -> None: ... + def layoutDefault(self) -> typing.Tuple[int, int]: ... + def setComment(self, comment: str) -> None: ... + def comment(self) -> str: ... + def setAuthor(self, author: str) -> None: ... + def author(self) -> str: ... + def hasFeature(self, f: typing.Union['QDesignerFormWindowInterface.Feature', 'QDesignerFormWindowInterface.FeatureFlag']) -> bool: ... + def features(self) -> 'QDesignerFormWindowInterface.Feature': ... + @typing.overload + def setContents(self, dev: QtCore.QIODevice, errorMessage: typing.Optional[str] = ...) -> bool: ... + @typing.overload + def setContents(self, contents: str) -> bool: ... + def contents(self) -> str: ... + def absoluteDir(self) -> QtCore.QDir: ... + def fileName(self) -> str: ... + + +class QDesignerFormWindowCursorInterface(sip.simplewrapper): + + class MoveMode(int): ... + MoveAnchor = ... # type: 'QDesignerFormWindowCursorInterface.MoveMode' + KeepAnchor = ... # type: 'QDesignerFormWindowCursorInterface.MoveMode' + + class MoveOperation(int): ... + NoMove = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation' + Start = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation' + End = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation' + Next = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation' + Prev = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation' + Left = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation' + Right = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation' + Up = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation' + Down = ... # type: 'QDesignerFormWindowCursorInterface.MoveOperation' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesignerFormWindowCursorInterface') -> None: ... + + def isWidgetSelected(self, widget: QtWidgets.QWidget) -> bool: ... + def resetWidgetProperty(self, widget: QtWidgets.QWidget, name: str) -> None: ... + def setWidgetProperty(self, widget: QtWidgets.QWidget, name: str, value: typing.Any) -> None: ... + def setProperty(self, name: str, value: typing.Any) -> None: ... + def selectedWidget(self, index: int) -> QtWidgets.QWidget: ... + def selectedWidgetCount(self) -> int: ... + def hasSelection(self) -> bool: ... + def widget(self, index: int) -> QtWidgets.QWidget: ... + def widgetCount(self) -> int: ... + def current(self) -> QtWidgets.QWidget: ... + def setPosition(self, pos: int, mode: 'QDesignerFormWindowCursorInterface.MoveMode' = ...) -> None: ... + def position(self) -> int: ... + def movePosition(self, op: 'QDesignerFormWindowCursorInterface.MoveOperation', mode: 'QDesignerFormWindowCursorInterface.MoveMode' = ...) -> bool: ... + def formWindow(self) -> QDesignerFormWindowInterface: ... + + +class QDesignerFormWindowManagerInterface(QtCore.QObject): + + class ActionGroup(int): ... + StyledPreviewActionGroup = ... # type: 'QDesignerFormWindowManagerInterface.ActionGroup' + + class Action(int): ... + CutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + CopyAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + PasteAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + DeleteAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + SelectAllAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + LowerAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + RaiseAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + UndoAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + RedoAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + HorizontalLayoutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + VerticalLayoutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + SplitHorizontalAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + SplitVerticalAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + GridLayoutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + FormLayoutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + BreakLayoutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + AdjustSizeAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + SimplifyLayoutAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + DefaultPreviewAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + FormWindowSettingsDialogAction = ... # type: 'QDesignerFormWindowManagerInterface.Action' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def showPluginDialog(self) -> None: ... + def closeAllPreviews(self) -> None: ... + def showPreview(self) -> None: ... + def actionGroup(self, actionGroup: 'QDesignerFormWindowManagerInterface.ActionGroup') -> QtWidgets.QActionGroup: ... + def action(self, action: 'QDesignerFormWindowManagerInterface.Action') -> QtWidgets.QAction: ... + def setActiveFormWindow(self, formWindow: QDesignerFormWindowInterface) -> None: ... + def removeFormWindow(self, formWindow: QDesignerFormWindowInterface) -> None: ... + def addFormWindow(self, formWindow: QDesignerFormWindowInterface) -> None: ... + def formWindowSettingsChanged(self, fw: QDesignerFormWindowInterface) -> None: ... + def activeFormWindowChanged(self, formWindow: QDesignerFormWindowInterface) -> None: ... + def formWindowRemoved(self, formWindow: QDesignerFormWindowInterface) -> None: ... + def formWindowAdded(self, formWindow: QDesignerFormWindowInterface) -> None: ... + def core(self) -> QDesignerFormEditorInterface: ... + def createFormWindow(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> QDesignerFormWindowInterface: ... + def formWindow(self, index: int) -> QDesignerFormWindowInterface: ... + def formWindowCount(self) -> int: ... + def activeFormWindow(self) -> QDesignerFormWindowInterface: ... + def actionSimplifyLayout(self) -> QtWidgets.QAction: ... + def actionFormLayout(self) -> QtWidgets.QAction: ... + + +class QDesignerObjectInspectorInterface(QtWidgets.QWidget): + + def __init__(self, parent: QtWidgets.QWidget, flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def setFormWindow(self, formWindow: QDesignerFormWindowInterface) -> None: ... + def core(self) -> QDesignerFormEditorInterface: ... + + +class QDesignerPropertyEditorInterface(QtWidgets.QWidget): + + def __init__(self, parent: QtWidgets.QWidget, flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def setReadOnly(self, readOnly: bool) -> None: ... + def setPropertyValue(self, name: str, value: typing.Any, changed: bool = ...) -> None: ... + def setObject(self, object: QtCore.QObject) -> None: ... + def propertyChanged(self, name: str, value: typing.Any) -> None: ... + def currentPropertyName(self) -> str: ... + def object(self) -> QtCore.QObject: ... + def isReadOnly(self) -> bool: ... + def core(self) -> QDesignerFormEditorInterface: ... + + +class QDesignerWidgetBoxInterface(QtWidgets.QWidget): + + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def save(self) -> bool: ... + def load(self) -> bool: ... + def fileName(self) -> str: ... + def setFileName(self, file_name: str) -> None: ... + + +class QDesignerContainerExtension(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesignerContainerExtension') -> None: ... + + def canRemove(self, index: int) -> bool: ... + def canAddWidget(self) -> bool: ... + def remove(self, index: int) -> None: ... + def insertWidget(self, index: int, widget: QtWidgets.QWidget) -> None: ... + def addWidget(self, widget: QtWidgets.QWidget) -> None: ... + def setCurrentIndex(self, index: int) -> None: ... + def currentIndex(self) -> int: ... + def widget(self, index: int) -> QtWidgets.QWidget: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + + +class QDesignerCustomWidgetInterface(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesignerCustomWidgetInterface') -> None: ... + + def codeTemplate(self) -> str: ... + def domXml(self) -> str: ... + def initialize(self, core: QDesignerFormEditorInterface) -> None: ... + def isInitialized(self) -> bool: ... + def createWidget(self, parent: QtWidgets.QWidget) -> QtWidgets.QWidget: ... + def isContainer(self) -> bool: ... + def icon(self) -> QtGui.QIcon: ... + def includeFile(self) -> str: ... + def whatsThis(self) -> str: ... + def toolTip(self) -> str: ... + def group(self) -> str: ... + def name(self) -> str: ... + + +class QDesignerCustomWidgetCollectionInterface(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesignerCustomWidgetCollectionInterface') -> None: ... + + def customWidgets(self) -> typing.List[QDesignerCustomWidgetInterface]: ... + + +class QAbstractExtensionFactory(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstractExtensionFactory') -> None: ... + + def extension(self, object: QtCore.QObject, iid: str) -> QtCore.QObject: ... + + +class QExtensionFactory(QtCore.QObject, QAbstractExtensionFactory): + + def __init__(self, parent: typing.Optional['QExtensionManager'] = ...) -> None: ... + + def createExtension(self, object: QtCore.QObject, iid: str, parent: QtCore.QObject) -> QtCore.QObject: ... + def extensionManager(self) -> 'QExtensionManager': ... + def extension(self, object: QtCore.QObject, iid: str) -> QtCore.QObject: ... + + +class QAbstractExtensionManager(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstractExtensionManager') -> None: ... + + def extension(self, object: QtCore.QObject, iid: str) -> QtCore.QObject: ... + def unregisterExtensions(self, factory: QAbstractExtensionFactory, iid: str) -> None: ... + def registerExtensions(self, factory: QAbstractExtensionFactory, iid: str) -> None: ... + + +class QFormBuilder(QAbstractFormBuilder): + + def __init__(self) -> None: ... + + def customWidgets(self) -> typing.List[QDesignerCustomWidgetInterface]: ... + def setPluginPath(self, pluginPaths: typing.Iterable[str]) -> None: ... + def addPluginPath(self, pluginPath: str) -> None: ... + def clearPluginPaths(self) -> None: ... + def pluginPaths(self) -> typing.List[str]: ... + + +class QDesignerMemberSheetExtension(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesignerMemberSheetExtension') -> None: ... + + def parameterNames(self, index: int) -> typing.List[QtCore.QByteArray]: ... + def parameterTypes(self, index: int) -> typing.List[QtCore.QByteArray]: ... + def signature(self, index: int) -> str: ... + def declaredInClass(self, index: int) -> str: ... + def inheritedFromWidget(self, index: int) -> bool: ... + def isSlot(self, index: int) -> bool: ... + def isSignal(self, index: int) -> bool: ... + def setVisible(self, index: int, b: bool) -> None: ... + def isVisible(self, index: int) -> bool: ... + def setMemberGroup(self, index: int, group: str) -> None: ... + def memberGroup(self, index: int) -> str: ... + def memberName(self, index: int) -> str: ... + def indexOf(self, name: str) -> int: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + + +class QDesignerPropertySheetExtension(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesignerPropertySheetExtension') -> None: ... + + def isEnabled(self, index: int) -> bool: ... + def setChanged(self, index: int, changed: bool) -> None: ... + def isChanged(self, index: int) -> bool: ... + def setProperty(self, index: int, value: typing.Any) -> None: ... + def property(self, index: int) -> typing.Any: ... + def setAttribute(self, index: int, b: bool) -> None: ... + def isAttribute(self, index: int) -> bool: ... + def setVisible(self, index: int, b: bool) -> None: ... + def isVisible(self, index: int) -> bool: ... + def reset(self, index: int) -> bool: ... + def hasReset(self, index: int) -> bool: ... + def setPropertyGroup(self, index: int, group: str) -> None: ... + def propertyGroup(self, index: int) -> str: ... + def propertyName(self, index: int) -> str: ... + def indexOf(self, name: str) -> int: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + + +class QExtensionManager(QtCore.QObject, QAbstractExtensionManager): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def extension(self, object: QtCore.QObject, iid: str) -> QtCore.QObject: ... + def unregisterExtensions(self, factory: QAbstractExtensionFactory, iid: str = ...) -> None: ... + def registerExtensions(self, factory: QAbstractExtensionFactory, iid: str = ...) -> None: ... + + +class QDesignerTaskMenuExtension(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesignerTaskMenuExtension') -> None: ... + + def preferredEditAction(self) -> QtWidgets.QAction: ... + def taskActions(self) -> typing.List[QtWidgets.QAction]: ... + + +class QPyDesignerContainerExtension(QtCore.QObject, QDesignerContainerExtension): + + def __init__(self, parent: QtCore.QObject) -> None: ... + + +class QPyDesignerCustomWidgetCollectionPlugin(QtCore.QObject, QDesignerCustomWidgetCollectionInterface): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + +class QPyDesignerCustomWidgetPlugin(QtCore.QObject, QDesignerCustomWidgetInterface): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + +class QPyDesignerTaskMenuExtension(QtCore.QObject, QDesignerTaskMenuExtension): + + def __init__(self, parent: QtCore.QObject) -> None: ... + + +class QPyDesignerPropertySheetExtension(QtCore.QObject, QDesignerPropertySheetExtension): + + def __init__(self, parent: QtCore.QObject) -> None: ... + + +class QPyDesignerMemberSheetExtension(QtCore.QObject, QDesignerMemberSheetExtension): + + def __init__(self, parent: QtCore.QObject) -> None: ... diff --git a/tools/stubs/PyQt5/QtGui.pyi b/tools/stubs/PyQt5/QtGui.pyi new file mode 100644 index 000000000..e8b881144 --- /dev/null +++ b/tools/stubs/PyQt5/QtGui.pyi @@ -0,0 +1,8482 @@ +# The PEP 484 type hints stub file for the QtGui module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + +# Convenient aliases for complicated OpenGL types. +PYQT_SHADER_ATTRIBUTE_ARRAY = typing.Union[typing.Sequence['QVector2D'], + typing.Sequence['QVector3D'], typing.Sequence['QVector4D'], + typing.Sequence[typing.Sequence[float]]] +PYQT_SHADER_UNIFORM_VALUE_ARRAY = typing.Union[typing.Sequence['QVector2D'], + typing.Sequence['QVector3D'], typing.Sequence['QVector4D'], + typing.Sequence['QMatrix2x2'], typing.Sequence['QMatrix2x3'], + typing.Sequence['QMatrix2x4'], typing.Sequence['QMatrix3x2'], + typing.Sequence['QMatrix3x3'], typing.Sequence['QMatrix3x4'], + typing.Sequence['QMatrix4x2'], typing.Sequence['QMatrix4x3'], + typing.Sequence['QMatrix4x4'], typing.Sequence[typing.Sequence[float]]] + + +class QAbstractTextDocumentLayout(QtCore.QObject): + + class Selection(sip.simplewrapper): + + cursor = ... # type: 'QTextCursor' + format = ... # type: 'QTextCharFormat' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstractTextDocumentLayout.Selection') -> None: ... + + class PaintContext(sip.simplewrapper): + + clip = ... # type: QtCore.QRectF + cursorPosition = ... # type: int + palette = ... # type: 'QPalette' + selections = ... # type: typing.Iterable['QAbstractTextDocumentLayout.Selection'] + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstractTextDocumentLayout.PaintContext') -> None: ... + + def __init__(self, doc: 'QTextDocument') -> None: ... + + def formatAt(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> 'QTextFormat': ... + def imageAt(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> str: ... + def format(self, pos: int) -> 'QTextCharFormat': ... + def drawInlineObject(self, painter: 'QPainter', rect: QtCore.QRectF, object: 'QTextInlineObject', posInDocument: int, format: 'QTextFormat') -> None: ... + def positionInlineObject(self, item: 'QTextInlineObject', posInDocument: int, format: 'QTextFormat') -> None: ... + def resizeInlineObject(self, item: 'QTextInlineObject', posInDocument: int, format: 'QTextFormat') -> None: ... + def documentChanged(self, from_: int, charsRemoved: int, charsAdded: int) -> None: ... + def updateBlock(self, block: 'QTextBlock') -> None: ... + def pageCountChanged(self, newPages: int) -> None: ... + def documentSizeChanged(self, newSize: QtCore.QSizeF) -> None: ... + def update(self, rect: QtCore.QRectF = ...) -> None: ... + def handlerForObject(self, objectType: int) -> 'QTextObjectInterface': ... + def unregisterHandler(self, objectType: int, component: typing.Optional[QtCore.QObject] = ...) -> None: ... + def registerHandler(self, objectType: int, component: QtCore.QObject) -> None: ... + def document(self) -> 'QTextDocument': ... + def paintDevice(self) -> 'QPaintDevice': ... + def setPaintDevice(self, device: 'QPaintDevice') -> None: ... + def blockBoundingRect(self, block: 'QTextBlock') -> QtCore.QRectF: ... + def frameBoundingRect(self, frame: 'QTextFrame') -> QtCore.QRectF: ... + def documentSize(self) -> QtCore.QSizeF: ... + def pageCount(self) -> int: ... + def anchorAt(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> str: ... + def hitTest(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], accuracy: QtCore.Qt.HitTestAccuracy) -> int: ... + def draw(self, painter: 'QPainter', context: 'QAbstractTextDocumentLayout.PaintContext') -> None: ... + + +class QTextObjectInterface(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextObjectInterface') -> None: ... + + def drawObject(self, painter: 'QPainter', rect: QtCore.QRectF, doc: 'QTextDocument', posInDocument: int, format: 'QTextFormat') -> None: ... + def intrinsicSize(self, doc: 'QTextDocument', posInDocument: int, format: 'QTextFormat') -> QtCore.QSizeF: ... + + +class QBackingStore(sip.simplewrapper): + + def __init__(self, window: 'QWindow') -> None: ... + + def hasStaticContents(self) -> bool: ... + def staticContents(self) -> 'QRegion': ... + def setStaticContents(self, region: 'QRegion') -> None: ... + def endPaint(self) -> None: ... + def beginPaint(self, a0: 'QRegion') -> None: ... + def scroll(self, area: 'QRegion', dx: int, dy: int) -> bool: ... + def size(self) -> QtCore.QSize: ... + def resize(self, size: QtCore.QSize) -> None: ... + def flush(self, region: 'QRegion', window: typing.Optional['QWindow'] = ..., offset: QtCore.QPoint = ...) -> None: ... + def paintDevice(self) -> 'QPaintDevice': ... + def window(self) -> 'QWindow': ... + + +class QPaintDevice(sip.simplewrapper): + + class PaintDeviceMetric(int): ... + PdmWidth = ... # type: 'QPaintDevice.PaintDeviceMetric' + PdmHeight = ... # type: 'QPaintDevice.PaintDeviceMetric' + PdmWidthMM = ... # type: 'QPaintDevice.PaintDeviceMetric' + PdmHeightMM = ... # type: 'QPaintDevice.PaintDeviceMetric' + PdmNumColors = ... # type: 'QPaintDevice.PaintDeviceMetric' + PdmDepth = ... # type: 'QPaintDevice.PaintDeviceMetric' + PdmDpiX = ... # type: 'QPaintDevice.PaintDeviceMetric' + PdmDpiY = ... # type: 'QPaintDevice.PaintDeviceMetric' + PdmPhysicalDpiX = ... # type: 'QPaintDevice.PaintDeviceMetric' + PdmPhysicalDpiY = ... # type: 'QPaintDevice.PaintDeviceMetric' + PdmDevicePixelRatio = ... # type: 'QPaintDevice.PaintDeviceMetric' + PdmDevicePixelRatioScaled = ... # type: 'QPaintDevice.PaintDeviceMetric' + + def __init__(self) -> None: ... + + @staticmethod + def devicePixelRatioFScale() -> float: ... + def devicePixelRatioF(self) -> float: ... + def metric(self, metric: 'QPaintDevice.PaintDeviceMetric') -> int: ... + def devicePixelRatio(self) -> int: ... + def colorCount(self) -> int: ... + def paintingActive(self) -> bool: ... + def depth(self) -> int: ... + def physicalDpiY(self) -> int: ... + def physicalDpiX(self) -> int: ... + def logicalDpiY(self) -> int: ... + def logicalDpiX(self) -> int: ... + def heightMM(self) -> int: ... + def widthMM(self) -> int: ... + def height(self) -> int: ... + def width(self) -> int: ... + def paintEngine(self) -> 'QPaintEngine': ... + + +class QPixmap(QPaintDevice): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, w: int, h: int) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QSize) -> None: ... + @typing.overload + def __init__(self, fileName: str, format: typing.Optional[str] = ..., flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> None: ... + @typing.overload + def __init__(self, xpm: typing.List[str]) -> None: ... + @typing.overload + def __init__(self, a0: 'QPixmap') -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + def setDevicePixelRatio(self, scaleFactor: float) -> None: ... + def devicePixelRatio(self) -> float: ... + def swap(self, other: 'QPixmap') -> None: ... + @typing.overload + def scroll(self, dx: int, dy: int, rect: QtCore.QRect) -> 'QRegion': ... + @typing.overload + def scroll(self, dx: int, dy: int, x: int, y: int, width: int, height: int) -> 'QRegion': ... + def cacheKey(self) -> int: ... + @staticmethod + def trueMatrix(m: 'QTransform', w: int, h: int) -> 'QTransform': ... + def transformed(self, transform: 'QTransform', mode: QtCore.Qt.TransformationMode = ...) -> 'QPixmap': ... + def metric(self, a0: QPaintDevice.PaintDeviceMetric) -> int: ... + def paintEngine(self) -> 'QPaintEngine': ... + def isQBitmap(self) -> bool: ... + def detach(self) -> None: ... + @typing.overload + def copy(self, rect: QtCore.QRect = ...) -> 'QPixmap': ... + @typing.overload + def copy(self, ax: int, ay: int, awidth: int, aheight: int) -> 'QPixmap': ... + @typing.overload + def save(self, fileName: str, format: typing.Optional[str] = ..., quality: int = ...) -> bool: ... + @typing.overload + def save(self, device: QtCore.QIODevice, format: typing.Optional[str] = ..., quality: int = ...) -> bool: ... + @typing.overload + def loadFromData(self, buf: bytes, format: typing.Optional[str] = ..., flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> bool: ... + @typing.overload + def loadFromData(self, buf: typing.Union[QtCore.QByteArray, bytes, bytearray], format: typing.Optional[str] = ..., flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> bool: ... + def load(self, fileName: str, format: typing.Optional[str] = ..., flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> bool: ... + def convertFromImage(self, img: 'QImage', flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> bool: ... + @staticmethod + def fromImageReader(imageReader: 'QImageReader', flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> 'QPixmap': ... + @staticmethod + def fromImage(image: 'QImage', flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> 'QPixmap': ... + def toImage(self) -> 'QImage': ... + def scaledToHeight(self, height: int, mode: QtCore.Qt.TransformationMode = ...) -> 'QPixmap': ... + def scaledToWidth(self, width: int, mode: QtCore.Qt.TransformationMode = ...) -> 'QPixmap': ... + @typing.overload + def scaled(self, width: int, height: int, aspectRatioMode: QtCore.Qt.AspectRatioMode = ..., transformMode: QtCore.Qt.TransformationMode = ...) -> 'QPixmap': ... + @typing.overload + def scaled(self, size: QtCore.QSize, aspectRatioMode: QtCore.Qt.AspectRatioMode = ..., transformMode: QtCore.Qt.TransformationMode = ...) -> 'QPixmap': ... + def createMaskFromColor(self, maskColor: typing.Union['QColor', QtCore.Qt.GlobalColor, 'QGradient'], mode: QtCore.Qt.MaskMode = ...) -> 'QBitmap': ... + def createHeuristicMask(self, clipTight: bool = ...) -> 'QBitmap': ... + def hasAlphaChannel(self) -> bool: ... + def hasAlpha(self) -> bool: ... + def setMask(self, a0: 'QBitmap') -> None: ... + def mask(self) -> 'QBitmap': ... + def fill(self, color: typing.Union['QColor', QtCore.Qt.GlobalColor, 'QGradient'] = ...) -> None: ... + @staticmethod + def defaultDepth() -> int: ... + def depth(self) -> int: ... + def rect(self) -> QtCore.QRect: ... + def size(self) -> QtCore.QSize: ... + def height(self) -> int: ... + def width(self) -> int: ... + def devType(self) -> int: ... + def isNull(self) -> bool: ... + + +class QBitmap(QPixmap): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QBitmap') -> None: ... + @typing.overload + def __init__(self, a0: QPixmap) -> None: ... + @typing.overload + def __init__(self, w: int, h: int) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QSize) -> None: ... + @typing.overload + def __init__(self, fileName: str, format: typing.Optional[str] = ...) -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + def swap(self, other: 'QBitmap') -> None: ... + def transformed(self, matrix: 'QTransform') -> 'QBitmap': ... + @staticmethod + def fromData(size: QtCore.QSize, bits: bytes, format: 'QImage.Format' = ...) -> 'QBitmap': ... + @staticmethod + def fromImage(image: 'QImage', flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> 'QBitmap': ... + def clear(self) -> None: ... + + +class QColor(sip.simplewrapper): + + class NameFormat(int): ... + HexRgb = ... # type: 'QColor.NameFormat' + HexArgb = ... # type: 'QColor.NameFormat' + + class Spec(int): ... + Invalid = ... # type: 'QColor.Spec' + Rgb = ... # type: 'QColor.Spec' + Hsv = ... # type: 'QColor.Spec' + Cmyk = ... # type: 'QColor.Spec' + Hsl = ... # type: 'QColor.Spec' + + @typing.overload + def __init__(self, color: QtCore.Qt.GlobalColor) -> None: ... + @typing.overload + def __init__(self, rgb: int) -> None: ... + @typing.overload + def __init__(self, rgba64: 'QRgba64') -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, r: int, g: int, b: int, alpha: int = ...) -> None: ... + @typing.overload + def __init__(self, aname: str) -> None: ... + @typing.overload + def __init__(self, acolor: typing.Union['QColor', QtCore.Qt.GlobalColor, 'QGradient']) -> None: ... + + @typing.overload + @staticmethod + def fromRgba64(r: int, g: int, b: int, alpha: int = ...) -> 'QColor': ... + @typing.overload + @staticmethod + def fromRgba64(rgba: 'QRgba64') -> 'QColor': ... + def setRgba64(self, rgba: 'QRgba64') -> None: ... + def rgba64(self) -> 'QRgba64': ... + @staticmethod + def isValidColor(name: str) -> bool: ... + @staticmethod + def fromHslF(h: float, s: float, l: float, alpha: float = ...) -> 'QColor': ... + @staticmethod + def fromHsl(h: int, s: int, l: int, alpha: int = ...) -> 'QColor': ... + def toHsl(self) -> 'QColor': ... + def setHslF(self, h: float, s: float, l: float, alpha: float = ...) -> None: ... + def getHslF(self) -> typing.Tuple[float, float, float, float]: ... + def setHsl(self, h: int, s: int, l: int, alpha: int = ...) -> None: ... + def getHsl(self) -> typing.Tuple[int, int, int, int]: ... + def lightnessF(self) -> float: ... + def hslSaturationF(self) -> float: ... + def hslHueF(self) -> float: ... + def lightness(self) -> int: ... + def hslSaturation(self) -> int: ... + def hslHue(self) -> int: ... + def hsvSaturationF(self) -> float: ... + def hsvHueF(self) -> float: ... + def hsvSaturation(self) -> int: ... + def hsvHue(self) -> int: ... + def darker(self, factor: int = ...) -> 'QColor': ... + def lighter(self, factor: int = ...) -> 'QColor': ... + def isValid(self) -> bool: ... + @staticmethod + def fromCmykF(c: float, m: float, y: float, k: float, alpha: float = ...) -> 'QColor': ... + @staticmethod + def fromCmyk(c: int, m: int, y: int, k: int, alpha: int = ...) -> 'QColor': ... + @staticmethod + def fromHsvF(h: float, s: float, v: float, alpha: float = ...) -> 'QColor': ... + @staticmethod + def fromHsv(h: int, s: int, v: int, alpha: int = ...) -> 'QColor': ... + @staticmethod + def fromRgbF(r: float, g: float, b: float, alpha: float = ...) -> 'QColor': ... + @staticmethod + def fromRgba(rgba: int) -> 'QColor': ... + @typing.overload + @staticmethod + def fromRgb(rgb: int) -> 'QColor': ... + @typing.overload + @staticmethod + def fromRgb(r: int, g: int, b: int, alpha: int = ...) -> 'QColor': ... + def convertTo(self, colorSpec: 'QColor.Spec') -> 'QColor': ... + def toCmyk(self) -> 'QColor': ... + def toHsv(self) -> 'QColor': ... + def toRgb(self) -> 'QColor': ... + def setCmykF(self, c: float, m: float, y: float, k: float, alpha: float = ...) -> None: ... + def getCmykF(self) -> typing.Tuple[float, float, float, float, float]: ... + def setCmyk(self, c: int, m: int, y: int, k: int, alpha: int = ...) -> None: ... + def getCmyk(self) -> typing.Tuple[int, int, int, int, int]: ... + def blackF(self) -> float: ... + def yellowF(self) -> float: ... + def magentaF(self) -> float: ... + def cyanF(self) -> float: ... + def black(self) -> int: ... + def yellow(self) -> int: ... + def magenta(self) -> int: ... + def cyan(self) -> int: ... + def setHsvF(self, h: float, s: float, v: float, alpha: float = ...) -> None: ... + def getHsvF(self) -> typing.Tuple[float, float, float, float]: ... + def setHsv(self, h: int, s: int, v: int, alpha: int = ...) -> None: ... + def getHsv(self) -> typing.Tuple[int, int, int, int]: ... + def valueF(self) -> float: ... + def saturationF(self) -> float: ... + def hueF(self) -> float: ... + def value(self) -> int: ... + def saturation(self) -> int: ... + def hue(self) -> int: ... + def rgb(self) -> int: ... + def setRgba(self, rgba: int) -> None: ... + def rgba(self) -> int: ... + def setRgbF(self, r: float, g: float, b: float, alpha: float = ...) -> None: ... + def getRgbF(self) -> typing.Tuple[float, float, float, float]: ... + @typing.overload + def setRgb(self, r: int, g: int, b: int, alpha: int = ...) -> None: ... + @typing.overload + def setRgb(self, rgb: int) -> None: ... + def getRgb(self) -> typing.Tuple[int, int, int, int]: ... + def setBlueF(self, blue: float) -> None: ... + def setGreenF(self, green: float) -> None: ... + def setRedF(self, red: float) -> None: ... + def blueF(self) -> float: ... + def greenF(self) -> float: ... + def redF(self) -> float: ... + def setBlue(self, blue: int) -> None: ... + def setGreen(self, green: int) -> None: ... + def setRed(self, red: int) -> None: ... + def blue(self) -> int: ... + def green(self) -> int: ... + def red(self) -> int: ... + def setAlphaF(self, alpha: float) -> None: ... + def alphaF(self) -> float: ... + def setAlpha(self, alpha: int) -> None: ... + def alpha(self) -> int: ... + def spec(self) -> 'QColor.Spec': ... + @staticmethod + def colorNames() -> typing.List[str]: ... + def setNamedColor(self, name: str) -> None: ... + @typing.overload + def name(self) -> str: ... + @typing.overload + def name(self, format: 'QColor.NameFormat') -> str: ... + + +class QBrush(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, bs: QtCore.Qt.BrushStyle) -> None: ... + @typing.overload + def __init__(self, color: typing.Union[QColor, QtCore.Qt.GlobalColor, 'QGradient'], style: QtCore.Qt.BrushStyle = ...) -> None: ... + @typing.overload + def __init__(self, color: typing.Union[QColor, QtCore.Qt.GlobalColor, 'QGradient'], pixmap: QPixmap) -> None: ... + @typing.overload + def __init__(self, pixmap: QPixmap) -> None: ... + @typing.overload + def __init__(self, image: 'QImage') -> None: ... + @typing.overload + def __init__(self, brush: typing.Union['QBrush', QColor, QtCore.Qt.GlobalColor, 'QGradient']) -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + def swap(self, other: 'QBrush') -> None: ... + def transform(self) -> 'QTransform': ... + def setTransform(self, a0: 'QTransform') -> None: ... + def textureImage(self) -> 'QImage': ... + def setTextureImage(self, image: 'QImage') -> None: ... + def color(self) -> QColor: ... + def style(self) -> QtCore.Qt.BrushStyle: ... + def isOpaque(self) -> bool: ... + def gradient(self) -> 'QGradient': ... + @typing.overload + def setColor(self, color: typing.Union[QColor, QtCore.Qt.GlobalColor, 'QGradient']) -> None: ... + @typing.overload + def setColor(self, acolor: QtCore.Qt.GlobalColor) -> None: ... + def setTexture(self, pixmap: QPixmap) -> None: ... + def texture(self) -> QPixmap: ... + def setStyle(self, a0: QtCore.Qt.BrushStyle) -> None: ... + + +class QGradient(sip.simplewrapper): + + class Preset(int): ... + WarmFlame = ... # type: 'QGradient.Preset' + NightFade = ... # type: 'QGradient.Preset' + SpringWarmth = ... # type: 'QGradient.Preset' + JuicyPeach = ... # type: 'QGradient.Preset' + YoungPassion = ... # type: 'QGradient.Preset' + LadyLips = ... # type: 'QGradient.Preset' + SunnyMorning = ... # type: 'QGradient.Preset' + RainyAshville = ... # type: 'QGradient.Preset' + FrozenDreams = ... # type: 'QGradient.Preset' + WinterNeva = ... # type: 'QGradient.Preset' + DustyGrass = ... # type: 'QGradient.Preset' + TemptingAzure = ... # type: 'QGradient.Preset' + HeavyRain = ... # type: 'QGradient.Preset' + AmyCrisp = ... # type: 'QGradient.Preset' + MeanFruit = ... # type: 'QGradient.Preset' + DeepBlue = ... # type: 'QGradient.Preset' + RipeMalinka = ... # type: 'QGradient.Preset' + CloudyKnoxville = ... # type: 'QGradient.Preset' + MalibuBeach = ... # type: 'QGradient.Preset' + NewLife = ... # type: 'QGradient.Preset' + TrueSunset = ... # type: 'QGradient.Preset' + MorpheusDen = ... # type: 'QGradient.Preset' + RareWind = ... # type: 'QGradient.Preset' + NearMoon = ... # type: 'QGradient.Preset' + WildApple = ... # type: 'QGradient.Preset' + SaintPetersburg = ... # type: 'QGradient.Preset' + PlumPlate = ... # type: 'QGradient.Preset' + EverlastingSky = ... # type: 'QGradient.Preset' + HappyFisher = ... # type: 'QGradient.Preset' + Blessing = ... # type: 'QGradient.Preset' + SharpeyeEagle = ... # type: 'QGradient.Preset' + LadogaBottom = ... # type: 'QGradient.Preset' + LemonGate = ... # type: 'QGradient.Preset' + ItmeoBranding = ... # type: 'QGradient.Preset' + ZeusMiracle = ... # type: 'QGradient.Preset' + OldHat = ... # type: 'QGradient.Preset' + StarWine = ... # type: 'QGradient.Preset' + HappyAcid = ... # type: 'QGradient.Preset' + AwesomePine = ... # type: 'QGradient.Preset' + NewYork = ... # type: 'QGradient.Preset' + ShyRainbow = ... # type: 'QGradient.Preset' + MixedHopes = ... # type: 'QGradient.Preset' + FlyHigh = ... # type: 'QGradient.Preset' + StrongBliss = ... # type: 'QGradient.Preset' + FreshMilk = ... # type: 'QGradient.Preset' + SnowAgain = ... # type: 'QGradient.Preset' + FebruaryInk = ... # type: 'QGradient.Preset' + KindSteel = ... # type: 'QGradient.Preset' + SoftGrass = ... # type: 'QGradient.Preset' + GrownEarly = ... # type: 'QGradient.Preset' + SharpBlues = ... # type: 'QGradient.Preset' + ShadyWater = ... # type: 'QGradient.Preset' + DirtyBeauty = ... # type: 'QGradient.Preset' + GreatWhale = ... # type: 'QGradient.Preset' + TeenNotebook = ... # type: 'QGradient.Preset' + PoliteRumors = ... # type: 'QGradient.Preset' + SweetPeriod = ... # type: 'QGradient.Preset' + WideMatrix = ... # type: 'QGradient.Preset' + SoftCherish = ... # type: 'QGradient.Preset' + RedSalvation = ... # type: 'QGradient.Preset' + BurningSpring = ... # type: 'QGradient.Preset' + NightParty = ... # type: 'QGradient.Preset' + SkyGlider = ... # type: 'QGradient.Preset' + HeavenPeach = ... # type: 'QGradient.Preset' + PurpleDivision = ... # type: 'QGradient.Preset' + AquaSplash = ... # type: 'QGradient.Preset' + SpikyNaga = ... # type: 'QGradient.Preset' + LoveKiss = ... # type: 'QGradient.Preset' + CleanMirror = ... # type: 'QGradient.Preset' + PremiumDark = ... # type: 'QGradient.Preset' + ColdEvening = ... # type: 'QGradient.Preset' + CochitiLake = ... # type: 'QGradient.Preset' + SummerGames = ... # type: 'QGradient.Preset' + PassionateBed = ... # type: 'QGradient.Preset' + MountainRock = ... # type: 'QGradient.Preset' + DesertHump = ... # type: 'QGradient.Preset' + JungleDay = ... # type: 'QGradient.Preset' + PhoenixStart = ... # type: 'QGradient.Preset' + OctoberSilence = ... # type: 'QGradient.Preset' + FarawayRiver = ... # type: 'QGradient.Preset' + AlchemistLab = ... # type: 'QGradient.Preset' + OverSun = ... # type: 'QGradient.Preset' + PremiumWhite = ... # type: 'QGradient.Preset' + MarsParty = ... # type: 'QGradient.Preset' + EternalConstance = ... # type: 'QGradient.Preset' + JapanBlush = ... # type: 'QGradient.Preset' + SmilingRain = ... # type: 'QGradient.Preset' + CloudyApple = ... # type: 'QGradient.Preset' + BigMango = ... # type: 'QGradient.Preset' + HealthyWater = ... # type: 'QGradient.Preset' + AmourAmour = ... # type: 'QGradient.Preset' + RiskyConcrete = ... # type: 'QGradient.Preset' + StrongStick = ... # type: 'QGradient.Preset' + ViciousStance = ... # type: 'QGradient.Preset' + PaloAlto = ... # type: 'QGradient.Preset' + HappyMemories = ... # type: 'QGradient.Preset' + MidnightBloom = ... # type: 'QGradient.Preset' + Crystalline = ... # type: 'QGradient.Preset' + PartyBliss = ... # type: 'QGradient.Preset' + ConfidentCloud = ... # type: 'QGradient.Preset' + LeCocktail = ... # type: 'QGradient.Preset' + RiverCity = ... # type: 'QGradient.Preset' + FrozenBerry = ... # type: 'QGradient.Preset' + ChildCare = ... # type: 'QGradient.Preset' + FlyingLemon = ... # type: 'QGradient.Preset' + NewRetrowave = ... # type: 'QGradient.Preset' + HiddenJaguar = ... # type: 'QGradient.Preset' + AboveTheSky = ... # type: 'QGradient.Preset' + Nega = ... # type: 'QGradient.Preset' + DenseWater = ... # type: 'QGradient.Preset' + Seashore = ... # type: 'QGradient.Preset' + MarbleWall = ... # type: 'QGradient.Preset' + CheerfulCaramel = ... # type: 'QGradient.Preset' + NightSky = ... # type: 'QGradient.Preset' + MagicLake = ... # type: 'QGradient.Preset' + YoungGrass = ... # type: 'QGradient.Preset' + ColorfulPeach = ... # type: 'QGradient.Preset' + GentleCare = ... # type: 'QGradient.Preset' + PlumBath = ... # type: 'QGradient.Preset' + HappyUnicorn = ... # type: 'QGradient.Preset' + AfricanField = ... # type: 'QGradient.Preset' + SolidStone = ... # type: 'QGradient.Preset' + OrangeJuice = ... # type: 'QGradient.Preset' + GlassWater = ... # type: 'QGradient.Preset' + NorthMiracle = ... # type: 'QGradient.Preset' + FruitBlend = ... # type: 'QGradient.Preset' + MillenniumPine = ... # type: 'QGradient.Preset' + HighFlight = ... # type: 'QGradient.Preset' + MoleHall = ... # type: 'QGradient.Preset' + SpaceShift = ... # type: 'QGradient.Preset' + ForestInei = ... # type: 'QGradient.Preset' + RoyalGarden = ... # type: 'QGradient.Preset' + RichMetal = ... # type: 'QGradient.Preset' + JuicyCake = ... # type: 'QGradient.Preset' + SmartIndigo = ... # type: 'QGradient.Preset' + SandStrike = ... # type: 'QGradient.Preset' + NorseBeauty = ... # type: 'QGradient.Preset' + AquaGuidance = ... # type: 'QGradient.Preset' + SunVeggie = ... # type: 'QGradient.Preset' + SeaLord = ... # type: 'QGradient.Preset' + BlackSea = ... # type: 'QGradient.Preset' + GrassShampoo = ... # type: 'QGradient.Preset' + LandingAircraft = ... # type: 'QGradient.Preset' + WitchDance = ... # type: 'QGradient.Preset' + SleeplessNight = ... # type: 'QGradient.Preset' + AngelCare = ... # type: 'QGradient.Preset' + CrystalRiver = ... # type: 'QGradient.Preset' + SoftLipstick = ... # type: 'QGradient.Preset' + SaltMountain = ... # type: 'QGradient.Preset' + PerfectWhite = ... # type: 'QGradient.Preset' + FreshOasis = ... # type: 'QGradient.Preset' + StrictNovember = ... # type: 'QGradient.Preset' + MorningSalad = ... # type: 'QGradient.Preset' + DeepRelief = ... # type: 'QGradient.Preset' + SeaStrike = ... # type: 'QGradient.Preset' + NightCall = ... # type: 'QGradient.Preset' + SupremeSky = ... # type: 'QGradient.Preset' + LightBlue = ... # type: 'QGradient.Preset' + MindCrawl = ... # type: 'QGradient.Preset' + LilyMeadow = ... # type: 'QGradient.Preset' + SugarLollipop = ... # type: 'QGradient.Preset' + SweetDessert = ... # type: 'QGradient.Preset' + MagicRay = ... # type: 'QGradient.Preset' + TeenParty = ... # type: 'QGradient.Preset' + FrozenHeat = ... # type: 'QGradient.Preset' + GagarinView = ... # type: 'QGradient.Preset' + FabledSunset = ... # type: 'QGradient.Preset' + PerfectBlue = ... # type: 'QGradient.Preset' + + class Spread(int): ... + PadSpread = ... # type: 'QGradient.Spread' + ReflectSpread = ... # type: 'QGradient.Spread' + RepeatSpread = ... # type: 'QGradient.Spread' + + class Type(int): ... + LinearGradient = ... # type: 'QGradient.Type' + RadialGradient = ... # type: 'QGradient.Type' + ConicalGradient = ... # type: 'QGradient.Type' + NoGradient = ... # type: 'QGradient.Type' + + class CoordinateMode(int): ... + LogicalMode = ... # type: 'QGradient.CoordinateMode' + StretchToDeviceMode = ... # type: 'QGradient.CoordinateMode' + ObjectBoundingMode = ... # type: 'QGradient.CoordinateMode' + ObjectMode = ... # type: 'QGradient.CoordinateMode' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QGradient.Preset') -> None: ... + @typing.overload + def __init__(self, a0: 'QGradient') -> None: ... + + def setCoordinateMode(self, mode: 'QGradient.CoordinateMode') -> None: ... + def coordinateMode(self) -> 'QGradient.CoordinateMode': ... + def setSpread(self, aspread: 'QGradient.Spread') -> None: ... + def stops(self) -> typing.List[typing.Tuple[float, QColor]]: ... + def setStops(self, stops: typing.Iterable[typing.Tuple[float, typing.Union[QColor, QtCore.Qt.GlobalColor, 'QGradient']]]) -> None: ... + def setColorAt(self, pos: float, color: typing.Union[QColor, QtCore.Qt.GlobalColor, 'QGradient']) -> None: ... + def spread(self) -> 'QGradient.Spread': ... + def type(self) -> 'QGradient.Type': ... + + +class QLinearGradient(QGradient): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, start: typing.Union[QtCore.QPointF, QtCore.QPoint], finalStop: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def __init__(self, xStart: float, yStart: float, xFinalStop: float, yFinalStop: float) -> None: ... + @typing.overload + def __init__(self, a0: 'QLinearGradient') -> None: ... + + @typing.overload + def setFinalStop(self, stop: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def setFinalStop(self, x: float, y: float) -> None: ... + @typing.overload + def setStart(self, start: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def setStart(self, x: float, y: float) -> None: ... + def finalStop(self) -> QtCore.QPointF: ... + def start(self) -> QtCore.QPointF: ... + + +class QRadialGradient(QGradient): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, center: typing.Union[QtCore.QPointF, QtCore.QPoint], radius: float, focalPoint: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def __init__(self, center: typing.Union[QtCore.QPointF, QtCore.QPoint], centerRadius: float, focalPoint: typing.Union[QtCore.QPointF, QtCore.QPoint], focalRadius: float) -> None: ... + @typing.overload + def __init__(self, center: typing.Union[QtCore.QPointF, QtCore.QPoint], radius: float) -> None: ... + @typing.overload + def __init__(self, cx: float, cy: float, radius: float, fx: float, fy: float) -> None: ... + @typing.overload + def __init__(self, cx: float, cy: float, centerRadius: float, fx: float, fy: float, focalRadius: float) -> None: ... + @typing.overload + def __init__(self, cx: float, cy: float, radius: float) -> None: ... + @typing.overload + def __init__(self, a0: 'QRadialGradient') -> None: ... + + def setFocalRadius(self, radius: float) -> None: ... + def focalRadius(self) -> float: ... + def setCenterRadius(self, radius: float) -> None: ... + def centerRadius(self) -> float: ... + def setRadius(self, radius: float) -> None: ... + @typing.overload + def setFocalPoint(self, focalPoint: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def setFocalPoint(self, x: float, y: float) -> None: ... + @typing.overload + def setCenter(self, center: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def setCenter(self, x: float, y: float) -> None: ... + def radius(self) -> float: ... + def focalPoint(self) -> QtCore.QPointF: ... + def center(self) -> QtCore.QPointF: ... + + +class QConicalGradient(QGradient): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, center: typing.Union[QtCore.QPointF, QtCore.QPoint], startAngle: float) -> None: ... + @typing.overload + def __init__(self, cx: float, cy: float, startAngle: float) -> None: ... + @typing.overload + def __init__(self, a0: 'QConicalGradient') -> None: ... + + def setAngle(self, angle: float) -> None: ... + @typing.overload + def setCenter(self, center: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def setCenter(self, x: float, y: float) -> None: ... + def angle(self) -> float: ... + def center(self) -> QtCore.QPointF: ... + + +class QClipboard(QtCore.QObject): + + class Mode(int): ... + Clipboard = ... # type: 'QClipboard.Mode' + Selection = ... # type: 'QClipboard.Mode' + FindBuffer = ... # type: 'QClipboard.Mode' + + def selectionChanged(self) -> None: ... + def findBufferChanged(self) -> None: ... + def dataChanged(self) -> None: ... + def changed(self, mode: 'QClipboard.Mode') -> None: ... + def setPixmap(self, a0: QPixmap, mode: 'QClipboard.Mode' = ...) -> None: ... + def setImage(self, a0: 'QImage', mode: 'QClipboard.Mode' = ...) -> None: ... + def pixmap(self, mode: 'QClipboard.Mode' = ...) -> QPixmap: ... + def image(self, mode: 'QClipboard.Mode' = ...) -> 'QImage': ... + def setMimeData(self, data: QtCore.QMimeData, mode: 'QClipboard.Mode' = ...) -> None: ... + def mimeData(self, mode: 'QClipboard.Mode' = ...) -> QtCore.QMimeData: ... + def setText(self, a0: str, mode: 'QClipboard.Mode' = ...) -> None: ... + @typing.overload + def text(self, mode: 'QClipboard.Mode' = ...) -> str: ... + @typing.overload + def text(self, subtype: str, mode: 'QClipboard.Mode' = ...) -> typing.Tuple[str, str]: ... + def ownsSelection(self) -> bool: ... + def ownsFindBuffer(self) -> bool: ... + def ownsClipboard(self) -> bool: ... + def supportsSelection(self) -> bool: ... + def supportsFindBuffer(self) -> bool: ... + def clear(self, mode: 'QClipboard.Mode' = ...) -> None: ... + + +class QCursor(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, bitmap: QBitmap, mask: QBitmap, hotX: int = ..., hotY: int = ...) -> None: ... + @typing.overload + def __init__(self, pixmap: QPixmap, hotX: int = ..., hotY: int = ...) -> None: ... + @typing.overload + def __init__(self, cursor: typing.Union['QCursor', QtCore.Qt.CursorShape]) -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + def swap(self, other: typing.Union['QCursor', QtCore.Qt.CursorShape]) -> None: ... + @typing.overload + @staticmethod + def setPos(x: int, y: int) -> None: ... + @typing.overload + @staticmethod + def setPos(p: QtCore.QPoint) -> None: ... + @typing.overload + @staticmethod + def setPos(screen: 'QScreen', x: int, y: int) -> None: ... + @typing.overload + @staticmethod + def setPos(screen: 'QScreen', p: QtCore.QPoint) -> None: ... + @typing.overload + @staticmethod + def pos() -> QtCore.QPoint: ... + @typing.overload + @staticmethod + def pos(screen: 'QScreen') -> QtCore.QPoint: ... + def hotSpot(self) -> QtCore.QPoint: ... + def pixmap(self) -> QPixmap: ... + def mask(self) -> QBitmap: ... + def bitmap(self) -> QBitmap: ... + def setShape(self, newShape: QtCore.Qt.CursorShape) -> None: ... + def shape(self) -> QtCore.Qt.CursorShape: ... + + +class QDesktopServices(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesktopServices') -> None: ... + + @staticmethod + def unsetUrlHandler(scheme: str) -> None: ... + @typing.overload + @staticmethod + def setUrlHandler(scheme: str, receiver: QtCore.QObject, method: str) -> None: ... + @typing.overload + @staticmethod + def setUrlHandler(scheme: str, method: typing.Callable[[QtCore.QUrl], None]) -> None: ... + @staticmethod + def openUrl(url: QtCore.QUrl) -> bool: ... + + +class QDrag(QtCore.QObject): + + def __init__(self, dragSource: QtCore.QObject) -> None: ... + + def defaultAction(self) -> QtCore.Qt.DropAction: ... + def supportedActions(self) -> QtCore.Qt.DropActions: ... + def dragCursor(self, action: QtCore.Qt.DropAction) -> QPixmap: ... + def targetChanged(self, newTarget: QtCore.QObject) -> None: ... + def actionChanged(self, action: QtCore.Qt.DropAction) -> None: ... + def setDragCursor(self, cursor: QPixmap, action: QtCore.Qt.DropAction) -> None: ... + def target(self) -> QtCore.QObject: ... + def source(self) -> QtCore.QObject: ... + def hotSpot(self) -> QtCore.QPoint: ... + def setHotSpot(self, hotspot: QtCore.QPoint) -> None: ... + def pixmap(self) -> QPixmap: ... + def setPixmap(self, a0: QPixmap) -> None: ... + def mimeData(self) -> QtCore.QMimeData: ... + def setMimeData(self, data: QtCore.QMimeData) -> None: ... + @typing.overload + def exec(self, supportedActions: typing.Union[QtCore.Qt.DropActions, QtCore.Qt.DropAction] = ...) -> QtCore.Qt.DropAction: ... + @typing.overload + def exec(self, supportedActions: typing.Union[QtCore.Qt.DropActions, QtCore.Qt.DropAction], defaultDropAction: QtCore.Qt.DropAction) -> QtCore.Qt.DropAction: ... + @typing.overload + def exec_(self, supportedActions: typing.Union[QtCore.Qt.DropActions, QtCore.Qt.DropAction] = ...) -> QtCore.Qt.DropAction: ... + @typing.overload + def exec_(self, supportedActions: typing.Union[QtCore.Qt.DropActions, QtCore.Qt.DropAction], defaultDropAction: QtCore.Qt.DropAction) -> QtCore.Qt.DropAction: ... + + +class QInputEvent(QtCore.QEvent): + + def setTimestamp(self, atimestamp: int) -> None: ... + def timestamp(self) -> int: ... + def modifiers(self) -> QtCore.Qt.KeyboardModifiers: ... + + +class QMouseEvent(QInputEvent): + + @typing.overload + def __init__(self, type: QtCore.QEvent.Type, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], button: QtCore.Qt.MouseButton, buttons: typing.Union[QtCore.Qt.MouseButtons, QtCore.Qt.MouseButton], modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier]) -> None: ... + @typing.overload + def __init__(self, type: QtCore.QEvent.Type, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], globalPos: typing.Union[QtCore.QPointF, QtCore.QPoint], button: QtCore.Qt.MouseButton, buttons: typing.Union[QtCore.Qt.MouseButtons, QtCore.Qt.MouseButton], modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier]) -> None: ... + @typing.overload + def __init__(self, type: QtCore.QEvent.Type, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], windowPos: typing.Union[QtCore.QPointF, QtCore.QPoint], globalPos: typing.Union[QtCore.QPointF, QtCore.QPoint], button: QtCore.Qt.MouseButton, buttons: typing.Union[QtCore.Qt.MouseButtons, QtCore.Qt.MouseButton], modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier]) -> None: ... + @typing.overload + def __init__(self, type: QtCore.QEvent.Type, localPos: typing.Union[QtCore.QPointF, QtCore.QPoint], windowPos: typing.Union[QtCore.QPointF, QtCore.QPoint], screenPos: typing.Union[QtCore.QPointF, QtCore.QPoint], button: QtCore.Qt.MouseButton, buttons: typing.Union[QtCore.Qt.MouseButtons, QtCore.Qt.MouseButton], modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier], source: QtCore.Qt.MouseEventSource) -> None: ... + @typing.overload + def __init__(self, a0: 'QMouseEvent') -> None: ... + + def flags(self) -> QtCore.Qt.MouseEventFlags: ... + def source(self) -> QtCore.Qt.MouseEventSource: ... + def screenPos(self) -> QtCore.QPointF: ... + def windowPos(self) -> QtCore.QPointF: ... + def localPos(self) -> QtCore.QPointF: ... + def buttons(self) -> QtCore.Qt.MouseButtons: ... + def button(self) -> QtCore.Qt.MouseButton: ... + def globalY(self) -> int: ... + def globalX(self) -> int: ... + def y(self) -> int: ... + def x(self) -> int: ... + def globalPos(self) -> QtCore.QPoint: ... + def pos(self) -> QtCore.QPoint: ... + + +class QHoverEvent(QInputEvent): + + @typing.overload + def __init__(self, type: QtCore.QEvent.Type, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], oldPos: typing.Union[QtCore.QPointF, QtCore.QPoint], modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QHoverEvent') -> None: ... + + def oldPosF(self) -> QtCore.QPointF: ... + def posF(self) -> QtCore.QPointF: ... + def oldPos(self) -> QtCore.QPoint: ... + def pos(self) -> QtCore.QPoint: ... + + +class QWheelEvent(QInputEvent): + + @typing.overload + def __init__(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], globalPos: typing.Union[QtCore.QPointF, QtCore.QPoint], pixelDelta: QtCore.QPoint, angleDelta: QtCore.QPoint, qt4Delta: int, qt4Orientation: QtCore.Qt.Orientation, buttons: typing.Union[QtCore.Qt.MouseButtons, QtCore.Qt.MouseButton], modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier]) -> None: ... + @typing.overload + def __init__(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], globalPos: typing.Union[QtCore.QPointF, QtCore.QPoint], pixelDelta: QtCore.QPoint, angleDelta: QtCore.QPoint, qt4Delta: int, qt4Orientation: QtCore.Qt.Orientation, buttons: typing.Union[QtCore.Qt.MouseButtons, QtCore.Qt.MouseButton], modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier], phase: QtCore.Qt.ScrollPhase) -> None: ... + @typing.overload + def __init__(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], globalPos: typing.Union[QtCore.QPointF, QtCore.QPoint], pixelDelta: QtCore.QPoint, angleDelta: QtCore.QPoint, qt4Delta: int, qt4Orientation: QtCore.Qt.Orientation, buttons: typing.Union[QtCore.Qt.MouseButtons, QtCore.Qt.MouseButton], modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier], phase: QtCore.Qt.ScrollPhase, source: QtCore.Qt.MouseEventSource) -> None: ... + @typing.overload + def __init__(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], globalPos: typing.Union[QtCore.QPointF, QtCore.QPoint], pixelDelta: QtCore.QPoint, angleDelta: QtCore.QPoint, qt4Delta: int, qt4Orientation: QtCore.Qt.Orientation, buttons: typing.Union[QtCore.Qt.MouseButtons, QtCore.Qt.MouseButton], modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier], phase: QtCore.Qt.ScrollPhase, source: QtCore.Qt.MouseEventSource, inverted: bool) -> None: ... + @typing.overload + def __init__(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], globalPos: typing.Union[QtCore.QPointF, QtCore.QPoint], pixelDelta: QtCore.QPoint, angleDelta: QtCore.QPoint, buttons: typing.Union[QtCore.Qt.MouseButtons, QtCore.Qt.MouseButton], modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier], phase: QtCore.Qt.ScrollPhase, inverted: bool, source: QtCore.Qt.MouseEventSource = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QWheelEvent') -> None: ... + + def inverted(self) -> bool: ... + def source(self) -> QtCore.Qt.MouseEventSource: ... + def phase(self) -> QtCore.Qt.ScrollPhase: ... + def globalPosF(self) -> QtCore.QPointF: ... + def posF(self) -> QtCore.QPointF: ... + def angleDelta(self) -> QtCore.QPoint: ... + def pixelDelta(self) -> QtCore.QPoint: ... + def buttons(self) -> QtCore.Qt.MouseButtons: ... + def globalY(self) -> int: ... + def globalX(self) -> int: ... + def y(self) -> int: ... + def x(self) -> int: ... + def globalPos(self) -> QtCore.QPoint: ... + def pos(self) -> QtCore.QPoint: ... + + +class QTabletEvent(QInputEvent): + + class PointerType(int): ... + UnknownPointer = ... # type: 'QTabletEvent.PointerType' + Pen = ... # type: 'QTabletEvent.PointerType' + Cursor = ... # type: 'QTabletEvent.PointerType' + Eraser = ... # type: 'QTabletEvent.PointerType' + + class TabletDevice(int): ... + NoDevice = ... # type: 'QTabletEvent.TabletDevice' + Puck = ... # type: 'QTabletEvent.TabletDevice' + Stylus = ... # type: 'QTabletEvent.TabletDevice' + Airbrush = ... # type: 'QTabletEvent.TabletDevice' + FourDMouse = ... # type: 'QTabletEvent.TabletDevice' + XFreeEraser = ... # type: 'QTabletEvent.TabletDevice' + RotationStylus = ... # type: 'QTabletEvent.TabletDevice' + + @typing.overload + def __init__(self, t: QtCore.QEvent.Type, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], globalPos: typing.Union[QtCore.QPointF, QtCore.QPoint], device: int, pointerType: int, pressure: float, xTilt: int, yTilt: int, tangentialPressure: float, rotation: float, z: int, keyState: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier], uniqueID: int, button: QtCore.Qt.MouseButton, buttons: typing.Union[QtCore.Qt.MouseButtons, QtCore.Qt.MouseButton]) -> None: ... + @typing.overload + def __init__(self, t: QtCore.QEvent.Type, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], globalPos: typing.Union[QtCore.QPointF, QtCore.QPoint], device: int, pointerType: int, pressure: float, xTilt: int, yTilt: int, tangentialPressure: float, rotation: float, z: int, keyState: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier], uniqueID: int) -> None: ... + @typing.overload + def __init__(self, a0: 'QTabletEvent') -> None: ... + + def buttons(self) -> QtCore.Qt.MouseButtons: ... + def button(self) -> QtCore.Qt.MouseButton: ... + def globalPosF(self) -> QtCore.QPointF: ... + def posF(self) -> QtCore.QPointF: ... + def yTilt(self) -> int: ... + def xTilt(self) -> int: ... + def rotation(self) -> float: ... + def tangentialPressure(self) -> float: ... + def z(self) -> int: ... + def pressure(self) -> float: ... + def uniqueId(self) -> int: ... + def pointerType(self) -> 'QTabletEvent.PointerType': ... + def device(self) -> 'QTabletEvent.TabletDevice': ... + def hiResGlobalY(self) -> float: ... + def hiResGlobalX(self) -> float: ... + def globalY(self) -> int: ... + def globalX(self) -> int: ... + def y(self) -> int: ... + def x(self) -> int: ... + def globalPos(self) -> QtCore.QPoint: ... + def pos(self) -> QtCore.QPoint: ... + + +class QKeyEvent(QInputEvent): + + @typing.overload + def __init__(self, type: QtCore.QEvent.Type, key: int, modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier], nativeScanCode: int, nativeVirtualKey: int, nativeModifiers: int, text: str = ..., autorep: bool = ..., count: int = ...) -> None: ... + @typing.overload + def __init__(self, type: QtCore.QEvent.Type, key: int, modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier], text: str = ..., autorep: bool = ..., count: int = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QKeyEvent') -> None: ... + + def nativeVirtualKey(self) -> int: ... + def nativeScanCode(self) -> int: ... + def nativeModifiers(self) -> int: ... + def matches(self, key: 'QKeySequence.StandardKey') -> bool: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def isAutoRepeat(self) -> bool: ... + def text(self) -> str: ... + def modifiers(self) -> QtCore.Qt.KeyboardModifiers: ... + def key(self) -> int: ... + + +class QFocusEvent(QtCore.QEvent): + + @typing.overload + def __init__(self, type: QtCore.QEvent.Type, reason: QtCore.Qt.FocusReason = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QFocusEvent') -> None: ... + + def reason(self) -> QtCore.Qt.FocusReason: ... + def lostFocus(self) -> bool: ... + def gotFocus(self) -> bool: ... + + +class QPaintEvent(QtCore.QEvent): + + @typing.overload + def __init__(self, paintRegion: 'QRegion') -> None: ... + @typing.overload + def __init__(self, paintRect: QtCore.QRect) -> None: ... + @typing.overload + def __init__(self, a0: 'QPaintEvent') -> None: ... + + def region(self) -> 'QRegion': ... + def rect(self) -> QtCore.QRect: ... + + +class QMoveEvent(QtCore.QEvent): + + @typing.overload + def __init__(self, pos: QtCore.QPoint, oldPos: QtCore.QPoint) -> None: ... + @typing.overload + def __init__(self, a0: 'QMoveEvent') -> None: ... + + def oldPos(self) -> QtCore.QPoint: ... + def pos(self) -> QtCore.QPoint: ... + + +class QResizeEvent(QtCore.QEvent): + + @typing.overload + def __init__(self, size: QtCore.QSize, oldSize: QtCore.QSize) -> None: ... + @typing.overload + def __init__(self, a0: 'QResizeEvent') -> None: ... + + def oldSize(self) -> QtCore.QSize: ... + def size(self) -> QtCore.QSize: ... + + +class QCloseEvent(QtCore.QEvent): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QCloseEvent') -> None: ... + + +class QIconDragEvent(QtCore.QEvent): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QIconDragEvent') -> None: ... + + +class QShowEvent(QtCore.QEvent): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QShowEvent') -> None: ... + + +class QHideEvent(QtCore.QEvent): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QHideEvent') -> None: ... + + +class QContextMenuEvent(QInputEvent): + + class Reason(int): ... + Mouse = ... # type: 'QContextMenuEvent.Reason' + Keyboard = ... # type: 'QContextMenuEvent.Reason' + Other = ... # type: 'QContextMenuEvent.Reason' + + @typing.overload + def __init__(self, reason: 'QContextMenuEvent.Reason', pos: QtCore.QPoint, globalPos: QtCore.QPoint, modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier]) -> None: ... + @typing.overload + def __init__(self, reason: 'QContextMenuEvent.Reason', pos: QtCore.QPoint, globalPos: QtCore.QPoint) -> None: ... + @typing.overload + def __init__(self, reason: 'QContextMenuEvent.Reason', pos: QtCore.QPoint) -> None: ... + @typing.overload + def __init__(self, a0: 'QContextMenuEvent') -> None: ... + + def reason(self) -> 'QContextMenuEvent.Reason': ... + def globalPos(self) -> QtCore.QPoint: ... + def pos(self) -> QtCore.QPoint: ... + def globalY(self) -> int: ... + def globalX(self) -> int: ... + def y(self) -> int: ... + def x(self) -> int: ... + + +class QInputMethodEvent(QtCore.QEvent): + + class AttributeType(int): ... + TextFormat = ... # type: 'QInputMethodEvent.AttributeType' + Cursor = ... # type: 'QInputMethodEvent.AttributeType' + Language = ... # type: 'QInputMethodEvent.AttributeType' + Ruby = ... # type: 'QInputMethodEvent.AttributeType' + Selection = ... # type: 'QInputMethodEvent.AttributeType' + + class Attribute(sip.simplewrapper): + + length = ... # type: int + start = ... # type: int + type = ... # type: 'QInputMethodEvent.AttributeType' + value = ... # type: typing.Any + + @typing.overload + def __init__(self, t: 'QInputMethodEvent.AttributeType', s: int, l: int, val: typing.Any) -> None: ... + @typing.overload + def __init__(self, typ: 'QInputMethodEvent.AttributeType', s: int, l: int) -> None: ... + @typing.overload + def __init__(self, a0: 'QInputMethodEvent.Attribute') -> None: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, preeditText: str, attributes: typing.Iterable['QInputMethodEvent.Attribute']) -> None: ... + @typing.overload + def __init__(self, other: 'QInputMethodEvent') -> None: ... + + def replacementLength(self) -> int: ... + def replacementStart(self) -> int: ... + def commitString(self) -> str: ... + def preeditString(self) -> str: ... + def attributes(self) -> typing.List['QInputMethodEvent.Attribute']: ... + def setCommitString(self, commitString: str, from_: int = ..., length: int = ...) -> None: ... + + +class QInputMethodQueryEvent(QtCore.QEvent): + + @typing.overload + def __init__(self, queries: typing.Union[QtCore.Qt.InputMethodQueries, QtCore.Qt.InputMethodQuery]) -> None: ... + @typing.overload + def __init__(self, a0: 'QInputMethodQueryEvent') -> None: ... + + def value(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + def setValue(self, query: QtCore.Qt.InputMethodQuery, value: typing.Any) -> None: ... + def queries(self) -> QtCore.Qt.InputMethodQueries: ... + + +class QDropEvent(QtCore.QEvent): + + @typing.overload + def __init__(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], actions: typing.Union[QtCore.Qt.DropActions, QtCore.Qt.DropAction], data: QtCore.QMimeData, buttons: typing.Union[QtCore.Qt.MouseButtons, QtCore.Qt.MouseButton], modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier], type: QtCore.QEvent.Type = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QDropEvent') -> None: ... + + def mimeData(self) -> QtCore.QMimeData: ... + def source(self) -> QtCore.QObject: ... + def setDropAction(self, action: QtCore.Qt.DropAction) -> None: ... + def dropAction(self) -> QtCore.Qt.DropAction: ... + def acceptProposedAction(self) -> None: ... + def proposedAction(self) -> QtCore.Qt.DropAction: ... + def possibleActions(self) -> QtCore.Qt.DropActions: ... + def keyboardModifiers(self) -> QtCore.Qt.KeyboardModifiers: ... + def mouseButtons(self) -> QtCore.Qt.MouseButtons: ... + def posF(self) -> QtCore.QPointF: ... + def pos(self) -> QtCore.QPoint: ... + + +class QDragMoveEvent(QDropEvent): + + @typing.overload + def __init__(self, pos: QtCore.QPoint, actions: typing.Union[QtCore.Qt.DropActions, QtCore.Qt.DropAction], data: QtCore.QMimeData, buttons: typing.Union[QtCore.Qt.MouseButtons, QtCore.Qt.MouseButton], modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier], type: QtCore.QEvent.Type = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QDragMoveEvent') -> None: ... + + @typing.overload + def ignore(self) -> None: ... + @typing.overload + def ignore(self, r: QtCore.QRect) -> None: ... + @typing.overload + def accept(self) -> None: ... + @typing.overload + def accept(self, r: QtCore.QRect) -> None: ... + def answerRect(self) -> QtCore.QRect: ... + + +class QDragEnterEvent(QDragMoveEvent): + + @typing.overload + def __init__(self, pos: QtCore.QPoint, actions: typing.Union[QtCore.Qt.DropActions, QtCore.Qt.DropAction], data: QtCore.QMimeData, buttons: typing.Union[QtCore.Qt.MouseButtons, QtCore.Qt.MouseButton], modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier]) -> None: ... + @typing.overload + def __init__(self, a0: 'QDragEnterEvent') -> None: ... + + +class QDragLeaveEvent(QtCore.QEvent): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDragLeaveEvent') -> None: ... + + +class QHelpEvent(QtCore.QEvent): + + @typing.overload + def __init__(self, type: QtCore.QEvent.Type, pos: QtCore.QPoint, globalPos: QtCore.QPoint) -> None: ... + @typing.overload + def __init__(self, a0: 'QHelpEvent') -> None: ... + + def globalPos(self) -> QtCore.QPoint: ... + def pos(self) -> QtCore.QPoint: ... + def globalY(self) -> int: ... + def globalX(self) -> int: ... + def y(self) -> int: ... + def x(self) -> int: ... + + +class QStatusTipEvent(QtCore.QEvent): + + @typing.overload + def __init__(self, tip: str) -> None: ... + @typing.overload + def __init__(self, a0: 'QStatusTipEvent') -> None: ... + + def tip(self) -> str: ... + + +class QWhatsThisClickedEvent(QtCore.QEvent): + + @typing.overload + def __init__(self, href: str) -> None: ... + @typing.overload + def __init__(self, a0: 'QWhatsThisClickedEvent') -> None: ... + + def href(self) -> str: ... + + +class QActionEvent(QtCore.QEvent): + + from PyQt5.QtWidgets import QAction + + @typing.overload + def __init__(self, type: int, action: QAction, before: typing.Optional[QAction] = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QActionEvent') -> None: ... + + def before(self) -> QAction: ... + def action(self) -> QAction: ... + + +class QFileOpenEvent(QtCore.QEvent): + + def openFile(self, file: QtCore.QFile, flags: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag]) -> bool: ... + def url(self) -> QtCore.QUrl: ... + def file(self) -> str: ... + + +class QShortcutEvent(QtCore.QEvent): + + @typing.overload + def __init__(self, key: typing.Union['QKeySequence', 'QKeySequence.StandardKey', str, int], id: int, ambiguous: bool = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QShortcutEvent') -> None: ... + + def shortcutId(self) -> int: ... + def key(self) -> 'QKeySequence': ... + def isAmbiguous(self) -> bool: ... + + +class QWindowStateChangeEvent(QtCore.QEvent): + + def oldState(self) -> QtCore.Qt.WindowStates: ... + + +class QTouchEvent(QInputEvent): + + class TouchPoint(sip.simplewrapper): + + class InfoFlag(int): ... + Pen = ... # type: 'QTouchEvent.TouchPoint.InfoFlag' + Token = ... # type: 'QTouchEvent.TouchPoint.InfoFlag' + + class InfoFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QTouchEvent.TouchPoint.InfoFlags', 'QTouchEvent.TouchPoint.InfoFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QTouchEvent.TouchPoint.InfoFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QTouchEvent.TouchPoint.InfoFlags': ... + def __int__(self) -> int: ... + + def ellipseDiameters(self) -> QtCore.QSizeF: ... + def rotation(self) -> float: ... + def uniqueId(self) -> 'QPointingDeviceUniqueId': ... + def rawScreenPositions(self) -> typing.List[QtCore.QPointF]: ... + def flags(self) -> 'QTouchEvent.TouchPoint.InfoFlags': ... + def velocity(self) -> 'QVector2D': ... + def pressure(self) -> float: ... + def screenRect(self) -> QtCore.QRectF: ... + def sceneRect(self) -> QtCore.QRectF: ... + def rect(self) -> QtCore.QRectF: ... + def lastNormalizedPos(self) -> QtCore.QPointF: ... + def startNormalizedPos(self) -> QtCore.QPointF: ... + def normalizedPos(self) -> QtCore.QPointF: ... + def lastScreenPos(self) -> QtCore.QPointF: ... + def startScreenPos(self) -> QtCore.QPointF: ... + def screenPos(self) -> QtCore.QPointF: ... + def lastScenePos(self) -> QtCore.QPointF: ... + def startScenePos(self) -> QtCore.QPointF: ... + def scenePos(self) -> QtCore.QPointF: ... + def lastPos(self) -> QtCore.QPointF: ... + def startPos(self) -> QtCore.QPointF: ... + def pos(self) -> QtCore.QPointF: ... + def state(self) -> QtCore.Qt.TouchPointState: ... + def id(self) -> int: ... + + @typing.overload + def __init__(self, eventType: QtCore.QEvent.Type, device: typing.Optional['QTouchDevice'] = ..., modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., touchPointStates: typing.Union[QtCore.Qt.TouchPointStates, QtCore.Qt.TouchPointState] = ..., touchPoints: typing.Iterable['QTouchEvent.TouchPoint'] = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QTouchEvent') -> None: ... + + def setDevice(self, adevice: 'QTouchDevice') -> None: ... + def device(self) -> 'QTouchDevice': ... + def window(self) -> 'QWindow': ... + def touchPoints(self) -> typing.List['QTouchEvent.TouchPoint']: ... + def touchPointStates(self) -> QtCore.Qt.TouchPointStates: ... + def target(self) -> QtCore.QObject: ... + + +class QExposeEvent(QtCore.QEvent): + + @typing.overload + def __init__(self, rgn: 'QRegion') -> None: ... + @typing.overload + def __init__(self, a0: 'QExposeEvent') -> None: ... + + def region(self) -> 'QRegion': ... + + +class QScrollPrepareEvent(QtCore.QEvent): + + @typing.overload + def __init__(self, startPos: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def __init__(self, a0: 'QScrollPrepareEvent') -> None: ... + + def setContentPos(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def setContentPosRange(self, rect: QtCore.QRectF) -> None: ... + def setViewportSize(self, size: QtCore.QSizeF) -> None: ... + def contentPos(self) -> QtCore.QPointF: ... + def contentPosRange(self) -> QtCore.QRectF: ... + def viewportSize(self) -> QtCore.QSizeF: ... + def startPos(self) -> QtCore.QPointF: ... + + +class QScrollEvent(QtCore.QEvent): + + class ScrollState(int): ... + ScrollStarted = ... # type: 'QScrollEvent.ScrollState' + ScrollUpdated = ... # type: 'QScrollEvent.ScrollState' + ScrollFinished = ... # type: 'QScrollEvent.ScrollState' + + @typing.overload + def __init__(self, contentPos: typing.Union[QtCore.QPointF, QtCore.QPoint], overshoot: typing.Union[QtCore.QPointF, QtCore.QPoint], scrollState: 'QScrollEvent.ScrollState') -> None: ... + @typing.overload + def __init__(self, a0: 'QScrollEvent') -> None: ... + + def scrollState(self) -> 'QScrollEvent.ScrollState': ... + def overshootDistance(self) -> QtCore.QPointF: ... + def contentPos(self) -> QtCore.QPointF: ... + + +class QEnterEvent(QtCore.QEvent): + + @typing.overload + def __init__(self, localPos: typing.Union[QtCore.QPointF, QtCore.QPoint], windowPos: typing.Union[QtCore.QPointF, QtCore.QPoint], screenPos: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def __init__(self, a0: 'QEnterEvent') -> None: ... + + def screenPos(self) -> QtCore.QPointF: ... + def windowPos(self) -> QtCore.QPointF: ... + def localPos(self) -> QtCore.QPointF: ... + def globalY(self) -> int: ... + def globalX(self) -> int: ... + def y(self) -> int: ... + def x(self) -> int: ... + def globalPos(self) -> QtCore.QPoint: ... + def pos(self) -> QtCore.QPoint: ... + + +class QNativeGestureEvent(QInputEvent): + + @typing.overload + def __init__(self, type: QtCore.Qt.NativeGestureType, localPos: typing.Union[QtCore.QPointF, QtCore.QPoint], windowPos: typing.Union[QtCore.QPointF, QtCore.QPoint], screenPos: typing.Union[QtCore.QPointF, QtCore.QPoint], value: float, sequenceId: int, intArgument: int) -> None: ... + @typing.overload + def __init__(self, type: QtCore.Qt.NativeGestureType, dev: 'QTouchDevice', localPos: typing.Union[QtCore.QPointF, QtCore.QPoint], windowPos: typing.Union[QtCore.QPointF, QtCore.QPoint], screenPos: typing.Union[QtCore.QPointF, QtCore.QPoint], value: float, sequenceId: int, intArgument: int) -> None: ... + @typing.overload + def __init__(self, a0: 'QNativeGestureEvent') -> None: ... + + def device(self) -> 'QTouchDevice': ... + def screenPos(self) -> QtCore.QPointF: ... + def windowPos(self) -> QtCore.QPointF: ... + def localPos(self) -> QtCore.QPointF: ... + def globalPos(self) -> QtCore.QPoint: ... + def pos(self) -> QtCore.QPoint: ... + def value(self) -> float: ... + def gestureType(self) -> QtCore.Qt.NativeGestureType: ... + + +class QPlatformSurfaceEvent(QtCore.QEvent): + + class SurfaceEventType(int): ... + SurfaceCreated = ... # type: 'QPlatformSurfaceEvent.SurfaceEventType' + SurfaceAboutToBeDestroyed = ... # type: 'QPlatformSurfaceEvent.SurfaceEventType' + + @typing.overload + def __init__(self, surfaceEventType: 'QPlatformSurfaceEvent.SurfaceEventType') -> None: ... + @typing.overload + def __init__(self, a0: 'QPlatformSurfaceEvent') -> None: ... + + def surfaceEventType(self) -> 'QPlatformSurfaceEvent.SurfaceEventType': ... + + +class QPointingDeviceUniqueId(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QPointingDeviceUniqueId') -> None: ... + + def __hash__(self) -> int: ... + def numericId(self) -> int: ... + def isValid(self) -> bool: ... + @staticmethod + def fromNumericId(id: int) -> 'QPointingDeviceUniqueId': ... + + +class QFont(sip.simplewrapper): + + class HintingPreference(int): ... + PreferDefaultHinting = ... # type: 'QFont.HintingPreference' + PreferNoHinting = ... # type: 'QFont.HintingPreference' + PreferVerticalHinting = ... # type: 'QFont.HintingPreference' + PreferFullHinting = ... # type: 'QFont.HintingPreference' + + class SpacingType(int): ... + PercentageSpacing = ... # type: 'QFont.SpacingType' + AbsoluteSpacing = ... # type: 'QFont.SpacingType' + + class Capitalization(int): ... + MixedCase = ... # type: 'QFont.Capitalization' + AllUppercase = ... # type: 'QFont.Capitalization' + AllLowercase = ... # type: 'QFont.Capitalization' + SmallCaps = ... # type: 'QFont.Capitalization' + Capitalize = ... # type: 'QFont.Capitalization' + + class Stretch(int): ... + AnyStretch = ... # type: 'QFont.Stretch' + UltraCondensed = ... # type: 'QFont.Stretch' + ExtraCondensed = ... # type: 'QFont.Stretch' + Condensed = ... # type: 'QFont.Stretch' + SemiCondensed = ... # type: 'QFont.Stretch' + Unstretched = ... # type: 'QFont.Stretch' + SemiExpanded = ... # type: 'QFont.Stretch' + Expanded = ... # type: 'QFont.Stretch' + ExtraExpanded = ... # type: 'QFont.Stretch' + UltraExpanded = ... # type: 'QFont.Stretch' + + class Style(int): ... + StyleNormal = ... # type: 'QFont.Style' + StyleItalic = ... # type: 'QFont.Style' + StyleOblique = ... # type: 'QFont.Style' + + class Weight(int): ... + Thin = ... # type: 'QFont.Weight' + ExtraLight = ... # type: 'QFont.Weight' + Light = ... # type: 'QFont.Weight' + Normal = ... # type: 'QFont.Weight' + Medium = ... # type: 'QFont.Weight' + DemiBold = ... # type: 'QFont.Weight' + Bold = ... # type: 'QFont.Weight' + ExtraBold = ... # type: 'QFont.Weight' + Black = ... # type: 'QFont.Weight' + + class StyleStrategy(int): ... + PreferDefault = ... # type: 'QFont.StyleStrategy' + PreferBitmap = ... # type: 'QFont.StyleStrategy' + PreferDevice = ... # type: 'QFont.StyleStrategy' + PreferOutline = ... # type: 'QFont.StyleStrategy' + ForceOutline = ... # type: 'QFont.StyleStrategy' + PreferMatch = ... # type: 'QFont.StyleStrategy' + PreferQuality = ... # type: 'QFont.StyleStrategy' + PreferAntialias = ... # type: 'QFont.StyleStrategy' + NoAntialias = ... # type: 'QFont.StyleStrategy' + NoSubpixelAntialias = ... # type: 'QFont.StyleStrategy' + OpenGLCompatible = ... # type: 'QFont.StyleStrategy' + NoFontMerging = ... # type: 'QFont.StyleStrategy' + ForceIntegerMetrics = ... # type: 'QFont.StyleStrategy' + PreferNoShaping = ... # type: 'QFont.StyleStrategy' + + class StyleHint(int): ... + Helvetica = ... # type: 'QFont.StyleHint' + SansSerif = ... # type: 'QFont.StyleHint' + Times = ... # type: 'QFont.StyleHint' + Serif = ... # type: 'QFont.StyleHint' + Courier = ... # type: 'QFont.StyleHint' + TypeWriter = ... # type: 'QFont.StyleHint' + OldEnglish = ... # type: 'QFont.StyleHint' + Decorative = ... # type: 'QFont.StyleHint' + System = ... # type: 'QFont.StyleHint' + AnyStyle = ... # type: 'QFont.StyleHint' + Cursive = ... # type: 'QFont.StyleHint' + Monospace = ... # type: 'QFont.StyleHint' + Fantasy = ... # type: 'QFont.StyleHint' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, family: str, pointSize: int = ..., weight: int = ..., italic: bool = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QFont', pd: QPaintDevice) -> None: ... + @typing.overload + def __init__(self, a0: 'QFont') -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + def setFamilies(self, a0: typing.Iterable[str]) -> None: ... + def families(self) -> typing.List[str]: ... + def __hash__(self) -> int: ... + def swap(self, other: 'QFont') -> None: ... + def hintingPreference(self) -> 'QFont.HintingPreference': ... + def setHintingPreference(self, hintingPreference: 'QFont.HintingPreference') -> None: ... + def setStyleName(self, styleName: str) -> None: ... + def styleName(self) -> str: ... + def capitalization(self) -> 'QFont.Capitalization': ... + def setCapitalization(self, a0: 'QFont.Capitalization') -> None: ... + def setWordSpacing(self, spacing: float) -> None: ... + def wordSpacing(self) -> float: ... + def setLetterSpacing(self, type: 'QFont.SpacingType', spacing: float) -> None: ... + def letterSpacingType(self) -> 'QFont.SpacingType': ... + def letterSpacing(self) -> float: ... + def setItalic(self, b: bool) -> None: ... + def italic(self) -> bool: ... + def setBold(self, enable: bool) -> None: ... + def bold(self) -> bool: ... + def resolve(self, a0: 'QFont') -> 'QFont': ... + def lastResortFont(self) -> str: ... + def lastResortFamily(self) -> str: ... + def defaultFamily(self) -> str: ... + @staticmethod + def cacheStatistics() -> None: ... + @staticmethod + def cleanup() -> None: ... + @staticmethod + def initialize() -> None: ... + @staticmethod + def removeSubstitutions(a0: str) -> None: ... + @staticmethod + def insertSubstitutions(a0: str, a1: typing.Iterable[str]) -> None: ... + @staticmethod + def insertSubstitution(a0: str, a1: str) -> None: ... + @staticmethod + def substitutions() -> typing.List[str]: ... + @staticmethod + def substitutes(a0: str) -> typing.List[str]: ... + @staticmethod + def substitute(a0: str) -> str: ... + def fromString(self, a0: str) -> bool: ... + def toString(self) -> str: ... + def key(self) -> str: ... + def rawName(self) -> str: ... + def setRawName(self, a0: str) -> None: ... + def isCopyOf(self, a0: 'QFont') -> bool: ... + def exactMatch(self) -> bool: ... + def setRawMode(self, a0: bool) -> None: ... + def rawMode(self) -> bool: ... + def setStretch(self, a0: int) -> None: ... + def stretch(self) -> int: ... + def setStyleStrategy(self, s: 'QFont.StyleStrategy') -> None: ... + def setStyleHint(self, hint: 'QFont.StyleHint', strategy: 'QFont.StyleStrategy' = ...) -> None: ... + def styleStrategy(self) -> 'QFont.StyleStrategy': ... + def styleHint(self) -> 'QFont.StyleHint': ... + def setKerning(self, a0: bool) -> None: ... + def kerning(self) -> bool: ... + def setFixedPitch(self, a0: bool) -> None: ... + def fixedPitch(self) -> bool: ... + def setStrikeOut(self, a0: bool) -> None: ... + def strikeOut(self) -> bool: ... + def setOverline(self, a0: bool) -> None: ... + def overline(self) -> bool: ... + def setUnderline(self, a0: bool) -> None: ... + def underline(self) -> bool: ... + def style(self) -> 'QFont.Style': ... + def setStyle(self, style: 'QFont.Style') -> None: ... + def setWeight(self, a0: int) -> None: ... + def weight(self) -> int: ... + def setPixelSize(self, a0: int) -> None: ... + def pixelSize(self) -> int: ... + def setPointSizeF(self, a0: float) -> None: ... + def pointSizeF(self) -> float: ... + def setPointSize(self, a0: int) -> None: ... + def pointSize(self) -> int: ... + def setFamily(self, a0: str) -> None: ... + def family(self) -> str: ... + + +class QFontDatabase(sip.simplewrapper): + + class SystemFont(int): ... + GeneralFont = ... # type: 'QFontDatabase.SystemFont' + FixedFont = ... # type: 'QFontDatabase.SystemFont' + TitleFont = ... # type: 'QFontDatabase.SystemFont' + SmallestReadableFont = ... # type: 'QFontDatabase.SystemFont' + + class WritingSystem(int): ... + Any = ... # type: 'QFontDatabase.WritingSystem' + Latin = ... # type: 'QFontDatabase.WritingSystem' + Greek = ... # type: 'QFontDatabase.WritingSystem' + Cyrillic = ... # type: 'QFontDatabase.WritingSystem' + Armenian = ... # type: 'QFontDatabase.WritingSystem' + Hebrew = ... # type: 'QFontDatabase.WritingSystem' + Arabic = ... # type: 'QFontDatabase.WritingSystem' + Syriac = ... # type: 'QFontDatabase.WritingSystem' + Thaana = ... # type: 'QFontDatabase.WritingSystem' + Devanagari = ... # type: 'QFontDatabase.WritingSystem' + Bengali = ... # type: 'QFontDatabase.WritingSystem' + Gurmukhi = ... # type: 'QFontDatabase.WritingSystem' + Gujarati = ... # type: 'QFontDatabase.WritingSystem' + Oriya = ... # type: 'QFontDatabase.WritingSystem' + Tamil = ... # type: 'QFontDatabase.WritingSystem' + Telugu = ... # type: 'QFontDatabase.WritingSystem' + Kannada = ... # type: 'QFontDatabase.WritingSystem' + Malayalam = ... # type: 'QFontDatabase.WritingSystem' + Sinhala = ... # type: 'QFontDatabase.WritingSystem' + Thai = ... # type: 'QFontDatabase.WritingSystem' + Lao = ... # type: 'QFontDatabase.WritingSystem' + Tibetan = ... # type: 'QFontDatabase.WritingSystem' + Myanmar = ... # type: 'QFontDatabase.WritingSystem' + Georgian = ... # type: 'QFontDatabase.WritingSystem' + Khmer = ... # type: 'QFontDatabase.WritingSystem' + SimplifiedChinese = ... # type: 'QFontDatabase.WritingSystem' + TraditionalChinese = ... # type: 'QFontDatabase.WritingSystem' + Japanese = ... # type: 'QFontDatabase.WritingSystem' + Korean = ... # type: 'QFontDatabase.WritingSystem' + Vietnamese = ... # type: 'QFontDatabase.WritingSystem' + Other = ... # type: 'QFontDatabase.WritingSystem' + Symbol = ... # type: 'QFontDatabase.WritingSystem' + Ogham = ... # type: 'QFontDatabase.WritingSystem' + Runic = ... # type: 'QFontDatabase.WritingSystem' + Nko = ... # type: 'QFontDatabase.WritingSystem' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QFontDatabase') -> None: ... + + def isPrivateFamily(self, family: str) -> bool: ... + @staticmethod + def systemFont(type: 'QFontDatabase.SystemFont') -> QFont: ... + @staticmethod + def supportsThreadedFontRendering() -> bool: ... + @staticmethod + def removeAllApplicationFonts() -> bool: ... + @staticmethod + def removeApplicationFont(id: int) -> bool: ... + @staticmethod + def applicationFontFamilies(id: int) -> typing.List[str]: ... + @staticmethod + def addApplicationFontFromData(fontData: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> int: ... + @staticmethod + def addApplicationFont(fileName: str) -> int: ... + @staticmethod + def writingSystemSample(writingSystem: 'QFontDatabase.WritingSystem') -> str: ... + @staticmethod + def writingSystemName(writingSystem: 'QFontDatabase.WritingSystem') -> str: ... + def weight(self, family: str, style: str) -> int: ... + def bold(self, family: str, style: str) -> bool: ... + def italic(self, family: str, style: str) -> bool: ... + def isFixedPitch(self, family: str, style: str = ...) -> bool: ... + def isScalable(self, family: str, style: str = ...) -> bool: ... + def isSmoothlyScalable(self, family: str, style: str = ...) -> bool: ... + def isBitmapScalable(self, family: str, style: str = ...) -> bool: ... + def font(self, family: str, style: str, pointSize: int) -> QFont: ... + @typing.overload + def styleString(self, font: QFont) -> str: ... + @typing.overload + def styleString(self, fontInfo: 'QFontInfo') -> str: ... + def smoothSizes(self, family: str, style: str) -> typing.List[int]: ... + def pointSizes(self, family: str, style: str = ...) -> typing.List[int]: ... + def styles(self, family: str) -> typing.List[str]: ... + def families(self, writingSystem: 'QFontDatabase.WritingSystem' = ...) -> typing.List[str]: ... + @typing.overload + def writingSystems(self) -> typing.List['QFontDatabase.WritingSystem']: ... + @typing.overload + def writingSystems(self, family: str) -> typing.List['QFontDatabase.WritingSystem']: ... + @staticmethod + def standardSizes() -> typing.List[int]: ... + + +class QFontInfo(sip.simplewrapper): + + @typing.overload + def __init__(self, a0: QFont) -> None: ... + @typing.overload + def __init__(self, a0: 'QFontInfo') -> None: ... + + def swap(self, other: 'QFontInfo') -> None: ... + def styleName(self) -> str: ... + def exactMatch(self) -> bool: ... + def rawMode(self) -> bool: ... + def styleHint(self) -> QFont.StyleHint: ... + def fixedPitch(self) -> bool: ... + def bold(self) -> bool: ... + def weight(self) -> int: ... + def style(self) -> QFont.Style: ... + def italic(self) -> bool: ... + def pointSizeF(self) -> float: ... + def pointSize(self) -> int: ... + def pixelSize(self) -> int: ... + def family(self) -> str: ... + + +class QFontMetrics(sip.simplewrapper): + + @typing.overload + def __init__(self, a0: QFont) -> None: ... + @typing.overload + def __init__(self, a0: QFont, pd: QPaintDevice) -> None: ... + @typing.overload + def __init__(self, a0: 'QFontMetrics') -> None: ... + + def horizontalAdvance(self, a0: str, length: int = ...) -> int: ... + def capHeight(self) -> int: ... + def swap(self, other: 'QFontMetrics') -> None: ... + def inFontUcs4(self, character: int) -> bool: ... + def tightBoundingRect(self, text: str) -> QtCore.QRect: ... + def elidedText(self, text: str, mode: QtCore.Qt.TextElideMode, width: int, flags: int = ...) -> str: ... + def averageCharWidth(self) -> int: ... + def lineWidth(self) -> int: ... + def strikeOutPos(self) -> int: ... + def overlinePos(self) -> int: ... + def underlinePos(self) -> int: ... + def size(self, flags: int, text: str, tabStops: int = ..., tabArray: typing.Optional[typing.Optional[typing.List[int]]] = ...) -> QtCore.QSize: ... + @typing.overload + def boundingRect(self, text: str) -> QtCore.QRect: ... + @typing.overload + def boundingRect(self, rect: QtCore.QRect, flags: int, text: str, tabStops: int = ..., tabArray: typing.Optional[typing.Optional[typing.List[int]]] = ...) -> QtCore.QRect: ... + @typing.overload + def boundingRect(self, x: int, y: int, width: int, height: int, flags: int, text: str, tabStops: int = ..., tabArray: typing.Optional[typing.Optional[typing.List[int]]] = ...) -> QtCore.QRect: ... + def boundingRectChar(self, a0: str) -> QtCore.QRect: ... + def width(self, text: str, length: int = ...) -> int: ... + def widthChar(self, a0: str) -> int: ... + def rightBearing(self, a0: str) -> int: ... + def leftBearing(self, a0: str) -> int: ... + def inFont(self, a0: str) -> bool: ... + def xHeight(self) -> int: ... + def maxWidth(self) -> int: ... + def minRightBearing(self) -> int: ... + def minLeftBearing(self) -> int: ... + def lineSpacing(self) -> int: ... + def leading(self) -> int: ... + def height(self) -> int: ... + def descent(self) -> int: ... + def ascent(self) -> int: ... + + +class QFontMetricsF(sip.simplewrapper): + + @typing.overload + def __init__(self, a0: QFont) -> None: ... + @typing.overload + def __init__(self, a0: QFont, pd: QPaintDevice) -> None: ... + @typing.overload + def __init__(self, a0: QFontMetrics) -> None: ... + @typing.overload + def __init__(self, a0: 'QFontMetricsF') -> None: ... + + def horizontalAdvance(self, string: str, length: int = ...) -> float: ... + def capHeight(self) -> float: ... + def swap(self, other: 'QFontMetricsF') -> None: ... + def inFontUcs4(self, character: int) -> bool: ... + def tightBoundingRect(self, text: str) -> QtCore.QRectF: ... + def elidedText(self, text: str, mode: QtCore.Qt.TextElideMode, width: float, flags: int = ...) -> str: ... + def averageCharWidth(self) -> float: ... + def lineWidth(self) -> float: ... + def strikeOutPos(self) -> float: ... + def overlinePos(self) -> float: ... + def underlinePos(self) -> float: ... + def size(self, flags: int, text: str, tabStops: int = ..., tabArray: typing.Optional[typing.Optional[typing.List[int]]] = ...) -> QtCore.QSizeF: ... + @typing.overload + def boundingRect(self, string: str) -> QtCore.QRectF: ... + @typing.overload + def boundingRect(self, rect: QtCore.QRectF, flags: int, text: str, tabStops: int = ..., tabArray: typing.Optional[typing.Optional[typing.List[int]]] = ...) -> QtCore.QRectF: ... + def boundingRectChar(self, a0: str) -> QtCore.QRectF: ... + def width(self, string: str) -> float: ... + def widthChar(self, a0: str) -> float: ... + def rightBearing(self, a0: str) -> float: ... + def leftBearing(self, a0: str) -> float: ... + def inFont(self, a0: str) -> bool: ... + def xHeight(self) -> float: ... + def maxWidth(self) -> float: ... + def minRightBearing(self) -> float: ... + def minLeftBearing(self) -> float: ... + def lineSpacing(self) -> float: ... + def leading(self) -> float: ... + def height(self) -> float: ... + def descent(self) -> float: ... + def ascent(self) -> float: ... + + +class QMatrix4x3(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMatrix4x3') -> None: ... + @typing.overload + def __init__(self, values: typing.Sequence[float]) -> None: ... + + def transposed(self) -> 'QMatrix3x4': ... + def fill(self, value: float) -> None: ... + def setToIdentity(self) -> None: ... + def isIdentity(self) -> bool: ... + def __setitem__(self, a0: typing.Any, a1: float) -> None: ... + def __getitem__(self, a0: typing.Any) -> typing.Any: ... + def copyDataTo(self) -> typing.List[float]: ... + def data(self) -> typing.List[float]: ... + def __repr__(self) -> str: ... + + +class QMatrix4x2(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMatrix4x2') -> None: ... + @typing.overload + def __init__(self, values: typing.Sequence[float]) -> None: ... + + def transposed(self) -> 'QMatrix2x4': ... + def fill(self, value: float) -> None: ... + def setToIdentity(self) -> None: ... + def isIdentity(self) -> bool: ... + def __setitem__(self, a0: typing.Any, a1: float) -> None: ... + def __getitem__(self, a0: typing.Any) -> typing.Any: ... + def copyDataTo(self) -> typing.List[float]: ... + def data(self) -> typing.List[float]: ... + def __repr__(self) -> str: ... + + +class QMatrix3x4(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMatrix3x4') -> None: ... + @typing.overload + def __init__(self, values: typing.Sequence[float]) -> None: ... + + def transposed(self) -> QMatrix4x3: ... + def fill(self, value: float) -> None: ... + def setToIdentity(self) -> None: ... + def isIdentity(self) -> bool: ... + def __setitem__(self, a0: typing.Any, a1: float) -> None: ... + def __getitem__(self, a0: typing.Any) -> typing.Any: ... + def copyDataTo(self) -> typing.List[float]: ... + def data(self) -> typing.List[float]: ... + def __repr__(self) -> str: ... + + +class QMatrix3x3(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMatrix3x3') -> None: ... + @typing.overload + def __init__(self, values: typing.Sequence[float]) -> None: ... + + def transposed(self) -> 'QMatrix3x3': ... + def fill(self, value: float) -> None: ... + def setToIdentity(self) -> None: ... + def isIdentity(self) -> bool: ... + def __setitem__(self, a0: typing.Any, a1: float) -> None: ... + def __getitem__(self, a0: typing.Any) -> typing.Any: ... + def copyDataTo(self) -> typing.List[float]: ... + def data(self) -> typing.List[float]: ... + def __repr__(self) -> str: ... + + +class QMatrix3x2(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMatrix3x2') -> None: ... + @typing.overload + def __init__(self, values: typing.Sequence[float]) -> None: ... + + def transposed(self) -> 'QMatrix2x3': ... + def fill(self, value: float) -> None: ... + def setToIdentity(self) -> None: ... + def isIdentity(self) -> bool: ... + def __setitem__(self, a0: typing.Any, a1: float) -> None: ... + def __getitem__(self, a0: typing.Any) -> typing.Any: ... + def copyDataTo(self) -> typing.List[float]: ... + def data(self) -> typing.List[float]: ... + def __repr__(self) -> str: ... + + +class QMatrix2x4(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMatrix2x4') -> None: ... + @typing.overload + def __init__(self, values: typing.Sequence[float]) -> None: ... + + def transposed(self) -> QMatrix4x2: ... + def fill(self, value: float) -> None: ... + def setToIdentity(self) -> None: ... + def isIdentity(self) -> bool: ... + def __setitem__(self, a0: typing.Any, a1: float) -> None: ... + def __getitem__(self, a0: typing.Any) -> typing.Any: ... + def copyDataTo(self) -> typing.List[float]: ... + def data(self) -> typing.List[float]: ... + def __repr__(self) -> str: ... + + +class QMatrix2x3(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMatrix2x3') -> None: ... + @typing.overload + def __init__(self, values: typing.Sequence[float]) -> None: ... + + def transposed(self) -> QMatrix3x2: ... + def fill(self, value: float) -> None: ... + def setToIdentity(self) -> None: ... + def isIdentity(self) -> bool: ... + def __setitem__(self, a0: typing.Any, a1: float) -> None: ... + def __getitem__(self, a0: typing.Any) -> typing.Any: ... + def copyDataTo(self) -> typing.List[float]: ... + def data(self) -> typing.List[float]: ... + def __repr__(self) -> str: ... + + +class QMatrix2x2(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMatrix2x2') -> None: ... + @typing.overload + def __init__(self, values: typing.Sequence[float]) -> None: ... + + def transposed(self) -> 'QMatrix2x2': ... + def fill(self, value: float) -> None: ... + def setToIdentity(self) -> None: ... + def isIdentity(self) -> bool: ... + def __setitem__(self, a0: typing.Any, a1: float) -> None: ... + def __getitem__(self, a0: typing.Any) -> typing.Any: ... + def copyDataTo(self) -> typing.List[float]: ... + def data(self) -> typing.List[float]: ... + def __repr__(self) -> str: ... + + +class QGlyphRun(sip.simplewrapper): + + class GlyphRunFlag(int): ... + Overline = ... # type: 'QGlyphRun.GlyphRunFlag' + Underline = ... # type: 'QGlyphRun.GlyphRunFlag' + StrikeOut = ... # type: 'QGlyphRun.GlyphRunFlag' + RightToLeft = ... # type: 'QGlyphRun.GlyphRunFlag' + SplitLigature = ... # type: 'QGlyphRun.GlyphRunFlag' + + class GlyphRunFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGlyphRun.GlyphRunFlags', 'QGlyphRun.GlyphRunFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGlyphRun.GlyphRunFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGlyphRun.GlyphRunFlags': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGlyphRun') -> None: ... + + def swap(self, other: 'QGlyphRun') -> None: ... + def isEmpty(self) -> bool: ... + def boundingRect(self) -> QtCore.QRectF: ... + def setBoundingRect(self, boundingRect: QtCore.QRectF) -> None: ... + def flags(self) -> 'QGlyphRun.GlyphRunFlags': ... + def setFlags(self, flags: typing.Union['QGlyphRun.GlyphRunFlags', 'QGlyphRun.GlyphRunFlag']) -> None: ... + def setFlag(self, flag: 'QGlyphRun.GlyphRunFlag', enabled: bool = ...) -> None: ... + def isRightToLeft(self) -> bool: ... + def setRightToLeft(self, on: bool) -> None: ... + def strikeOut(self) -> bool: ... + def setStrikeOut(self, strikeOut: bool) -> None: ... + def underline(self) -> bool: ... + def setUnderline(self, underline: bool) -> None: ... + def overline(self) -> bool: ... + def setOverline(self, overline: bool) -> None: ... + def clear(self) -> None: ... + def setPositions(self, positions: typing.Iterable[typing.Union[QtCore.QPointF, QtCore.QPoint]]) -> None: ... + def positions(self) -> typing.List[QtCore.QPointF]: ... + def setGlyphIndexes(self, glyphIndexes: typing.Iterable[int]) -> None: ... + def glyphIndexes(self) -> typing.List[int]: ... + def setRawFont(self, rawFont: 'QRawFont') -> None: ... + def rawFont(self) -> 'QRawFont': ... + + +class QGuiApplication(QtCore.QCoreApplication): + + def __init__(self, argv: typing.List[str]) -> None: ... + + def fontChanged(self, font: QFont) -> None: ... + @staticmethod + def screenAt(point: QtCore.QPoint) -> 'QScreen': ... + @staticmethod + def desktopFileName() -> str: ... + @staticmethod + def setDesktopFileName(name: str) -> None: ... + def primaryScreenChanged(self, screen: 'QScreen') -> None: ... + @staticmethod + def setFallbackSessionManagementEnabled(a0: bool) -> None: ... + @staticmethod + def isFallbackSessionManagementEnabled() -> bool: ... + def paletteChanged(self, pal: 'QPalette') -> None: ... + def layoutDirectionChanged(self, direction: QtCore.Qt.LayoutDirection) -> None: ... + def screenRemoved(self, screen: 'QScreen') -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + @staticmethod + def windowIcon() -> 'QIcon': ... + @staticmethod + def setWindowIcon(icon: 'QIcon') -> None: ... + @staticmethod + def sync() -> None: ... + @staticmethod + def applicationState() -> QtCore.Qt.ApplicationState: ... + def isSavingSession(self) -> bool: ... + def sessionKey(self) -> str: ... + def sessionId(self) -> str: ... + def isSessionRestored(self) -> bool: ... + def devicePixelRatio(self) -> float: ... + @staticmethod + def inputMethod() -> 'QInputMethod': ... + @staticmethod + def styleHints() -> 'QStyleHints': ... + @staticmethod + def modalWindow() -> 'QWindow': ... + @staticmethod + def applicationDisplayName() -> str: ... + @staticmethod + def setApplicationDisplayName(name: str) -> None: ... + def applicationDisplayNameChanged(self) -> None: ... + def applicationStateChanged(self, state: QtCore.Qt.ApplicationState) -> None: ... + def focusWindowChanged(self, focusWindow: 'QWindow') -> None: ... + def saveStateRequest(self, sessionManager: 'QSessionManager') -> None: ... + def commitDataRequest(self, sessionManager: 'QSessionManager') -> None: ... + def focusObjectChanged(self, focusObject: QtCore.QObject) -> None: ... + def lastWindowClosed(self) -> None: ... + def screenAdded(self, screen: 'QScreen') -> None: ... + def fontDatabaseChanged(self) -> None: ... + def notify(self, a0: QtCore.QObject, a1: QtCore.QEvent) -> bool: ... + @staticmethod + def exec() -> int: ... + @staticmethod + def exec_() -> int: ... + @staticmethod + def quitOnLastWindowClosed() -> bool: ... + @staticmethod + def setQuitOnLastWindowClosed(quit: bool) -> None: ... + @staticmethod + def desktopSettingsAware() -> bool: ... + @staticmethod + def setDesktopSettingsAware(on: bool) -> None: ... + @staticmethod + def isLeftToRight() -> bool: ... + @staticmethod + def isRightToLeft() -> bool: ... + @staticmethod + def layoutDirection() -> QtCore.Qt.LayoutDirection: ... + @staticmethod + def setLayoutDirection(direction: QtCore.Qt.LayoutDirection) -> None: ... + @staticmethod + def mouseButtons() -> QtCore.Qt.MouseButtons: ... + @staticmethod + def queryKeyboardModifiers() -> QtCore.Qt.KeyboardModifiers: ... + @staticmethod + def keyboardModifiers() -> QtCore.Qt.KeyboardModifiers: ... + @staticmethod + def setPalette(pal: 'QPalette') -> None: ... + @staticmethod + def palette() -> 'QPalette': ... + @staticmethod + def clipboard() -> QClipboard: ... + @staticmethod + def setFont(a0: QFont) -> None: ... + @staticmethod + def font() -> QFont: ... + @staticmethod + def restoreOverrideCursor() -> None: ... + @staticmethod + def changeOverrideCursor(a0: typing.Union[QCursor, QtCore.Qt.CursorShape]) -> None: ... + @staticmethod + def setOverrideCursor(a0: typing.Union[QCursor, QtCore.Qt.CursorShape]) -> None: ... + @staticmethod + def overrideCursor() -> QCursor: ... + @staticmethod + def screens() -> typing.List['QScreen']: ... + @staticmethod + def primaryScreen() -> 'QScreen': ... + @staticmethod + def focusObject() -> QtCore.QObject: ... + @staticmethod + def focusWindow() -> 'QWindow': ... + @staticmethod + def platformName() -> str: ... + @staticmethod + def topLevelAt(pos: QtCore.QPoint) -> 'QWindow': ... + @staticmethod + def topLevelWindows() -> typing.List['QWindow']: ... + @staticmethod + def allWindows() -> typing.List['QWindow']: ... + + +class QIcon(sip.wrapper): + + class State(int): ... + On = ... # type: 'QIcon.State' + Off = ... # type: 'QIcon.State' + + class Mode(int): ... + Normal = ... # type: 'QIcon.Mode' + Disabled = ... # type: 'QIcon.Mode' + Active = ... # type: 'QIcon.Mode' + Selected = ... # type: 'QIcon.Mode' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, pixmap: QPixmap) -> None: ... + @typing.overload + def __init__(self, other: 'QIcon') -> None: ... + @typing.overload + def __init__(self, fileName: str) -> None: ... + @typing.overload + def __init__(self, engine: 'QIconEngine') -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + @staticmethod + def setFallbackThemeName(name: str) -> None: ... + @staticmethod + def fallbackThemeName() -> str: ... + @staticmethod + def setFallbackSearchPaths(paths: typing.Iterable[str]) -> None: ... + @staticmethod + def fallbackSearchPaths() -> typing.List[str]: ... + def isMask(self) -> bool: ... + def setIsMask(self, isMask: bool) -> None: ... + def swap(self, other: 'QIcon') -> None: ... + def name(self) -> str: ... + @staticmethod + def setThemeName(path: str) -> None: ... + @staticmethod + def themeName() -> str: ... + @staticmethod + def setThemeSearchPaths(searchpath: typing.Iterable[str]) -> None: ... + @staticmethod + def themeSearchPaths() -> typing.List[str]: ... + @staticmethod + def hasThemeIcon(name: str) -> bool: ... + @typing.overload + @staticmethod + def fromTheme(name: str) -> 'QIcon': ... + @typing.overload + @staticmethod + def fromTheme(name: str, fallback: 'QIcon') -> 'QIcon': ... + def cacheKey(self) -> int: ... + def addFile(self, fileName: str, size: QtCore.QSize = ..., mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> None: ... + def addPixmap(self, pixmap: QPixmap, mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> None: ... + def isDetached(self) -> bool: ... + def isNull(self) -> bool: ... + @typing.overload + def paint(self, painter: 'QPainter', rect: QtCore.QRect, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag] = ..., mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> None: ... + @typing.overload + def paint(self, painter: 'QPainter', x: int, y: int, w: int, h: int, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag] = ..., mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> None: ... + def availableSizes(self, mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> typing.List[QtCore.QSize]: ... + @typing.overload + def actualSize(self, size: QtCore.QSize, mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> QtCore.QSize: ... + @typing.overload + def actualSize(self, window: 'QWindow', size: QtCore.QSize, mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> QtCore.QSize: ... + @typing.overload + def pixmap(self, size: QtCore.QSize, mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> QPixmap: ... + @typing.overload + def pixmap(self, w: int, h: int, mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> QPixmap: ... + @typing.overload + def pixmap(self, extent: int, mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> QPixmap: ... + @typing.overload + def pixmap(self, window: 'QWindow', size: QtCore.QSize, mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> QPixmap: ... + + +class QIconEngine(sip.wrapper): + + class IconEngineHook(int): ... + AvailableSizesHook = ... # type: 'QIconEngine.IconEngineHook' + IconNameHook = ... # type: 'QIconEngine.IconEngineHook' + IsNullHook = ... # type: 'QIconEngine.IconEngineHook' + ScaledPixmapHook = ... # type: 'QIconEngine.IconEngineHook' + + class AvailableSizesArgument(sip.simplewrapper): + + mode = ... # type: QIcon.Mode + sizes = ... # type: typing.Iterable[QtCore.QSize] + state = ... # type: QIcon.State + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QIconEngine.AvailableSizesArgument') -> None: ... + + class ScaledPixmapArgument(sip.simplewrapper): + + mode = ... # type: QIcon.Mode + pixmap = ... # type: QPixmap + scale = ... # type: float + size = ... # type: QtCore.QSize + state = ... # type: QIcon.State + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QIconEngine.ScaledPixmapArgument') -> None: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QIconEngine') -> None: ... + + def scaledPixmap(self, size: QtCore.QSize, mode: QIcon.Mode, state: QIcon.State, scale: float) -> QPixmap: ... + def isNull(self) -> bool: ... + def iconName(self) -> str: ... + def availableSizes(self, mode: QIcon.Mode = ..., state: QIcon.State = ...) -> typing.List[QtCore.QSize]: ... + def write(self, out: QtCore.QDataStream) -> bool: ... + def read(self, in_: QtCore.QDataStream) -> bool: ... + def clone(self) -> 'QIconEngine': ... + def key(self) -> str: ... + def addFile(self, fileName: str, size: QtCore.QSize, mode: QIcon.Mode, state: QIcon.State) -> None: ... + def addPixmap(self, pixmap: QPixmap, mode: QIcon.Mode, state: QIcon.State) -> None: ... + def pixmap(self, size: QtCore.QSize, mode: QIcon.Mode, state: QIcon.State) -> QPixmap: ... + def actualSize(self, size: QtCore.QSize, mode: QIcon.Mode, state: QIcon.State) -> QtCore.QSize: ... + def paint(self, painter: 'QPainter', rect: QtCore.QRect, mode: QIcon.Mode, state: QIcon.State) -> None: ... + + +class QImage(QPaintDevice): + + class Format(int): ... + Format_Invalid = ... # type: 'QImage.Format' + Format_Mono = ... # type: 'QImage.Format' + Format_MonoLSB = ... # type: 'QImage.Format' + Format_Indexed8 = ... # type: 'QImage.Format' + Format_RGB32 = ... # type: 'QImage.Format' + Format_ARGB32 = ... # type: 'QImage.Format' + Format_ARGB32_Premultiplied = ... # type: 'QImage.Format' + Format_RGB16 = ... # type: 'QImage.Format' + Format_ARGB8565_Premultiplied = ... # type: 'QImage.Format' + Format_RGB666 = ... # type: 'QImage.Format' + Format_ARGB6666_Premultiplied = ... # type: 'QImage.Format' + Format_RGB555 = ... # type: 'QImage.Format' + Format_ARGB8555_Premultiplied = ... # type: 'QImage.Format' + Format_RGB888 = ... # type: 'QImage.Format' + Format_RGB444 = ... # type: 'QImage.Format' + Format_ARGB4444_Premultiplied = ... # type: 'QImage.Format' + Format_RGBX8888 = ... # type: 'QImage.Format' + Format_RGBA8888 = ... # type: 'QImage.Format' + Format_RGBA8888_Premultiplied = ... # type: 'QImage.Format' + Format_BGR30 = ... # type: 'QImage.Format' + Format_A2BGR30_Premultiplied = ... # type: 'QImage.Format' + Format_RGB30 = ... # type: 'QImage.Format' + Format_A2RGB30_Premultiplied = ... # type: 'QImage.Format' + Format_Alpha8 = ... # type: 'QImage.Format' + Format_Grayscale8 = ... # type: 'QImage.Format' + Format_RGBX64 = ... # type: 'QImage.Format' + Format_RGBA64 = ... # type: 'QImage.Format' + Format_RGBA64_Premultiplied = ... # type: 'QImage.Format' + Format_Grayscale16 = ... # type: 'QImage.Format' + + class InvertMode(int): ... + InvertRgb = ... # type: 'QImage.InvertMode' + InvertRgba = ... # type: 'QImage.InvertMode' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, size: QtCore.QSize, format: 'QImage.Format') -> None: ... + @typing.overload + def __init__(self, width: int, height: int, format: 'QImage.Format') -> None: ... + @typing.overload + def __init__(self, data: bytes, width: int, height: int, format: 'QImage.Format') -> None: ... + @typing.overload + def __init__(self, data: sip.voidptr, width: int, height: int, format: 'QImage.Format') -> None: ... + @typing.overload + def __init__(self, data: bytes, width: int, height: int, bytesPerLine: int, format: 'QImage.Format') -> None: ... + @typing.overload + def __init__(self, data: sip.voidptr, width: int, height: int, bytesPerLine: int, format: 'QImage.Format') -> None: ... + @typing.overload + def __init__(self, xpm: typing.List[str]) -> None: ... + @typing.overload + def __init__(self, fileName: str, format: typing.Optional[str] = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QImage') -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + def convertTo(self, f: 'QImage.Format', flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> None: ... + def sizeInBytes(self) -> int: ... + def reinterpretAsFormat(self, f: 'QImage.Format') -> bool: ... + @typing.overload + def setPixelColor(self, x: int, y: int, c: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def setPixelColor(self, pt: QtCore.QPoint, c: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def pixelColor(self, x: int, y: int) -> QColor: ... + @typing.overload + def pixelColor(self, pt: QtCore.QPoint) -> QColor: ... + @staticmethod + def toImageFormat(format: 'QPixelFormat') -> 'QImage.Format': ... + @staticmethod + def toPixelFormat(format: 'QImage.Format') -> 'QPixelFormat': ... + def pixelFormat(self) -> 'QPixelFormat': ... + def setDevicePixelRatio(self, scaleFactor: float) -> None: ... + def devicePixelRatio(self) -> float: ... + def swap(self, other: 'QImage') -> None: ... + def bitPlaneCount(self) -> int: ... + def byteCount(self) -> int: ... + def setColorCount(self, a0: int) -> None: ... + def colorCount(self) -> int: ... + def cacheKey(self) -> int: ... + @staticmethod + def trueMatrix(a0: 'QTransform', w: int, h: int) -> 'QTransform': ... + def transformed(self, matrix: 'QTransform', mode: QtCore.Qt.TransformationMode = ...) -> 'QImage': ... + def createMaskFromColor(self, color: int, mode: QtCore.Qt.MaskMode = ...) -> 'QImage': ... + def smoothScaled(self, w: int, h: int) -> 'QImage': ... + def metric(self, metric: QPaintDevice.PaintDeviceMetric) -> int: ... + def setText(self, key: str, value: str) -> None: ... + def text(self, key: str = ...) -> str: ... + def textKeys(self) -> typing.List[str]: ... + def setOffset(self, a0: QtCore.QPoint) -> None: ... + def offset(self) -> QtCore.QPoint: ... + def setDotsPerMeterY(self, a0: int) -> None: ... + def setDotsPerMeterX(self, a0: int) -> None: ... + def dotsPerMeterY(self) -> int: ... + def dotsPerMeterX(self) -> int: ... + def paintEngine(self) -> 'QPaintEngine': ... + @typing.overload + @staticmethod + def fromData(data: bytes, format: typing.Optional[str] = ...) -> 'QImage': ... + @typing.overload + @staticmethod + def fromData(data: typing.Union[QtCore.QByteArray, bytes, bytearray], format: typing.Optional[str] = ...) -> 'QImage': ... + @typing.overload + def save(self, fileName: str, format: typing.Optional[str] = ..., quality: int = ...) -> bool: ... + @typing.overload + def save(self, device: QtCore.QIODevice, format: typing.Optional[str] = ..., quality: int = ...) -> bool: ... + @typing.overload + def loadFromData(self, data: bytes, format: typing.Optional[str] = ...) -> bool: ... + @typing.overload + def loadFromData(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], format: typing.Optional[str] = ...) -> bool: ... + @typing.overload + def load(self, device: QtCore.QIODevice, format: str) -> bool: ... + @typing.overload + def load(self, fileName: str, format: typing.Optional[str] = ...) -> bool: ... + def invertPixels(self, mode: 'QImage.InvertMode' = ...) -> None: ... + def rgbSwapped(self) -> 'QImage': ... + def mirrored(self, horizontal: bool = ..., vertical: bool = ...) -> 'QImage': ... + def scaledToHeight(self, height: int, mode: QtCore.Qt.TransformationMode = ...) -> 'QImage': ... + def scaledToWidth(self, width: int, mode: QtCore.Qt.TransformationMode = ...) -> 'QImage': ... + @typing.overload + def scaled(self, width: int, height: int, aspectRatioMode: QtCore.Qt.AspectRatioMode = ..., transformMode: QtCore.Qt.TransformationMode = ...) -> 'QImage': ... + @typing.overload + def scaled(self, size: QtCore.QSize, aspectRatioMode: QtCore.Qt.AspectRatioMode = ..., transformMode: QtCore.Qt.TransformationMode = ...) -> 'QImage': ... + def createHeuristicMask(self, clipTight: bool = ...) -> 'QImage': ... + def createAlphaMask(self, flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> 'QImage': ... + def hasAlphaChannel(self) -> bool: ... + @typing.overload + def fill(self, color: QtCore.Qt.GlobalColor) -> None: ... + @typing.overload + def fill(self, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def fill(self, pixel: int) -> None: ... + def setColorTable(self, colors: typing.Iterable[int]) -> None: ... + def colorTable(self) -> typing.List[int]: ... + @typing.overload + def setPixel(self, pt: QtCore.QPoint, index_or_rgb: int) -> None: ... + @typing.overload + def setPixel(self, x: int, y: int, index_or_rgb: int) -> None: ... + @typing.overload + def pixel(self, pt: QtCore.QPoint) -> int: ... + @typing.overload + def pixel(self, x: int, y: int) -> int: ... + @typing.overload + def pixelIndex(self, pt: QtCore.QPoint) -> int: ... + @typing.overload + def pixelIndex(self, x: int, y: int) -> int: ... + @typing.overload + def valid(self, pt: QtCore.QPoint) -> bool: ... + @typing.overload + def valid(self, x: int, y: int) -> bool: ... + def bytesPerLine(self) -> int: ... + def constScanLine(self, a0: int) -> sip.voidptr: ... + def scanLine(self, a0: int) -> sip.voidptr: ... + def constBits(self) -> sip.voidptr: ... + def bits(self) -> sip.voidptr: ... + def isGrayscale(self) -> bool: ... + def allGray(self) -> bool: ... + def setColor(self, i: int, c: int) -> None: ... + def color(self, i: int) -> int: ... + def depth(self) -> int: ... + def rect(self) -> QtCore.QRect: ... + def size(self) -> QtCore.QSize: ... + def height(self) -> int: ... + def width(self) -> int: ... + @typing.overload + def convertToFormat(self, f: 'QImage.Format', flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> 'QImage': ... + @typing.overload + def convertToFormat(self, f: 'QImage.Format', colorTable: typing.Iterable[int], flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> 'QImage': ... + def format(self) -> 'QImage.Format': ... + @typing.overload + def copy(self, rect: QtCore.QRect = ...) -> 'QImage': ... + @typing.overload + def copy(self, x: int, y: int, w: int, h: int) -> 'QImage': ... + def isDetached(self) -> bool: ... + def detach(self) -> None: ... + def devType(self) -> int: ... + def isNull(self) -> bool: ... + + +class QImageIOHandler(sip.simplewrapper): + + class Transformation(int): ... + TransformationNone = ... # type: 'QImageIOHandler.Transformation' + TransformationMirror = ... # type: 'QImageIOHandler.Transformation' + TransformationFlip = ... # type: 'QImageIOHandler.Transformation' + TransformationRotate180 = ... # type: 'QImageIOHandler.Transformation' + TransformationRotate90 = ... # type: 'QImageIOHandler.Transformation' + TransformationMirrorAndRotate90 = ... # type: 'QImageIOHandler.Transformation' + TransformationFlipAndRotate90 = ... # type: 'QImageIOHandler.Transformation' + TransformationRotate270 = ... # type: 'QImageIOHandler.Transformation' + + class ImageOption(int): ... + Size = ... # type: 'QImageIOHandler.ImageOption' + ClipRect = ... # type: 'QImageIOHandler.ImageOption' + Description = ... # type: 'QImageIOHandler.ImageOption' + ScaledClipRect = ... # type: 'QImageIOHandler.ImageOption' + ScaledSize = ... # type: 'QImageIOHandler.ImageOption' + CompressionRatio = ... # type: 'QImageIOHandler.ImageOption' + Gamma = ... # type: 'QImageIOHandler.ImageOption' + Quality = ... # type: 'QImageIOHandler.ImageOption' + Name = ... # type: 'QImageIOHandler.ImageOption' + SubType = ... # type: 'QImageIOHandler.ImageOption' + IncrementalReading = ... # type: 'QImageIOHandler.ImageOption' + Endianness = ... # type: 'QImageIOHandler.ImageOption' + Animation = ... # type: 'QImageIOHandler.ImageOption' + BackgroundColor = ... # type: 'QImageIOHandler.ImageOption' + SupportedSubTypes = ... # type: 'QImageIOHandler.ImageOption' + OptimizedWrite = ... # type: 'QImageIOHandler.ImageOption' + ProgressiveScanWrite = ... # type: 'QImageIOHandler.ImageOption' + ImageTransformation = ... # type: 'QImageIOHandler.ImageOption' + TransformedByDefault = ... # type: 'QImageIOHandler.ImageOption' + + class Transformations(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QImageIOHandler.Transformations', 'QImageIOHandler.Transformation']) -> None: ... + @typing.overload + def __init__(self, a0: 'QImageIOHandler.Transformations') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QImageIOHandler.Transformations': ... + def __int__(self) -> int: ... + + def __init__(self) -> None: ... + + def currentImageRect(self) -> QtCore.QRect: ... + def currentImageNumber(self) -> int: ... + def nextImageDelay(self) -> int: ... + def imageCount(self) -> int: ... + def loopCount(self) -> int: ... + def jumpToImage(self, imageNumber: int) -> bool: ... + def jumpToNextImage(self) -> bool: ... + def supportsOption(self, option: 'QImageIOHandler.ImageOption') -> bool: ... + def setOption(self, option: 'QImageIOHandler.ImageOption', value: typing.Any) -> None: ... + def option(self, option: 'QImageIOHandler.ImageOption') -> typing.Any: ... + def write(self, image: QImage) -> bool: ... + def read(self, image: QImage) -> bool: ... + def canRead(self) -> bool: ... + def format(self) -> QtCore.QByteArray: ... + def setFormat(self, format: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def device(self) -> QtCore.QIODevice: ... + def setDevice(self, device: QtCore.QIODevice) -> None: ... + + +class QImageReader(sip.simplewrapper): + + class ImageReaderError(int): ... + UnknownError = ... # type: 'QImageReader.ImageReaderError' + FileNotFoundError = ... # type: 'QImageReader.ImageReaderError' + DeviceError = ... # type: 'QImageReader.ImageReaderError' + UnsupportedFormatError = ... # type: 'QImageReader.ImageReaderError' + InvalidDataError = ... # type: 'QImageReader.ImageReaderError' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, device: QtCore.QIODevice, format: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... + @typing.overload + def __init__(self, fileName: str, format: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... + + @staticmethod + def imageFormatsForMimeType(mimeType: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.List[QtCore.QByteArray]: ... + def gamma(self) -> float: ... + def setGamma(self, gamma: float) -> None: ... + def autoTransform(self) -> bool: ... + def setAutoTransform(self, enabled: bool) -> None: ... + def transformation(self) -> QImageIOHandler.Transformations: ... + def supportedSubTypes(self) -> typing.List[QtCore.QByteArray]: ... + def subType(self) -> QtCore.QByteArray: ... + @staticmethod + def supportedMimeTypes() -> typing.List[QtCore.QByteArray]: ... + def decideFormatFromContent(self) -> bool: ... + def setDecideFormatFromContent(self, ignored: bool) -> None: ... + def autoDetectImageFormat(self) -> bool: ... + def setAutoDetectImageFormat(self, enabled: bool) -> None: ... + def supportsOption(self, option: QImageIOHandler.ImageOption) -> bool: ... + def quality(self) -> int: ... + def setQuality(self, quality: int) -> None: ... + def supportsAnimation(self) -> bool: ... + def backgroundColor(self) -> QColor: ... + def setBackgroundColor(self, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def text(self, key: str) -> str: ... + def textKeys(self) -> typing.List[str]: ... + @staticmethod + def supportedImageFormats() -> typing.List[QtCore.QByteArray]: ... + @typing.overload + @staticmethod + def imageFormat(fileName: str) -> QtCore.QByteArray: ... + @typing.overload + @staticmethod + def imageFormat(device: QtCore.QIODevice) -> QtCore.QByteArray: ... + @typing.overload + def imageFormat(self) -> QImage.Format: ... + def errorString(self) -> str: ... + def error(self) -> 'QImageReader.ImageReaderError': ... + def currentImageRect(self) -> QtCore.QRect: ... + def currentImageNumber(self) -> int: ... + def nextImageDelay(self) -> int: ... + def imageCount(self) -> int: ... + def loopCount(self) -> int: ... + def jumpToImage(self, imageNumber: int) -> bool: ... + def jumpToNextImage(self) -> bool: ... + @typing.overload + def read(self) -> QImage: ... + @typing.overload + def read(self, image: QImage) -> bool: ... + def canRead(self) -> bool: ... + def scaledClipRect(self) -> QtCore.QRect: ... + def setScaledClipRect(self, rect: QtCore.QRect) -> None: ... + def scaledSize(self) -> QtCore.QSize: ... + def setScaledSize(self, size: QtCore.QSize) -> None: ... + def clipRect(self) -> QtCore.QRect: ... + def setClipRect(self, rect: QtCore.QRect) -> None: ... + def size(self) -> QtCore.QSize: ... + def fileName(self) -> str: ... + def setFileName(self, fileName: str) -> None: ... + def device(self) -> QtCore.QIODevice: ... + def setDevice(self, device: QtCore.QIODevice) -> None: ... + def format(self) -> QtCore.QByteArray: ... + def setFormat(self, format: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + + +class QImageWriter(sip.simplewrapper): + + class ImageWriterError(int): ... + UnknownError = ... # type: 'QImageWriter.ImageWriterError' + DeviceError = ... # type: 'QImageWriter.ImageWriterError' + UnsupportedFormatError = ... # type: 'QImageWriter.ImageWriterError' + InvalidImageError = ... # type: 'QImageWriter.ImageWriterError' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, device: QtCore.QIODevice, format: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + @typing.overload + def __init__(self, fileName: str, format: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... + + @staticmethod + def imageFormatsForMimeType(mimeType: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.List[QtCore.QByteArray]: ... + def setTransformation(self, orientation: typing.Union[QImageIOHandler.Transformations, QImageIOHandler.Transformation]) -> None: ... + def transformation(self) -> QImageIOHandler.Transformations: ... + def progressiveScanWrite(self) -> bool: ... + def setProgressiveScanWrite(self, progressive: bool) -> None: ... + def optimizedWrite(self) -> bool: ... + def setOptimizedWrite(self, optimize: bool) -> None: ... + def supportedSubTypes(self) -> typing.List[QtCore.QByteArray]: ... + def subType(self) -> QtCore.QByteArray: ... + def setSubType(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + @staticmethod + def supportedMimeTypes() -> typing.List[QtCore.QByteArray]: ... + def compression(self) -> int: ... + def setCompression(self, compression: int) -> None: ... + def supportsOption(self, option: QImageIOHandler.ImageOption) -> bool: ... + def setText(self, key: str, text: str) -> None: ... + @staticmethod + def supportedImageFormats() -> typing.List[QtCore.QByteArray]: ... + def errorString(self) -> str: ... + def error(self) -> 'QImageWriter.ImageWriterError': ... + def write(self, image: QImage) -> bool: ... + def canWrite(self) -> bool: ... + def gamma(self) -> float: ... + def setGamma(self, gamma: float) -> None: ... + def quality(self) -> int: ... + def setQuality(self, quality: int) -> None: ... + def fileName(self) -> str: ... + def setFileName(self, fileName: str) -> None: ... + def device(self) -> QtCore.QIODevice: ... + def setDevice(self, device: QtCore.QIODevice) -> None: ... + def format(self) -> QtCore.QByteArray: ... + def setFormat(self, format: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + + +class QInputMethod(QtCore.QObject): + + class Action(int): ... + Click = ... # type: 'QInputMethod.Action' + ContextMenu = ... # type: 'QInputMethod.Action' + + def inputItemClipRectangleChanged(self) -> None: ... + def anchorRectangleChanged(self) -> None: ... + def inputItemClipRectangle(self) -> QtCore.QRectF: ... + def anchorRectangle(self) -> QtCore.QRectF: ... + def inputDirectionChanged(self, newDirection: QtCore.Qt.LayoutDirection) -> None: ... + def localeChanged(self) -> None: ... + def animatingChanged(self) -> None: ... + def visibleChanged(self) -> None: ... + def keyboardRectangleChanged(self) -> None: ... + def cursorRectangleChanged(self) -> None: ... + def invokeAction(self, a: 'QInputMethod.Action', cursorPosition: int) -> None: ... + def commit(self) -> None: ... + def reset(self) -> None: ... + def update(self, queries: typing.Union[QtCore.Qt.InputMethodQueries, QtCore.Qt.InputMethodQuery]) -> None: ... + def hide(self) -> None: ... + def show(self) -> None: ... + @staticmethod + def queryFocusObject(query: QtCore.Qt.InputMethodQuery, argument: typing.Any) -> typing.Any: ... + def setInputItemRectangle(self, rect: QtCore.QRectF) -> None: ... + def inputItemRectangle(self) -> QtCore.QRectF: ... + def inputDirection(self) -> QtCore.Qt.LayoutDirection: ... + def locale(self) -> QtCore.QLocale: ... + def isAnimating(self) -> bool: ... + def setVisible(self, visible: bool) -> None: ... + def isVisible(self) -> bool: ... + def keyboardRectangle(self) -> QtCore.QRectF: ... + def cursorRectangle(self) -> QtCore.QRectF: ... + def setInputItemTransform(self, transform: 'QTransform') -> None: ... + def inputItemTransform(self) -> 'QTransform': ... + + +class QKeySequence(sip.simplewrapper): + + class StandardKey(int): ... + UnknownKey = ... # type: 'QKeySequence.StandardKey' + HelpContents = ... # type: 'QKeySequence.StandardKey' + WhatsThis = ... # type: 'QKeySequence.StandardKey' + Open = ... # type: 'QKeySequence.StandardKey' + Close = ... # type: 'QKeySequence.StandardKey' + Save = ... # type: 'QKeySequence.StandardKey' + New = ... # type: 'QKeySequence.StandardKey' + Delete = ... # type: 'QKeySequence.StandardKey' + Cut = ... # type: 'QKeySequence.StandardKey' + Copy = ... # type: 'QKeySequence.StandardKey' + Paste = ... # type: 'QKeySequence.StandardKey' + Undo = ... # type: 'QKeySequence.StandardKey' + Redo = ... # type: 'QKeySequence.StandardKey' + Back = ... # type: 'QKeySequence.StandardKey' + Forward = ... # type: 'QKeySequence.StandardKey' + Refresh = ... # type: 'QKeySequence.StandardKey' + ZoomIn = ... # type: 'QKeySequence.StandardKey' + ZoomOut = ... # type: 'QKeySequence.StandardKey' + Print = ... # type: 'QKeySequence.StandardKey' + AddTab = ... # type: 'QKeySequence.StandardKey' + NextChild = ... # type: 'QKeySequence.StandardKey' + PreviousChild = ... # type: 'QKeySequence.StandardKey' + Find = ... # type: 'QKeySequence.StandardKey' + FindNext = ... # type: 'QKeySequence.StandardKey' + FindPrevious = ... # type: 'QKeySequence.StandardKey' + Replace = ... # type: 'QKeySequence.StandardKey' + SelectAll = ... # type: 'QKeySequence.StandardKey' + Bold = ... # type: 'QKeySequence.StandardKey' + Italic = ... # type: 'QKeySequence.StandardKey' + Underline = ... # type: 'QKeySequence.StandardKey' + MoveToNextChar = ... # type: 'QKeySequence.StandardKey' + MoveToPreviousChar = ... # type: 'QKeySequence.StandardKey' + MoveToNextWord = ... # type: 'QKeySequence.StandardKey' + MoveToPreviousWord = ... # type: 'QKeySequence.StandardKey' + MoveToNextLine = ... # type: 'QKeySequence.StandardKey' + MoveToPreviousLine = ... # type: 'QKeySequence.StandardKey' + MoveToNextPage = ... # type: 'QKeySequence.StandardKey' + MoveToPreviousPage = ... # type: 'QKeySequence.StandardKey' + MoveToStartOfLine = ... # type: 'QKeySequence.StandardKey' + MoveToEndOfLine = ... # type: 'QKeySequence.StandardKey' + MoveToStartOfBlock = ... # type: 'QKeySequence.StandardKey' + MoveToEndOfBlock = ... # type: 'QKeySequence.StandardKey' + MoveToStartOfDocument = ... # type: 'QKeySequence.StandardKey' + MoveToEndOfDocument = ... # type: 'QKeySequence.StandardKey' + SelectNextChar = ... # type: 'QKeySequence.StandardKey' + SelectPreviousChar = ... # type: 'QKeySequence.StandardKey' + SelectNextWord = ... # type: 'QKeySequence.StandardKey' + SelectPreviousWord = ... # type: 'QKeySequence.StandardKey' + SelectNextLine = ... # type: 'QKeySequence.StandardKey' + SelectPreviousLine = ... # type: 'QKeySequence.StandardKey' + SelectNextPage = ... # type: 'QKeySequence.StandardKey' + SelectPreviousPage = ... # type: 'QKeySequence.StandardKey' + SelectStartOfLine = ... # type: 'QKeySequence.StandardKey' + SelectEndOfLine = ... # type: 'QKeySequence.StandardKey' + SelectStartOfBlock = ... # type: 'QKeySequence.StandardKey' + SelectEndOfBlock = ... # type: 'QKeySequence.StandardKey' + SelectStartOfDocument = ... # type: 'QKeySequence.StandardKey' + SelectEndOfDocument = ... # type: 'QKeySequence.StandardKey' + DeleteStartOfWord = ... # type: 'QKeySequence.StandardKey' + DeleteEndOfWord = ... # type: 'QKeySequence.StandardKey' + DeleteEndOfLine = ... # type: 'QKeySequence.StandardKey' + InsertParagraphSeparator = ... # type: 'QKeySequence.StandardKey' + InsertLineSeparator = ... # type: 'QKeySequence.StandardKey' + SaveAs = ... # type: 'QKeySequence.StandardKey' + Preferences = ... # type: 'QKeySequence.StandardKey' + Quit = ... # type: 'QKeySequence.StandardKey' + FullScreen = ... # type: 'QKeySequence.StandardKey' + Deselect = ... # type: 'QKeySequence.StandardKey' + DeleteCompleteLine = ... # type: 'QKeySequence.StandardKey' + Backspace = ... # type: 'QKeySequence.StandardKey' + Cancel = ... # type: 'QKeySequence.StandardKey' + + class SequenceMatch(int): ... + NoMatch = ... # type: 'QKeySequence.SequenceMatch' + PartialMatch = ... # type: 'QKeySequence.SequenceMatch' + ExactMatch = ... # type: 'QKeySequence.SequenceMatch' + + class SequenceFormat(int): ... + NativeText = ... # type: 'QKeySequence.SequenceFormat' + PortableText = ... # type: 'QKeySequence.SequenceFormat' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, ks: typing.Union['QKeySequence', 'QKeySequence.StandardKey', str, int]) -> None: ... + @typing.overload + def __init__(self, key: str, format: 'QKeySequence.SequenceFormat' = ...) -> None: ... + @typing.overload + def __init__(self, k1: int, key2: int = ..., key3: int = ..., key4: int = ...) -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + def __hash__(self) -> int: ... + @staticmethod + def listToString(list: typing.Iterable[typing.Union['QKeySequence', 'QKeySequence.StandardKey', str, int]], format: 'QKeySequence.SequenceFormat' = ...) -> str: ... + @staticmethod + def listFromString(str: str, format: 'QKeySequence.SequenceFormat' = ...) -> typing.List['QKeySequence']: ... + @staticmethod + def keyBindings(key: 'QKeySequence.StandardKey') -> typing.List['QKeySequence']: ... + @staticmethod + def fromString(str: str, format: 'QKeySequence.SequenceFormat' = ...) -> 'QKeySequence': ... + def toString(self, format: 'QKeySequence.SequenceFormat' = ...) -> str: ... + def swap(self, other: 'QKeySequence') -> None: ... + def isDetached(self) -> bool: ... + def __getitem__(self, i: int) -> int: ... + @staticmethod + def mnemonic(text: str) -> 'QKeySequence': ... + def matches(self, seq: typing.Union['QKeySequence', 'QKeySequence.StandardKey', str, int]) -> 'QKeySequence.SequenceMatch': ... + def isEmpty(self) -> bool: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + + +class QMatrix4x4(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, values: typing.Sequence[float]) -> None: ... + @typing.overload + def __init__(self, m11: float, m12: float, m13: float, m14: float, m21: float, m22: float, m23: float, m24: float, m31: float, m32: float, m33: float, m34: float, m41: float, m42: float, m43: float, m44: float) -> None: ... + @typing.overload + def __init__(self, transform: 'QTransform') -> None: ... + @typing.overload + def __init__(self, a0: 'QMatrix4x4') -> None: ... + + def __neg__(self) -> 'QMatrix4x4': ... + def isAffine(self) -> bool: ... + @typing.overload + def viewport(self, left: float, bottom: float, width: float, height: float, nearPlane: float = ..., farPlane: float = ...) -> None: ... + @typing.overload + def viewport(self, rect: QtCore.QRectF) -> None: ... + def mapVector(self, vector: 'QVector3D') -> 'QVector3D': ... + @typing.overload + def map(self, point: QtCore.QPoint) -> QtCore.QPoint: ... + @typing.overload + def map(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + @typing.overload + def map(self, point: 'QVector3D') -> 'QVector3D': ... + @typing.overload + def map(self, point: 'QVector4D') -> 'QVector4D': ... + def fill(self, value: float) -> None: ... + def setToIdentity(self) -> None: ... + def isIdentity(self) -> bool: ... + def setRow(self, index: int, value: 'QVector4D') -> None: ... + def row(self, index: int) -> 'QVector4D': ... + def setColumn(self, index: int, value: 'QVector4D') -> None: ... + def column(self, index: int) -> 'QVector4D': ... + def __setitem__(self, a0: typing.Any, a1: float) -> None: ... + def __getitem__(self, a0: typing.Any) -> typing.Any: ... + def optimize(self) -> None: ... + def data(self) -> typing.List[float]: ... + @typing.overload + def mapRect(self, rect: QtCore.QRect) -> QtCore.QRect: ... + @typing.overload + def mapRect(self, rect: QtCore.QRectF) -> QtCore.QRectF: ... + @typing.overload + def toTransform(self) -> 'QTransform': ... + @typing.overload + def toTransform(self, distanceToPlane: float) -> 'QTransform': ... + def copyDataTo(self) -> typing.List[float]: ... + def lookAt(self, eye: 'QVector3D', center: 'QVector3D', up: 'QVector3D') -> None: ... + def perspective(self, angle: float, aspect: float, nearPlane: float, farPlane: float) -> None: ... + def frustum(self, left: float, right: float, bottom: float, top: float, nearPlane: float, farPlane: float) -> None: ... + @typing.overload + def ortho(self, rect: QtCore.QRect) -> None: ... + @typing.overload + def ortho(self, rect: QtCore.QRectF) -> None: ... + @typing.overload + def ortho(self, left: float, right: float, bottom: float, top: float, nearPlane: float, farPlane: float) -> None: ... + @typing.overload + def rotate(self, angle: float, vector: 'QVector3D') -> None: ... + @typing.overload + def rotate(self, angle: float, x: float, y: float, z: float = ...) -> None: ... + @typing.overload + def rotate(self, quaternion: 'QQuaternion') -> None: ... + @typing.overload + def translate(self, vector: 'QVector3D') -> None: ... + @typing.overload + def translate(self, x: float, y: float) -> None: ... + @typing.overload + def translate(self, x: float, y: float, z: float) -> None: ... + @typing.overload + def scale(self, vector: 'QVector3D') -> None: ... + @typing.overload + def scale(self, x: float, y: float) -> None: ... + @typing.overload + def scale(self, x: float, y: float, z: float) -> None: ... + @typing.overload + def scale(self, factor: float) -> None: ... + def normalMatrix(self) -> QMatrix3x3: ... + def transposed(self) -> 'QMatrix4x4': ... + def inverted(self) -> typing.Tuple['QMatrix4x4', bool]: ... + def determinant(self) -> float: ... + def __repr__(self) -> str: ... + + +class QMovie(QtCore.QObject): + + class CacheMode(int): ... + CacheNone = ... # type: 'QMovie.CacheMode' + CacheAll = ... # type: 'QMovie.CacheMode' + + class MovieState(int): ... + NotRunning = ... # type: 'QMovie.MovieState' + Paused = ... # type: 'QMovie.MovieState' + Running = ... # type: 'QMovie.MovieState' + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, device: QtCore.QIODevice, format: typing.Union[QtCore.QByteArray, bytes, bytearray] = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, fileName: str, format: typing.Union[QtCore.QByteArray, bytes, bytearray] = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def lastErrorString(self) -> str: ... + def lastError(self) -> QImageReader.ImageReaderError: ... + def stop(self) -> None: ... + def setPaused(self, paused: bool) -> None: ... + def jumpToNextFrame(self) -> bool: ... + def start(self) -> None: ... + def frameChanged(self, frameNumber: int) -> None: ... + def finished(self) -> None: ... + def error(self, error: QImageReader.ImageReaderError) -> None: ... + def stateChanged(self, state: 'QMovie.MovieState') -> None: ... + def updated(self, rect: QtCore.QRect) -> None: ... + def resized(self, size: QtCore.QSize) -> None: ... + def started(self) -> None: ... + def setCacheMode(self, mode: 'QMovie.CacheMode') -> None: ... + def cacheMode(self) -> 'QMovie.CacheMode': ... + def setScaledSize(self, size: QtCore.QSize) -> None: ... + def scaledSize(self) -> QtCore.QSize: ... + def speed(self) -> int: ... + def setSpeed(self, percentSpeed: int) -> None: ... + def currentFrameNumber(self) -> int: ... + def nextFrameDelay(self) -> int: ... + def frameCount(self) -> int: ... + def loopCount(self) -> int: ... + def jumpToFrame(self, frameNumber: int) -> bool: ... + def isValid(self) -> bool: ... + def currentPixmap(self) -> QPixmap: ... + def currentImage(self) -> QImage: ... + def frameRect(self) -> QtCore.QRect: ... + def state(self) -> 'QMovie.MovieState': ... + def backgroundColor(self) -> QColor: ... + def setBackgroundColor(self, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def format(self) -> QtCore.QByteArray: ... + def setFormat(self, format: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def fileName(self) -> str: ... + def setFileName(self, fileName: str) -> None: ... + def device(self) -> QtCore.QIODevice: ... + def setDevice(self, device: QtCore.QIODevice) -> None: ... + @staticmethod + def supportedFormats() -> typing.List[QtCore.QByteArray]: ... + + +class QSurface(sip.simplewrapper): + + class SurfaceType(int): ... + RasterSurface = ... # type: 'QSurface.SurfaceType' + OpenGLSurface = ... # type: 'QSurface.SurfaceType' + RasterGLSurface = ... # type: 'QSurface.SurfaceType' + OpenVGSurface = ... # type: 'QSurface.SurfaceType' + VulkanSurface = ... # type: 'QSurface.SurfaceType' + MetalSurface = ... # type: 'QSurface.SurfaceType' + + class SurfaceClass(int): ... + Window = ... # type: 'QSurface.SurfaceClass' + Offscreen = ... # type: 'QSurface.SurfaceClass' + + @typing.overload + def __init__(self, type: 'QSurface.SurfaceClass') -> None: ... + @typing.overload + def __init__(self, a0: 'QSurface') -> None: ... + + def supportsOpenGL(self) -> bool: ... + def size(self) -> QtCore.QSize: ... + def surfaceType(self) -> 'QSurface.SurfaceType': ... + def format(self) -> 'QSurfaceFormat': ... + def surfaceClass(self) -> 'QSurface.SurfaceClass': ... + + +class QOffscreenSurface(QtCore.QObject, QSurface): + + @typing.overload + def __init__(self, screen: typing.Optional['QScreen'] = ...) -> None: ... + @typing.overload + def __init__(self, screen: 'QScreen', parent: QtCore.QObject) -> None: ... + + def setNativeHandle(self, handle: sip.voidptr) -> None: ... + def nativeHandle(self) -> sip.voidptr: ... + def screenChanged(self, screen: 'QScreen') -> None: ... + def setScreen(self, screen: 'QScreen') -> None: ... + def screen(self) -> 'QScreen': ... + def size(self) -> QtCore.QSize: ... + def requestedFormat(self) -> 'QSurfaceFormat': ... + def format(self) -> 'QSurfaceFormat': ... + def setFormat(self, format: 'QSurfaceFormat') -> None: ... + def isValid(self) -> bool: ... + def destroy(self) -> None: ... + def create(self) -> None: ... + def surfaceType(self) -> QSurface.SurfaceType: ... + + +class QOpenGLBuffer(sip.simplewrapper): + + class RangeAccessFlag(int): ... + RangeRead = ... # type: 'QOpenGLBuffer.RangeAccessFlag' + RangeWrite = ... # type: 'QOpenGLBuffer.RangeAccessFlag' + RangeInvalidate = ... # type: 'QOpenGLBuffer.RangeAccessFlag' + RangeInvalidateBuffer = ... # type: 'QOpenGLBuffer.RangeAccessFlag' + RangeFlushExplicit = ... # type: 'QOpenGLBuffer.RangeAccessFlag' + RangeUnsynchronized = ... # type: 'QOpenGLBuffer.RangeAccessFlag' + + class Access(int): ... + ReadOnly = ... # type: 'QOpenGLBuffer.Access' + WriteOnly = ... # type: 'QOpenGLBuffer.Access' + ReadWrite = ... # type: 'QOpenGLBuffer.Access' + + class UsagePattern(int): ... + StreamDraw = ... # type: 'QOpenGLBuffer.UsagePattern' + StreamRead = ... # type: 'QOpenGLBuffer.UsagePattern' + StreamCopy = ... # type: 'QOpenGLBuffer.UsagePattern' + StaticDraw = ... # type: 'QOpenGLBuffer.UsagePattern' + StaticRead = ... # type: 'QOpenGLBuffer.UsagePattern' + StaticCopy = ... # type: 'QOpenGLBuffer.UsagePattern' + DynamicDraw = ... # type: 'QOpenGLBuffer.UsagePattern' + DynamicRead = ... # type: 'QOpenGLBuffer.UsagePattern' + DynamicCopy = ... # type: 'QOpenGLBuffer.UsagePattern' + + class Type(int): ... + VertexBuffer = ... # type: 'QOpenGLBuffer.Type' + IndexBuffer = ... # type: 'QOpenGLBuffer.Type' + PixelPackBuffer = ... # type: 'QOpenGLBuffer.Type' + PixelUnpackBuffer = ... # type: 'QOpenGLBuffer.Type' + + class RangeAccessFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QOpenGLBuffer.RangeAccessFlags', 'QOpenGLBuffer.RangeAccessFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QOpenGLBuffer.RangeAccessFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QOpenGLBuffer.RangeAccessFlags': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, type: 'QOpenGLBuffer.Type') -> None: ... + @typing.overload + def __init__(self, other: 'QOpenGLBuffer') -> None: ... + + def mapRange(self, offset: int, count: int, access: typing.Union['QOpenGLBuffer.RangeAccessFlags', 'QOpenGLBuffer.RangeAccessFlag']) -> sip.voidptr: ... + def unmap(self) -> bool: ... + def map(self, access: 'QOpenGLBuffer.Access') -> sip.voidptr: ... + @typing.overload + def allocate(self, data: sip.voidptr, count: int) -> None: ... + @typing.overload + def allocate(self, count: int) -> None: ... + def write(self, offset: int, data: sip.voidptr, count: int) -> None: ... + def read(self, offset: int, data: sip.voidptr, count: int) -> bool: ... + def __len__(self) -> int: ... + def size(self) -> int: ... + def bufferId(self) -> int: ... + @typing.overload + def release(self) -> None: ... + @typing.overload + @staticmethod + def release(type: 'QOpenGLBuffer.Type') -> None: ... + def bind(self) -> bool: ... + def destroy(self) -> None: ... + def isCreated(self) -> bool: ... + def create(self) -> bool: ... + def setUsagePattern(self, value: 'QOpenGLBuffer.UsagePattern') -> None: ... + def usagePattern(self) -> 'QOpenGLBuffer.UsagePattern': ... + def type(self) -> 'QOpenGLBuffer.Type': ... + + +class QOpenGLContextGroup(QtCore.QObject): + + @staticmethod + def currentContextGroup() -> 'QOpenGLContextGroup': ... + def shares(self) -> typing.List['QOpenGLContext']: ... + + +class QOpenGLContext(QtCore.QObject): + + class OpenGLModuleType(int): ... + LibGL = ... # type: 'QOpenGLContext.OpenGLModuleType' + LibGLES = ... # type: 'QOpenGLContext.OpenGLModuleType' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + @staticmethod + def globalShareContext() -> 'QOpenGLContext': ... + @staticmethod + def supportsThreadedOpenGL() -> bool: ... + def nativeHandle(self) -> typing.Any: ... + def setNativeHandle(self, handle: typing.Any) -> None: ... + def isOpenGLES(self) -> bool: ... + @staticmethod + def openGLModuleType() -> 'QOpenGLContext.OpenGLModuleType': ... + @staticmethod + def openGLModuleHandle() -> sip.voidptr: ... + def versionFunctions(self, versionProfile: typing.Optional['QOpenGLVersionProfile'] = ...) -> typing.Any: ... + def aboutToBeDestroyed(self) -> None: ... + def hasExtension(self, extension: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + def extensions(self) -> typing.Set[QtCore.QByteArray]: ... + @staticmethod + def areSharing(first: 'QOpenGLContext', second: 'QOpenGLContext') -> bool: ... + @staticmethod + def currentContext() -> 'QOpenGLContext': ... + def surface(self) -> QSurface: ... + def getProcAddress(self, procName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> sip.voidptr: ... + def swapBuffers(self, surface: QSurface) -> None: ... + def doneCurrent(self) -> None: ... + def makeCurrent(self, surface: QSurface) -> bool: ... + def defaultFramebufferObject(self) -> int: ... + def screen(self) -> 'QScreen': ... + def shareGroup(self) -> QOpenGLContextGroup: ... + def shareContext(self) -> 'QOpenGLContext': ... + def format(self) -> 'QSurfaceFormat': ... + def isValid(self) -> bool: ... + def create(self) -> bool: ... + def setScreen(self, screen: 'QScreen') -> None: ... + def setShareContext(self, shareContext: 'QOpenGLContext') -> None: ... + def setFormat(self, format: 'QSurfaceFormat') -> None: ... + + +class QOpenGLVersionProfile(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, format: 'QSurfaceFormat') -> None: ... + @typing.overload + def __init__(self, other: 'QOpenGLVersionProfile') -> None: ... + + def isValid(self) -> bool: ... + def isLegacyVersion(self) -> bool: ... + def hasProfiles(self) -> bool: ... + def setProfile(self, profile: 'QSurfaceFormat.OpenGLContextProfile') -> None: ... + def profile(self) -> 'QSurfaceFormat.OpenGLContextProfile': ... + def setVersion(self, majorVersion: int, minorVersion: int) -> None: ... + def version(self) -> typing.Tuple[int, int]: ... + + +class QOpenGLDebugMessage(sip.simplewrapper): + + class Severity(int): ... + InvalidSeverity = ... # type: 'QOpenGLDebugMessage.Severity' + HighSeverity = ... # type: 'QOpenGLDebugMessage.Severity' + MediumSeverity = ... # type: 'QOpenGLDebugMessage.Severity' + LowSeverity = ... # type: 'QOpenGLDebugMessage.Severity' + NotificationSeverity = ... # type: 'QOpenGLDebugMessage.Severity' + AnySeverity = ... # type: 'QOpenGLDebugMessage.Severity' + + class Type(int): ... + InvalidType = ... # type: 'QOpenGLDebugMessage.Type' + ErrorType = ... # type: 'QOpenGLDebugMessage.Type' + DeprecatedBehaviorType = ... # type: 'QOpenGLDebugMessage.Type' + UndefinedBehaviorType = ... # type: 'QOpenGLDebugMessage.Type' + PortabilityType = ... # type: 'QOpenGLDebugMessage.Type' + PerformanceType = ... # type: 'QOpenGLDebugMessage.Type' + OtherType = ... # type: 'QOpenGLDebugMessage.Type' + MarkerType = ... # type: 'QOpenGLDebugMessage.Type' + GroupPushType = ... # type: 'QOpenGLDebugMessage.Type' + GroupPopType = ... # type: 'QOpenGLDebugMessage.Type' + AnyType = ... # type: 'QOpenGLDebugMessage.Type' + + class Source(int): ... + InvalidSource = ... # type: 'QOpenGLDebugMessage.Source' + APISource = ... # type: 'QOpenGLDebugMessage.Source' + WindowSystemSource = ... # type: 'QOpenGLDebugMessage.Source' + ShaderCompilerSource = ... # type: 'QOpenGLDebugMessage.Source' + ThirdPartySource = ... # type: 'QOpenGLDebugMessage.Source' + ApplicationSource = ... # type: 'QOpenGLDebugMessage.Source' + OtherSource = ... # type: 'QOpenGLDebugMessage.Source' + AnySource = ... # type: 'QOpenGLDebugMessage.Source' + + class Sources(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QOpenGLDebugMessage.Sources', 'QOpenGLDebugMessage.Source']) -> None: ... + @typing.overload + def __init__(self, a0: 'QOpenGLDebugMessage.Sources') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QOpenGLDebugMessage.Sources': ... + def __int__(self) -> int: ... + + class Types(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QOpenGLDebugMessage.Types', 'QOpenGLDebugMessage.Type']) -> None: ... + @typing.overload + def __init__(self, a0: 'QOpenGLDebugMessage.Types') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QOpenGLDebugMessage.Types': ... + def __int__(self) -> int: ... + + class Severities(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QOpenGLDebugMessage.Severities', 'QOpenGLDebugMessage.Severity']) -> None: ... + @typing.overload + def __init__(self, a0: 'QOpenGLDebugMessage.Severities') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QOpenGLDebugMessage.Severities': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, debugMessage: 'QOpenGLDebugMessage') -> None: ... + + @staticmethod + def createThirdPartyMessage(text: str, id: int = ..., severity: 'QOpenGLDebugMessage.Severity' = ..., type: 'QOpenGLDebugMessage.Type' = ...) -> 'QOpenGLDebugMessage': ... + @staticmethod + def createApplicationMessage(text: str, id: int = ..., severity: 'QOpenGLDebugMessage.Severity' = ..., type: 'QOpenGLDebugMessage.Type' = ...) -> 'QOpenGLDebugMessage': ... + def message(self) -> str: ... + def id(self) -> int: ... + def severity(self) -> 'QOpenGLDebugMessage.Severity': ... + def type(self) -> 'QOpenGLDebugMessage.Type': ... + def source(self) -> 'QOpenGLDebugMessage.Source': ... + def swap(self, debugMessage: 'QOpenGLDebugMessage') -> None: ... + + +class QOpenGLDebugLogger(QtCore.QObject): + + class LoggingMode(int): ... + AsynchronousLogging = ... # type: 'QOpenGLDebugLogger.LoggingMode' + SynchronousLogging = ... # type: 'QOpenGLDebugLogger.LoggingMode' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def messageLogged(self, debugMessage: QOpenGLDebugMessage) -> None: ... + def stopLogging(self) -> None: ... + def startLogging(self, loggingMode: 'QOpenGLDebugLogger.LoggingMode' = ...) -> None: ... + def logMessage(self, debugMessage: QOpenGLDebugMessage) -> None: ... + def loggedMessages(self) -> typing.List[QOpenGLDebugMessage]: ... + @typing.overload + def disableMessages(self, sources: typing.Union[QOpenGLDebugMessage.Sources, QOpenGLDebugMessage.Source] = ..., types: typing.Union[QOpenGLDebugMessage.Types, QOpenGLDebugMessage.Type] = ..., severities: typing.Union[QOpenGLDebugMessage.Severities, QOpenGLDebugMessage.Severity] = ...) -> None: ... + @typing.overload + def disableMessages(self, ids: typing.Iterable[int], sources: typing.Union[QOpenGLDebugMessage.Sources, QOpenGLDebugMessage.Source] = ..., types: typing.Union[QOpenGLDebugMessage.Types, QOpenGLDebugMessage.Type] = ...) -> None: ... + @typing.overload + def enableMessages(self, sources: typing.Union[QOpenGLDebugMessage.Sources, QOpenGLDebugMessage.Source] = ..., types: typing.Union[QOpenGLDebugMessage.Types, QOpenGLDebugMessage.Type] = ..., severities: typing.Union[QOpenGLDebugMessage.Severities, QOpenGLDebugMessage.Severity] = ...) -> None: ... + @typing.overload + def enableMessages(self, ids: typing.Iterable[int], sources: typing.Union[QOpenGLDebugMessage.Sources, QOpenGLDebugMessage.Source] = ..., types: typing.Union[QOpenGLDebugMessage.Types, QOpenGLDebugMessage.Type] = ...) -> None: ... + def popGroup(self) -> None: ... + def pushGroup(self, name: str, id: int = ..., source: QOpenGLDebugMessage.Source = ...) -> None: ... + def maximumMessageLength(self) -> int: ... + def loggingMode(self) -> 'QOpenGLDebugLogger.LoggingMode': ... + def isLogging(self) -> bool: ... + def initialize(self) -> bool: ... + + +class QOpenGLFramebufferObject(sip.simplewrapper): + + class FramebufferRestorePolicy(int): ... + DontRestoreFramebufferBinding = ... # type: 'QOpenGLFramebufferObject.FramebufferRestorePolicy' + RestoreFramebufferBindingToDefault = ... # type: 'QOpenGLFramebufferObject.FramebufferRestorePolicy' + RestoreFrameBufferBinding = ... # type: 'QOpenGLFramebufferObject.FramebufferRestorePolicy' + + class Attachment(int): ... + NoAttachment = ... # type: 'QOpenGLFramebufferObject.Attachment' + CombinedDepthStencil = ... # type: 'QOpenGLFramebufferObject.Attachment' + Depth = ... # type: 'QOpenGLFramebufferObject.Attachment' + + @typing.overload + def __init__(self, size: QtCore.QSize, target: int = ...) -> None: ... + @typing.overload + def __init__(self, width: int, height: int, target: int = ...) -> None: ... + @typing.overload + def __init__(self, size: QtCore.QSize, attachment: 'QOpenGLFramebufferObject.Attachment', target: int = ..., internal_format: int = ...) -> None: ... + @typing.overload + def __init__(self, width: int, height: int, attachment: 'QOpenGLFramebufferObject.Attachment', target: int = ..., internal_format: int = ...) -> None: ... + @typing.overload + def __init__(self, size: QtCore.QSize, format: 'QOpenGLFramebufferObjectFormat') -> None: ... + @typing.overload + def __init__(self, width: int, height: int, format: 'QOpenGLFramebufferObjectFormat') -> None: ... + + def sizes(self) -> typing.List[QtCore.QSize]: ... + @typing.overload + def addColorAttachment(self, size: QtCore.QSize, internal_format: int = ...) -> None: ... + @typing.overload + def addColorAttachment(self, width: int, height: int, internal_format: int = ...) -> None: ... + @typing.overload + def takeTexture(self) -> int: ... + @typing.overload + def takeTexture(self, colorAttachmentIndex: int) -> int: ... + @typing.overload + @staticmethod + def blitFramebuffer(target: 'QOpenGLFramebufferObject', targetRect: QtCore.QRect, source: 'QOpenGLFramebufferObject', sourceRect: QtCore.QRect, buffers: int = ..., filter: int = ...) -> None: ... + @typing.overload + @staticmethod + def blitFramebuffer(target: 'QOpenGLFramebufferObject', source: 'QOpenGLFramebufferObject', buffers: int = ..., filter: int = ...) -> None: ... + @typing.overload + @staticmethod + def blitFramebuffer(target: 'QOpenGLFramebufferObject', targetRect: QtCore.QRect, source: 'QOpenGLFramebufferObject', sourceRect: QtCore.QRect, buffers: int, filter: int, readColorAttachmentIndex: int, drawColorAttachmentIndex: int) -> None: ... + @typing.overload + @staticmethod + def blitFramebuffer(target: 'QOpenGLFramebufferObject', targetRect: QtCore.QRect, source: 'QOpenGLFramebufferObject', sourceRect: QtCore.QRect, buffers: int, filter: int, readColorAttachmentIndex: int, drawColorAttachmentIndex: int, restorePolicy: 'QOpenGLFramebufferObject.FramebufferRestorePolicy') -> None: ... + @staticmethod + def hasOpenGLFramebufferBlit() -> bool: ... + @staticmethod + def hasOpenGLFramebufferObjects() -> bool: ... + @staticmethod + def bindDefault() -> bool: ... + def handle(self) -> int: ... + def setAttachment(self, attachment: 'QOpenGLFramebufferObject.Attachment') -> None: ... + def attachment(self) -> 'QOpenGLFramebufferObject.Attachment': ... + @typing.overload + def toImage(self) -> QImage: ... + @typing.overload + def toImage(self, flipped: bool) -> QImage: ... + @typing.overload + def toImage(self, flipped: bool, colorAttachmentIndex: int) -> QImage: ... + def size(self) -> QtCore.QSize: ... + def textures(self) -> typing.List[int]: ... + def texture(self) -> int: ... + def height(self) -> int: ... + def width(self) -> int: ... + def release(self) -> bool: ... + def bind(self) -> bool: ... + def isBound(self) -> bool: ... + def isValid(self) -> bool: ... + def format(self) -> 'QOpenGLFramebufferObjectFormat': ... + + +class QOpenGLFramebufferObjectFormat(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QOpenGLFramebufferObjectFormat') -> None: ... + + def internalTextureFormat(self) -> int: ... + def setInternalTextureFormat(self, internalTextureFormat: int) -> None: ... + def textureTarget(self) -> int: ... + def setTextureTarget(self, target: int) -> None: ... + def attachment(self) -> QOpenGLFramebufferObject.Attachment: ... + def setAttachment(self, attachment: QOpenGLFramebufferObject.Attachment) -> None: ... + def mipmap(self) -> bool: ... + def setMipmap(self, enabled: bool) -> None: ... + def samples(self) -> int: ... + def setSamples(self, samples: int) -> None: ... + + +class QOpenGLPaintDevice(QPaintDevice): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, size: QtCore.QSize) -> None: ... + @typing.overload + def __init__(self, width: int, height: int) -> None: ... + + def metric(self, metric: QPaintDevice.PaintDeviceMetric) -> int: ... + def setDevicePixelRatio(self, devicePixelRatio: float) -> None: ... + def ensureActiveTarget(self) -> None: ... + def paintFlipped(self) -> bool: ... + def setPaintFlipped(self, flipped: bool) -> None: ... + def setDotsPerMeterY(self, a0: float) -> None: ... + def setDotsPerMeterX(self, a0: float) -> None: ... + def dotsPerMeterY(self) -> float: ... + def dotsPerMeterX(self) -> float: ... + def setSize(self, size: QtCore.QSize) -> None: ... + def size(self) -> QtCore.QSize: ... + def context(self) -> QOpenGLContext: ... + def paintEngine(self) -> 'QPaintEngine': ... + + +class QOpenGLPixelTransferOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QOpenGLPixelTransferOptions') -> None: ... + + def isSwapBytesEnabled(self) -> bool: ... + def setSwapBytesEnabled(self, swapBytes: bool) -> None: ... + def isLeastSignificantBitFirst(self) -> bool: ... + def setLeastSignificantByteFirst(self, lsbFirst: bool) -> None: ... + def rowLength(self) -> int: ... + def setRowLength(self, rowLength: int) -> None: ... + def imageHeight(self) -> int: ... + def setImageHeight(self, imageHeight: int) -> None: ... + def skipPixels(self) -> int: ... + def setSkipPixels(self, skipPixels: int) -> None: ... + def skipRows(self) -> int: ... + def setSkipRows(self, skipRows: int) -> None: ... + def skipImages(self) -> int: ... + def setSkipImages(self, skipImages: int) -> None: ... + def alignment(self) -> int: ... + def setAlignment(self, alignment: int) -> None: ... + def swap(self, other: 'QOpenGLPixelTransferOptions') -> None: ... + + +class QOpenGLShader(QtCore.QObject): + + class ShaderTypeBit(int): ... + Vertex = ... # type: 'QOpenGLShader.ShaderTypeBit' + Fragment = ... # type: 'QOpenGLShader.ShaderTypeBit' + Geometry = ... # type: 'QOpenGLShader.ShaderTypeBit' + TessellationControl = ... # type: 'QOpenGLShader.ShaderTypeBit' + TessellationEvaluation = ... # type: 'QOpenGLShader.ShaderTypeBit' + Compute = ... # type: 'QOpenGLShader.ShaderTypeBit' + + class ShaderType(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QOpenGLShader.ShaderType', 'QOpenGLShader.ShaderTypeBit']) -> None: ... + @typing.overload + def __init__(self, a0: 'QOpenGLShader.ShaderType') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QOpenGLShader.ShaderType': ... + def __int__(self) -> int: ... + + def __init__(self, type: typing.Union['QOpenGLShader.ShaderType', 'QOpenGLShader.ShaderTypeBit'], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + @staticmethod + def hasOpenGLShaders(type: typing.Union['QOpenGLShader.ShaderType', 'QOpenGLShader.ShaderTypeBit'], context: typing.Optional[QOpenGLContext] = ...) -> bool: ... + def shaderId(self) -> int: ... + def log(self) -> str: ... + def isCompiled(self) -> bool: ... + def sourceCode(self) -> QtCore.QByteArray: ... + def compileSourceFile(self, fileName: str) -> bool: ... + @typing.overload + def compileSourceCode(self, source: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + @typing.overload + def compileSourceCode(self, source: str) -> bool: ... + def shaderType(self) -> 'QOpenGLShader.ShaderType': ... + + +class QOpenGLShaderProgram(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def addCacheableShaderFromSourceFile(self, type: typing.Union[QOpenGLShader.ShaderType, QOpenGLShader.ShaderTypeBit], fileName: str) -> bool: ... + @typing.overload + def addCacheableShaderFromSourceCode(self, type: typing.Union[QOpenGLShader.ShaderType, QOpenGLShader.ShaderTypeBit], source: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + @typing.overload + def addCacheableShaderFromSourceCode(self, type: typing.Union[QOpenGLShader.ShaderType, QOpenGLShader.ShaderTypeBit], source: str) -> bool: ... + def create(self) -> bool: ... + def defaultInnerTessellationLevels(self) -> typing.List[float]: ... + def setDefaultInnerTessellationLevels(self, levels: typing.Iterable[float]) -> None: ... + def defaultOuterTessellationLevels(self) -> typing.List[float]: ... + def setDefaultOuterTessellationLevels(self, levels: typing.Iterable[float]) -> None: ... + def patchVertexCount(self) -> int: ... + def setPatchVertexCount(self, count: int) -> None: ... + def maxGeometryOutputVertices(self) -> int: ... + @staticmethod + def hasOpenGLShaderPrograms(context: typing.Optional[QOpenGLContext] = ...) -> bool: ... + @typing.overload + def setUniformValueArray(self, location: int, values: PYQT_SHADER_UNIFORM_VALUE_ARRAY) -> None: ... + @typing.overload + def setUniformValueArray(self, name: str, values: PYQT_SHADER_UNIFORM_VALUE_ARRAY) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: int) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: float) -> None: ... + @typing.overload + def setUniformValue(self, location: int, x: float, y: float) -> None: ... + @typing.overload + def setUniformValue(self, location: int, x: float, y: float, z: float) -> None: ... + @typing.overload + def setUniformValue(self, location: int, x: float, y: float, z: float, w: float) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: 'QVector2D') -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: 'QVector3D') -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: 'QVector4D') -> None: ... + @typing.overload + def setUniformValue(self, location: int, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def setUniformValue(self, location: int, point: QtCore.QPoint) -> None: ... + @typing.overload + def setUniformValue(self, location: int, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def setUniformValue(self, location: int, size: QtCore.QSize) -> None: ... + @typing.overload + def setUniformValue(self, location: int, size: QtCore.QSizeF) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QMatrix2x2) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QMatrix2x3) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QMatrix2x4) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QMatrix3x2) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QMatrix3x3) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QMatrix3x4) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QMatrix4x2) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QMatrix4x3) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QMatrix4x4) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: 'QTransform') -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: int) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: float) -> None: ... + @typing.overload + def setUniformValue(self, name: str, x: float, y: float) -> None: ... + @typing.overload + def setUniformValue(self, name: str, x: float, y: float, z: float) -> None: ... + @typing.overload + def setUniformValue(self, name: str, x: float, y: float, z: float, w: float) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: 'QVector2D') -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: 'QVector3D') -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: 'QVector4D') -> None: ... + @typing.overload + def setUniformValue(self, name: str, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def setUniformValue(self, name: str, point: QtCore.QPoint) -> None: ... + @typing.overload + def setUniformValue(self, name: str, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def setUniformValue(self, name: str, size: QtCore.QSize) -> None: ... + @typing.overload + def setUniformValue(self, name: str, size: QtCore.QSizeF) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QMatrix2x2) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QMatrix2x3) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QMatrix2x4) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QMatrix3x2) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QMatrix3x3) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QMatrix3x4) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QMatrix4x2) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QMatrix4x3) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QMatrix4x4) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: 'QTransform') -> None: ... + @typing.overload + def uniformLocation(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> int: ... + @typing.overload + def uniformLocation(self, name: str) -> int: ... + @typing.overload + def disableAttributeArray(self, location: int) -> None: ... + @typing.overload + def disableAttributeArray(self, name: str) -> None: ... + @typing.overload + def enableAttributeArray(self, location: int) -> None: ... + @typing.overload + def enableAttributeArray(self, name: str) -> None: ... + @typing.overload + def setAttributeBuffer(self, location: int, type: int, offset: int, tupleSize: int, stride: int = ...) -> None: ... + @typing.overload + def setAttributeBuffer(self, name: str, type: int, offset: int, tupleSize: int, stride: int = ...) -> None: ... + @typing.overload + def setAttributeArray(self, location: int, values: PYQT_SHADER_ATTRIBUTE_ARRAY) -> None: ... + @typing.overload + def setAttributeArray(self, name: str, values: PYQT_SHADER_ATTRIBUTE_ARRAY) -> None: ... + @typing.overload + def setAttributeValue(self, location: int, value: float) -> None: ... + @typing.overload + def setAttributeValue(self, location: int, x: float, y: float) -> None: ... + @typing.overload + def setAttributeValue(self, location: int, x: float, y: float, z: float) -> None: ... + @typing.overload + def setAttributeValue(self, location: int, x: float, y: float, z: float, w: float) -> None: ... + @typing.overload + def setAttributeValue(self, location: int, value: 'QVector2D') -> None: ... + @typing.overload + def setAttributeValue(self, location: int, value: 'QVector3D') -> None: ... + @typing.overload + def setAttributeValue(self, location: int, value: 'QVector4D') -> None: ... + @typing.overload + def setAttributeValue(self, location: int, value: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def setAttributeValue(self, name: str, value: float) -> None: ... + @typing.overload + def setAttributeValue(self, name: str, x: float, y: float) -> None: ... + @typing.overload + def setAttributeValue(self, name: str, x: float, y: float, z: float) -> None: ... + @typing.overload + def setAttributeValue(self, name: str, x: float, y: float, z: float, w: float) -> None: ... + @typing.overload + def setAttributeValue(self, name: str, value: 'QVector2D') -> None: ... + @typing.overload + def setAttributeValue(self, name: str, value: 'QVector3D') -> None: ... + @typing.overload + def setAttributeValue(self, name: str, value: 'QVector4D') -> None: ... + @typing.overload + def setAttributeValue(self, name: str, value: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def attributeLocation(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> int: ... + @typing.overload + def attributeLocation(self, name: str) -> int: ... + @typing.overload + def bindAttributeLocation(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray], location: int) -> None: ... + @typing.overload + def bindAttributeLocation(self, name: str, location: int) -> None: ... + def programId(self) -> int: ... + def release(self) -> None: ... + def bind(self) -> bool: ... + def log(self) -> str: ... + def isLinked(self) -> bool: ... + def link(self) -> bool: ... + def removeAllShaders(self) -> None: ... + def addShaderFromSourceFile(self, type: typing.Union[QOpenGLShader.ShaderType, QOpenGLShader.ShaderTypeBit], fileName: str) -> bool: ... + @typing.overload + def addShaderFromSourceCode(self, type: typing.Union[QOpenGLShader.ShaderType, QOpenGLShader.ShaderTypeBit], source: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + @typing.overload + def addShaderFromSourceCode(self, type: typing.Union[QOpenGLShader.ShaderType, QOpenGLShader.ShaderTypeBit], source: str) -> bool: ... + def shaders(self) -> typing.List[QOpenGLShader]: ... + def removeShader(self, shader: QOpenGLShader) -> None: ... + def addShader(self, shader: QOpenGLShader) -> bool: ... + + +class QOpenGLTexture(sip.simplewrapper): + + class ComparisonMode(int): ... + CompareRefToTexture = ... # type: 'QOpenGLTexture.ComparisonMode' + CompareNone = ... # type: 'QOpenGLTexture.ComparisonMode' + + class ComparisonFunction(int): ... + CompareLessEqual = ... # type: 'QOpenGLTexture.ComparisonFunction' + CompareGreaterEqual = ... # type: 'QOpenGLTexture.ComparisonFunction' + CompareLess = ... # type: 'QOpenGLTexture.ComparisonFunction' + CompareGreater = ... # type: 'QOpenGLTexture.ComparisonFunction' + CompareEqual = ... # type: 'QOpenGLTexture.ComparisonFunction' + CommpareNotEqual = ... # type: 'QOpenGLTexture.ComparisonFunction' + CompareAlways = ... # type: 'QOpenGLTexture.ComparisonFunction' + CompareNever = ... # type: 'QOpenGLTexture.ComparisonFunction' + + class CoordinateDirection(int): ... + DirectionS = ... # type: 'QOpenGLTexture.CoordinateDirection' + DirectionT = ... # type: 'QOpenGLTexture.CoordinateDirection' + DirectionR = ... # type: 'QOpenGLTexture.CoordinateDirection' + + class WrapMode(int): ... + Repeat = ... # type: 'QOpenGLTexture.WrapMode' + MirroredRepeat = ... # type: 'QOpenGLTexture.WrapMode' + ClampToEdge = ... # type: 'QOpenGLTexture.WrapMode' + ClampToBorder = ... # type: 'QOpenGLTexture.WrapMode' + + class Filter(int): ... + Nearest = ... # type: 'QOpenGLTexture.Filter' + Linear = ... # type: 'QOpenGLTexture.Filter' + NearestMipMapNearest = ... # type: 'QOpenGLTexture.Filter' + NearestMipMapLinear = ... # type: 'QOpenGLTexture.Filter' + LinearMipMapNearest = ... # type: 'QOpenGLTexture.Filter' + LinearMipMapLinear = ... # type: 'QOpenGLTexture.Filter' + + class DepthStencilMode(int): ... + DepthMode = ... # type: 'QOpenGLTexture.DepthStencilMode' + StencilMode = ... # type: 'QOpenGLTexture.DepthStencilMode' + + class SwizzleValue(int): ... + RedValue = ... # type: 'QOpenGLTexture.SwizzleValue' + GreenValue = ... # type: 'QOpenGLTexture.SwizzleValue' + BlueValue = ... # type: 'QOpenGLTexture.SwizzleValue' + AlphaValue = ... # type: 'QOpenGLTexture.SwizzleValue' + ZeroValue = ... # type: 'QOpenGLTexture.SwizzleValue' + OneValue = ... # type: 'QOpenGLTexture.SwizzleValue' + + class SwizzleComponent(int): ... + SwizzleRed = ... # type: 'QOpenGLTexture.SwizzleComponent' + SwizzleGreen = ... # type: 'QOpenGLTexture.SwizzleComponent' + SwizzleBlue = ... # type: 'QOpenGLTexture.SwizzleComponent' + SwizzleAlpha = ... # type: 'QOpenGLTexture.SwizzleComponent' + + class Feature(int): ... + ImmutableStorage = ... # type: 'QOpenGLTexture.Feature' + ImmutableMultisampleStorage = ... # type: 'QOpenGLTexture.Feature' + TextureRectangle = ... # type: 'QOpenGLTexture.Feature' + TextureArrays = ... # type: 'QOpenGLTexture.Feature' + Texture3D = ... # type: 'QOpenGLTexture.Feature' + TextureMultisample = ... # type: 'QOpenGLTexture.Feature' + TextureBuffer = ... # type: 'QOpenGLTexture.Feature' + TextureCubeMapArrays = ... # type: 'QOpenGLTexture.Feature' + Swizzle = ... # type: 'QOpenGLTexture.Feature' + StencilTexturing = ... # type: 'QOpenGLTexture.Feature' + AnisotropicFiltering = ... # type: 'QOpenGLTexture.Feature' + NPOTTextures = ... # type: 'QOpenGLTexture.Feature' + NPOTTextureRepeat = ... # type: 'QOpenGLTexture.Feature' + Texture1D = ... # type: 'QOpenGLTexture.Feature' + TextureComparisonOperators = ... # type: 'QOpenGLTexture.Feature' + TextureMipMapLevel = ... # type: 'QOpenGLTexture.Feature' + + class PixelType(int): ... + NoPixelType = ... # type: 'QOpenGLTexture.PixelType' + Int8 = ... # type: 'QOpenGLTexture.PixelType' + UInt8 = ... # type: 'QOpenGLTexture.PixelType' + Int16 = ... # type: 'QOpenGLTexture.PixelType' + UInt16 = ... # type: 'QOpenGLTexture.PixelType' + Int32 = ... # type: 'QOpenGLTexture.PixelType' + UInt32 = ... # type: 'QOpenGLTexture.PixelType' + Float16 = ... # type: 'QOpenGLTexture.PixelType' + Float16OES = ... # type: 'QOpenGLTexture.PixelType' + Float32 = ... # type: 'QOpenGLTexture.PixelType' + UInt32_RGB9_E5 = ... # type: 'QOpenGLTexture.PixelType' + UInt32_RG11B10F = ... # type: 'QOpenGLTexture.PixelType' + UInt8_RG3B2 = ... # type: 'QOpenGLTexture.PixelType' + UInt8_RG3B2_Rev = ... # type: 'QOpenGLTexture.PixelType' + UInt16_RGB5A1 = ... # type: 'QOpenGLTexture.PixelType' + UInt16_RGB5A1_Rev = ... # type: 'QOpenGLTexture.PixelType' + UInt16_R5G6B5 = ... # type: 'QOpenGLTexture.PixelType' + UInt16_R5G6B5_Rev = ... # type: 'QOpenGLTexture.PixelType' + UInt16_RGBA4 = ... # type: 'QOpenGLTexture.PixelType' + UInt16_RGBA4_Rev = ... # type: 'QOpenGLTexture.PixelType' + UInt32_RGB10A2 = ... # type: 'QOpenGLTexture.PixelType' + UInt32_RGB10A2_Rev = ... # type: 'QOpenGLTexture.PixelType' + UInt32_RGBA8 = ... # type: 'QOpenGLTexture.PixelType' + UInt32_RGBA8_Rev = ... # type: 'QOpenGLTexture.PixelType' + UInt32_D24S8 = ... # type: 'QOpenGLTexture.PixelType' + Float32_D32_UInt32_S8_X24 = ... # type: 'QOpenGLTexture.PixelType' + + class PixelFormat(int): ... + NoSourceFormat = ... # type: 'QOpenGLTexture.PixelFormat' + Red = ... # type: 'QOpenGLTexture.PixelFormat' + RG = ... # type: 'QOpenGLTexture.PixelFormat' + RGB = ... # type: 'QOpenGLTexture.PixelFormat' + BGR = ... # type: 'QOpenGLTexture.PixelFormat' + RGBA = ... # type: 'QOpenGLTexture.PixelFormat' + BGRA = ... # type: 'QOpenGLTexture.PixelFormat' + Red_Integer = ... # type: 'QOpenGLTexture.PixelFormat' + RG_Integer = ... # type: 'QOpenGLTexture.PixelFormat' + RGB_Integer = ... # type: 'QOpenGLTexture.PixelFormat' + BGR_Integer = ... # type: 'QOpenGLTexture.PixelFormat' + RGBA_Integer = ... # type: 'QOpenGLTexture.PixelFormat' + BGRA_Integer = ... # type: 'QOpenGLTexture.PixelFormat' + Depth = ... # type: 'QOpenGLTexture.PixelFormat' + DepthStencil = ... # type: 'QOpenGLTexture.PixelFormat' + Alpha = ... # type: 'QOpenGLTexture.PixelFormat' + Luminance = ... # type: 'QOpenGLTexture.PixelFormat' + LuminanceAlpha = ... # type: 'QOpenGLTexture.PixelFormat' + Stencil = ... # type: 'QOpenGLTexture.PixelFormat' + + class CubeMapFace(int): ... + CubeMapPositiveX = ... # type: 'QOpenGLTexture.CubeMapFace' + CubeMapNegativeX = ... # type: 'QOpenGLTexture.CubeMapFace' + CubeMapPositiveY = ... # type: 'QOpenGLTexture.CubeMapFace' + CubeMapNegativeY = ... # type: 'QOpenGLTexture.CubeMapFace' + CubeMapPositiveZ = ... # type: 'QOpenGLTexture.CubeMapFace' + CubeMapNegativeZ = ... # type: 'QOpenGLTexture.CubeMapFace' + + class TextureFormat(int): ... + NoFormat = ... # type: 'QOpenGLTexture.TextureFormat' + R8_UNorm = ... # type: 'QOpenGLTexture.TextureFormat' + RG8_UNorm = ... # type: 'QOpenGLTexture.TextureFormat' + RGB8_UNorm = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA8_UNorm = ... # type: 'QOpenGLTexture.TextureFormat' + R16_UNorm = ... # type: 'QOpenGLTexture.TextureFormat' + RG16_UNorm = ... # type: 'QOpenGLTexture.TextureFormat' + RGB16_UNorm = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA16_UNorm = ... # type: 'QOpenGLTexture.TextureFormat' + R8_SNorm = ... # type: 'QOpenGLTexture.TextureFormat' + RG8_SNorm = ... # type: 'QOpenGLTexture.TextureFormat' + RGB8_SNorm = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA8_SNorm = ... # type: 'QOpenGLTexture.TextureFormat' + R16_SNorm = ... # type: 'QOpenGLTexture.TextureFormat' + RG16_SNorm = ... # type: 'QOpenGLTexture.TextureFormat' + RGB16_SNorm = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA16_SNorm = ... # type: 'QOpenGLTexture.TextureFormat' + R8U = ... # type: 'QOpenGLTexture.TextureFormat' + RG8U = ... # type: 'QOpenGLTexture.TextureFormat' + RGB8U = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA8U = ... # type: 'QOpenGLTexture.TextureFormat' + R16U = ... # type: 'QOpenGLTexture.TextureFormat' + RG16U = ... # type: 'QOpenGLTexture.TextureFormat' + RGB16U = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA16U = ... # type: 'QOpenGLTexture.TextureFormat' + R32U = ... # type: 'QOpenGLTexture.TextureFormat' + RG32U = ... # type: 'QOpenGLTexture.TextureFormat' + RGB32U = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA32U = ... # type: 'QOpenGLTexture.TextureFormat' + R8I = ... # type: 'QOpenGLTexture.TextureFormat' + RG8I = ... # type: 'QOpenGLTexture.TextureFormat' + RGB8I = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA8I = ... # type: 'QOpenGLTexture.TextureFormat' + R16I = ... # type: 'QOpenGLTexture.TextureFormat' + RG16I = ... # type: 'QOpenGLTexture.TextureFormat' + RGB16I = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA16I = ... # type: 'QOpenGLTexture.TextureFormat' + R32I = ... # type: 'QOpenGLTexture.TextureFormat' + RG32I = ... # type: 'QOpenGLTexture.TextureFormat' + RGB32I = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA32I = ... # type: 'QOpenGLTexture.TextureFormat' + R16F = ... # type: 'QOpenGLTexture.TextureFormat' + RG16F = ... # type: 'QOpenGLTexture.TextureFormat' + RGB16F = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA16F = ... # type: 'QOpenGLTexture.TextureFormat' + R32F = ... # type: 'QOpenGLTexture.TextureFormat' + RG32F = ... # type: 'QOpenGLTexture.TextureFormat' + RGB32F = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA32F = ... # type: 'QOpenGLTexture.TextureFormat' + RGB9E5 = ... # type: 'QOpenGLTexture.TextureFormat' + RG11B10F = ... # type: 'QOpenGLTexture.TextureFormat' + RG3B2 = ... # type: 'QOpenGLTexture.TextureFormat' + R5G6B5 = ... # type: 'QOpenGLTexture.TextureFormat' + RGB5A1 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA4 = ... # type: 'QOpenGLTexture.TextureFormat' + RGB10A2 = ... # type: 'QOpenGLTexture.TextureFormat' + D16 = ... # type: 'QOpenGLTexture.TextureFormat' + D24 = ... # type: 'QOpenGLTexture.TextureFormat' + D24S8 = ... # type: 'QOpenGLTexture.TextureFormat' + D32 = ... # type: 'QOpenGLTexture.TextureFormat' + D32F = ... # type: 'QOpenGLTexture.TextureFormat' + D32FS8X24 = ... # type: 'QOpenGLTexture.TextureFormat' + RGB_DXT1 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA_DXT1 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA_DXT3 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA_DXT5 = ... # type: 'QOpenGLTexture.TextureFormat' + R_ATI1N_UNorm = ... # type: 'QOpenGLTexture.TextureFormat' + R_ATI1N_SNorm = ... # type: 'QOpenGLTexture.TextureFormat' + RG_ATI2N_UNorm = ... # type: 'QOpenGLTexture.TextureFormat' + RG_ATI2N_SNorm = ... # type: 'QOpenGLTexture.TextureFormat' + RGB_BP_UNSIGNED_FLOAT = ... # type: 'QOpenGLTexture.TextureFormat' + RGB_BP_SIGNED_FLOAT = ... # type: 'QOpenGLTexture.TextureFormat' + RGB_BP_UNorm = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8_Alpha8 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB_DXT1 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB_Alpha_DXT1 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB_Alpha_DXT3 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB_Alpha_DXT5 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB_BP_UNorm = ... # type: 'QOpenGLTexture.TextureFormat' + DepthFormat = ... # type: 'QOpenGLTexture.TextureFormat' + AlphaFormat = ... # type: 'QOpenGLTexture.TextureFormat' + RGBFormat = ... # type: 'QOpenGLTexture.TextureFormat' + RGBAFormat = ... # type: 'QOpenGLTexture.TextureFormat' + LuminanceFormat = ... # type: 'QOpenGLTexture.TextureFormat' + LuminanceAlphaFormat = ... # type: 'QOpenGLTexture.TextureFormat' + S8 = ... # type: 'QOpenGLTexture.TextureFormat' + R11_EAC_UNorm = ... # type: 'QOpenGLTexture.TextureFormat' + R11_EAC_SNorm = ... # type: 'QOpenGLTexture.TextureFormat' + RG11_EAC_UNorm = ... # type: 'QOpenGLTexture.TextureFormat' + RG11_EAC_SNorm = ... # type: 'QOpenGLTexture.TextureFormat' + RGB8_ETC2 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8_ETC2 = ... # type: 'QOpenGLTexture.TextureFormat' + RGB8_PunchThrough_Alpha1_ETC2 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8_PunchThrough_Alpha1_ETC2 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA8_ETC2_EAC = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8_Alpha8_ETC2_EAC = ... # type: 'QOpenGLTexture.TextureFormat' + RGB8_ETC1 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA_ASTC_4x4 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA_ASTC_5x4 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA_ASTC_5x5 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA_ASTC_6x5 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA_ASTC_6x6 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA_ASTC_8x5 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA_ASTC_8x6 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA_ASTC_8x8 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA_ASTC_10x5 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA_ASTC_10x6 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA_ASTC_10x8 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA_ASTC_10x10 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA_ASTC_12x10 = ... # type: 'QOpenGLTexture.TextureFormat' + RGBA_ASTC_12x12 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8_Alpha8_ASTC_4x4 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8_Alpha8_ASTC_5x4 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8_Alpha8_ASTC_5x5 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8_Alpha8_ASTC_6x5 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8_Alpha8_ASTC_6x6 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8_Alpha8_ASTC_8x5 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8_Alpha8_ASTC_8x6 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8_Alpha8_ASTC_8x8 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8_Alpha8_ASTC_10x5 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8_Alpha8_ASTC_10x6 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8_Alpha8_ASTC_10x8 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8_Alpha8_ASTC_10x10 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8_Alpha8_ASTC_12x10 = ... # type: 'QOpenGLTexture.TextureFormat' + SRGB8_Alpha8_ASTC_12x12 = ... # type: 'QOpenGLTexture.TextureFormat' + + class TextureUnitReset(int): ... + ResetTextureUnit = ... # type: 'QOpenGLTexture.TextureUnitReset' + DontResetTextureUnit = ... # type: 'QOpenGLTexture.TextureUnitReset' + + class MipMapGeneration(int): ... + GenerateMipMaps = ... # type: 'QOpenGLTexture.MipMapGeneration' + DontGenerateMipMaps = ... # type: 'QOpenGLTexture.MipMapGeneration' + + class BindingTarget(int): ... + BindingTarget1D = ... # type: 'QOpenGLTexture.BindingTarget' + BindingTarget1DArray = ... # type: 'QOpenGLTexture.BindingTarget' + BindingTarget2D = ... # type: 'QOpenGLTexture.BindingTarget' + BindingTarget2DArray = ... # type: 'QOpenGLTexture.BindingTarget' + BindingTarget3D = ... # type: 'QOpenGLTexture.BindingTarget' + BindingTargetCubeMap = ... # type: 'QOpenGLTexture.BindingTarget' + BindingTargetCubeMapArray = ... # type: 'QOpenGLTexture.BindingTarget' + BindingTarget2DMultisample = ... # type: 'QOpenGLTexture.BindingTarget' + BindingTarget2DMultisampleArray = ... # type: 'QOpenGLTexture.BindingTarget' + BindingTargetRectangle = ... # type: 'QOpenGLTexture.BindingTarget' + BindingTargetBuffer = ... # type: 'QOpenGLTexture.BindingTarget' + + class Target(int): ... + Target1D = ... # type: 'QOpenGLTexture.Target' + Target1DArray = ... # type: 'QOpenGLTexture.Target' + Target2D = ... # type: 'QOpenGLTexture.Target' + Target2DArray = ... # type: 'QOpenGLTexture.Target' + Target3D = ... # type: 'QOpenGLTexture.Target' + TargetCubeMap = ... # type: 'QOpenGLTexture.Target' + TargetCubeMapArray = ... # type: 'QOpenGLTexture.Target' + Target2DMultisample = ... # type: 'QOpenGLTexture.Target' + Target2DMultisampleArray = ... # type: 'QOpenGLTexture.Target' + TargetRectangle = ... # type: 'QOpenGLTexture.Target' + TargetBuffer = ... # type: 'QOpenGLTexture.Target' + + class Features(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QOpenGLTexture.Features', 'QOpenGLTexture.Feature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QOpenGLTexture.Features') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QOpenGLTexture.Features': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, target: 'QOpenGLTexture.Target') -> None: ... + @typing.overload + def __init__(self, image: QImage, genMipMaps: 'QOpenGLTexture.MipMapGeneration' = ...) -> None: ... + + def comparisonMode(self) -> 'QOpenGLTexture.ComparisonMode': ... + def setComparisonMode(self, mode: 'QOpenGLTexture.ComparisonMode') -> None: ... + def comparisonFunction(self) -> 'QOpenGLTexture.ComparisonFunction': ... + def setComparisonFunction(self, function: 'QOpenGLTexture.ComparisonFunction') -> None: ... + def isFixedSamplePositions(self) -> bool: ... + def setFixedSamplePositions(self, fixed: bool) -> None: ... + def samples(self) -> int: ... + def setSamples(self, samples: int) -> None: ... + def target(self) -> 'QOpenGLTexture.Target': ... + def levelofDetailBias(self) -> float: ... + def setLevelofDetailBias(self, bias: float) -> None: ... + def levelOfDetailRange(self) -> typing.Tuple[float, float]: ... + def setLevelOfDetailRange(self, min: float, max: float) -> None: ... + def maximumLevelOfDetail(self) -> float: ... + def setMaximumLevelOfDetail(self, value: float) -> None: ... + def minimumLevelOfDetail(self) -> float: ... + def setMinimumLevelOfDetail(self, value: float) -> None: ... + def borderColor(self) -> QColor: ... + def setBorderColor(self, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def wrapMode(self, direction: 'QOpenGLTexture.CoordinateDirection') -> 'QOpenGLTexture.WrapMode': ... + @typing.overload + def setWrapMode(self, mode: 'QOpenGLTexture.WrapMode') -> None: ... + @typing.overload + def setWrapMode(self, direction: 'QOpenGLTexture.CoordinateDirection', mode: 'QOpenGLTexture.WrapMode') -> None: ... + def maximumAnisotropy(self) -> float: ... + def setMaximumAnisotropy(self, anisotropy: float) -> None: ... + def minMagFilters(self) -> typing.Tuple['QOpenGLTexture.Filter', 'QOpenGLTexture.Filter']: ... + def setMinMagFilters(self, minificationFilter: 'QOpenGLTexture.Filter', magnificationFilter: 'QOpenGLTexture.Filter') -> None: ... + def magnificationFilter(self) -> 'QOpenGLTexture.Filter': ... + def setMagnificationFilter(self, filter: 'QOpenGLTexture.Filter') -> None: ... + def minificationFilter(self) -> 'QOpenGLTexture.Filter': ... + def setMinificationFilter(self, filter: 'QOpenGLTexture.Filter') -> None: ... + def depthStencilMode(self) -> 'QOpenGLTexture.DepthStencilMode': ... + def setDepthStencilMode(self, mode: 'QOpenGLTexture.DepthStencilMode') -> None: ... + def swizzleMask(self, component: 'QOpenGLTexture.SwizzleComponent') -> 'QOpenGLTexture.SwizzleValue': ... + @typing.overload + def setSwizzleMask(self, component: 'QOpenGLTexture.SwizzleComponent', value: 'QOpenGLTexture.SwizzleValue') -> None: ... + @typing.overload + def setSwizzleMask(self, r: 'QOpenGLTexture.SwizzleValue', g: 'QOpenGLTexture.SwizzleValue', b: 'QOpenGLTexture.SwizzleValue', a: 'QOpenGLTexture.SwizzleValue') -> None: ... + @typing.overload + def generateMipMaps(self) -> None: ... + @typing.overload + def generateMipMaps(self, baseLevel: int, resetBaseLevel: bool = ...) -> None: ... + def isAutoMipMapGenerationEnabled(self) -> bool: ... + def setAutoMipMapGenerationEnabled(self, enabled: bool) -> None: ... + def mipLevelRange(self) -> typing.Tuple[int, int]: ... + def setMipLevelRange(self, baseLevel: int, maxLevel: int) -> None: ... + def mipMaxLevel(self) -> int: ... + def setMipMaxLevel(self, maxLevel: int) -> None: ... + def mipBaseLevel(self) -> int: ... + def setMipBaseLevel(self, baseLevel: int) -> None: ... + @staticmethod + def hasFeature(feature: 'QOpenGLTexture.Feature') -> bool: ... + @typing.overload + def setCompressedData(self, mipLevel: int, layer: int, cubeFace: 'QOpenGLTexture.CubeMapFace', dataSize: int, data: sip.voidptr, options: typing.Optional[QOpenGLPixelTransferOptions] = ...) -> None: ... + @typing.overload + def setCompressedData(self, mipLevel: int, layer: int, dataSize: int, data: sip.voidptr, options: typing.Optional[QOpenGLPixelTransferOptions] = ...) -> None: ... + @typing.overload + def setCompressedData(self, mipLevel: int, dataSize: int, data: sip.voidptr, options: typing.Optional[QOpenGLPixelTransferOptions] = ...) -> None: ... + @typing.overload + def setCompressedData(self, dataSize: int, data: sip.voidptr, options: typing.Optional[QOpenGLPixelTransferOptions] = ...) -> None: ... + @typing.overload + def setCompressedData(self, mipLevel: int, layer: int, layerCount: int, cubeFace: 'QOpenGLTexture.CubeMapFace', dataSize: int, data: sip.voidptr, options: typing.Optional[QOpenGLPixelTransferOptions] = ...) -> None: ... + @typing.overload + def setData(self, mipLevel: int, layer: int, cubeFace: 'QOpenGLTexture.CubeMapFace', sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: sip.voidptr, options: typing.Optional[QOpenGLPixelTransferOptions] = ...) -> None: ... + @typing.overload + def setData(self, mipLevel: int, layer: int, sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: sip.voidptr, options: typing.Optional[QOpenGLPixelTransferOptions] = ...) -> None: ... + @typing.overload + def setData(self, mipLevel: int, sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: sip.voidptr, options: typing.Optional[QOpenGLPixelTransferOptions] = ...) -> None: ... + @typing.overload + def setData(self, sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: sip.voidptr, options: typing.Optional[QOpenGLPixelTransferOptions] = ...) -> None: ... + @typing.overload + def setData(self, image: QImage, genMipMaps: 'QOpenGLTexture.MipMapGeneration' = ...) -> None: ... + @typing.overload + def setData(self, mipLevel: int, layer: int, layerCount: int, cubeFace: 'QOpenGLTexture.CubeMapFace', sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: sip.voidptr, options: typing.Optional[QOpenGLPixelTransferOptions] = ...) -> None: ... + def isTextureView(self) -> bool: ... + def createTextureView(self, target: 'QOpenGLTexture.Target', viewFormat: 'QOpenGLTexture.TextureFormat', minimumMipmapLevel: int, maximumMipmapLevel: int, minimumLayer: int, maximumLayer: int) -> 'QOpenGLTexture': ... + def isStorageAllocated(self) -> bool: ... + @typing.overload + def allocateStorage(self) -> None: ... + @typing.overload + def allocateStorage(self, pixelFormat: 'QOpenGLTexture.PixelFormat', pixelType: 'QOpenGLTexture.PixelType') -> None: ... + def faces(self) -> int: ... + def layers(self) -> int: ... + def setLayers(self, layers: int) -> None: ... + def maximumMipLevels(self) -> int: ... + def mipLevels(self) -> int: ... + def setMipLevels(self, levels: int) -> None: ... + def depth(self) -> int: ... + def height(self) -> int: ... + def width(self) -> int: ... + def setSize(self, width: int, height: int = ..., depth: int = ...) -> None: ... + def format(self) -> 'QOpenGLTexture.TextureFormat': ... + def setFormat(self, format: 'QOpenGLTexture.TextureFormat') -> None: ... + @typing.overload + @staticmethod + def boundTextureId(target: 'QOpenGLTexture.BindingTarget') -> int: ... + @typing.overload + @staticmethod + def boundTextureId(unit: int, target: 'QOpenGLTexture.BindingTarget') -> int: ... + @typing.overload + def isBound(self) -> bool: ... + @typing.overload + def isBound(self, unit: int) -> bool: ... + @typing.overload + def release(self) -> None: ... + @typing.overload + def release(self, unit: int, reset: 'QOpenGLTexture.TextureUnitReset' = ...) -> None: ... + @typing.overload + def bind(self) -> None: ... + @typing.overload + def bind(self, unit: int, reset: 'QOpenGLTexture.TextureUnitReset' = ...) -> None: ... + def textureId(self) -> int: ... + def isCreated(self) -> bool: ... + def destroy(self) -> None: ... + def create(self) -> bool: ... + + +class QOpenGLTextureBlitter(sip.simplewrapper): + + class Origin(int): ... + OriginBottomLeft = ... # type: 'QOpenGLTextureBlitter.Origin' + OriginTopLeft = ... # type: 'QOpenGLTextureBlitter.Origin' + + def __init__(self) -> None: ... + + @staticmethod + def sourceTransform(subTexture: QtCore.QRectF, textureSize: QtCore.QSize, origin: 'QOpenGLTextureBlitter.Origin') -> QMatrix3x3: ... + @staticmethod + def targetTransform(target: QtCore.QRectF, viewport: QtCore.QRect) -> QMatrix4x4: ... + @typing.overload + def blit(self, texture: int, targetTransform: QMatrix4x4, sourceOrigin: 'QOpenGLTextureBlitter.Origin') -> None: ... + @typing.overload + def blit(self, texture: int, targetTransform: QMatrix4x4, sourceTransform: QMatrix3x3) -> None: ... + def setOpacity(self, opacity: float) -> None: ... + def setRedBlueSwizzle(self, swizzle: bool) -> None: ... + def release(self) -> None: ... + def bind(self, target: int = ...) -> None: ... + def supportsExternalOESTarget(self) -> bool: ... + def destroy(self) -> None: ... + def isCreated(self) -> bool: ... + def create(self) -> bool: ... + + +class QOpenGLTimerQuery(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def waitForResult(self) -> int: ... + def isResultAvailable(self) -> bool: ... + def recordTimestamp(self) -> None: ... + def waitForTimestamp(self) -> int: ... + def end(self) -> None: ... + def begin(self) -> None: ... + def objectId(self) -> int: ... + def isCreated(self) -> bool: ... + def destroy(self) -> None: ... + def create(self) -> bool: ... + + +class QOpenGLTimeMonitor(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reset(self) -> None: ... + def waitForIntervals(self) -> typing.List[int]: ... + def waitForSamples(self) -> typing.List[int]: ... + def isResultAvailable(self) -> bool: ... + def recordSample(self) -> int: ... + def objectIds(self) -> typing.List[int]: ... + def isCreated(self) -> bool: ... + def destroy(self) -> None: ... + def create(self) -> bool: ... + def sampleCount(self) -> int: ... + def setSampleCount(self, sampleCount: int) -> None: ... + + +class QAbstractOpenGLFunctions(sip.wrapper): ... + + +class QOpenGLVertexArrayObject(QtCore.QObject): + + class Binder(sip.simplewrapper): + + def __init__(self, v: 'QOpenGLVertexArrayObject') -> None: ... + + def __exit__(self, type: typing.Any, value: typing.Any, traceback: typing.Any) -> None: ... + def __enter__(self) -> typing.Any: ... + def rebind(self) -> None: ... + def release(self) -> None: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def release(self) -> None: ... + def bind(self) -> None: ... + def objectId(self) -> int: ... + def isCreated(self) -> bool: ... + def destroy(self) -> None: ... + def create(self) -> bool: ... + + +class QWindow(QtCore.QObject, QSurface): + + class Visibility(int): ... + Hidden = ... # type: 'QWindow.Visibility' + AutomaticVisibility = ... # type: 'QWindow.Visibility' + Windowed = ... # type: 'QWindow.Visibility' + Minimized = ... # type: 'QWindow.Visibility' + Maximized = ... # type: 'QWindow.Visibility' + FullScreen = ... # type: 'QWindow.Visibility' + + class AncestorMode(int): ... + ExcludeTransients = ... # type: 'QWindow.AncestorMode' + IncludeTransients = ... # type: 'QWindow.AncestorMode' + + @typing.overload + def __init__(self, screen: typing.Optional['QScreen'] = ...) -> None: ... + @typing.overload + def __init__(self, parent: 'QWindow') -> None: ... + + def setWindowStates(self, states: typing.Union[QtCore.Qt.WindowStates, QtCore.Qt.WindowState]) -> None: ... + def windowStates(self) -> QtCore.Qt.WindowStates: ... + def setFlag(self, a0: QtCore.Qt.WindowType, on: bool = ...) -> None: ... + def opacityChanged(self, opacity: float) -> None: ... + def activeChanged(self) -> None: ... + def visibilityChanged(self, visibility: 'QWindow.Visibility') -> None: ... + @staticmethod + def fromWinId(id: sip.voidptr) -> 'QWindow': ... + def mask(self) -> 'QRegion': ... + def setMask(self, region: 'QRegion') -> None: ... + def opacity(self) -> float: ... + def setVisibility(self, v: 'QWindow.Visibility') -> None: ... + def visibility(self) -> 'QWindow.Visibility': ... + def tabletEvent(self, a0: QTabletEvent) -> None: ... + def touchEvent(self, a0: QTouchEvent) -> None: ... + def wheelEvent(self, a0: QWheelEvent) -> None: ... + def mouseMoveEvent(self, a0: QMouseEvent) -> None: ... + def mouseDoubleClickEvent(self, a0: QMouseEvent) -> None: ... + def mouseReleaseEvent(self, a0: QMouseEvent) -> None: ... + def mousePressEvent(self, a0: QMouseEvent) -> None: ... + def keyReleaseEvent(self, a0: QKeyEvent) -> None: ... + def keyPressEvent(self, a0: QKeyEvent) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def hideEvent(self, a0: QHideEvent) -> None: ... + def showEvent(self, a0: QShowEvent) -> None: ... + def focusOutEvent(self, a0: QFocusEvent) -> None: ... + def focusInEvent(self, a0: QFocusEvent) -> None: ... + def moveEvent(self, a0: QMoveEvent) -> None: ... + def resizeEvent(self, a0: QResizeEvent) -> None: ... + def exposeEvent(self, a0: QExposeEvent) -> None: ... + def windowTitleChanged(self, title: str) -> None: ... + def focusObjectChanged(self, object: QtCore.QObject) -> None: ... + def contentOrientationChanged(self, orientation: QtCore.Qt.ScreenOrientation) -> None: ... + def visibleChanged(self, arg: bool) -> None: ... + def maximumHeightChanged(self, arg: int) -> None: ... + def maximumWidthChanged(self, arg: int) -> None: ... + def minimumHeightChanged(self, arg: int) -> None: ... + def minimumWidthChanged(self, arg: int) -> None: ... + def heightChanged(self, arg: int) -> None: ... + def widthChanged(self, arg: int) -> None: ... + def yChanged(self, arg: int) -> None: ... + def xChanged(self, arg: int) -> None: ... + def windowStateChanged(self, windowState: QtCore.Qt.WindowState) -> None: ... + def modalityChanged(self, modality: QtCore.Qt.WindowModality) -> None: ... + def screenChanged(self, screen: 'QScreen') -> None: ... + def requestUpdate(self) -> None: ... + def alert(self, msec: int) -> None: ... + def setMaximumHeight(self, h: int) -> None: ... + def setMaximumWidth(self, w: int) -> None: ... + def setMinimumHeight(self, h: int) -> None: ... + def setMinimumWidth(self, w: int) -> None: ... + def setHeight(self, arg: int) -> None: ... + def setWidth(self, arg: int) -> None: ... + def setY(self, arg: int) -> None: ... + def setX(self, arg: int) -> None: ... + def setTitle(self, a0: str) -> None: ... + def lower(self) -> None: ... + def raise_(self) -> None: ... + def close(self) -> bool: ... + def showNormal(self) -> None: ... + def showFullScreen(self) -> None: ... + def showMaximized(self) -> None: ... + def showMinimized(self) -> None: ... + def hide(self) -> None: ... + def show(self) -> None: ... + def setVisible(self, visible: bool) -> None: ... + def unsetCursor(self) -> None: ... + def setCursor(self, a0: typing.Union[QCursor, QtCore.Qt.CursorShape]) -> None: ... + def cursor(self) -> QCursor: ... + def mapFromGlobal(self, pos: QtCore.QPoint) -> QtCore.QPoint: ... + def mapToGlobal(self, pos: QtCore.QPoint) -> QtCore.QPoint: ... + def focusObject(self) -> QtCore.QObject: ... + def setScreen(self, screen: 'QScreen') -> None: ... + def screen(self) -> 'QScreen': ... + def setMouseGrabEnabled(self, grab: bool) -> bool: ... + def setKeyboardGrabEnabled(self, grab: bool) -> bool: ... + def destroy(self) -> None: ... + def icon(self) -> QIcon: ... + def setIcon(self, icon: QIcon) -> None: ... + def filePath(self) -> str: ... + def setFilePath(self, filePath: str) -> None: ... + @typing.overload + def resize(self, newSize: QtCore.QSize) -> None: ... + @typing.overload + def resize(self, w: int, h: int) -> None: ... + @typing.overload + def setPosition(self, pt: QtCore.QPoint) -> None: ... + @typing.overload + def setPosition(self, posx: int, posy: int) -> None: ... + def position(self) -> QtCore.QPoint: ... + def size(self) -> QtCore.QSize: ... + def y(self) -> int: ... + def x(self) -> int: ... + def height(self) -> int: ... + def width(self) -> int: ... + def setFramePosition(self, point: QtCore.QPoint) -> None: ... + def framePosition(self) -> QtCore.QPoint: ... + def frameGeometry(self) -> QtCore.QRect: ... + def frameMargins(self) -> QtCore.QMargins: ... + def geometry(self) -> QtCore.QRect: ... + @typing.overload + def setGeometry(self, posx: int, posy: int, w: int, h: int) -> None: ... + @typing.overload + def setGeometry(self, rect: QtCore.QRect) -> None: ... + def setSizeIncrement(self, size: QtCore.QSize) -> None: ... + def setBaseSize(self, size: QtCore.QSize) -> None: ... + def setMaximumSize(self, size: QtCore.QSize) -> None: ... + def setMinimumSize(self, size: QtCore.QSize) -> None: ... + def sizeIncrement(self) -> QtCore.QSize: ... + def baseSize(self) -> QtCore.QSize: ... + def maximumSize(self) -> QtCore.QSize: ... + def minimumSize(self) -> QtCore.QSize: ... + def maximumHeight(self) -> int: ... + def maximumWidth(self) -> int: ... + def minimumHeight(self) -> int: ... + def minimumWidth(self) -> int: ... + def isExposed(self) -> bool: ... + def isAncestorOf(self, child: 'QWindow', mode: 'QWindow.AncestorMode' = ...) -> bool: ... + def transientParent(self) -> 'QWindow': ... + def setTransientParent(self, parent: 'QWindow') -> None: ... + def setWindowState(self, state: QtCore.Qt.WindowState) -> None: ... + def windowState(self) -> QtCore.Qt.WindowState: ... + def devicePixelRatio(self) -> float: ... + def contentOrientation(self) -> QtCore.Qt.ScreenOrientation: ... + def reportContentOrientationChange(self, orientation: QtCore.Qt.ScreenOrientation) -> None: ... + def isActive(self) -> bool: ... + def requestActivate(self) -> None: ... + def setOpacity(self, level: float) -> None: ... + def title(self) -> str: ... + def type(self) -> QtCore.Qt.WindowType: ... + def flags(self) -> QtCore.Qt.WindowFlags: ... + def setFlags(self, flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType]) -> None: ... + def requestedFormat(self) -> 'QSurfaceFormat': ... + def format(self) -> 'QSurfaceFormat': ... + def setFormat(self, format: 'QSurfaceFormat') -> None: ... + def setModality(self, modality: QtCore.Qt.WindowModality) -> None: ... + def modality(self) -> QtCore.Qt.WindowModality: ... + def isModal(self) -> bool: ... + def isTopLevel(self) -> bool: ... + def setParent(self, parent: 'QWindow') -> None: ... + @typing.overload + def parent(self) -> 'QWindow': ... + @typing.overload + def parent(self, mode: 'QWindow.AncestorMode') -> 'QWindow': ... + def winId(self) -> sip.voidptr: ... + def create(self) -> None: ... + def isVisible(self) -> bool: ... + def surfaceType(self) -> QSurface.SurfaceType: ... + def setSurfaceType(self, surfaceType: QSurface.SurfaceType) -> None: ... + + +class QPaintDeviceWindow(QWindow, QPaintDevice): + + def event(self, event: QtCore.QEvent) -> bool: ... + def exposeEvent(self, a0: QExposeEvent) -> None: ... + def metric(self, metric: QPaintDevice.PaintDeviceMetric) -> int: ... + def paintEvent(self, event: QPaintEvent) -> None: ... + @typing.overload + def update(self, rect: QtCore.QRect) -> None: ... + @typing.overload + def update(self, region: 'QRegion') -> None: ... + @typing.overload + def update(self) -> None: ... + + +class QOpenGLWindow(QPaintDeviceWindow): + + class UpdateBehavior(int): ... + NoPartialUpdate = ... # type: 'QOpenGLWindow.UpdateBehavior' + PartialUpdateBlit = ... # type: 'QOpenGLWindow.UpdateBehavior' + PartialUpdateBlend = ... # type: 'QOpenGLWindow.UpdateBehavior' + + @typing.overload + def __init__(self, updateBehavior: 'QOpenGLWindow.UpdateBehavior' = ..., parent: typing.Optional[QWindow] = ...) -> None: ... + @typing.overload + def __init__(self, shareContext: QOpenGLContext, updateBehavior: 'QOpenGLWindow.UpdateBehavior' = ..., parent: typing.Optional[QWindow] = ...) -> None: ... + + def metric(self, metric: QPaintDevice.PaintDeviceMetric) -> int: ... + def resizeEvent(self, event: QResizeEvent) -> None: ... + def paintEvent(self, event: QPaintEvent) -> None: ... + def paintOverGL(self) -> None: ... + def paintUnderGL(self) -> None: ... + def paintGL(self) -> None: ... + def resizeGL(self, w: int, h: int) -> None: ... + def initializeGL(self) -> None: ... + def frameSwapped(self) -> None: ... + def shareContext(self) -> QOpenGLContext: ... + def grabFramebuffer(self) -> QImage: ... + def defaultFramebufferObject(self) -> int: ... + def context(self) -> QOpenGLContext: ... + def doneCurrent(self) -> None: ... + def makeCurrent(self) -> None: ... + def isValid(self) -> bool: ... + def updateBehavior(self) -> 'QOpenGLWindow.UpdateBehavior': ... + + +class QPagedPaintDevice(QPaintDevice): + + class PdfVersion(int): ... + PdfVersion_1_4 = ... # type: 'QPagedPaintDevice.PdfVersion' + PdfVersion_A1b = ... # type: 'QPagedPaintDevice.PdfVersion' + PdfVersion_1_6 = ... # type: 'QPagedPaintDevice.PdfVersion' + + class PageSize(int): ... + A4 = ... # type: 'QPagedPaintDevice.PageSize' + B5 = ... # type: 'QPagedPaintDevice.PageSize' + Letter = ... # type: 'QPagedPaintDevice.PageSize' + Legal = ... # type: 'QPagedPaintDevice.PageSize' + Executive = ... # type: 'QPagedPaintDevice.PageSize' + A0 = ... # type: 'QPagedPaintDevice.PageSize' + A1 = ... # type: 'QPagedPaintDevice.PageSize' + A2 = ... # type: 'QPagedPaintDevice.PageSize' + A3 = ... # type: 'QPagedPaintDevice.PageSize' + A5 = ... # type: 'QPagedPaintDevice.PageSize' + A6 = ... # type: 'QPagedPaintDevice.PageSize' + A7 = ... # type: 'QPagedPaintDevice.PageSize' + A8 = ... # type: 'QPagedPaintDevice.PageSize' + A9 = ... # type: 'QPagedPaintDevice.PageSize' + B0 = ... # type: 'QPagedPaintDevice.PageSize' + B1 = ... # type: 'QPagedPaintDevice.PageSize' + B10 = ... # type: 'QPagedPaintDevice.PageSize' + B2 = ... # type: 'QPagedPaintDevice.PageSize' + B3 = ... # type: 'QPagedPaintDevice.PageSize' + B4 = ... # type: 'QPagedPaintDevice.PageSize' + B6 = ... # type: 'QPagedPaintDevice.PageSize' + B7 = ... # type: 'QPagedPaintDevice.PageSize' + B8 = ... # type: 'QPagedPaintDevice.PageSize' + B9 = ... # type: 'QPagedPaintDevice.PageSize' + C5E = ... # type: 'QPagedPaintDevice.PageSize' + Comm10E = ... # type: 'QPagedPaintDevice.PageSize' + DLE = ... # type: 'QPagedPaintDevice.PageSize' + Folio = ... # type: 'QPagedPaintDevice.PageSize' + Ledger = ... # type: 'QPagedPaintDevice.PageSize' + Tabloid = ... # type: 'QPagedPaintDevice.PageSize' + Custom = ... # type: 'QPagedPaintDevice.PageSize' + A10 = ... # type: 'QPagedPaintDevice.PageSize' + A3Extra = ... # type: 'QPagedPaintDevice.PageSize' + A4Extra = ... # type: 'QPagedPaintDevice.PageSize' + A4Plus = ... # type: 'QPagedPaintDevice.PageSize' + A4Small = ... # type: 'QPagedPaintDevice.PageSize' + A5Extra = ... # type: 'QPagedPaintDevice.PageSize' + B5Extra = ... # type: 'QPagedPaintDevice.PageSize' + JisB0 = ... # type: 'QPagedPaintDevice.PageSize' + JisB1 = ... # type: 'QPagedPaintDevice.PageSize' + JisB2 = ... # type: 'QPagedPaintDevice.PageSize' + JisB3 = ... # type: 'QPagedPaintDevice.PageSize' + JisB4 = ... # type: 'QPagedPaintDevice.PageSize' + JisB5 = ... # type: 'QPagedPaintDevice.PageSize' + JisB6 = ... # type: 'QPagedPaintDevice.PageSize' + JisB7 = ... # type: 'QPagedPaintDevice.PageSize' + JisB8 = ... # type: 'QPagedPaintDevice.PageSize' + JisB9 = ... # type: 'QPagedPaintDevice.PageSize' + JisB10 = ... # type: 'QPagedPaintDevice.PageSize' + AnsiC = ... # type: 'QPagedPaintDevice.PageSize' + AnsiD = ... # type: 'QPagedPaintDevice.PageSize' + AnsiE = ... # type: 'QPagedPaintDevice.PageSize' + LegalExtra = ... # type: 'QPagedPaintDevice.PageSize' + LetterExtra = ... # type: 'QPagedPaintDevice.PageSize' + LetterPlus = ... # type: 'QPagedPaintDevice.PageSize' + LetterSmall = ... # type: 'QPagedPaintDevice.PageSize' + TabloidExtra = ... # type: 'QPagedPaintDevice.PageSize' + ArchA = ... # type: 'QPagedPaintDevice.PageSize' + ArchB = ... # type: 'QPagedPaintDevice.PageSize' + ArchC = ... # type: 'QPagedPaintDevice.PageSize' + ArchD = ... # type: 'QPagedPaintDevice.PageSize' + ArchE = ... # type: 'QPagedPaintDevice.PageSize' + Imperial7x9 = ... # type: 'QPagedPaintDevice.PageSize' + Imperial8x10 = ... # type: 'QPagedPaintDevice.PageSize' + Imperial9x11 = ... # type: 'QPagedPaintDevice.PageSize' + Imperial9x12 = ... # type: 'QPagedPaintDevice.PageSize' + Imperial10x11 = ... # type: 'QPagedPaintDevice.PageSize' + Imperial10x13 = ... # type: 'QPagedPaintDevice.PageSize' + Imperial10x14 = ... # type: 'QPagedPaintDevice.PageSize' + Imperial12x11 = ... # type: 'QPagedPaintDevice.PageSize' + Imperial15x11 = ... # type: 'QPagedPaintDevice.PageSize' + ExecutiveStandard = ... # type: 'QPagedPaintDevice.PageSize' + Note = ... # type: 'QPagedPaintDevice.PageSize' + Quarto = ... # type: 'QPagedPaintDevice.PageSize' + Statement = ... # type: 'QPagedPaintDevice.PageSize' + SuperA = ... # type: 'QPagedPaintDevice.PageSize' + SuperB = ... # type: 'QPagedPaintDevice.PageSize' + Postcard = ... # type: 'QPagedPaintDevice.PageSize' + DoublePostcard = ... # type: 'QPagedPaintDevice.PageSize' + Prc16K = ... # type: 'QPagedPaintDevice.PageSize' + Prc32K = ... # type: 'QPagedPaintDevice.PageSize' + Prc32KBig = ... # type: 'QPagedPaintDevice.PageSize' + FanFoldUS = ... # type: 'QPagedPaintDevice.PageSize' + FanFoldGerman = ... # type: 'QPagedPaintDevice.PageSize' + FanFoldGermanLegal = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeB4 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeB5 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeB6 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeC0 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeC1 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeC2 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeC3 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeC4 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeC6 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeC65 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeC7 = ... # type: 'QPagedPaintDevice.PageSize' + Envelope9 = ... # type: 'QPagedPaintDevice.PageSize' + Envelope11 = ... # type: 'QPagedPaintDevice.PageSize' + Envelope12 = ... # type: 'QPagedPaintDevice.PageSize' + Envelope14 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeMonarch = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopePersonal = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeChou3 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeChou4 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeInvite = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeItalian = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeKaku2 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeKaku3 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopePrc1 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopePrc2 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopePrc3 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopePrc4 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopePrc5 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopePrc6 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopePrc7 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopePrc8 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopePrc9 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopePrc10 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeYou4 = ... # type: 'QPagedPaintDevice.PageSize' + NPaperSize = ... # type: 'QPagedPaintDevice.PageSize' + AnsiA = ... # type: 'QPagedPaintDevice.PageSize' + AnsiB = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeC5 = ... # type: 'QPagedPaintDevice.PageSize' + EnvelopeDL = ... # type: 'QPagedPaintDevice.PageSize' + Envelope10 = ... # type: 'QPagedPaintDevice.PageSize' + LastPageSize = ... # type: 'QPagedPaintDevice.PageSize' + + class Margins(sip.simplewrapper): + + bottom = ... # type: float + left = ... # type: float + right = ... # type: float + top = ... # type: float + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QPagedPaintDevice.Margins') -> None: ... + + def __init__(self) -> None: ... + + def pageLayout(self) -> 'QPageLayout': ... + @typing.overload + def setPageMargins(self, margins: QtCore.QMarginsF) -> bool: ... + @typing.overload + def setPageMargins(self, margins: QtCore.QMarginsF, units: 'QPageLayout.Unit') -> bool: ... + def setPageOrientation(self, orientation: 'QPageLayout.Orientation') -> bool: ... + def setPageLayout(self, pageLayout: 'QPageLayout') -> bool: ... + def margins(self) -> 'QPagedPaintDevice.Margins': ... + def setMargins(self, margins: 'QPagedPaintDevice.Margins') -> None: ... + def pageSizeMM(self) -> QtCore.QSizeF: ... + def setPageSizeMM(self, size: QtCore.QSizeF) -> None: ... + def pageSize(self) -> 'QPagedPaintDevice.PageSize': ... + @typing.overload + def setPageSize(self, size: 'QPagedPaintDevice.PageSize') -> None: ... + @typing.overload + def setPageSize(self, pageSize: 'QPageSize') -> bool: ... + def newPage(self) -> bool: ... + + +class QPageLayout(sip.simplewrapper): + + class Mode(int): ... + StandardMode = ... # type: 'QPageLayout.Mode' + FullPageMode = ... # type: 'QPageLayout.Mode' + + class Orientation(int): ... + Portrait = ... # type: 'QPageLayout.Orientation' + Landscape = ... # type: 'QPageLayout.Orientation' + + class Unit(int): ... + Millimeter = ... # type: 'QPageLayout.Unit' + Point = ... # type: 'QPageLayout.Unit' + Inch = ... # type: 'QPageLayout.Unit' + Pica = ... # type: 'QPageLayout.Unit' + Didot = ... # type: 'QPageLayout.Unit' + Cicero = ... # type: 'QPageLayout.Unit' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, pageSize: 'QPageSize', orientation: 'QPageLayout.Orientation', margins: QtCore.QMarginsF, units: 'QPageLayout.Unit' = ..., minMargins: QtCore.QMarginsF = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QPageLayout') -> None: ... + + def paintRectPixels(self, resolution: int) -> QtCore.QRect: ... + def paintRectPoints(self) -> QtCore.QRect: ... + @typing.overload + def paintRect(self) -> QtCore.QRectF: ... + @typing.overload + def paintRect(self, units: 'QPageLayout.Unit') -> QtCore.QRectF: ... + def fullRectPixels(self, resolution: int) -> QtCore.QRect: ... + def fullRectPoints(self) -> QtCore.QRect: ... + @typing.overload + def fullRect(self) -> QtCore.QRectF: ... + @typing.overload + def fullRect(self, units: 'QPageLayout.Unit') -> QtCore.QRectF: ... + def maximumMargins(self) -> QtCore.QMarginsF: ... + def minimumMargins(self) -> QtCore.QMarginsF: ... + def setMinimumMargins(self, minMargins: QtCore.QMarginsF) -> None: ... + def marginsPixels(self, resolution: int) -> QtCore.QMargins: ... + def marginsPoints(self) -> QtCore.QMargins: ... + @typing.overload + def margins(self) -> QtCore.QMarginsF: ... + @typing.overload + def margins(self, units: 'QPageLayout.Unit') -> QtCore.QMarginsF: ... + def setBottomMargin(self, bottomMargin: float) -> bool: ... + def setTopMargin(self, topMargin: float) -> bool: ... + def setRightMargin(self, rightMargin: float) -> bool: ... + def setLeftMargin(self, leftMargin: float) -> bool: ... + def setMargins(self, margins: QtCore.QMarginsF) -> bool: ... + def units(self) -> 'QPageLayout.Unit': ... + def setUnits(self, units: 'QPageLayout.Unit') -> None: ... + def orientation(self) -> 'QPageLayout.Orientation': ... + def setOrientation(self, orientation: 'QPageLayout.Orientation') -> None: ... + def pageSize(self) -> 'QPageSize': ... + def setPageSize(self, pageSize: 'QPageSize', minMargins: QtCore.QMarginsF = ...) -> None: ... + def mode(self) -> 'QPageLayout.Mode': ... + def setMode(self, mode: 'QPageLayout.Mode') -> None: ... + def isValid(self) -> bool: ... + def isEquivalentTo(self, other: 'QPageLayout') -> bool: ... + def swap(self, other: 'QPageLayout') -> None: ... + + +class QPageSize(sip.simplewrapper): + + class SizeMatchPolicy(int): ... + FuzzyMatch = ... # type: 'QPageSize.SizeMatchPolicy' + FuzzyOrientationMatch = ... # type: 'QPageSize.SizeMatchPolicy' + ExactMatch = ... # type: 'QPageSize.SizeMatchPolicy' + + class Unit(int): ... + Millimeter = ... # type: 'QPageSize.Unit' + Point = ... # type: 'QPageSize.Unit' + Inch = ... # type: 'QPageSize.Unit' + Pica = ... # type: 'QPageSize.Unit' + Didot = ... # type: 'QPageSize.Unit' + Cicero = ... # type: 'QPageSize.Unit' + + class PageSizeId(int): ... + A4 = ... # type: 'QPageSize.PageSizeId' + B5 = ... # type: 'QPageSize.PageSizeId' + Letter = ... # type: 'QPageSize.PageSizeId' + Legal = ... # type: 'QPageSize.PageSizeId' + Executive = ... # type: 'QPageSize.PageSizeId' + A0 = ... # type: 'QPageSize.PageSizeId' + A1 = ... # type: 'QPageSize.PageSizeId' + A2 = ... # type: 'QPageSize.PageSizeId' + A3 = ... # type: 'QPageSize.PageSizeId' + A5 = ... # type: 'QPageSize.PageSizeId' + A6 = ... # type: 'QPageSize.PageSizeId' + A7 = ... # type: 'QPageSize.PageSizeId' + A8 = ... # type: 'QPageSize.PageSizeId' + A9 = ... # type: 'QPageSize.PageSizeId' + B0 = ... # type: 'QPageSize.PageSizeId' + B1 = ... # type: 'QPageSize.PageSizeId' + B10 = ... # type: 'QPageSize.PageSizeId' + B2 = ... # type: 'QPageSize.PageSizeId' + B3 = ... # type: 'QPageSize.PageSizeId' + B4 = ... # type: 'QPageSize.PageSizeId' + B6 = ... # type: 'QPageSize.PageSizeId' + B7 = ... # type: 'QPageSize.PageSizeId' + B8 = ... # type: 'QPageSize.PageSizeId' + B9 = ... # type: 'QPageSize.PageSizeId' + C5E = ... # type: 'QPageSize.PageSizeId' + Comm10E = ... # type: 'QPageSize.PageSizeId' + DLE = ... # type: 'QPageSize.PageSizeId' + Folio = ... # type: 'QPageSize.PageSizeId' + Ledger = ... # type: 'QPageSize.PageSizeId' + Tabloid = ... # type: 'QPageSize.PageSizeId' + Custom = ... # type: 'QPageSize.PageSizeId' + A10 = ... # type: 'QPageSize.PageSizeId' + A3Extra = ... # type: 'QPageSize.PageSizeId' + A4Extra = ... # type: 'QPageSize.PageSizeId' + A4Plus = ... # type: 'QPageSize.PageSizeId' + A4Small = ... # type: 'QPageSize.PageSizeId' + A5Extra = ... # type: 'QPageSize.PageSizeId' + B5Extra = ... # type: 'QPageSize.PageSizeId' + JisB0 = ... # type: 'QPageSize.PageSizeId' + JisB1 = ... # type: 'QPageSize.PageSizeId' + JisB2 = ... # type: 'QPageSize.PageSizeId' + JisB3 = ... # type: 'QPageSize.PageSizeId' + JisB4 = ... # type: 'QPageSize.PageSizeId' + JisB5 = ... # type: 'QPageSize.PageSizeId' + JisB6 = ... # type: 'QPageSize.PageSizeId' + JisB7 = ... # type: 'QPageSize.PageSizeId' + JisB8 = ... # type: 'QPageSize.PageSizeId' + JisB9 = ... # type: 'QPageSize.PageSizeId' + JisB10 = ... # type: 'QPageSize.PageSizeId' + AnsiC = ... # type: 'QPageSize.PageSizeId' + AnsiD = ... # type: 'QPageSize.PageSizeId' + AnsiE = ... # type: 'QPageSize.PageSizeId' + LegalExtra = ... # type: 'QPageSize.PageSizeId' + LetterExtra = ... # type: 'QPageSize.PageSizeId' + LetterPlus = ... # type: 'QPageSize.PageSizeId' + LetterSmall = ... # type: 'QPageSize.PageSizeId' + TabloidExtra = ... # type: 'QPageSize.PageSizeId' + ArchA = ... # type: 'QPageSize.PageSizeId' + ArchB = ... # type: 'QPageSize.PageSizeId' + ArchC = ... # type: 'QPageSize.PageSizeId' + ArchD = ... # type: 'QPageSize.PageSizeId' + ArchE = ... # type: 'QPageSize.PageSizeId' + Imperial7x9 = ... # type: 'QPageSize.PageSizeId' + Imperial8x10 = ... # type: 'QPageSize.PageSizeId' + Imperial9x11 = ... # type: 'QPageSize.PageSizeId' + Imperial9x12 = ... # type: 'QPageSize.PageSizeId' + Imperial10x11 = ... # type: 'QPageSize.PageSizeId' + Imperial10x13 = ... # type: 'QPageSize.PageSizeId' + Imperial10x14 = ... # type: 'QPageSize.PageSizeId' + Imperial12x11 = ... # type: 'QPageSize.PageSizeId' + Imperial15x11 = ... # type: 'QPageSize.PageSizeId' + ExecutiveStandard = ... # type: 'QPageSize.PageSizeId' + Note = ... # type: 'QPageSize.PageSizeId' + Quarto = ... # type: 'QPageSize.PageSizeId' + Statement = ... # type: 'QPageSize.PageSizeId' + SuperA = ... # type: 'QPageSize.PageSizeId' + SuperB = ... # type: 'QPageSize.PageSizeId' + Postcard = ... # type: 'QPageSize.PageSizeId' + DoublePostcard = ... # type: 'QPageSize.PageSizeId' + Prc16K = ... # type: 'QPageSize.PageSizeId' + Prc32K = ... # type: 'QPageSize.PageSizeId' + Prc32KBig = ... # type: 'QPageSize.PageSizeId' + FanFoldUS = ... # type: 'QPageSize.PageSizeId' + FanFoldGerman = ... # type: 'QPageSize.PageSizeId' + FanFoldGermanLegal = ... # type: 'QPageSize.PageSizeId' + EnvelopeB4 = ... # type: 'QPageSize.PageSizeId' + EnvelopeB5 = ... # type: 'QPageSize.PageSizeId' + EnvelopeB6 = ... # type: 'QPageSize.PageSizeId' + EnvelopeC0 = ... # type: 'QPageSize.PageSizeId' + EnvelopeC1 = ... # type: 'QPageSize.PageSizeId' + EnvelopeC2 = ... # type: 'QPageSize.PageSizeId' + EnvelopeC3 = ... # type: 'QPageSize.PageSizeId' + EnvelopeC4 = ... # type: 'QPageSize.PageSizeId' + EnvelopeC6 = ... # type: 'QPageSize.PageSizeId' + EnvelopeC65 = ... # type: 'QPageSize.PageSizeId' + EnvelopeC7 = ... # type: 'QPageSize.PageSizeId' + Envelope9 = ... # type: 'QPageSize.PageSizeId' + Envelope11 = ... # type: 'QPageSize.PageSizeId' + Envelope12 = ... # type: 'QPageSize.PageSizeId' + Envelope14 = ... # type: 'QPageSize.PageSizeId' + EnvelopeMonarch = ... # type: 'QPageSize.PageSizeId' + EnvelopePersonal = ... # type: 'QPageSize.PageSizeId' + EnvelopeChou3 = ... # type: 'QPageSize.PageSizeId' + EnvelopeChou4 = ... # type: 'QPageSize.PageSizeId' + EnvelopeInvite = ... # type: 'QPageSize.PageSizeId' + EnvelopeItalian = ... # type: 'QPageSize.PageSizeId' + EnvelopeKaku2 = ... # type: 'QPageSize.PageSizeId' + EnvelopeKaku3 = ... # type: 'QPageSize.PageSizeId' + EnvelopePrc1 = ... # type: 'QPageSize.PageSizeId' + EnvelopePrc2 = ... # type: 'QPageSize.PageSizeId' + EnvelopePrc3 = ... # type: 'QPageSize.PageSizeId' + EnvelopePrc4 = ... # type: 'QPageSize.PageSizeId' + EnvelopePrc5 = ... # type: 'QPageSize.PageSizeId' + EnvelopePrc6 = ... # type: 'QPageSize.PageSizeId' + EnvelopePrc7 = ... # type: 'QPageSize.PageSizeId' + EnvelopePrc8 = ... # type: 'QPageSize.PageSizeId' + EnvelopePrc9 = ... # type: 'QPageSize.PageSizeId' + EnvelopePrc10 = ... # type: 'QPageSize.PageSizeId' + EnvelopeYou4 = ... # type: 'QPageSize.PageSizeId' + NPageSize = ... # type: 'QPageSize.PageSizeId' + NPaperSize = ... # type: 'QPageSize.PageSizeId' + AnsiA = ... # type: 'QPageSize.PageSizeId' + AnsiB = ... # type: 'QPageSize.PageSizeId' + EnvelopeC5 = ... # type: 'QPageSize.PageSizeId' + EnvelopeDL = ... # type: 'QPageSize.PageSizeId' + Envelope10 = ... # type: 'QPageSize.PageSizeId' + LastPageSize = ... # type: 'QPageSize.PageSizeId' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, pageSizeId: 'QPageSize.PageSizeId') -> None: ... + @typing.overload + def __init__(self, pointSize: QtCore.QSize, name: str = ..., matchPolicy: 'QPageSize.SizeMatchPolicy' = ...) -> None: ... + @typing.overload + def __init__(self, size: QtCore.QSizeF, units: 'QPageSize.Unit', name: str = ..., matchPolicy: 'QPageSize.SizeMatchPolicy' = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QPageSize') -> None: ... + + def rectPixels(self, resolution: int) -> QtCore.QRect: ... + def rectPoints(self) -> QtCore.QRect: ... + def rect(self, units: 'QPageSize.Unit') -> QtCore.QRectF: ... + @typing.overload + def sizePixels(self, resolution: int) -> QtCore.QSize: ... + @typing.overload + @staticmethod + def sizePixels(pageSizeId: 'QPageSize.PageSizeId', resolution: int) -> QtCore.QSize: ... + @typing.overload + def sizePoints(self) -> QtCore.QSize: ... + @typing.overload + @staticmethod + def sizePoints(pageSizeId: 'QPageSize.PageSizeId') -> QtCore.QSize: ... + @typing.overload + def size(self, units: 'QPageSize.Unit') -> QtCore.QSizeF: ... + @typing.overload + @staticmethod + def size(pageSizeId: 'QPageSize.PageSizeId', units: 'QPageSize.Unit') -> QtCore.QSizeF: ... + @typing.overload + def definitionUnits(self) -> 'QPageSize.Unit': ... + @typing.overload + @staticmethod + def definitionUnits(pageSizeId: 'QPageSize.PageSizeId') -> 'QPageSize.Unit': ... + @typing.overload + def definitionSize(self) -> QtCore.QSizeF: ... + @typing.overload + @staticmethod + def definitionSize(pageSizeId: 'QPageSize.PageSizeId') -> QtCore.QSizeF: ... + @typing.overload + def windowsId(self) -> int: ... + @typing.overload + @staticmethod + def windowsId(pageSizeId: 'QPageSize.PageSizeId') -> int: ... + @typing.overload + def id(self) -> 'QPageSize.PageSizeId': ... + @typing.overload + @staticmethod + def id(pointSize: QtCore.QSize, matchPolicy: 'QPageSize.SizeMatchPolicy' = ...) -> 'QPageSize.PageSizeId': ... + @typing.overload + @staticmethod + def id(size: QtCore.QSizeF, units: 'QPageSize.Unit', matchPolicy: 'QPageSize.SizeMatchPolicy' = ...) -> 'QPageSize.PageSizeId': ... + @typing.overload + @staticmethod + def id(windowsId: int) -> 'QPageSize.PageSizeId': ... + @typing.overload + def name(self) -> str: ... + @typing.overload + @staticmethod + def name(pageSizeId: 'QPageSize.PageSizeId') -> str: ... + @typing.overload + def key(self) -> str: ... + @typing.overload + @staticmethod + def key(pageSizeId: 'QPageSize.PageSizeId') -> str: ... + def isValid(self) -> bool: ... + def isEquivalentTo(self, other: 'QPageSize') -> bool: ... + def swap(self, other: 'QPageSize') -> None: ... + + +class QPainter(sip.simplewrapper): + + class PixmapFragmentHint(int): ... + OpaqueHint = ... # type: 'QPainter.PixmapFragmentHint' + + class CompositionMode(int): ... + CompositionMode_SourceOver = ... # type: 'QPainter.CompositionMode' + CompositionMode_DestinationOver = ... # type: 'QPainter.CompositionMode' + CompositionMode_Clear = ... # type: 'QPainter.CompositionMode' + CompositionMode_Source = ... # type: 'QPainter.CompositionMode' + CompositionMode_Destination = ... # type: 'QPainter.CompositionMode' + CompositionMode_SourceIn = ... # type: 'QPainter.CompositionMode' + CompositionMode_DestinationIn = ... # type: 'QPainter.CompositionMode' + CompositionMode_SourceOut = ... # type: 'QPainter.CompositionMode' + CompositionMode_DestinationOut = ... # type: 'QPainter.CompositionMode' + CompositionMode_SourceAtop = ... # type: 'QPainter.CompositionMode' + CompositionMode_DestinationAtop = ... # type: 'QPainter.CompositionMode' + CompositionMode_Xor = ... # type: 'QPainter.CompositionMode' + CompositionMode_Plus = ... # type: 'QPainter.CompositionMode' + CompositionMode_Multiply = ... # type: 'QPainter.CompositionMode' + CompositionMode_Screen = ... # type: 'QPainter.CompositionMode' + CompositionMode_Overlay = ... # type: 'QPainter.CompositionMode' + CompositionMode_Darken = ... # type: 'QPainter.CompositionMode' + CompositionMode_Lighten = ... # type: 'QPainter.CompositionMode' + CompositionMode_ColorDodge = ... # type: 'QPainter.CompositionMode' + CompositionMode_ColorBurn = ... # type: 'QPainter.CompositionMode' + CompositionMode_HardLight = ... # type: 'QPainter.CompositionMode' + CompositionMode_SoftLight = ... # type: 'QPainter.CompositionMode' + CompositionMode_Difference = ... # type: 'QPainter.CompositionMode' + CompositionMode_Exclusion = ... # type: 'QPainter.CompositionMode' + RasterOp_SourceOrDestination = ... # type: 'QPainter.CompositionMode' + RasterOp_SourceAndDestination = ... # type: 'QPainter.CompositionMode' + RasterOp_SourceXorDestination = ... # type: 'QPainter.CompositionMode' + RasterOp_NotSourceAndNotDestination = ... # type: 'QPainter.CompositionMode' + RasterOp_NotSourceOrNotDestination = ... # type: 'QPainter.CompositionMode' + RasterOp_NotSourceXorDestination = ... # type: 'QPainter.CompositionMode' + RasterOp_NotSource = ... # type: 'QPainter.CompositionMode' + RasterOp_NotSourceAndDestination = ... # type: 'QPainter.CompositionMode' + RasterOp_SourceAndNotDestination = ... # type: 'QPainter.CompositionMode' + RasterOp_NotSourceOrDestination = ... # type: 'QPainter.CompositionMode' + RasterOp_SourceOrNotDestination = ... # type: 'QPainter.CompositionMode' + RasterOp_ClearDestination = ... # type: 'QPainter.CompositionMode' + RasterOp_SetDestination = ... # type: 'QPainter.CompositionMode' + RasterOp_NotDestination = ... # type: 'QPainter.CompositionMode' + + class RenderHint(int): ... + Antialiasing = ... # type: 'QPainter.RenderHint' + TextAntialiasing = ... # type: 'QPainter.RenderHint' + SmoothPixmapTransform = ... # type: 'QPainter.RenderHint' + HighQualityAntialiasing = ... # type: 'QPainter.RenderHint' + NonCosmeticDefaultPen = ... # type: 'QPainter.RenderHint' + Qt4CompatiblePainting = ... # type: 'QPainter.RenderHint' + LosslessImageRendering = ... # type: 'QPainter.RenderHint' + + class RenderHints(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QPainter.RenderHints', 'QPainter.RenderHint']) -> None: ... + @typing.overload + def __init__(self, a0: 'QPainter.RenderHints') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QPainter.RenderHints': ... + def __int__(self) -> int: ... + + class PixmapFragment(sip.simplewrapper): + + height = ... # type: float + opacity = ... # type: float + rotation = ... # type: float + scaleX = ... # type: float + scaleY = ... # type: float + sourceLeft = ... # type: float + sourceTop = ... # type: float + width = ... # type: float + x = ... # type: float + y = ... # type: float + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QPainter.PixmapFragment') -> None: ... + + @staticmethod + def create(pos: typing.Union[QtCore.QPointF, QtCore.QPoint], sourceRect: QtCore.QRectF, scaleX: float = ..., scaleY: float = ..., rotation: float = ..., opacity: float = ...) -> 'QPainter.PixmapFragment': ... + + class PixmapFragmentHints(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QPainter.PixmapFragmentHints', 'QPainter.PixmapFragmentHint']) -> None: ... + @typing.overload + def __init__(self, a0: 'QPainter.PixmapFragmentHints') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QPainter.PixmapFragmentHints': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: QPaintDevice) -> None: ... + + def drawGlyphRun(self, position: typing.Union[QtCore.QPointF, QtCore.QPoint], glyphRun: QGlyphRun) -> None: ... + def clipBoundingRect(self) -> QtCore.QRectF: ... + @typing.overload + def drawStaticText(self, topLeftPosition: typing.Union[QtCore.QPointF, QtCore.QPoint], staticText: 'QStaticText') -> None: ... + @typing.overload + def drawStaticText(self, p: QtCore.QPoint, staticText: 'QStaticText') -> None: ... + @typing.overload + def drawStaticText(self, x: int, y: int, staticText: 'QStaticText') -> None: ... + def drawPixmapFragments(self, fragments: typing.List['QPainter.PixmapFragment'], pixmap: QPixmap, hints: 'QPainter.PixmapFragmentHints' = ...) -> None: ... + def endNativePainting(self) -> None: ... + def beginNativePainting(self) -> None: ... + @typing.overload + def drawRoundedRect(self, rect: QtCore.QRectF, xRadius: float, yRadius: float, mode: QtCore.Qt.SizeMode = ...) -> None: ... + @typing.overload + def drawRoundedRect(self, x: int, y: int, w: int, h: int, xRadius: float, yRadius: float, mode: QtCore.Qt.SizeMode = ...) -> None: ... + @typing.overload + def drawRoundedRect(self, rect: QtCore.QRect, xRadius: float, yRadius: float, mode: QtCore.Qt.SizeMode = ...) -> None: ... + def testRenderHint(self, hint: 'QPainter.RenderHint') -> bool: ... + def combinedTransform(self) -> 'QTransform': ... + def worldTransform(self) -> 'QTransform': ... + def setWorldTransform(self, matrix: 'QTransform', combine: bool = ...) -> None: ... + def resetTransform(self) -> None: ... + def deviceTransform(self) -> 'QTransform': ... + def transform(self) -> 'QTransform': ... + def setTransform(self, transform: 'QTransform', combine: bool = ...) -> None: ... + def setWorldMatrixEnabled(self, enabled: bool) -> None: ... + def worldMatrixEnabled(self) -> bool: ... + def setOpacity(self, opacity: float) -> None: ... + def opacity(self) -> float: ... + @typing.overload + def drawImage(self, r: QtCore.QRectF, image: QImage) -> None: ... + @typing.overload + def drawImage(self, r: QtCore.QRect, image: QImage) -> None: ... + @typing.overload + def drawImage(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint], image: QImage) -> None: ... + @typing.overload + def drawImage(self, p: QtCore.QPoint, image: QImage) -> None: ... + @typing.overload + def drawImage(self, x: int, y: int, image: QImage, sx: int = ..., sy: int = ..., sw: int = ..., sh: int = ..., flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> None: ... + @typing.overload + def drawImage(self, targetRect: QtCore.QRectF, image: QImage, sourceRect: QtCore.QRectF, flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> None: ... + @typing.overload + def drawImage(self, targetRect: QtCore.QRect, image: QImage, sourceRect: QtCore.QRect, flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> None: ... + @typing.overload + def drawImage(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint], image: QImage, sr: QtCore.QRectF, flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> None: ... + @typing.overload + def drawImage(self, p: QtCore.QPoint, image: QImage, sr: QtCore.QRect, flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> None: ... + @typing.overload + def drawPoint(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def drawPoint(self, x: int, y: int) -> None: ... + @typing.overload + def drawPoint(self, p: QtCore.QPoint) -> None: ... + @typing.overload + def drawRect(self, rect: QtCore.QRectF) -> None: ... + @typing.overload + def drawRect(self, x: int, y: int, w: int, h: int) -> None: ... + @typing.overload + def drawRect(self, r: QtCore.QRect) -> None: ... + @typing.overload + def drawLine(self, l: QtCore.QLineF) -> None: ... + @typing.overload + def drawLine(self, line: QtCore.QLine) -> None: ... + @typing.overload + def drawLine(self, x1: int, y1: int, x2: int, y2: int) -> None: ... + @typing.overload + def drawLine(self, p1: QtCore.QPoint, p2: QtCore.QPoint) -> None: ... + @typing.overload + def drawLine(self, p1: typing.Union[QtCore.QPointF, QtCore.QPoint], p2: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def paintEngine(self) -> 'QPaintEngine': ... + def setRenderHints(self, hints: typing.Union['QPainter.RenderHints', 'QPainter.RenderHint'], on: bool = ...) -> None: ... + def renderHints(self) -> 'QPainter.RenderHints': ... + def setRenderHint(self, hint: 'QPainter.RenderHint', on: bool = ...) -> None: ... + @typing.overload + def eraseRect(self, a0: QtCore.QRectF) -> None: ... + @typing.overload + def eraseRect(self, rect: QtCore.QRect) -> None: ... + @typing.overload + def eraseRect(self, x: int, y: int, w: int, h: int) -> None: ... + @typing.overload + def fillRect(self, a0: QtCore.QRectF, a1: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def fillRect(self, a0: QtCore.QRect, a1: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def fillRect(self, x: int, y: int, w: int, h: int, b: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def fillRect(self, a0: QtCore.QRectF, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def fillRect(self, a0: QtCore.QRect, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def fillRect(self, x: int, y: int, w: int, h: int, b: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def fillRect(self, x: int, y: int, w: int, h: int, c: QtCore.Qt.GlobalColor) -> None: ... + @typing.overload + def fillRect(self, r: QtCore.QRect, c: QtCore.Qt.GlobalColor) -> None: ... + @typing.overload + def fillRect(self, r: QtCore.QRectF, c: QtCore.Qt.GlobalColor) -> None: ... + @typing.overload + def fillRect(self, x: int, y: int, w: int, h: int, style: QtCore.Qt.BrushStyle) -> None: ... + @typing.overload + def fillRect(self, r: QtCore.QRect, style: QtCore.Qt.BrushStyle) -> None: ... + @typing.overload + def fillRect(self, r: QtCore.QRectF, style: QtCore.Qt.BrushStyle) -> None: ... + @typing.overload + def fillRect(self, x: int, y: int, w: int, h: int, preset: QGradient.Preset) -> None: ... + @typing.overload + def fillRect(self, r: QtCore.QRect, preset: QGradient.Preset) -> None: ... + @typing.overload + def fillRect(self, r: QtCore.QRectF, preset: QGradient.Preset) -> None: ... + @typing.overload + def boundingRect(self, rect: QtCore.QRectF, flags: int, text: str) -> QtCore.QRectF: ... + @typing.overload + def boundingRect(self, rect: QtCore.QRect, flags: int, text: str) -> QtCore.QRect: ... + @typing.overload + def boundingRect(self, rectangle: QtCore.QRectF, text: str, option: 'QTextOption' = ...) -> QtCore.QRectF: ... + @typing.overload + def boundingRect(self, x: int, y: int, w: int, h: int, flags: int, text: str) -> QtCore.QRect: ... + @typing.overload + def drawText(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint], s: str) -> None: ... + @typing.overload + def drawText(self, rectangle: QtCore.QRectF, flags: int, text: str) -> QtCore.QRectF: ... + @typing.overload + def drawText(self, rectangle: QtCore.QRect, flags: int, text: str) -> QtCore.QRect: ... + @typing.overload + def drawText(self, rectangle: QtCore.QRectF, text: str, option: 'QTextOption' = ...) -> None: ... + @typing.overload + def drawText(self, p: QtCore.QPoint, s: str) -> None: ... + @typing.overload + def drawText(self, x: int, y: int, width: int, height: int, flags: int, text: str) -> QtCore.QRect: ... + @typing.overload + def drawText(self, x: int, y: int, s: str) -> None: ... + def layoutDirection(self) -> QtCore.Qt.LayoutDirection: ... + def setLayoutDirection(self, direction: QtCore.Qt.LayoutDirection) -> None: ... + @typing.overload + def drawPixmap(self, targetRect: QtCore.QRectF, pixmap: QPixmap, sourceRect: QtCore.QRectF) -> None: ... + @typing.overload + def drawPixmap(self, targetRect: QtCore.QRect, pixmap: QPixmap, sourceRect: QtCore.QRect) -> None: ... + @typing.overload + def drawPixmap(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint], pm: QPixmap) -> None: ... + @typing.overload + def drawPixmap(self, p: QtCore.QPoint, pm: QPixmap) -> None: ... + @typing.overload + def drawPixmap(self, r: QtCore.QRect, pm: QPixmap) -> None: ... + @typing.overload + def drawPixmap(self, x: int, y: int, pm: QPixmap) -> None: ... + @typing.overload + def drawPixmap(self, x: int, y: int, w: int, h: int, pm: QPixmap) -> None: ... + @typing.overload + def drawPixmap(self, x: int, y: int, w: int, h: int, pm: QPixmap, sx: int, sy: int, sw: int, sh: int) -> None: ... + @typing.overload + def drawPixmap(self, x: int, y: int, pm: QPixmap, sx: int, sy: int, sw: int, sh: int) -> None: ... + @typing.overload + def drawPixmap(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint], pm: QPixmap, sr: QtCore.QRectF) -> None: ... + @typing.overload + def drawPixmap(self, p: QtCore.QPoint, pm: QPixmap, sr: QtCore.QRect) -> None: ... + @typing.overload + def drawPicture(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint], picture: 'QPicture') -> None: ... + @typing.overload + def drawPicture(self, x: int, y: int, p: 'QPicture') -> None: ... + @typing.overload + def drawPicture(self, pt: QtCore.QPoint, p: 'QPicture') -> None: ... + @typing.overload + def drawTiledPixmap(self, rectangle: QtCore.QRectF, pixmap: QPixmap, pos: typing.Union[QtCore.QPointF, QtCore.QPoint] = ...) -> None: ... + @typing.overload + def drawTiledPixmap(self, rectangle: QtCore.QRect, pixmap: QPixmap, pos: QtCore.QPoint = ...) -> None: ... + @typing.overload + def drawTiledPixmap(self, x: int, y: int, width: int, height: int, pixmap: QPixmap, sx: int = ..., sy: int = ...) -> None: ... + @typing.overload + def drawChord(self, rect: QtCore.QRectF, a: int, alen: int) -> None: ... + @typing.overload + def drawChord(self, rect: QtCore.QRect, a: int, alen: int) -> None: ... + @typing.overload + def drawChord(self, x: int, y: int, w: int, h: int, a: int, alen: int) -> None: ... + @typing.overload + def drawPie(self, rect: QtCore.QRectF, a: int, alen: int) -> None: ... + @typing.overload + def drawPie(self, rect: QtCore.QRect, a: int, alen: int) -> None: ... + @typing.overload + def drawPie(self, x: int, y: int, w: int, h: int, a: int, alen: int) -> None: ... + @typing.overload + def drawArc(self, rect: QtCore.QRectF, a: int, alen: int) -> None: ... + @typing.overload + def drawArc(self, r: QtCore.QRect, a: int, alen: int) -> None: ... + @typing.overload + def drawArc(self, x: int, y: int, w: int, h: int, a: int, alen: int) -> None: ... + @typing.overload + def drawConvexPolygon(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], *a1) -> None: ... + @typing.overload + def drawConvexPolygon(self, poly: 'QPolygonF') -> None: ... + @typing.overload + def drawConvexPolygon(self, point: QtCore.QPoint, *a1) -> None: ... + @typing.overload + def drawConvexPolygon(self, poly: 'QPolygon') -> None: ... + @typing.overload + def drawPolygon(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], *a1) -> None: ... + @typing.overload + def drawPolygon(self, points: 'QPolygonF', fillRule: QtCore.Qt.FillRule = ...) -> None: ... + @typing.overload + def drawPolygon(self, point: QtCore.QPoint, *a1) -> None: ... + @typing.overload + def drawPolygon(self, points: 'QPolygon', fillRule: QtCore.Qt.FillRule = ...) -> None: ... + @typing.overload + def drawPolyline(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], *a1) -> None: ... + @typing.overload + def drawPolyline(self, polyline: 'QPolygonF') -> None: ... + @typing.overload + def drawPolyline(self, point: QtCore.QPoint, *a1) -> None: ... + @typing.overload + def drawPolyline(self, polyline: 'QPolygon') -> None: ... + @typing.overload + def drawEllipse(self, r: QtCore.QRectF) -> None: ... + @typing.overload + def drawEllipse(self, r: QtCore.QRect) -> None: ... + @typing.overload + def drawEllipse(self, x: int, y: int, w: int, h: int) -> None: ... + @typing.overload + def drawEllipse(self, center: typing.Union[QtCore.QPointF, QtCore.QPoint], rx: float, ry: float) -> None: ... + @typing.overload + def drawEllipse(self, center: QtCore.QPoint, rx: int, ry: int) -> None: ... + @typing.overload + def drawRects(self, rect: QtCore.QRectF, *a1) -> None: ... + @typing.overload + def drawRects(self, rects: typing.Iterable[QtCore.QRectF]) -> None: ... + @typing.overload + def drawRects(self, rect: QtCore.QRect, *a1) -> None: ... + @typing.overload + def drawRects(self, rects: typing.Iterable[QtCore.QRect]) -> None: ... + @typing.overload + def drawLines(self, line: QtCore.QLineF, *a1) -> None: ... + @typing.overload + def drawLines(self, lines: typing.Iterable[QtCore.QLineF]) -> None: ... + @typing.overload + def drawLines(self, pointPair: typing.Union[QtCore.QPointF, QtCore.QPoint], *a1) -> None: ... + @typing.overload + def drawLines(self, pointPairs: typing.Iterable[typing.Union[QtCore.QPointF, QtCore.QPoint]]) -> None: ... + @typing.overload + def drawLines(self, line: QtCore.QLine, *a1) -> None: ... + @typing.overload + def drawLines(self, lines: typing.Iterable[QtCore.QLine]) -> None: ... + @typing.overload + def drawLines(self, pointPair: QtCore.QPoint, *a1) -> None: ... + @typing.overload + def drawLines(self, pointPairs: typing.Iterable[QtCore.QPoint]) -> None: ... + @typing.overload + def drawPoints(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], *a1) -> None: ... + @typing.overload + def drawPoints(self, points: 'QPolygonF') -> None: ... + @typing.overload + def drawPoints(self, point: QtCore.QPoint, *a1) -> None: ... + @typing.overload + def drawPoints(self, points: 'QPolygon') -> None: ... + def drawPath(self, path: 'QPainterPath') -> None: ... + def fillPath(self, path: 'QPainterPath', brush: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def strokePath(self, path: 'QPainterPath', pen: typing.Union['QPen', QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def viewTransformEnabled(self) -> bool: ... + def setViewTransformEnabled(self, enable: bool) -> None: ... + @typing.overload + def setViewport(self, viewport: QtCore.QRect) -> None: ... + @typing.overload + def setViewport(self, x: int, y: int, w: int, h: int) -> None: ... + def viewport(self) -> QtCore.QRect: ... + @typing.overload + def setWindow(self, window: QtCore.QRect) -> None: ... + @typing.overload + def setWindow(self, x: int, y: int, w: int, h: int) -> None: ... + def window(self) -> QtCore.QRect: ... + @typing.overload + def translate(self, offset: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def translate(self, dx: float, dy: float) -> None: ... + @typing.overload + def translate(self, offset: QtCore.QPoint) -> None: ... + def rotate(self, a: float) -> None: ... + def shear(self, sh: float, sv: float) -> None: ... + def scale(self, sx: float, sy: float) -> None: ... + def restore(self) -> None: ... + def save(self) -> None: ... + def hasClipping(self) -> bool: ... + def setClipping(self, enable: bool) -> None: ... + def setClipPath(self, path: 'QPainterPath', operation: QtCore.Qt.ClipOperation = ...) -> None: ... + def setClipRegion(self, region: 'QRegion', operation: QtCore.Qt.ClipOperation = ...) -> None: ... + @typing.overload + def setClipRect(self, rectangle: QtCore.QRectF, operation: QtCore.Qt.ClipOperation = ...) -> None: ... + @typing.overload + def setClipRect(self, x: int, y: int, width: int, height: int, operation: QtCore.Qt.ClipOperation = ...) -> None: ... + @typing.overload + def setClipRect(self, rectangle: QtCore.QRect, operation: QtCore.Qt.ClipOperation = ...) -> None: ... + def clipPath(self) -> 'QPainterPath': ... + def clipRegion(self) -> 'QRegion': ... + def background(self) -> QBrush: ... + def setBackground(self, bg: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def setBrushOrigin(self, a0: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def setBrushOrigin(self, x: int, y: int) -> None: ... + @typing.overload + def setBrushOrigin(self, p: QtCore.QPoint) -> None: ... + def brushOrigin(self) -> QtCore.QPoint: ... + def backgroundMode(self) -> QtCore.Qt.BGMode: ... + def setBackgroundMode(self, mode: QtCore.Qt.BGMode) -> None: ... + def brush(self) -> QBrush: ... + @typing.overload + def setBrush(self, brush: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def setBrush(self, style: QtCore.Qt.BrushStyle) -> None: ... + def pen(self) -> 'QPen': ... + @typing.overload + def setPen(self, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def setPen(self, pen: typing.Union['QPen', QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def setPen(self, style: QtCore.Qt.PenStyle) -> None: ... + def fontInfo(self) -> QFontInfo: ... + def fontMetrics(self) -> QFontMetrics: ... + def setFont(self, f: QFont) -> None: ... + def font(self) -> QFont: ... + def compositionMode(self) -> 'QPainter.CompositionMode': ... + def setCompositionMode(self, mode: 'QPainter.CompositionMode') -> None: ... + def isActive(self) -> bool: ... + def end(self) -> bool: ... + def begin(self, a0: QPaintDevice) -> bool: ... + def device(self) -> QPaintDevice: ... + def __exit__(self, type: typing.Any, value: typing.Any, traceback: typing.Any) -> None: ... + def __enter__(self) -> typing.Any: ... + + +class QTextItem(sip.simplewrapper): + + class RenderFlag(int): ... + RightToLeft = ... # type: 'QTextItem.RenderFlag' + Overline = ... # type: 'QTextItem.RenderFlag' + Underline = ... # type: 'QTextItem.RenderFlag' + StrikeOut = ... # type: 'QTextItem.RenderFlag' + + class RenderFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QTextItem.RenderFlags', 'QTextItem.RenderFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextItem.RenderFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QTextItem.RenderFlags': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextItem') -> None: ... + + def font(self) -> QFont: ... + def text(self) -> str: ... + def renderFlags(self) -> 'QTextItem.RenderFlags': ... + def width(self) -> float: ... + def ascent(self) -> float: ... + def descent(self) -> float: ... + + +class QPaintEngine(sip.simplewrapper): + + class Type(int): ... + X11 = ... # type: 'QPaintEngine.Type' + Windows = ... # type: 'QPaintEngine.Type' + QuickDraw = ... # type: 'QPaintEngine.Type' + CoreGraphics = ... # type: 'QPaintEngine.Type' + MacPrinter = ... # type: 'QPaintEngine.Type' + QWindowSystem = ... # type: 'QPaintEngine.Type' + PostScript = ... # type: 'QPaintEngine.Type' + OpenGL = ... # type: 'QPaintEngine.Type' + Picture = ... # type: 'QPaintEngine.Type' + SVG = ... # type: 'QPaintEngine.Type' + Raster = ... # type: 'QPaintEngine.Type' + Direct3D = ... # type: 'QPaintEngine.Type' + Pdf = ... # type: 'QPaintEngine.Type' + OpenVG = ... # type: 'QPaintEngine.Type' + OpenGL2 = ... # type: 'QPaintEngine.Type' + PaintBuffer = ... # type: 'QPaintEngine.Type' + Blitter = ... # type: 'QPaintEngine.Type' + Direct2D = ... # type: 'QPaintEngine.Type' + User = ... # type: 'QPaintEngine.Type' + MaxUser = ... # type: 'QPaintEngine.Type' + + class PolygonDrawMode(int): ... + OddEvenMode = ... # type: 'QPaintEngine.PolygonDrawMode' + WindingMode = ... # type: 'QPaintEngine.PolygonDrawMode' + ConvexMode = ... # type: 'QPaintEngine.PolygonDrawMode' + PolylineMode = ... # type: 'QPaintEngine.PolygonDrawMode' + + class DirtyFlag(int): ... + DirtyPen = ... # type: 'QPaintEngine.DirtyFlag' + DirtyBrush = ... # type: 'QPaintEngine.DirtyFlag' + DirtyBrushOrigin = ... # type: 'QPaintEngine.DirtyFlag' + DirtyFont = ... # type: 'QPaintEngine.DirtyFlag' + DirtyBackground = ... # type: 'QPaintEngine.DirtyFlag' + DirtyBackgroundMode = ... # type: 'QPaintEngine.DirtyFlag' + DirtyTransform = ... # type: 'QPaintEngine.DirtyFlag' + DirtyClipRegion = ... # type: 'QPaintEngine.DirtyFlag' + DirtyClipPath = ... # type: 'QPaintEngine.DirtyFlag' + DirtyHints = ... # type: 'QPaintEngine.DirtyFlag' + DirtyCompositionMode = ... # type: 'QPaintEngine.DirtyFlag' + DirtyClipEnabled = ... # type: 'QPaintEngine.DirtyFlag' + DirtyOpacity = ... # type: 'QPaintEngine.DirtyFlag' + AllDirty = ... # type: 'QPaintEngine.DirtyFlag' + + class PaintEngineFeature(int): ... + PrimitiveTransform = ... # type: 'QPaintEngine.PaintEngineFeature' + PatternTransform = ... # type: 'QPaintEngine.PaintEngineFeature' + PixmapTransform = ... # type: 'QPaintEngine.PaintEngineFeature' + PatternBrush = ... # type: 'QPaintEngine.PaintEngineFeature' + LinearGradientFill = ... # type: 'QPaintEngine.PaintEngineFeature' + RadialGradientFill = ... # type: 'QPaintEngine.PaintEngineFeature' + ConicalGradientFill = ... # type: 'QPaintEngine.PaintEngineFeature' + AlphaBlend = ... # type: 'QPaintEngine.PaintEngineFeature' + PorterDuff = ... # type: 'QPaintEngine.PaintEngineFeature' + PainterPaths = ... # type: 'QPaintEngine.PaintEngineFeature' + Antialiasing = ... # type: 'QPaintEngine.PaintEngineFeature' + BrushStroke = ... # type: 'QPaintEngine.PaintEngineFeature' + ConstantOpacity = ... # type: 'QPaintEngine.PaintEngineFeature' + MaskedBrush = ... # type: 'QPaintEngine.PaintEngineFeature' + PaintOutsidePaintEvent = ... # type: 'QPaintEngine.PaintEngineFeature' + PerspectiveTransform = ... # type: 'QPaintEngine.PaintEngineFeature' + BlendModes = ... # type: 'QPaintEngine.PaintEngineFeature' + ObjectBoundingModeGradients = ... # type: 'QPaintEngine.PaintEngineFeature' + RasterOpModes = ... # type: 'QPaintEngine.PaintEngineFeature' + AllFeatures = ... # type: 'QPaintEngine.PaintEngineFeature' + + class PaintEngineFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QPaintEngine.PaintEngineFeatures', 'QPaintEngine.PaintEngineFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QPaintEngine.PaintEngineFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QPaintEngine.PaintEngineFeatures': ... + def __int__(self) -> int: ... + + class DirtyFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QPaintEngine.DirtyFlags', 'QPaintEngine.DirtyFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QPaintEngine.DirtyFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QPaintEngine.DirtyFlags': ... + def __int__(self) -> int: ... + + def __init__(self, features: typing.Union['QPaintEngine.PaintEngineFeatures', 'QPaintEngine.PaintEngineFeature'] = ...) -> None: ... + + def hasFeature(self, feature: typing.Union['QPaintEngine.PaintEngineFeatures', 'QPaintEngine.PaintEngineFeature']) -> bool: ... + def painter(self) -> QPainter: ... + def type(self) -> 'QPaintEngine.Type': ... + def paintDevice(self) -> QPaintDevice: ... + def setPaintDevice(self, device: QPaintDevice) -> None: ... + def drawImage(self, r: QtCore.QRectF, pm: QImage, sr: QtCore.QRectF, flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> None: ... + def drawTiledPixmap(self, r: QtCore.QRectF, pixmap: QPixmap, s: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def drawTextItem(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint], textItem: QTextItem) -> None: ... + def drawPixmap(self, r: QtCore.QRectF, pm: QPixmap, sr: QtCore.QRectF) -> None: ... + @typing.overload + def drawPolygon(self, points: typing.Union[QtCore.QPointF, QtCore.QPoint], mode: 'QPaintEngine.PolygonDrawMode') -> None: ... + @typing.overload + def drawPolygon(self, points: QtCore.QPoint, mode: 'QPaintEngine.PolygonDrawMode') -> None: ... + @typing.overload + def drawPoints(self, points: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def drawPoints(self, points: QtCore.QPoint) -> None: ... + def drawPath(self, path: 'QPainterPath') -> None: ... + @typing.overload + def drawEllipse(self, r: QtCore.QRectF) -> None: ... + @typing.overload + def drawEllipse(self, r: QtCore.QRect) -> None: ... + @typing.overload + def drawLines(self, lines: QtCore.QLine) -> None: ... + @typing.overload + def drawLines(self, lines: QtCore.QLineF) -> None: ... + @typing.overload + def drawRects(self, rects: QtCore.QRect) -> None: ... + @typing.overload + def drawRects(self, rects: QtCore.QRectF) -> None: ... + def updateState(self, state: 'QPaintEngineState') -> None: ... + def end(self) -> bool: ... + def begin(self, pdev: QPaintDevice) -> bool: ... + def setActive(self, newState: bool) -> None: ... + def isActive(self) -> bool: ... + + +class QPaintEngineState(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QPaintEngineState') -> None: ... + + def penNeedsResolving(self) -> bool: ... + def brushNeedsResolving(self) -> bool: ... + def transform(self) -> 'QTransform': ... + def painter(self) -> QPainter: ... + def compositionMode(self) -> QPainter.CompositionMode: ... + def renderHints(self) -> QPainter.RenderHints: ... + def isClipEnabled(self) -> bool: ... + def clipPath(self) -> 'QPainterPath': ... + def clipRegion(self) -> 'QRegion': ... + def clipOperation(self) -> QtCore.Qt.ClipOperation: ... + def opacity(self) -> float: ... + def font(self) -> QFont: ... + def backgroundMode(self) -> QtCore.Qt.BGMode: ... + def backgroundBrush(self) -> QBrush: ... + def brushOrigin(self) -> QtCore.QPointF: ... + def brush(self) -> QBrush: ... + def pen(self) -> 'QPen': ... + def state(self) -> QPaintEngine.DirtyFlags: ... + + +class QPainterPath(sip.simplewrapper): + + class ElementType(int): ... + MoveToElement = ... # type: 'QPainterPath.ElementType' + LineToElement = ... # type: 'QPainterPath.ElementType' + CurveToElement = ... # type: 'QPainterPath.ElementType' + CurveToDataElement = ... # type: 'QPainterPath.ElementType' + + class Element(sip.simplewrapper): + + type = ... # type: 'QPainterPath.ElementType' + x = ... # type: float + y = ... # type: float + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QPainterPath.Element') -> None: ... + + def isCurveTo(self) -> bool: ... + def isLineTo(self) -> bool: ... + def isMoveTo(self) -> bool: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, startPoint: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def __init__(self, other: 'QPainterPath') -> None: ... + + def capacity(self) -> int: ... + def reserve(self, size: int) -> None: ... + def clear(self) -> None: ... + def swap(self, other: 'QPainterPath') -> None: ... + @typing.overload + def translated(self, dx: float, dy: float) -> 'QPainterPath': ... + @typing.overload + def translated(self, offset: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> 'QPainterPath': ... + @typing.overload + def translate(self, dx: float, dy: float) -> None: ... + @typing.overload + def translate(self, offset: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def simplified(self) -> 'QPainterPath': ... + @typing.overload + def addRoundedRect(self, rect: QtCore.QRectF, xRadius: float, yRadius: float, mode: QtCore.Qt.SizeMode = ...) -> None: ... + @typing.overload + def addRoundedRect(self, x: float, y: float, w: float, h: float, xRadius: float, yRadius: float, mode: QtCore.Qt.SizeMode = ...) -> None: ... + def subtracted(self, r: 'QPainterPath') -> 'QPainterPath': ... + def intersected(self, r: 'QPainterPath') -> 'QPainterPath': ... + def united(self, r: 'QPainterPath') -> 'QPainterPath': ... + def slopeAtPercent(self, t: float) -> float: ... + def angleAtPercent(self, t: float) -> float: ... + def pointAtPercent(self, t: float) -> QtCore.QPointF: ... + def percentAtLength(self, t: float) -> float: ... + def length(self) -> float: ... + def setElementPositionAt(self, i: int, x: float, y: float) -> None: ... + def elementAt(self, i: int) -> 'QPainterPath.Element': ... + def elementCount(self) -> int: ... + def isEmpty(self) -> bool: ... + @typing.overload + def arcMoveTo(self, rect: QtCore.QRectF, angle: float) -> None: ... + @typing.overload + def arcMoveTo(self, x: float, y: float, w: float, h: float, angle: float) -> None: ... + @typing.overload + def toFillPolygon(self) -> 'QPolygonF': ... + @typing.overload + def toFillPolygon(self, matrix: 'QTransform') -> 'QPolygonF': ... + @typing.overload + def toFillPolygons(self) -> typing.List['QPolygonF']: ... + @typing.overload + def toFillPolygons(self, matrix: 'QTransform') -> typing.List['QPolygonF']: ... + @typing.overload + def toSubpathPolygons(self) -> typing.List['QPolygonF']: ... + @typing.overload + def toSubpathPolygons(self, matrix: 'QTransform') -> typing.List['QPolygonF']: ... + def toReversed(self) -> 'QPainterPath': ... + def setFillRule(self, fillRule: QtCore.Qt.FillRule) -> None: ... + def fillRule(self) -> QtCore.Qt.FillRule: ... + def controlPointRect(self) -> QtCore.QRectF: ... + def boundingRect(self) -> QtCore.QRectF: ... + @typing.overload + def intersects(self, rect: QtCore.QRectF) -> bool: ... + @typing.overload + def intersects(self, p: 'QPainterPath') -> bool: ... + @typing.overload + def contains(self, pt: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> bool: ... + @typing.overload + def contains(self, rect: QtCore.QRectF) -> bool: ... + @typing.overload + def contains(self, p: 'QPainterPath') -> bool: ... + def connectPath(self, path: 'QPainterPath') -> None: ... + def addRegion(self, region: 'QRegion') -> None: ... + def addPath(self, path: 'QPainterPath') -> None: ... + @typing.overload + def addText(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], f: QFont, text: str) -> None: ... + @typing.overload + def addText(self, x: float, y: float, f: QFont, text: str) -> None: ... + def addPolygon(self, polygon: 'QPolygonF') -> None: ... + @typing.overload + def addEllipse(self, rect: QtCore.QRectF) -> None: ... + @typing.overload + def addEllipse(self, x: float, y: float, w: float, h: float) -> None: ... + @typing.overload + def addEllipse(self, center: typing.Union[QtCore.QPointF, QtCore.QPoint], rx: float, ry: float) -> None: ... + @typing.overload + def addRect(self, rect: QtCore.QRectF) -> None: ... + @typing.overload + def addRect(self, x: float, y: float, w: float, h: float) -> None: ... + def currentPosition(self) -> QtCore.QPointF: ... + @typing.overload + def quadTo(self, ctrlPt: typing.Union[QtCore.QPointF, QtCore.QPoint], endPt: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def quadTo(self, ctrlPtx: float, ctrlPty: float, endPtx: float, endPty: float) -> None: ... + @typing.overload + def cubicTo(self, ctrlPt1: typing.Union[QtCore.QPointF, QtCore.QPoint], ctrlPt2: typing.Union[QtCore.QPointF, QtCore.QPoint], endPt: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def cubicTo(self, ctrlPt1x: float, ctrlPt1y: float, ctrlPt2x: float, ctrlPt2y: float, endPtx: float, endPty: float) -> None: ... + @typing.overload + def arcTo(self, rect: QtCore.QRectF, startAngle: float, arcLength: float) -> None: ... + @typing.overload + def arcTo(self, x: float, y: float, w: float, h: float, startAngle: float, arcLenght: float) -> None: ... + @typing.overload + def lineTo(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def lineTo(self, x: float, y: float) -> None: ... + @typing.overload + def moveTo(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def moveTo(self, x: float, y: float) -> None: ... + def closeSubpath(self) -> None: ... + + +class QPainterPathStroker(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, pen: typing.Union['QPen', QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + + def dashOffset(self) -> float: ... + def setDashOffset(self, offset: float) -> None: ... + def createStroke(self, path: QPainterPath) -> QPainterPath: ... + def dashPattern(self) -> typing.List[float]: ... + @typing.overload + def setDashPattern(self, a0: QtCore.Qt.PenStyle) -> None: ... + @typing.overload + def setDashPattern(self, dashPattern: typing.Iterable[float]) -> None: ... + def curveThreshold(self) -> float: ... + def setCurveThreshold(self, threshold: float) -> None: ... + def miterLimit(self) -> float: ... + def setMiterLimit(self, length: float) -> None: ... + def joinStyle(self) -> QtCore.Qt.PenJoinStyle: ... + def setJoinStyle(self, style: QtCore.Qt.PenJoinStyle) -> None: ... + def capStyle(self) -> QtCore.Qt.PenCapStyle: ... + def setCapStyle(self, style: QtCore.Qt.PenCapStyle) -> None: ... + def width(self) -> float: ... + def setWidth(self, width: float) -> None: ... + + +class QPalette(sip.simplewrapper): + + class ColorRole(int): ... + WindowText = ... # type: 'QPalette.ColorRole' + Foreground = ... # type: 'QPalette.ColorRole' + Button = ... # type: 'QPalette.ColorRole' + Light = ... # type: 'QPalette.ColorRole' + Midlight = ... # type: 'QPalette.ColorRole' + Dark = ... # type: 'QPalette.ColorRole' + Mid = ... # type: 'QPalette.ColorRole' + Text = ... # type: 'QPalette.ColorRole' + BrightText = ... # type: 'QPalette.ColorRole' + ButtonText = ... # type: 'QPalette.ColorRole' + Base = ... # type: 'QPalette.ColorRole' + Window = ... # type: 'QPalette.ColorRole' + Background = ... # type: 'QPalette.ColorRole' + Shadow = ... # type: 'QPalette.ColorRole' + Highlight = ... # type: 'QPalette.ColorRole' + HighlightedText = ... # type: 'QPalette.ColorRole' + Link = ... # type: 'QPalette.ColorRole' + LinkVisited = ... # type: 'QPalette.ColorRole' + AlternateBase = ... # type: 'QPalette.ColorRole' + ToolTipBase = ... # type: 'QPalette.ColorRole' + ToolTipText = ... # type: 'QPalette.ColorRole' + PlaceholderText = ... # type: 'QPalette.ColorRole' + NoRole = ... # type: 'QPalette.ColorRole' + NColorRoles = ... # type: 'QPalette.ColorRole' + + class ColorGroup(int): ... + Active = ... # type: 'QPalette.ColorGroup' + Disabled = ... # type: 'QPalette.ColorGroup' + Inactive = ... # type: 'QPalette.ColorGroup' + NColorGroups = ... # type: 'QPalette.ColorGroup' + Current = ... # type: 'QPalette.ColorGroup' + All = ... # type: 'QPalette.ColorGroup' + Normal = ... # type: 'QPalette.ColorGroup' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, button: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def __init__(self, button: QtCore.Qt.GlobalColor) -> None: ... + @typing.overload + def __init__(self, button: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient], background: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def __init__(self, foreground: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient], button: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient], light: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient], dark: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient], mid: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient], text: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient], bright_text: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient], base: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient], background: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def __init__(self, palette: 'QPalette') -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + def swap(self, other: 'QPalette') -> None: ... + def cacheKey(self) -> int: ... + def isBrushSet(self, cg: 'QPalette.ColorGroup', cr: 'QPalette.ColorRole') -> bool: ... + @typing.overload + def setColor(self, acg: 'QPalette.ColorGroup', acr: 'QPalette.ColorRole', acolor: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def setColor(self, acr: 'QPalette.ColorRole', acolor: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def resolve(self, a0: 'QPalette') -> 'QPalette': ... + @typing.overload + def resolve(self) -> int: ... + @typing.overload + def resolve(self, mask: int) -> None: ... + def isCopyOf(self, p: 'QPalette') -> bool: ... + def placeholderText(self) -> QBrush: ... + def toolTipText(self) -> QBrush: ... + def toolTipBase(self) -> QBrush: ... + def linkVisited(self) -> QBrush: ... + def link(self) -> QBrush: ... + def highlightedText(self) -> QBrush: ... + def highlight(self) -> QBrush: ... + def shadow(self) -> QBrush: ... + def buttonText(self) -> QBrush: ... + def brightText(self) -> QBrush: ... + def midlight(self) -> QBrush: ... + def window(self) -> QBrush: ... + def alternateBase(self) -> QBrush: ... + def base(self) -> QBrush: ... + def text(self) -> QBrush: ... + def mid(self) -> QBrush: ... + def dark(self) -> QBrush: ... + def light(self) -> QBrush: ... + def button(self) -> QBrush: ... + def windowText(self) -> QBrush: ... + def isEqual(self, cr1: 'QPalette.ColorGroup', cr2: 'QPalette.ColorGroup') -> bool: ... + def setColorGroup(self, cr: 'QPalette.ColorGroup', foreground: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient], button: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient], light: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient], dark: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient], mid: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient], text: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient], bright_text: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient], base: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient], background: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def setBrush(self, cg: 'QPalette.ColorGroup', cr: 'QPalette.ColorRole', brush: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def setBrush(self, acr: 'QPalette.ColorRole', abrush: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def brush(self, cg: 'QPalette.ColorGroup', cr: 'QPalette.ColorRole') -> QBrush: ... + @typing.overload + def brush(self, cr: 'QPalette.ColorRole') -> QBrush: ... + @typing.overload + def color(self, cg: 'QPalette.ColorGroup', cr: 'QPalette.ColorRole') -> QColor: ... + @typing.overload + def color(self, cr: 'QPalette.ColorRole') -> QColor: ... + def setCurrentColorGroup(self, cg: 'QPalette.ColorGroup') -> None: ... + def currentColorGroup(self) -> 'QPalette.ColorGroup': ... + + +class QPdfWriter(QtCore.QObject, QPagedPaintDevice): + + @typing.overload + def __init__(self, filename: str) -> None: ... + @typing.overload + def __init__(self, device: QtCore.QIODevice) -> None: ... + + def pdfVersion(self) -> QPagedPaintDevice.PdfVersion: ... + def setPdfVersion(self, version: QPagedPaintDevice.PdfVersion) -> None: ... + def resolution(self) -> int: ... + def setResolution(self, resolution: int) -> None: ... + def metric(self, id: QPaintDevice.PaintDeviceMetric) -> int: ... + def paintEngine(self) -> QPaintEngine: ... + def setMargins(self, m: QPagedPaintDevice.Margins) -> None: ... + def setPageSizeMM(self, size: QtCore.QSizeF) -> None: ... + def setPageSize(self, size: QPagedPaintDevice.PageSize) -> None: ... + def newPage(self) -> bool: ... + def setCreator(self, creator: str) -> None: ... + def creator(self) -> str: ... + def setTitle(self, title: str) -> None: ... + def title(self) -> str: ... + + +class QPen(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.Qt.PenStyle) -> None: ... + @typing.overload + def __init__(self, brush: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient], width: float, style: QtCore.Qt.PenStyle = ..., cap: QtCore.Qt.PenCapStyle = ..., join: QtCore.Qt.PenJoinStyle = ...) -> None: ... + @typing.overload + def __init__(self, pen: typing.Union['QPen', QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + def swap(self, other: 'QPen') -> None: ... + def setCosmetic(self, cosmetic: bool) -> None: ... + def isCosmetic(self) -> bool: ... + def setDashOffset(self, doffset: float) -> None: ... + def dashOffset(self) -> float: ... + def setMiterLimit(self, limit: float) -> None: ... + def miterLimit(self) -> float: ... + def setDashPattern(self, pattern: typing.Iterable[float]) -> None: ... + def dashPattern(self) -> typing.List[float]: ... + def setJoinStyle(self, pcs: QtCore.Qt.PenJoinStyle) -> None: ... + def joinStyle(self) -> QtCore.Qt.PenJoinStyle: ... + def setCapStyle(self, pcs: QtCore.Qt.PenCapStyle) -> None: ... + def capStyle(self) -> QtCore.Qt.PenCapStyle: ... + def isSolid(self) -> bool: ... + def setBrush(self, brush: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def brush(self) -> QBrush: ... + def setColor(self, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def color(self) -> QColor: ... + def setWidth(self, width: int) -> None: ... + def width(self) -> int: ... + def setWidthF(self, width: float) -> None: ... + def widthF(self) -> float: ... + def setStyle(self, a0: QtCore.Qt.PenStyle) -> None: ... + def style(self) -> QtCore.Qt.PenStyle: ... + + +class QPicture(QPaintDevice): + + @typing.overload + def __init__(self, formatVersion: int = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QPicture') -> None: ... + + def swap(self, other: 'QPicture') -> None: ... + def metric(self, m: QPaintDevice.PaintDeviceMetric) -> int: ... + def paintEngine(self) -> QPaintEngine: ... + def isDetached(self) -> bool: ... + def detach(self) -> None: ... + def setBoundingRect(self, r: QtCore.QRect) -> None: ... + def boundingRect(self) -> QtCore.QRect: ... + @typing.overload + def save(self, dev: QtCore.QIODevice, format: typing.Optional[str] = ...) -> bool: ... + @typing.overload + def save(self, fileName: str, format: typing.Optional[str] = ...) -> bool: ... + @typing.overload + def load(self, dev: QtCore.QIODevice, format: typing.Optional[str] = ...) -> bool: ... + @typing.overload + def load(self, fileName: str, format: typing.Optional[str] = ...) -> bool: ... + def play(self, p: QPainter) -> bool: ... + def setData(self, data: bytes) -> None: ... + def data(self) -> str: ... + def size(self) -> int: ... + def devType(self) -> int: ... + def isNull(self) -> bool: ... + + +class QPictureIO(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, ioDevice: QtCore.QIODevice, format: str) -> None: ... + @typing.overload + def __init__(self, fileName: str, format: str) -> None: ... + + @staticmethod + def defineIOHandler(format: str, header: str, flags: str, read_picture: typing.Optional[typing.Callable[['QPictureIO'], None]], write_picture: typing.Optional[typing.Callable[['QPictureIO'], None]]) -> None: ... + @staticmethod + def outputFormats() -> typing.List[QtCore.QByteArray]: ... + @staticmethod + def inputFormats() -> typing.List[QtCore.QByteArray]: ... + @typing.overload + @staticmethod + def pictureFormat(fileName: str) -> QtCore.QByteArray: ... + @typing.overload + @staticmethod + def pictureFormat(a0: QtCore.QIODevice) -> QtCore.QByteArray: ... + def write(self) -> bool: ... + def read(self) -> bool: ... + def setGamma(self, a0: float) -> None: ... + def setParameters(self, a0: str) -> None: ... + def setDescription(self, a0: str) -> None: ... + def setQuality(self, a0: int) -> None: ... + def setFileName(self, a0: str) -> None: ... + def setIODevice(self, a0: QtCore.QIODevice) -> None: ... + def setFormat(self, a0: str) -> None: ... + def setStatus(self, a0: int) -> None: ... + def setPicture(self, a0: QPicture) -> None: ... + def gamma(self) -> float: ... + def parameters(self) -> str: ... + def description(self) -> str: ... + def quality(self) -> int: ... + def fileName(self) -> str: ... + def ioDevice(self) -> QtCore.QIODevice: ... + def format(self) -> str: ... + def status(self) -> int: ... + def picture(self) -> QPicture: ... + + +class QPixelFormat(sip.simplewrapper): + + class ByteOrder(int): ... + LittleEndian = ... # type: 'QPixelFormat.ByteOrder' + BigEndian = ... # type: 'QPixelFormat.ByteOrder' + CurrentSystemEndian = ... # type: 'QPixelFormat.ByteOrder' + + class YUVLayout(int): ... + YUV444 = ... # type: 'QPixelFormat.YUVLayout' + YUV422 = ... # type: 'QPixelFormat.YUVLayout' + YUV411 = ... # type: 'QPixelFormat.YUVLayout' + YUV420P = ... # type: 'QPixelFormat.YUVLayout' + YUV420SP = ... # type: 'QPixelFormat.YUVLayout' + YV12 = ... # type: 'QPixelFormat.YUVLayout' + UYVY = ... # type: 'QPixelFormat.YUVLayout' + YUYV = ... # type: 'QPixelFormat.YUVLayout' + NV12 = ... # type: 'QPixelFormat.YUVLayout' + NV21 = ... # type: 'QPixelFormat.YUVLayout' + IMC1 = ... # type: 'QPixelFormat.YUVLayout' + IMC2 = ... # type: 'QPixelFormat.YUVLayout' + IMC3 = ... # type: 'QPixelFormat.YUVLayout' + IMC4 = ... # type: 'QPixelFormat.YUVLayout' + Y8 = ... # type: 'QPixelFormat.YUVLayout' + Y16 = ... # type: 'QPixelFormat.YUVLayout' + + class TypeInterpretation(int): ... + UnsignedInteger = ... # type: 'QPixelFormat.TypeInterpretation' + UnsignedShort = ... # type: 'QPixelFormat.TypeInterpretation' + UnsignedByte = ... # type: 'QPixelFormat.TypeInterpretation' + FloatingPoint = ... # type: 'QPixelFormat.TypeInterpretation' + + class AlphaPremultiplied(int): ... + NotPremultiplied = ... # type: 'QPixelFormat.AlphaPremultiplied' + Premultiplied = ... # type: 'QPixelFormat.AlphaPremultiplied' + + class AlphaPosition(int): ... + AtBeginning = ... # type: 'QPixelFormat.AlphaPosition' + AtEnd = ... # type: 'QPixelFormat.AlphaPosition' + + class AlphaUsage(int): ... + UsesAlpha = ... # type: 'QPixelFormat.AlphaUsage' + IgnoresAlpha = ... # type: 'QPixelFormat.AlphaUsage' + + class ColorModel(int): ... + RGB = ... # type: 'QPixelFormat.ColorModel' + BGR = ... # type: 'QPixelFormat.ColorModel' + Indexed = ... # type: 'QPixelFormat.ColorModel' + Grayscale = ... # type: 'QPixelFormat.ColorModel' + CMYK = ... # type: 'QPixelFormat.ColorModel' + HSL = ... # type: 'QPixelFormat.ColorModel' + HSV = ... # type: 'QPixelFormat.ColorModel' + YUV = ... # type: 'QPixelFormat.ColorModel' + Alpha = ... # type: 'QPixelFormat.ColorModel' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, mdl: 'QPixelFormat.ColorModel', firstSize: int, secondSize: int, thirdSize: int, fourthSize: int, fifthSize: int, alfa: int, usage: 'QPixelFormat.AlphaUsage', position: 'QPixelFormat.AlphaPosition', premult: 'QPixelFormat.AlphaPremultiplied', typeInterp: 'QPixelFormat.TypeInterpretation', byteOrder: 'QPixelFormat.ByteOrder' = ..., subEnum: int = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QPixelFormat') -> None: ... + + def subEnum(self) -> int: ... + def yuvLayout(self) -> 'QPixelFormat.YUVLayout': ... + def byteOrder(self) -> 'QPixelFormat.ByteOrder': ... + def typeInterpretation(self) -> 'QPixelFormat.TypeInterpretation': ... + def premultiplied(self) -> 'QPixelFormat.AlphaPremultiplied': ... + def alphaPosition(self) -> 'QPixelFormat.AlphaPosition': ... + def alphaUsage(self) -> 'QPixelFormat.AlphaUsage': ... + def bitsPerPixel(self) -> int: ... + def alphaSize(self) -> int: ... + def brightnessSize(self) -> int: ... + def lightnessSize(self) -> int: ... + def saturationSize(self) -> int: ... + def hueSize(self) -> int: ... + def blackSize(self) -> int: ... + def yellowSize(self) -> int: ... + def magentaSize(self) -> int: ... + def cyanSize(self) -> int: ... + def blueSize(self) -> int: ... + def greenSize(self) -> int: ... + def redSize(self) -> int: ... + def channelCount(self) -> int: ... + def colorModel(self) -> 'QPixelFormat.ColorModel': ... + + +class QPixmapCache(sip.simplewrapper): + + class Key(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPixmapCache.Key') -> None: ... + + def isValid(self) -> bool: ... + def swap(self, other: 'QPixmapCache.Key') -> None: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QPixmapCache') -> None: ... + + @staticmethod + def setCacheLimit(a0: int) -> None: ... + @staticmethod + def replace(key: 'QPixmapCache.Key', pixmap: QPixmap) -> bool: ... + @typing.overload + @staticmethod + def remove(key: str) -> None: ... + @typing.overload + @staticmethod + def remove(key: 'QPixmapCache.Key') -> None: ... + @typing.overload + @staticmethod + def insert(key: str, a1: QPixmap) -> bool: ... + @typing.overload + @staticmethod + def insert(pixmap: QPixmap) -> 'QPixmapCache.Key': ... + @typing.overload + @staticmethod + def find(key: str) -> QPixmap: ... + @typing.overload + @staticmethod + def find(key: 'QPixmapCache.Key') -> QPixmap: ... + @staticmethod + def clear() -> None: ... + @staticmethod + def cacheLimit() -> int: ... + + +class QPolygon(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a: 'QPolygon') -> None: ... + @typing.overload + def __init__(self, points: typing.List[int]) -> None: ... + @typing.overload + def __init__(self, v: typing.Iterable[QtCore.QPoint]) -> None: ... + @typing.overload + def __init__(self, rectangle: QtCore.QRect, closed: bool = ...) -> None: ... + @typing.overload + def __init__(self, asize: int) -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + def intersects(self, r: 'QPolygon') -> bool: ... + def swap(self, other: 'QPolygon') -> None: ... + def __contains__(self, value: QtCore.QPoint) -> int: ... + @typing.overload + def __delitem__(self, i: int) -> None: ... + @typing.overload + def __delitem__(self, slice: slice) -> None: ... + @typing.overload + def __setitem__(self, i: int, value: QtCore.QPoint) -> None: ... + @typing.overload + def __setitem__(self, slice: slice, list: 'QPolygon') -> None: ... + @typing.overload + def __getitem__(self, i: int) -> QtCore.QPoint: ... + @typing.overload + def __getitem__(self, slice: slice) -> 'QPolygon': ... + @typing.overload + def value(self, i: int) -> QtCore.QPoint: ... + @typing.overload + def value(self, i: int, defaultValue: QtCore.QPoint) -> QtCore.QPoint: ... + def size(self) -> int: ... + def replace(self, i: int, value: QtCore.QPoint) -> None: ... + @typing.overload + def remove(self, i: int) -> None: ... + @typing.overload + def remove(self, i: int, count: int) -> None: ... + def prepend(self, value: QtCore.QPoint) -> None: ... + def mid(self, pos: int, length: int = ...) -> 'QPolygon': ... + def lastIndexOf(self, value: QtCore.QPoint, from_: int = ...) -> int: ... + def last(self) -> QtCore.QPoint: ... + def isEmpty(self) -> bool: ... + def insert(self, i: int, value: QtCore.QPoint) -> None: ... + def indexOf(self, value: QtCore.QPoint, from_: int = ...) -> int: ... + def first(self) -> QtCore.QPoint: ... + def fill(self, value: QtCore.QPoint, size: int = ...) -> None: ... + def data(self) -> sip.voidptr: ... + def __len__(self) -> int: ... + @typing.overload + def count(self, value: QtCore.QPoint) -> int: ... + @typing.overload + def count(self) -> int: ... + def contains(self, value: QtCore.QPoint) -> bool: ... + def clear(self) -> None: ... + def at(self, i: int) -> QtCore.QPoint: ... + def append(self, value: QtCore.QPoint) -> None: ... + @typing.overload + def translated(self, dx: int, dy: int) -> 'QPolygon': ... + @typing.overload + def translated(self, offset: QtCore.QPoint) -> 'QPolygon': ... + def subtracted(self, r: 'QPolygon') -> 'QPolygon': ... + def intersected(self, r: 'QPolygon') -> 'QPolygon': ... + def united(self, r: 'QPolygon') -> 'QPolygon': ... + def containsPoint(self, pt: QtCore.QPoint, fillRule: QtCore.Qt.FillRule) -> bool: ... + @typing.overload + def setPoint(self, index: int, pt: QtCore.QPoint) -> None: ... + @typing.overload + def setPoint(self, index: int, x: int, y: int) -> None: ... + @typing.overload + def putPoints(self, index: int, firstx: int, firsty: int, *a3) -> None: ... + @typing.overload + def putPoints(self, index: int, nPoints: int, fromPolygon: 'QPolygon', from_: int = ...) -> None: ... + @typing.overload + def setPoints(self, points: typing.List[int]) -> None: ... + @typing.overload + def setPoints(self, firstx: int, firsty: int, *a2) -> None: ... + def point(self, index: int) -> QtCore.QPoint: ... + def boundingRect(self) -> QtCore.QRect: ... + @typing.overload + def translate(self, dx: int, dy: int) -> None: ... + @typing.overload + def translate(self, offset: QtCore.QPoint) -> None: ... + + +class QPolygonF(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a: 'QPolygonF') -> None: ... + @typing.overload + def __init__(self, v: typing.Iterable[typing.Union[QtCore.QPointF, QtCore.QPoint]]) -> None: ... + @typing.overload + def __init__(self, r: QtCore.QRectF) -> None: ... + @typing.overload + def __init__(self, a: QPolygon) -> None: ... + @typing.overload + def __init__(self, asize: int) -> None: ... + + def intersects(self, r: 'QPolygonF') -> bool: ... + def swap(self, other: 'QPolygonF') -> None: ... + def __contains__(self, value: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> int: ... + @typing.overload + def __delitem__(self, i: int) -> None: ... + @typing.overload + def __delitem__(self, slice: slice) -> None: ... + @typing.overload + def __setitem__(self, i: int, value: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def __setitem__(self, slice: slice, list: 'QPolygonF') -> None: ... + @typing.overload + def __getitem__(self, i: int) -> QtCore.QPointF: ... + @typing.overload + def __getitem__(self, slice: slice) -> 'QPolygonF': ... + @typing.overload + def value(self, i: int) -> QtCore.QPointF: ... + @typing.overload + def value(self, i: int, defaultValue: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + def size(self) -> int: ... + def replace(self, i: int, value: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def remove(self, i: int) -> None: ... + @typing.overload + def remove(self, i: int, count: int) -> None: ... + def prepend(self, value: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def mid(self, pos: int, length: int = ...) -> 'QPolygonF': ... + def lastIndexOf(self, value: typing.Union[QtCore.QPointF, QtCore.QPoint], from_: int = ...) -> int: ... + def last(self) -> QtCore.QPointF: ... + def isEmpty(self) -> bool: ... + def insert(self, i: int, value: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def indexOf(self, value: typing.Union[QtCore.QPointF, QtCore.QPoint], from_: int = ...) -> int: ... + def first(self) -> QtCore.QPointF: ... + def fill(self, value: typing.Union[QtCore.QPointF, QtCore.QPoint], size: int = ...) -> None: ... + def data(self) -> sip.voidptr: ... + def __len__(self) -> int: ... + @typing.overload + def count(self, value: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> int: ... + @typing.overload + def count(self) -> int: ... + def contains(self, value: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> bool: ... + def clear(self) -> None: ... + def at(self, i: int) -> QtCore.QPointF: ... + def append(self, value: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def translated(self, offset: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> 'QPolygonF': ... + @typing.overload + def translated(self, dx: float, dy: float) -> 'QPolygonF': ... + def subtracted(self, r: 'QPolygonF') -> 'QPolygonF': ... + def intersected(self, r: 'QPolygonF') -> 'QPolygonF': ... + def united(self, r: 'QPolygonF') -> 'QPolygonF': ... + def containsPoint(self, pt: typing.Union[QtCore.QPointF, QtCore.QPoint], fillRule: QtCore.Qt.FillRule) -> bool: ... + def boundingRect(self) -> QtCore.QRectF: ... + def isClosed(self) -> bool: ... + def toPolygon(self) -> QPolygon: ... + @typing.overload + def translate(self, offset: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def translate(self, dx: float, dy: float) -> None: ... + + +class QQuaternion(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, aScalar: float, xpos: float, ypos: float, zpos: float) -> None: ... + @typing.overload + def __init__(self, aScalar: float, aVector: 'QVector3D') -> None: ... + @typing.overload + def __init__(self, aVector: 'QVector4D') -> None: ... + @typing.overload + def __init__(self, a0: 'QQuaternion') -> None: ... + + def __neg__(self) -> 'QQuaternion': ... + def toEulerAngles(self) -> 'QVector3D': ... + def conjugated(self) -> 'QQuaternion': ... + def inverted(self) -> 'QQuaternion': ... + @staticmethod + def dotProduct(q1: 'QQuaternion', q2: 'QQuaternion') -> float: ... + @staticmethod + def rotationTo(from_: 'QVector3D', to: 'QVector3D') -> 'QQuaternion': ... + @staticmethod + def fromDirection(direction: 'QVector3D', up: 'QVector3D') -> 'QQuaternion': ... + @staticmethod + def fromAxes(xAxis: 'QVector3D', yAxis: 'QVector3D', zAxis: 'QVector3D') -> 'QQuaternion': ... + def getAxes(self) -> typing.Tuple['QVector3D', 'QVector3D', 'QVector3D']: ... + @staticmethod + def fromRotationMatrix(rot3x3: QMatrix3x3) -> 'QQuaternion': ... + def toRotationMatrix(self) -> QMatrix3x3: ... + @typing.overload + @staticmethod + def fromEulerAngles(pitch: float, yaw: float, roll: float) -> 'QQuaternion': ... + @typing.overload + @staticmethod + def fromEulerAngles(eulerAngles: 'QVector3D') -> 'QQuaternion': ... + def getEulerAngles(self) -> typing.Tuple[float, float, float]: ... + def getAxisAndAngle(self) -> typing.Tuple['QVector3D', float]: ... + def toVector4D(self) -> 'QVector4D': ... + def vector(self) -> 'QVector3D': ... + @typing.overload + def setVector(self, aVector: 'QVector3D') -> None: ... + @typing.overload + def setVector(self, aX: float, aY: float, aZ: float) -> None: ... + def conjugate(self) -> 'QQuaternion': ... + def setScalar(self, aScalar: float) -> None: ... + def setZ(self, aZ: float) -> None: ... + def setY(self, aY: float) -> None: ... + def setX(self, aX: float) -> None: ... + def scalar(self) -> float: ... + def z(self) -> float: ... + def y(self) -> float: ... + def x(self) -> float: ... + def isIdentity(self) -> bool: ... + def isNull(self) -> bool: ... + @staticmethod + def nlerp(q1: 'QQuaternion', q2: 'QQuaternion', t: float) -> 'QQuaternion': ... + @staticmethod + def slerp(q1: 'QQuaternion', q2: 'QQuaternion', t: float) -> 'QQuaternion': ... + @typing.overload + @staticmethod + def fromAxisAndAngle(axis: 'QVector3D', angle: float) -> 'QQuaternion': ... + @typing.overload + @staticmethod + def fromAxisAndAngle(x: float, y: float, z: float, angle: float) -> 'QQuaternion': ... + def rotatedVector(self, vector: 'QVector3D') -> 'QVector3D': ... + def normalize(self) -> None: ... + def normalized(self) -> 'QQuaternion': ... + def lengthSquared(self) -> float: ... + def length(self) -> float: ... + def __repr__(self) -> str: ... + + +class QRasterWindow(QPaintDeviceWindow): + + def __init__(self, parent: typing.Optional[QWindow] = ...) -> None: ... + + def metric(self, metric: QPaintDevice.PaintDeviceMetric) -> int: ... + + +class QRawFont(sip.simplewrapper): + + class LayoutFlag(int): ... + SeparateAdvances = ... # type: 'QRawFont.LayoutFlag' + KernedAdvances = ... # type: 'QRawFont.LayoutFlag' + UseDesignMetrics = ... # type: 'QRawFont.LayoutFlag' + + class AntialiasingType(int): ... + PixelAntialiasing = ... # type: 'QRawFont.AntialiasingType' + SubPixelAntialiasing = ... # type: 'QRawFont.AntialiasingType' + + class LayoutFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QRawFont.LayoutFlags', 'QRawFont.LayoutFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QRawFont.LayoutFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QRawFont.LayoutFlags': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, fileName: str, pixelSize: float, hintingPreference: QFont.HintingPreference = ...) -> None: ... + @typing.overload + def __init__(self, fontData: typing.Union[QtCore.QByteArray, bytes, bytearray], pixelSize: float, hintingPreference: QFont.HintingPreference = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QRawFont') -> None: ... + + def __hash__(self) -> int: ... + def capHeight(self) -> float: ... + def swap(self, other: 'QRawFont') -> None: ... + def underlinePosition(self) -> float: ... + def lineThickness(self) -> float: ... + def boundingRect(self, glyphIndex: int) -> QtCore.QRectF: ... + @staticmethod + def fromFont(font: QFont, writingSystem: QFontDatabase.WritingSystem = ...) -> 'QRawFont': ... + def fontTable(self, tagName: str) -> QtCore.QByteArray: ... + def supportedWritingSystems(self) -> typing.List[QFontDatabase.WritingSystem]: ... + @typing.overload + def supportsCharacter(self, ucs4: int) -> bool: ... + @typing.overload + def supportsCharacter(self, character: str) -> bool: ... + def loadFromData(self, fontData: typing.Union[QtCore.QByteArray, bytes, bytearray], pixelSize: float, hintingPreference: QFont.HintingPreference) -> None: ... + def loadFromFile(self, fileName: str, pixelSize: float, hintingPreference: QFont.HintingPreference) -> None: ... + def unitsPerEm(self) -> float: ... + def maxCharWidth(self) -> float: ... + def averageCharWidth(self) -> float: ... + def xHeight(self) -> float: ... + def leading(self) -> float: ... + def descent(self) -> float: ... + def ascent(self) -> float: ... + def hintingPreference(self) -> QFont.HintingPreference: ... + def pixelSize(self) -> float: ... + def setPixelSize(self, pixelSize: float) -> None: ... + def pathForGlyph(self, glyphIndex: int) -> QPainterPath: ... + def alphaMapForGlyph(self, glyphIndex: int, antialiasingType: 'QRawFont.AntialiasingType' = ..., transform: 'QTransform' = ...) -> QImage: ... + @typing.overload + def advancesForGlyphIndexes(self, glyphIndexes: typing.Iterable[int]) -> typing.List[QtCore.QPointF]: ... + @typing.overload + def advancesForGlyphIndexes(self, glyphIndexes: typing.Iterable[int], layoutFlags: typing.Union['QRawFont.LayoutFlags', 'QRawFont.LayoutFlag']) -> typing.List[QtCore.QPointF]: ... + def glyphIndexesForString(self, text: str) -> typing.List[int]: ... + def weight(self) -> int: ... + def style(self) -> QFont.Style: ... + def styleName(self) -> str: ... + def familyName(self) -> str: ... + def isValid(self) -> bool: ... + + +class QRegion(sip.simplewrapper): + + class RegionType(int): ... + Rectangle = ... # type: 'QRegion.RegionType' + Ellipse = ... # type: 'QRegion.RegionType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, x: int, y: int, w: int, h: int, type: 'QRegion.RegionType' = ...) -> None: ... + @typing.overload + def __init__(self, r: QtCore.QRect, type: 'QRegion.RegionType' = ...) -> None: ... + @typing.overload + def __init__(self, a: QPolygon, fillRule: QtCore.Qt.FillRule = ...) -> None: ... + @typing.overload + def __init__(self, bitmap: QBitmap) -> None: ... + @typing.overload + def __init__(self, region: 'QRegion') -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + def isNull(self) -> bool: ... + def swap(self, other: 'QRegion') -> None: ... + def rectCount(self) -> int: ... + @typing.overload + def intersects(self, r: 'QRegion') -> bool: ... + @typing.overload + def intersects(self, r: QtCore.QRect) -> bool: ... + def xored(self, r: 'QRegion') -> 'QRegion': ... + def subtracted(self, r: 'QRegion') -> 'QRegion': ... + @typing.overload + def intersected(self, r: 'QRegion') -> 'QRegion': ... + @typing.overload + def intersected(self, r: QtCore.QRect) -> 'QRegion': ... + def setRects(self, a0: typing.Iterable[QtCore.QRect]) -> None: ... + def rects(self) -> typing.List[QtCore.QRect]: ... + def boundingRect(self) -> QtCore.QRect: ... + @typing.overload + def united(self, r: 'QRegion') -> 'QRegion': ... + @typing.overload + def united(self, r: QtCore.QRect) -> 'QRegion': ... + @typing.overload + def translated(self, dx: int, dy: int) -> 'QRegion': ... + @typing.overload + def translated(self, p: QtCore.QPoint) -> 'QRegion': ... + @typing.overload + def translate(self, dx: int, dy: int) -> None: ... + @typing.overload + def translate(self, p: QtCore.QPoint) -> None: ... + @typing.overload + def __contains__(self, p: QtCore.QPoint) -> int: ... + @typing.overload + def __contains__(self, r: QtCore.QRect) -> int: ... + @typing.overload + def contains(self, p: QtCore.QPoint) -> bool: ... + @typing.overload + def contains(self, r: QtCore.QRect) -> bool: ... + def __bool__(self) -> int: ... + def isEmpty(self) -> bool: ... + + +class QRgba64(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QRgba64') -> None: ... + + def __int__(self) -> int: ... + def unpremultiplied(self) -> 'QRgba64': ... + def premultiplied(self) -> 'QRgba64': ... + def toRgb16(self) -> int: ... + def toArgb32(self) -> int: ... + def alpha8(self) -> int: ... + def blue8(self) -> int: ... + def green8(self) -> int: ... + def red8(self) -> int: ... + def setAlpha(self, _alpha: int) -> None: ... + def setBlue(self, _blue: int) -> None: ... + def setGreen(self, _green: int) -> None: ... + def setRed(self, _red: int) -> None: ... + def alpha(self) -> int: ... + def blue(self) -> int: ... + def green(self) -> int: ... + def red(self) -> int: ... + def isTransparent(self) -> bool: ... + def isOpaque(self) -> bool: ... + @staticmethod + def fromArgb32(rgb: int) -> 'QRgba64': ... + @staticmethod + def fromRgba(red: int, green: int, blue: int, alpha: int) -> 'QRgba64': ... + @typing.overload + @staticmethod + def fromRgba64(c: int) -> 'QRgba64': ... + @typing.overload + @staticmethod + def fromRgba64(red: int, green: int, blue: int, alpha: int) -> 'QRgba64': ... + + +class QScreen(QtCore.QObject): + + def serialNumber(self) -> str: ... + def model(self) -> str: ... + def manufacturer(self) -> str: ... + def availableGeometryChanged(self, geometry: QtCore.QRect) -> None: ... + def virtualGeometryChanged(self, rect: QtCore.QRect) -> None: ... + def physicalSizeChanged(self, size: QtCore.QSizeF) -> None: ... + def refreshRateChanged(self, refreshRate: float) -> None: ... + def orientationChanged(self, orientation: QtCore.Qt.ScreenOrientation) -> None: ... + def primaryOrientationChanged(self, orientation: QtCore.Qt.ScreenOrientation) -> None: ... + def logicalDotsPerInchChanged(self, dpi: float) -> None: ... + def physicalDotsPerInchChanged(self, dpi: float) -> None: ... + def geometryChanged(self, geometry: QtCore.QRect) -> None: ... + def devicePixelRatio(self) -> float: ... + def refreshRate(self) -> float: ... + def grabWindow(self, window: sip.voidptr, x: int = ..., y: int = ..., width: int = ..., height: int = ...) -> QPixmap: ... + def isLandscape(self, orientation: QtCore.Qt.ScreenOrientation) -> bool: ... + def isPortrait(self, orientation: QtCore.Qt.ScreenOrientation) -> bool: ... + def mapBetween(self, a: QtCore.Qt.ScreenOrientation, b: QtCore.Qt.ScreenOrientation, rect: QtCore.QRect) -> QtCore.QRect: ... + def transformBetween(self, a: QtCore.Qt.ScreenOrientation, b: QtCore.Qt.ScreenOrientation, target: QtCore.QRect) -> 'QTransform': ... + def angleBetween(self, a: QtCore.Qt.ScreenOrientation, b: QtCore.Qt.ScreenOrientation) -> int: ... + def setOrientationUpdateMask(self, mask: typing.Union[QtCore.Qt.ScreenOrientations, QtCore.Qt.ScreenOrientation]) -> None: ... + def orientationUpdateMask(self) -> QtCore.Qt.ScreenOrientations: ... + def orientation(self) -> QtCore.Qt.ScreenOrientation: ... + def primaryOrientation(self) -> QtCore.Qt.ScreenOrientation: ... + def nativeOrientation(self) -> QtCore.Qt.ScreenOrientation: ... + def availableVirtualGeometry(self) -> QtCore.QRect: ... + def availableVirtualSize(self) -> QtCore.QSize: ... + def virtualGeometry(self) -> QtCore.QRect: ... + def virtualSize(self) -> QtCore.QSize: ... + def virtualSiblings(self) -> typing.List['QScreen']: ... + def availableGeometry(self) -> QtCore.QRect: ... + def availableSize(self) -> QtCore.QSize: ... + def logicalDotsPerInch(self) -> float: ... + def logicalDotsPerInchY(self) -> float: ... + def logicalDotsPerInchX(self) -> float: ... + def physicalDotsPerInch(self) -> float: ... + def physicalDotsPerInchY(self) -> float: ... + def physicalDotsPerInchX(self) -> float: ... + def physicalSize(self) -> QtCore.QSizeF: ... + def geometry(self) -> QtCore.QRect: ... + def size(self) -> QtCore.QSize: ... + def depth(self) -> int: ... + def name(self) -> str: ... + + +class QSessionManager(QtCore.QObject): + + class RestartHint(int): ... + RestartIfRunning = ... # type: 'QSessionManager.RestartHint' + RestartAnyway = ... # type: 'QSessionManager.RestartHint' + RestartImmediately = ... # type: 'QSessionManager.RestartHint' + RestartNever = ... # type: 'QSessionManager.RestartHint' + + def requestPhase2(self) -> None: ... + def isPhase2(self) -> bool: ... + @typing.overload + def setManagerProperty(self, name: str, value: str) -> None: ... + @typing.overload + def setManagerProperty(self, name: str, value: typing.Iterable[str]) -> None: ... + def discardCommand(self) -> typing.List[str]: ... + def setDiscardCommand(self, a0: typing.Iterable[str]) -> None: ... + def restartCommand(self) -> typing.List[str]: ... + def setRestartCommand(self, a0: typing.Iterable[str]) -> None: ... + def restartHint(self) -> 'QSessionManager.RestartHint': ... + def setRestartHint(self, a0: 'QSessionManager.RestartHint') -> None: ... + def cancel(self) -> None: ... + def release(self) -> None: ... + def allowsErrorInteraction(self) -> bool: ... + def allowsInteraction(self) -> bool: ... + def sessionKey(self) -> str: ... + def sessionId(self) -> str: ... + + +class QStandardItemModel(QtCore.QAbstractItemModel): + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, rows: int, columns: int, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def clearItemData(self, index: QtCore.QModelIndex) -> bool: ... + def itemChanged(self, item: 'QStandardItem') -> None: ... + def setItemRoleNames(self, roleNames: typing.Dict[int, typing.Union[QtCore.QByteArray, bytes, bytearray]]) -> None: ... + def sibling(self, row: int, column: int, idx: QtCore.QModelIndex) -> QtCore.QModelIndex: ... + def dropMimeData(self, data: QtCore.QMimeData, action: QtCore.Qt.DropAction, row: int, column: int, parent: QtCore.QModelIndex) -> bool: ... + def mimeData(self, indexes: typing.Iterable[QtCore.QModelIndex]) -> QtCore.QMimeData: ... + def mimeTypes(self) -> typing.List[str]: ... + def setSortRole(self, role: int) -> None: ... + def sortRole(self) -> int: ... + def findItems(self, text: str, flags: typing.Union[QtCore.Qt.MatchFlags, QtCore.Qt.MatchFlag] = ..., column: int = ...) -> typing.List['QStandardItem']: ... + def setItemPrototype(self, item: 'QStandardItem') -> None: ... + def itemPrototype(self) -> 'QStandardItem': ... + def takeVerticalHeaderItem(self, row: int) -> 'QStandardItem': ... + def takeHorizontalHeaderItem(self, column: int) -> 'QStandardItem': ... + def takeColumn(self, column: int) -> typing.List['QStandardItem']: ... + def takeRow(self, row: int) -> typing.List['QStandardItem']: ... + def takeItem(self, row: int, column: int = ...) -> 'QStandardItem': ... + @typing.overload + def insertColumn(self, column: int, items: typing.Iterable['QStandardItem']) -> None: ... + @typing.overload + def insertColumn(self, column: int, parent: QtCore.QModelIndex = ...) -> bool: ... + @typing.overload + def insertRow(self, row: int, items: typing.Iterable['QStandardItem']) -> None: ... + @typing.overload + def insertRow(self, arow: int, aitem: 'QStandardItem') -> None: ... + @typing.overload + def insertRow(self, row: int, parent: QtCore.QModelIndex = ...) -> bool: ... + def appendColumn(self, items: typing.Iterable['QStandardItem']) -> None: ... + @typing.overload + def appendRow(self, items: typing.Iterable['QStandardItem']) -> None: ... + @typing.overload + def appendRow(self, aitem: 'QStandardItem') -> None: ... + def setColumnCount(self, columns: int) -> None: ... + def setRowCount(self, rows: int) -> None: ... + def setVerticalHeaderLabels(self, labels: typing.Iterable[str]) -> None: ... + def setHorizontalHeaderLabels(self, labels: typing.Iterable[str]) -> None: ... + def setVerticalHeaderItem(self, row: int, item: 'QStandardItem') -> None: ... + def verticalHeaderItem(self, row: int) -> 'QStandardItem': ... + def setHorizontalHeaderItem(self, column: int, item: 'QStandardItem') -> None: ... + def horizontalHeaderItem(self, column: int) -> 'QStandardItem': ... + def invisibleRootItem(self) -> 'QStandardItem': ... + @typing.overload + def setItem(self, row: int, column: int, item: 'QStandardItem') -> None: ... + @typing.overload + def setItem(self, arow: int, aitem: 'QStandardItem') -> None: ... + def item(self, row: int, column: int = ...) -> 'QStandardItem': ... + def indexFromItem(self, item: 'QStandardItem') -> QtCore.QModelIndex: ... + def itemFromIndex(self, index: QtCore.QModelIndex) -> 'QStandardItem': ... + def sort(self, column: int, order: QtCore.Qt.SortOrder = ...) -> None: ... + def setItemData(self, index: QtCore.QModelIndex, roles: typing.Dict[int, typing.Any]) -> bool: ... + def itemData(self, index: QtCore.QModelIndex) -> typing.Dict[int, typing.Any]: ... + def supportedDropActions(self) -> QtCore.Qt.DropActions: ... + def clear(self) -> None: ... + def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlags: ... + def removeColumns(self, column: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ... + def removeRows(self, row: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ... + def insertColumns(self, column: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ... + def insertRows(self, row: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ... + def setHeaderData(self, section: int, orientation: QtCore.Qt.Orientation, value: typing.Any, role: int = ...) -> bool: ... + def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int = ...) -> typing.Any: ... + def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ... + def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ... + def hasChildren(self, parent: QtCore.QModelIndex = ...) -> bool: ... + def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + @typing.overload + def parent(self, child: QtCore.QModelIndex) -> QtCore.QModelIndex: ... + @typing.overload + def parent(self) -> QtCore.QObject: ... + def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ... + + +class QStandardItem(sip.wrapper): + + class ItemType(int): ... + Type = ... # type: 'QStandardItem.ItemType' + UserType = ... # type: 'QStandardItem.ItemType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, text: str) -> None: ... + @typing.overload + def __init__(self, icon: QIcon, text: str) -> None: ... + @typing.overload + def __init__(self, rows: int, columns: int = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QStandardItem') -> None: ... + + def clearData(self) -> None: ... + def setUserTristate(self, tristate: bool) -> None: ... + def isUserTristate(self) -> bool: ... + def setAutoTristate(self, tristate: bool) -> None: ... + def isAutoTristate(self) -> bool: ... + def emitDataChanged(self) -> None: ... + def appendRows(self, items: typing.Iterable['QStandardItem']) -> None: ... + def appendColumn(self, items: typing.Iterable['QStandardItem']) -> None: ... + @typing.overload + def appendRow(self, items: typing.Iterable['QStandardItem']) -> None: ... + @typing.overload + def appendRow(self, aitem: 'QStandardItem') -> None: ... + def setAccessibleDescription(self, aaccessibleDescription: str) -> None: ... + def setAccessibleText(self, aaccessibleText: str) -> None: ... + def setCheckState(self, acheckState: QtCore.Qt.CheckState) -> None: ... + def setForeground(self, abrush: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def setBackground(self, abrush: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def setTextAlignment(self, atextAlignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def setFont(self, afont: QFont) -> None: ... + def setSizeHint(self, asizeHint: QtCore.QSize) -> None: ... + def setWhatsThis(self, awhatsThis: str) -> None: ... + def setStatusTip(self, astatusTip: str) -> None: ... + def setToolTip(self, atoolTip: str) -> None: ... + def setIcon(self, aicon: QIcon) -> None: ... + def setText(self, atext: str) -> None: ... + def write(self, out: QtCore.QDataStream) -> None: ... + def read(self, in_: QtCore.QDataStream) -> None: ... + def type(self) -> int: ... + def clone(self) -> 'QStandardItem': ... + def sortChildren(self, column: int, order: QtCore.Qt.SortOrder = ...) -> None: ... + def takeColumn(self, column: int) -> typing.List['QStandardItem']: ... + def takeRow(self, row: int) -> typing.List['QStandardItem']: ... + def takeChild(self, row: int, column: int = ...) -> 'QStandardItem': ... + def removeColumns(self, column: int, count: int) -> None: ... + def removeRows(self, row: int, count: int) -> None: ... + def removeColumn(self, column: int) -> None: ... + def removeRow(self, row: int) -> None: ... + def insertColumns(self, column: int, count: int) -> None: ... + def insertColumn(self, column: int, items: typing.Iterable['QStandardItem']) -> None: ... + @typing.overload + def insertRows(self, row: int, count: int) -> None: ... + @typing.overload + def insertRows(self, row: int, items: typing.Iterable['QStandardItem']) -> None: ... + @typing.overload + def insertRow(self, row: int, items: typing.Iterable['QStandardItem']) -> None: ... + @typing.overload + def insertRow(self, arow: int, aitem: 'QStandardItem') -> None: ... + @typing.overload + def setChild(self, row: int, column: int, item: 'QStandardItem') -> None: ... + @typing.overload + def setChild(self, arow: int, aitem: 'QStandardItem') -> None: ... + def child(self, row: int, column: int = ...) -> 'QStandardItem': ... + def hasChildren(self) -> bool: ... + def setColumnCount(self, columns: int) -> None: ... + def columnCount(self) -> int: ... + def setRowCount(self, rows: int) -> None: ... + def rowCount(self) -> int: ... + def model(self) -> QStandardItemModel: ... + def index(self) -> QtCore.QModelIndex: ... + def column(self) -> int: ... + def row(self) -> int: ... + def parent(self) -> 'QStandardItem': ... + def setDropEnabled(self, dropEnabled: bool) -> None: ... + def isDropEnabled(self) -> bool: ... + def setDragEnabled(self, dragEnabled: bool) -> None: ... + def isDragEnabled(self) -> bool: ... + def setTristate(self, tristate: bool) -> None: ... + def isTristate(self) -> bool: ... + def setCheckable(self, checkable: bool) -> None: ... + def isCheckable(self) -> bool: ... + def setSelectable(self, selectable: bool) -> None: ... + def isSelectable(self) -> bool: ... + def setEditable(self, editable: bool) -> None: ... + def isEditable(self) -> bool: ... + def setEnabled(self, enabled: bool) -> None: ... + def isEnabled(self) -> bool: ... + def setFlags(self, flags: typing.Union[QtCore.Qt.ItemFlags, QtCore.Qt.ItemFlag]) -> None: ... + def flags(self) -> QtCore.Qt.ItemFlags: ... + def accessibleDescription(self) -> str: ... + def accessibleText(self) -> str: ... + def checkState(self) -> QtCore.Qt.CheckState: ... + def foreground(self) -> QBrush: ... + def background(self) -> QBrush: ... + def textAlignment(self) -> QtCore.Qt.Alignment: ... + def font(self) -> QFont: ... + def sizeHint(self) -> QtCore.QSize: ... + def whatsThis(self) -> str: ... + def statusTip(self) -> str: ... + def toolTip(self) -> str: ... + def icon(self) -> QIcon: ... + def text(self) -> str: ... + def setData(self, value: typing.Any, role: int = ...) -> None: ... + def data(self, role: int = ...) -> typing.Any: ... + + +class QStaticText(sip.simplewrapper): + + class PerformanceHint(int): ... + ModerateCaching = ... # type: 'QStaticText.PerformanceHint' + AggressiveCaching = ... # type: 'QStaticText.PerformanceHint' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, text: str) -> None: ... + @typing.overload + def __init__(self, other: 'QStaticText') -> None: ... + + def swap(self, other: 'QStaticText') -> None: ... + def performanceHint(self) -> 'QStaticText.PerformanceHint': ... + def setPerformanceHint(self, performanceHint: 'QStaticText.PerformanceHint') -> None: ... + def prepare(self, matrix: 'QTransform' = ..., font: QFont = ...) -> None: ... + def size(self) -> QtCore.QSizeF: ... + def textOption(self) -> 'QTextOption': ... + def setTextOption(self, textOption: 'QTextOption') -> None: ... + def textWidth(self) -> float: ... + def setTextWidth(self, textWidth: float) -> None: ... + def textFormat(self) -> QtCore.Qt.TextFormat: ... + def setTextFormat(self, textFormat: QtCore.Qt.TextFormat) -> None: ... + def text(self) -> str: ... + def setText(self, text: str) -> None: ... + + +class QStyleHints(QtCore.QObject): + + def showShortcutsInContextMenusChanged(self, a0: bool) -> None: ... + def setShowShortcutsInContextMenus(self, showShortcutsInContextMenus: bool) -> None: ... + def mouseQuickSelectionThresholdChanged(self, threshold: int) -> None: ... + def mouseQuickSelectionThreshold(self) -> int: ... + def showShortcutsInContextMenus(self) -> bool: ... + def wheelScrollLinesChanged(self, scrollLines: int) -> None: ... + def wheelScrollLines(self) -> int: ... + def useHoverEffectsChanged(self, useHoverEffects: bool) -> None: ... + def setUseHoverEffects(self, useHoverEffects: bool) -> None: ... + def useHoverEffects(self) -> bool: ... + def showIsMaximized(self) -> bool: ... + def tabFocusBehaviorChanged(self, tabFocusBehavior: QtCore.Qt.TabFocusBehavior) -> None: ... + def mousePressAndHoldIntervalChanged(self, mousePressAndHoldInterval: int) -> None: ... + def startDragTimeChanged(self, startDragTime: int) -> None: ... + def startDragDistanceChanged(self, startDragDistance: int) -> None: ... + def mouseDoubleClickIntervalChanged(self, mouseDoubleClickInterval: int) -> None: ... + def keyboardInputIntervalChanged(self, keyboardInputInterval: int) -> None: ... + def cursorFlashTimeChanged(self, cursorFlashTime: int) -> None: ... + def singleClickActivation(self) -> bool: ... + def tabFocusBehavior(self) -> QtCore.Qt.TabFocusBehavior: ... + def mousePressAndHoldInterval(self) -> int: ... + def setFocusOnTouchRelease(self) -> bool: ... + def passwordMaskCharacter(self) -> str: ... + def useRtlExtensions(self) -> bool: ... + def fontSmoothingGamma(self) -> float: ... + def passwordMaskDelay(self) -> int: ... + def showIsFullScreen(self) -> bool: ... + def cursorFlashTime(self) -> int: ... + def keyboardAutoRepeatRate(self) -> int: ... + def keyboardInputInterval(self) -> int: ... + def startDragVelocity(self) -> int: ... + def startDragTime(self) -> int: ... + def startDragDistance(self) -> int: ... + def mouseDoubleClickInterval(self) -> int: ... + + +class QSurfaceFormat(sip.simplewrapper): + + class ColorSpace(int): ... + DefaultColorSpace = ... # type: 'QSurfaceFormat.ColorSpace' + sRGBColorSpace = ... # type: 'QSurfaceFormat.ColorSpace' + + class OpenGLContextProfile(int): ... + NoProfile = ... # type: 'QSurfaceFormat.OpenGLContextProfile' + CoreProfile = ... # type: 'QSurfaceFormat.OpenGLContextProfile' + CompatibilityProfile = ... # type: 'QSurfaceFormat.OpenGLContextProfile' + + class RenderableType(int): ... + DefaultRenderableType = ... # type: 'QSurfaceFormat.RenderableType' + OpenGL = ... # type: 'QSurfaceFormat.RenderableType' + OpenGLES = ... # type: 'QSurfaceFormat.RenderableType' + OpenVG = ... # type: 'QSurfaceFormat.RenderableType' + + class SwapBehavior(int): ... + DefaultSwapBehavior = ... # type: 'QSurfaceFormat.SwapBehavior' + SingleBuffer = ... # type: 'QSurfaceFormat.SwapBehavior' + DoubleBuffer = ... # type: 'QSurfaceFormat.SwapBehavior' + TripleBuffer = ... # type: 'QSurfaceFormat.SwapBehavior' + + class FormatOption(int): ... + StereoBuffers = ... # type: 'QSurfaceFormat.FormatOption' + DebugContext = ... # type: 'QSurfaceFormat.FormatOption' + DeprecatedFunctions = ... # type: 'QSurfaceFormat.FormatOption' + ResetNotification = ... # type: 'QSurfaceFormat.FormatOption' + + class FormatOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSurfaceFormat.FormatOptions', 'QSurfaceFormat.FormatOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSurfaceFormat.FormatOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSurfaceFormat.FormatOptions': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, options: typing.Union['QSurfaceFormat.FormatOptions', 'QSurfaceFormat.FormatOption']) -> None: ... + @typing.overload + def __init__(self, other: 'QSurfaceFormat') -> None: ... + + def setColorSpace(self, colorSpace: 'QSurfaceFormat.ColorSpace') -> None: ... + def colorSpace(self) -> 'QSurfaceFormat.ColorSpace': ... + @staticmethod + def defaultFormat() -> 'QSurfaceFormat': ... + @staticmethod + def setDefaultFormat(format: 'QSurfaceFormat') -> None: ... + def setSwapInterval(self, interval: int) -> None: ... + def swapInterval(self) -> int: ... + def options(self) -> 'QSurfaceFormat.FormatOptions': ... + def setOptions(self, options: typing.Union['QSurfaceFormat.FormatOptions', 'QSurfaceFormat.FormatOption']) -> None: ... + def setVersion(self, major: int, minor: int) -> None: ... + def version(self) -> typing.Tuple[int, int]: ... + def stereo(self) -> bool: ... + @typing.overload + def testOption(self, opt: typing.Union['QSurfaceFormat.FormatOptions', 'QSurfaceFormat.FormatOption']) -> bool: ... + @typing.overload + def testOption(self, option: 'QSurfaceFormat.FormatOption') -> bool: ... + @typing.overload + def setOption(self, opt: typing.Union['QSurfaceFormat.FormatOptions', 'QSurfaceFormat.FormatOption']) -> None: ... + @typing.overload + def setOption(self, option: 'QSurfaceFormat.FormatOption', on: bool = ...) -> None: ... + def setStereo(self, enable: bool) -> None: ... + def minorVersion(self) -> int: ... + def setMinorVersion(self, minorVersion: int) -> None: ... + def majorVersion(self) -> int: ... + def setMajorVersion(self, majorVersion: int) -> None: ... + def renderableType(self) -> 'QSurfaceFormat.RenderableType': ... + def setRenderableType(self, type: 'QSurfaceFormat.RenderableType') -> None: ... + def profile(self) -> 'QSurfaceFormat.OpenGLContextProfile': ... + def setProfile(self, profile: 'QSurfaceFormat.OpenGLContextProfile') -> None: ... + def hasAlpha(self) -> bool: ... + def swapBehavior(self) -> 'QSurfaceFormat.SwapBehavior': ... + def setSwapBehavior(self, behavior: 'QSurfaceFormat.SwapBehavior') -> None: ... + def samples(self) -> int: ... + def setSamples(self, numSamples: int) -> None: ... + def alphaBufferSize(self) -> int: ... + def setAlphaBufferSize(self, size: int) -> None: ... + def blueBufferSize(self) -> int: ... + def setBlueBufferSize(self, size: int) -> None: ... + def greenBufferSize(self) -> int: ... + def setGreenBufferSize(self, size: int) -> None: ... + def redBufferSize(self) -> int: ... + def setRedBufferSize(self, size: int) -> None: ... + def stencilBufferSize(self) -> int: ... + def setStencilBufferSize(self, size: int) -> None: ... + def depthBufferSize(self) -> int: ... + def setDepthBufferSize(self, size: int) -> None: ... + + +class QSyntaxHighlighter(QtCore.QObject): + + @typing.overload + def __init__(self, parent: 'QTextDocument') -> None: ... + @typing.overload + def __init__(self, parent: QtCore.QObject) -> None: ... + + def currentBlock(self) -> 'QTextBlock': ... + def currentBlockUserData(self) -> 'QTextBlockUserData': ... + def setCurrentBlockUserData(self, data: 'QTextBlockUserData') -> None: ... + def setCurrentBlockState(self, newState: int) -> None: ... + def currentBlockState(self) -> int: ... + def previousBlockState(self) -> int: ... + def format(self, pos: int) -> 'QTextCharFormat': ... + @typing.overload + def setFormat(self, start: int, count: int, format: 'QTextCharFormat') -> None: ... + @typing.overload + def setFormat(self, start: int, count: int, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + @typing.overload + def setFormat(self, start: int, count: int, font: QFont) -> None: ... + def highlightBlock(self, text: str) -> None: ... + def rehighlightBlock(self, block: 'QTextBlock') -> None: ... + def rehighlight(self) -> None: ... + def document(self) -> 'QTextDocument': ... + def setDocument(self, doc: 'QTextDocument') -> None: ... + + +class QTextCursor(sip.simplewrapper): + + class SelectionType(int): ... + WordUnderCursor = ... # type: 'QTextCursor.SelectionType' + LineUnderCursor = ... # type: 'QTextCursor.SelectionType' + BlockUnderCursor = ... # type: 'QTextCursor.SelectionType' + Document = ... # type: 'QTextCursor.SelectionType' + + class MoveOperation(int): ... + NoMove = ... # type: 'QTextCursor.MoveOperation' + Start = ... # type: 'QTextCursor.MoveOperation' + Up = ... # type: 'QTextCursor.MoveOperation' + StartOfLine = ... # type: 'QTextCursor.MoveOperation' + StartOfBlock = ... # type: 'QTextCursor.MoveOperation' + StartOfWord = ... # type: 'QTextCursor.MoveOperation' + PreviousBlock = ... # type: 'QTextCursor.MoveOperation' + PreviousCharacter = ... # type: 'QTextCursor.MoveOperation' + PreviousWord = ... # type: 'QTextCursor.MoveOperation' + Left = ... # type: 'QTextCursor.MoveOperation' + WordLeft = ... # type: 'QTextCursor.MoveOperation' + End = ... # type: 'QTextCursor.MoveOperation' + Down = ... # type: 'QTextCursor.MoveOperation' + EndOfLine = ... # type: 'QTextCursor.MoveOperation' + EndOfWord = ... # type: 'QTextCursor.MoveOperation' + EndOfBlock = ... # type: 'QTextCursor.MoveOperation' + NextBlock = ... # type: 'QTextCursor.MoveOperation' + NextCharacter = ... # type: 'QTextCursor.MoveOperation' + NextWord = ... # type: 'QTextCursor.MoveOperation' + Right = ... # type: 'QTextCursor.MoveOperation' + WordRight = ... # type: 'QTextCursor.MoveOperation' + NextCell = ... # type: 'QTextCursor.MoveOperation' + PreviousCell = ... # type: 'QTextCursor.MoveOperation' + NextRow = ... # type: 'QTextCursor.MoveOperation' + PreviousRow = ... # type: 'QTextCursor.MoveOperation' + + class MoveMode(int): ... + MoveAnchor = ... # type: 'QTextCursor.MoveMode' + KeepAnchor = ... # type: 'QTextCursor.MoveMode' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, document: 'QTextDocument') -> None: ... + @typing.overload + def __init__(self, frame: 'QTextFrame') -> None: ... + @typing.overload + def __init__(self, block: 'QTextBlock') -> None: ... + @typing.overload + def __init__(self, cursor: 'QTextCursor') -> None: ... + + def swap(self, other: 'QTextCursor') -> None: ... + def keepPositionOnInsert(self) -> bool: ... + def setKeepPositionOnInsert(self, b: bool) -> None: ... + def verticalMovementX(self) -> int: ... + def setVerticalMovementX(self, x: int) -> None: ... + def positionInBlock(self) -> int: ... + def document(self) -> 'QTextDocument': ... + def setVisualNavigation(self, b: bool) -> None: ... + def visualNavigation(self) -> bool: ... + def isCopyOf(self, other: 'QTextCursor') -> bool: ... + def columnNumber(self) -> int: ... + def blockNumber(self) -> int: ... + def endEditBlock(self) -> None: ... + def joinPreviousEditBlock(self) -> None: ... + def beginEditBlock(self) -> None: ... + @typing.overload + def insertImage(self, format: 'QTextImageFormat') -> None: ... + @typing.overload + def insertImage(self, format: 'QTextImageFormat', alignment: 'QTextFrameFormat.Position') -> None: ... + @typing.overload + def insertImage(self, name: str) -> None: ... + @typing.overload + def insertImage(self, image: QImage, name: str = ...) -> None: ... + def insertHtml(self, html: str) -> None: ... + def insertFragment(self, fragment: 'QTextDocumentFragment') -> None: ... + def currentFrame(self) -> 'QTextFrame': ... + def insertFrame(self, format: 'QTextFrameFormat') -> 'QTextFrame': ... + def currentTable(self) -> 'QTextTable': ... + @typing.overload + def insertTable(self, rows: int, cols: int, format: 'QTextTableFormat') -> 'QTextTable': ... + @typing.overload + def insertTable(self, rows: int, cols: int) -> 'QTextTable': ... + def currentList(self) -> 'QTextList': ... + @typing.overload + def createList(self, format: 'QTextListFormat') -> 'QTextList': ... + @typing.overload + def createList(self, style: 'QTextListFormat.Style') -> 'QTextList': ... + @typing.overload + def insertList(self, format: 'QTextListFormat') -> 'QTextList': ... + @typing.overload + def insertList(self, style: 'QTextListFormat.Style') -> 'QTextList': ... + @typing.overload + def insertBlock(self) -> None: ... + @typing.overload + def insertBlock(self, format: 'QTextBlockFormat') -> None: ... + @typing.overload + def insertBlock(self, format: 'QTextBlockFormat', charFormat: 'QTextCharFormat') -> None: ... + def atEnd(self) -> bool: ... + def atStart(self) -> bool: ... + def atBlockEnd(self) -> bool: ... + def atBlockStart(self) -> bool: ... + def mergeBlockCharFormat(self, modifier: 'QTextCharFormat') -> None: ... + def setBlockCharFormat(self, format: 'QTextCharFormat') -> None: ... + def blockCharFormat(self) -> 'QTextCharFormat': ... + def mergeBlockFormat(self, modifier: 'QTextBlockFormat') -> None: ... + def setBlockFormat(self, format: 'QTextBlockFormat') -> None: ... + def blockFormat(self) -> 'QTextBlockFormat': ... + def mergeCharFormat(self, modifier: 'QTextCharFormat') -> None: ... + def setCharFormat(self, format: 'QTextCharFormat') -> None: ... + def charFormat(self) -> 'QTextCharFormat': ... + def block(self) -> 'QTextBlock': ... + def selectedTableCells(self) -> typing.Tuple[int, int, int, int]: ... + def selection(self) -> 'QTextDocumentFragment': ... + def selectedText(self) -> str: ... + def selectionEnd(self) -> int: ... + def selectionStart(self) -> int: ... + def clearSelection(self) -> None: ... + def removeSelectedText(self) -> None: ... + def hasComplexSelection(self) -> bool: ... + def hasSelection(self) -> bool: ... + def select(self, selection: 'QTextCursor.SelectionType') -> None: ... + def deletePreviousChar(self) -> None: ... + def deleteChar(self) -> None: ... + def movePosition(self, op: 'QTextCursor.MoveOperation', mode: 'QTextCursor.MoveMode' = ..., n: int = ...) -> bool: ... + @typing.overload + def insertText(self, text: str) -> None: ... + @typing.overload + def insertText(self, text: str, format: 'QTextCharFormat') -> None: ... + def anchor(self) -> int: ... + def position(self) -> int: ... + def setPosition(self, pos: int, mode: 'QTextCursor.MoveMode' = ...) -> None: ... + def isNull(self) -> bool: ... + + +class Qt(sip.simplewrapper): + + def convertFromPlainText(self, plain: str, mode: QtCore.Qt.WhiteSpaceMode = ...) -> str: ... + def mightBeRichText(self, a0: str) -> bool: ... + + +class QTextDocument(QtCore.QObject): + + class Stacks(int): ... + UndoStack = ... # type: 'QTextDocument.Stacks' + RedoStack = ... # type: 'QTextDocument.Stacks' + UndoAndRedoStacks = ... # type: 'QTextDocument.Stacks' + + class ResourceType(int): ... + HtmlResource = ... # type: 'QTextDocument.ResourceType' + ImageResource = ... # type: 'QTextDocument.ResourceType' + StyleSheetResource = ... # type: 'QTextDocument.ResourceType' + UserResource = ... # type: 'QTextDocument.ResourceType' + + class FindFlag(int): ... + FindBackward = ... # type: 'QTextDocument.FindFlag' + FindCaseSensitively = ... # type: 'QTextDocument.FindFlag' + FindWholeWords = ... # type: 'QTextDocument.FindFlag' + + class MetaInformation(int): ... + DocumentTitle = ... # type: 'QTextDocument.MetaInformation' + DocumentUrl = ... # type: 'QTextDocument.MetaInformation' + + class FindFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QTextDocument.FindFlags', 'QTextDocument.FindFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextDocument.FindFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QTextDocument.FindFlags': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, text: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def toRawText(self) -> str: ... + def baseUrlChanged(self, url: QtCore.QUrl) -> None: ... + def setBaseUrl(self, url: QtCore.QUrl) -> None: ... + def baseUrl(self) -> QtCore.QUrl: ... + def setDefaultCursorMoveStyle(self, style: QtCore.Qt.CursorMoveStyle) -> None: ... + def defaultCursorMoveStyle(self) -> QtCore.Qt.CursorMoveStyle: ... + def clearUndoRedoStacks(self, stacks: 'QTextDocument.Stacks' = ...) -> None: ... + def availableRedoSteps(self) -> int: ... + def availableUndoSteps(self) -> int: ... + def characterCount(self) -> int: ... + def lineCount(self) -> int: ... + def setDocumentMargin(self, margin: float) -> None: ... + def documentMargin(self) -> float: ... + def characterAt(self, pos: int) -> str: ... + def documentLayoutChanged(self) -> None: ... + def undoCommandAdded(self) -> None: ... + def setIndentWidth(self, width: float) -> None: ... + def indentWidth(self) -> float: ... + def lastBlock(self) -> 'QTextBlock': ... + def firstBlock(self) -> 'QTextBlock': ... + def findBlockByLineNumber(self, blockNumber: int) -> 'QTextBlock': ... + def findBlockByNumber(self, blockNumber: int) -> 'QTextBlock': ... + def revision(self) -> int: ... + def setDefaultTextOption(self, option: 'QTextOption') -> None: ... + def defaultTextOption(self) -> 'QTextOption': ... + def setMaximumBlockCount(self, maximum: int) -> None: ... + def maximumBlockCount(self) -> int: ... + def defaultStyleSheet(self) -> str: ... + def setDefaultStyleSheet(self, sheet: str) -> None: ... + def blockCount(self) -> int: ... + def size(self) -> QtCore.QSizeF: ... + def adjustSize(self) -> None: ... + def idealWidth(self) -> float: ... + def textWidth(self) -> float: ... + def setTextWidth(self, width: float) -> None: ... + def drawContents(self, p: QPainter, rect: QtCore.QRectF = ...) -> None: ... + def loadResource(self, type: int, name: QtCore.QUrl) -> typing.Any: ... + def createObject(self, f: 'QTextFormat') -> 'QTextObject': ... + def setModified(self, on: bool = ...) -> None: ... + @typing.overload + def redo(self) -> None: ... + @typing.overload + def redo(self, cursor: QTextCursor) -> None: ... + @typing.overload + def undo(self) -> None: ... + @typing.overload + def undo(self, cursor: QTextCursor) -> None: ... + def undoAvailable(self, a0: bool) -> None: ... + def redoAvailable(self, a0: bool) -> None: ... + def modificationChanged(self, m: bool) -> None: ... + def cursorPositionChanged(self, cursor: QTextCursor) -> None: ... + def contentsChanged(self) -> None: ... + def contentsChange(self, from_: int, charsRemoves: int, charsAdded: int) -> None: ... + def blockCountChanged(self, newBlockCount: int) -> None: ... + def useDesignMetrics(self) -> bool: ... + def setUseDesignMetrics(self, b: bool) -> None: ... + def markContentsDirty(self, from_: int, length: int) -> None: ... + def allFormats(self) -> typing.List['QTextFormat']: ... + def addResource(self, type: int, name: QtCore.QUrl, resource: typing.Any) -> None: ... + def resource(self, type: int, name: QtCore.QUrl) -> typing.Any: ... + def print(self, printer: QPagedPaintDevice) -> None: ... + def print_(self, printer: QPagedPaintDevice) -> None: ... + def isModified(self) -> bool: ... + def pageCount(self) -> int: ... + def defaultFont(self) -> QFont: ... + def setDefaultFont(self, font: QFont) -> None: ... + def pageSize(self) -> QtCore.QSizeF: ... + def setPageSize(self, size: QtCore.QSizeF) -> None: ... + def end(self) -> 'QTextBlock': ... + def begin(self) -> 'QTextBlock': ... + def findBlock(self, pos: int) -> 'QTextBlock': ... + def objectForFormat(self, a0: 'QTextFormat') -> 'QTextObject': ... + def object(self, objectIndex: int) -> 'QTextObject': ... + def rootFrame(self) -> 'QTextFrame': ... + @typing.overload + def find(self, subString: str, position: int = ..., options: 'QTextDocument.FindFlags' = ...) -> QTextCursor: ... + @typing.overload + def find(self, expr: QtCore.QRegExp, position: int = ..., options: 'QTextDocument.FindFlags' = ...) -> QTextCursor: ... + @typing.overload + def find(self, expr: QtCore.QRegularExpression, position: int = ..., options: 'QTextDocument.FindFlags' = ...) -> QTextCursor: ... + @typing.overload + def find(self, subString: str, cursor: QTextCursor, options: 'QTextDocument.FindFlags' = ...) -> QTextCursor: ... + @typing.overload + def find(self, expr: QtCore.QRegExp, cursor: QTextCursor, options: 'QTextDocument.FindFlags' = ...) -> QTextCursor: ... + @typing.overload + def find(self, expr: QtCore.QRegularExpression, cursor: QTextCursor, options: 'QTextDocument.FindFlags' = ...) -> QTextCursor: ... + def setPlainText(self, text: str) -> None: ... + def toPlainText(self) -> str: ... + def setHtml(self, html: str) -> None: ... + def toHtml(self, encoding: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> str: ... + def metaInformation(self, info: 'QTextDocument.MetaInformation') -> str: ... + def setMetaInformation(self, info: 'QTextDocument.MetaInformation', a1: str) -> None: ... + def documentLayout(self) -> QAbstractTextDocumentLayout: ... + def setDocumentLayout(self, layout: QAbstractTextDocumentLayout) -> None: ... + def isRedoAvailable(self) -> bool: ... + def isUndoAvailable(self) -> bool: ... + def isUndoRedoEnabled(self) -> bool: ... + def setUndoRedoEnabled(self, enable: bool) -> None: ... + def clear(self) -> None: ... + def isEmpty(self) -> bool: ... + def clone(self, parent: typing.Optional[QtCore.QObject] = ...) -> 'QTextDocument': ... + + +class QTextDocumentFragment(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, document: QTextDocument) -> None: ... + @typing.overload + def __init__(self, range: QTextCursor) -> None: ... + @typing.overload + def __init__(self, rhs: 'QTextDocumentFragment') -> None: ... + + @typing.overload + @staticmethod + def fromHtml(html: str) -> 'QTextDocumentFragment': ... + @typing.overload + @staticmethod + def fromHtml(html: str, resourceProvider: QTextDocument) -> 'QTextDocumentFragment': ... + @staticmethod + def fromPlainText(plainText: str) -> 'QTextDocumentFragment': ... + def toHtml(self, encoding: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> str: ... + def toPlainText(self) -> str: ... + def isEmpty(self) -> bool: ... + + +class QTextDocumentWriter(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, device: QtCore.QIODevice, format: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + @typing.overload + def __init__(self, fileName: str, format: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... + + @staticmethod + def supportedDocumentFormats() -> typing.List[QtCore.QByteArray]: ... + def codec(self) -> QtCore.QTextCodec: ... + def setCodec(self, codec: QtCore.QTextCodec) -> None: ... + @typing.overload + def write(self, document: QTextDocument) -> bool: ... + @typing.overload + def write(self, fragment: QTextDocumentFragment) -> bool: ... + def fileName(self) -> str: ... + def setFileName(self, fileName: str) -> None: ... + def device(self) -> QtCore.QIODevice: ... + def setDevice(self, device: QtCore.QIODevice) -> None: ... + def format(self) -> QtCore.QByteArray: ... + def setFormat(self, format: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + + +class QTextLength(sip.simplewrapper): + + class Type(int): ... + VariableLength = ... # type: 'QTextLength.Type' + FixedLength = ... # type: 'QTextLength.Type' + PercentageLength = ... # type: 'QTextLength.Type' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, atype: 'QTextLength.Type', avalue: float) -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextLength') -> None: ... + + def rawValue(self) -> float: ... + def value(self, maximumLength: float) -> float: ... + def type(self) -> 'QTextLength.Type': ... + + +class QTextFormat(sip.simplewrapper): + + class Property(int): ... + ObjectIndex = ... # type: 'QTextFormat.Property' + CssFloat = ... # type: 'QTextFormat.Property' + LayoutDirection = ... # type: 'QTextFormat.Property' + OutlinePen = ... # type: 'QTextFormat.Property' + BackgroundBrush = ... # type: 'QTextFormat.Property' + ForegroundBrush = ... # type: 'QTextFormat.Property' + BlockAlignment = ... # type: 'QTextFormat.Property' + BlockTopMargin = ... # type: 'QTextFormat.Property' + BlockBottomMargin = ... # type: 'QTextFormat.Property' + BlockLeftMargin = ... # type: 'QTextFormat.Property' + BlockRightMargin = ... # type: 'QTextFormat.Property' + TextIndent = ... # type: 'QTextFormat.Property' + BlockIndent = ... # type: 'QTextFormat.Property' + BlockNonBreakableLines = ... # type: 'QTextFormat.Property' + BlockTrailingHorizontalRulerWidth = ... # type: 'QTextFormat.Property' + FontFamily = ... # type: 'QTextFormat.Property' + FontPointSize = ... # type: 'QTextFormat.Property' + FontSizeAdjustment = ... # type: 'QTextFormat.Property' + FontSizeIncrement = ... # type: 'QTextFormat.Property' + FontWeight = ... # type: 'QTextFormat.Property' + FontItalic = ... # type: 'QTextFormat.Property' + FontUnderline = ... # type: 'QTextFormat.Property' + FontOverline = ... # type: 'QTextFormat.Property' + FontStrikeOut = ... # type: 'QTextFormat.Property' + FontFixedPitch = ... # type: 'QTextFormat.Property' + FontPixelSize = ... # type: 'QTextFormat.Property' + TextUnderlineColor = ... # type: 'QTextFormat.Property' + TextVerticalAlignment = ... # type: 'QTextFormat.Property' + TextOutline = ... # type: 'QTextFormat.Property' + IsAnchor = ... # type: 'QTextFormat.Property' + AnchorHref = ... # type: 'QTextFormat.Property' + AnchorName = ... # type: 'QTextFormat.Property' + ObjectType = ... # type: 'QTextFormat.Property' + ListStyle = ... # type: 'QTextFormat.Property' + ListIndent = ... # type: 'QTextFormat.Property' + FrameBorder = ... # type: 'QTextFormat.Property' + FrameMargin = ... # type: 'QTextFormat.Property' + FramePadding = ... # type: 'QTextFormat.Property' + FrameWidth = ... # type: 'QTextFormat.Property' + FrameHeight = ... # type: 'QTextFormat.Property' + TableColumns = ... # type: 'QTextFormat.Property' + TableColumnWidthConstraints = ... # type: 'QTextFormat.Property' + TableCellSpacing = ... # type: 'QTextFormat.Property' + TableCellPadding = ... # type: 'QTextFormat.Property' + TableCellRowSpan = ... # type: 'QTextFormat.Property' + TableCellColumnSpan = ... # type: 'QTextFormat.Property' + ImageName = ... # type: 'QTextFormat.Property' + ImageWidth = ... # type: 'QTextFormat.Property' + ImageHeight = ... # type: 'QTextFormat.Property' + TextUnderlineStyle = ... # type: 'QTextFormat.Property' + TableHeaderRowCount = ... # type: 'QTextFormat.Property' + FullWidthSelection = ... # type: 'QTextFormat.Property' + PageBreakPolicy = ... # type: 'QTextFormat.Property' + TextToolTip = ... # type: 'QTextFormat.Property' + FrameTopMargin = ... # type: 'QTextFormat.Property' + FrameBottomMargin = ... # type: 'QTextFormat.Property' + FrameLeftMargin = ... # type: 'QTextFormat.Property' + FrameRightMargin = ... # type: 'QTextFormat.Property' + FrameBorderBrush = ... # type: 'QTextFormat.Property' + FrameBorderStyle = ... # type: 'QTextFormat.Property' + BackgroundImageUrl = ... # type: 'QTextFormat.Property' + TabPositions = ... # type: 'QTextFormat.Property' + FirstFontProperty = ... # type: 'QTextFormat.Property' + FontCapitalization = ... # type: 'QTextFormat.Property' + FontLetterSpacing = ... # type: 'QTextFormat.Property' + FontWordSpacing = ... # type: 'QTextFormat.Property' + LastFontProperty = ... # type: 'QTextFormat.Property' + TableCellTopPadding = ... # type: 'QTextFormat.Property' + TableCellBottomPadding = ... # type: 'QTextFormat.Property' + TableCellLeftPadding = ... # type: 'QTextFormat.Property' + TableCellRightPadding = ... # type: 'QTextFormat.Property' + FontStyleHint = ... # type: 'QTextFormat.Property' + FontStyleStrategy = ... # type: 'QTextFormat.Property' + FontKerning = ... # type: 'QTextFormat.Property' + LineHeight = ... # type: 'QTextFormat.Property' + LineHeightType = ... # type: 'QTextFormat.Property' + FontHintingPreference = ... # type: 'QTextFormat.Property' + ListNumberPrefix = ... # type: 'QTextFormat.Property' + ListNumberSuffix = ... # type: 'QTextFormat.Property' + FontStretch = ... # type: 'QTextFormat.Property' + FontLetterSpacingType = ... # type: 'QTextFormat.Property' + HeadingLevel = ... # type: 'QTextFormat.Property' + ImageQuality = ... # type: 'QTextFormat.Property' + FontFamilies = ... # type: 'QTextFormat.Property' + FontStyleName = ... # type: 'QTextFormat.Property' + UserProperty = ... # type: 'QTextFormat.Property' + + class PageBreakFlag(int): ... + PageBreak_Auto = ... # type: 'QTextFormat.PageBreakFlag' + PageBreak_AlwaysBefore = ... # type: 'QTextFormat.PageBreakFlag' + PageBreak_AlwaysAfter = ... # type: 'QTextFormat.PageBreakFlag' + + class ObjectTypes(int): ... + NoObject = ... # type: 'QTextFormat.ObjectTypes' + ImageObject = ... # type: 'QTextFormat.ObjectTypes' + TableObject = ... # type: 'QTextFormat.ObjectTypes' + TableCellObject = ... # type: 'QTextFormat.ObjectTypes' + UserObject = ... # type: 'QTextFormat.ObjectTypes' + + class FormatType(int): ... + InvalidFormat = ... # type: 'QTextFormat.FormatType' + BlockFormat = ... # type: 'QTextFormat.FormatType' + CharFormat = ... # type: 'QTextFormat.FormatType' + ListFormat = ... # type: 'QTextFormat.FormatType' + TableFormat = ... # type: 'QTextFormat.FormatType' + FrameFormat = ... # type: 'QTextFormat.FormatType' + UserFormat = ... # type: 'QTextFormat.FormatType' + + class PageBreakFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QTextFormat.PageBreakFlags', 'QTextFormat.PageBreakFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextFormat.PageBreakFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QTextFormat.PageBreakFlags': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, type: int) -> None: ... + @typing.overload + def __init__(self, rhs: 'QTextFormat') -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + def isEmpty(self) -> bool: ... + def swap(self, other: 'QTextFormat') -> None: ... + def toTableCellFormat(self) -> 'QTextTableCellFormat': ... + def isTableCellFormat(self) -> bool: ... + def propertyCount(self) -> int: ... + def setObjectType(self, atype: int) -> None: ... + def clearForeground(self) -> None: ... + def foreground(self) -> QBrush: ... + def setForeground(self, brush: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def clearBackground(self) -> None: ... + def background(self) -> QBrush: ... + def setBackground(self, brush: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def layoutDirection(self) -> QtCore.Qt.LayoutDirection: ... + def setLayoutDirection(self, direction: QtCore.Qt.LayoutDirection) -> None: ... + def toImageFormat(self) -> 'QTextImageFormat': ... + def toFrameFormat(self) -> 'QTextFrameFormat': ... + def toTableFormat(self) -> 'QTextTableFormat': ... + def toListFormat(self) -> 'QTextListFormat': ... + def toCharFormat(self) -> 'QTextCharFormat': ... + def toBlockFormat(self) -> 'QTextBlockFormat': ... + def isTableFormat(self) -> bool: ... + def isImageFormat(self) -> bool: ... + def isFrameFormat(self) -> bool: ... + def isListFormat(self) -> bool: ... + def isBlockFormat(self) -> bool: ... + def isCharFormat(self) -> bool: ... + def objectType(self) -> int: ... + def properties(self) -> typing.Dict[int, typing.Any]: ... + def lengthVectorProperty(self, propertyId: int) -> typing.List[QTextLength]: ... + def lengthProperty(self, propertyId: int) -> QTextLength: ... + def brushProperty(self, propertyId: int) -> QBrush: ... + def penProperty(self, propertyId: int) -> QPen: ... + def colorProperty(self, propertyId: int) -> QColor: ... + def stringProperty(self, propertyId: int) -> str: ... + def doubleProperty(self, propertyId: int) -> float: ... + def intProperty(self, propertyId: int) -> int: ... + def boolProperty(self, propertyId: int) -> bool: ... + def hasProperty(self, propertyId: int) -> bool: ... + def clearProperty(self, propertyId: int) -> None: ... + @typing.overload + def setProperty(self, propertyId: int, value: typing.Any) -> None: ... + @typing.overload + def setProperty(self, propertyId: int, lengths: typing.Iterable[QTextLength]) -> None: ... + def property(self, propertyId: int) -> typing.Any: ... + def setObjectIndex(self, object: int) -> None: ... + def objectIndex(self) -> int: ... + def type(self) -> int: ... + def isValid(self) -> bool: ... + def merge(self, other: 'QTextFormat') -> None: ... + + +class QTextCharFormat(QTextFormat): + + class FontPropertiesInheritanceBehavior(int): ... + FontPropertiesSpecifiedOnly = ... # type: 'QTextCharFormat.FontPropertiesInheritanceBehavior' + FontPropertiesAll = ... # type: 'QTextCharFormat.FontPropertiesInheritanceBehavior' + + class UnderlineStyle(int): ... + NoUnderline = ... # type: 'QTextCharFormat.UnderlineStyle' + SingleUnderline = ... # type: 'QTextCharFormat.UnderlineStyle' + DashUnderline = ... # type: 'QTextCharFormat.UnderlineStyle' + DotLine = ... # type: 'QTextCharFormat.UnderlineStyle' + DashDotLine = ... # type: 'QTextCharFormat.UnderlineStyle' + DashDotDotLine = ... # type: 'QTextCharFormat.UnderlineStyle' + WaveUnderline = ... # type: 'QTextCharFormat.UnderlineStyle' + SpellCheckUnderline = ... # type: 'QTextCharFormat.UnderlineStyle' + + class VerticalAlignment(int): ... + AlignNormal = ... # type: 'QTextCharFormat.VerticalAlignment' + AlignSuperScript = ... # type: 'QTextCharFormat.VerticalAlignment' + AlignSubScript = ... # type: 'QTextCharFormat.VerticalAlignment' + AlignMiddle = ... # type: 'QTextCharFormat.VerticalAlignment' + AlignTop = ... # type: 'QTextCharFormat.VerticalAlignment' + AlignBottom = ... # type: 'QTextCharFormat.VerticalAlignment' + AlignBaseline = ... # type: 'QTextCharFormat.VerticalAlignment' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextCharFormat') -> None: ... + + def fontStyleName(self) -> typing.Any: ... + def setFontStyleName(self, styleName: str) -> None: ... + def fontFamilies(self) -> typing.Any: ... + def setFontFamilies(self, families: typing.Iterable[str]) -> None: ... + def fontLetterSpacingType(self) -> QFont.SpacingType: ... + def setFontLetterSpacingType(self, letterSpacingType: QFont.SpacingType) -> None: ... + def setFontStretch(self, factor: int) -> None: ... + def fontStretch(self) -> int: ... + def fontHintingPreference(self) -> QFont.HintingPreference: ... + def setFontHintingPreference(self, hintingPreference: QFont.HintingPreference) -> None: ... + def fontKerning(self) -> bool: ... + def setFontKerning(self, enable: bool) -> None: ... + def fontStyleStrategy(self) -> QFont.StyleStrategy: ... + def fontStyleHint(self) -> QFont.StyleHint: ... + def setFontStyleStrategy(self, strategy: QFont.StyleStrategy) -> None: ... + def setFontStyleHint(self, hint: QFont.StyleHint, strategy: QFont.StyleStrategy = ...) -> None: ... + def fontWordSpacing(self) -> float: ... + def setFontWordSpacing(self, spacing: float) -> None: ... + def fontLetterSpacing(self) -> float: ... + def setFontLetterSpacing(self, spacing: float) -> None: ... + def fontCapitalization(self) -> QFont.Capitalization: ... + def setFontCapitalization(self, capitalization: QFont.Capitalization) -> None: ... + def anchorNames(self) -> typing.List[str]: ... + def setAnchorNames(self, names: typing.Iterable[str]) -> None: ... + def toolTip(self) -> str: ... + def setToolTip(self, tip: str) -> None: ... + def underlineStyle(self) -> 'QTextCharFormat.UnderlineStyle': ... + def setUnderlineStyle(self, style: 'QTextCharFormat.UnderlineStyle') -> None: ... + def textOutline(self) -> QPen: ... + def setTextOutline(self, pen: typing.Union[QPen, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def setTableCellColumnSpan(self, atableCellColumnSpan: int) -> None: ... + def setTableCellRowSpan(self, atableCellRowSpan: int) -> None: ... + def tableCellColumnSpan(self) -> int: ... + def tableCellRowSpan(self) -> int: ... + def anchorHref(self) -> str: ... + def setAnchorHref(self, value: str) -> None: ... + def isAnchor(self) -> bool: ... + def setAnchor(self, anchor: bool) -> None: ... + def verticalAlignment(self) -> 'QTextCharFormat.VerticalAlignment': ... + def setVerticalAlignment(self, alignment: 'QTextCharFormat.VerticalAlignment') -> None: ... + def fontFixedPitch(self) -> bool: ... + def setFontFixedPitch(self, fixedPitch: bool) -> None: ... + def underlineColor(self) -> QColor: ... + def setUnderlineColor(self, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def fontStrikeOut(self) -> bool: ... + def setFontStrikeOut(self, strikeOut: bool) -> None: ... + def fontOverline(self) -> bool: ... + def setFontOverline(self, overline: bool) -> None: ... + def fontUnderline(self) -> bool: ... + def setFontUnderline(self, underline: bool) -> None: ... + def fontItalic(self) -> bool: ... + def setFontItalic(self, italic: bool) -> None: ... + def fontWeight(self) -> int: ... + def setFontWeight(self, weight: int) -> None: ... + def fontPointSize(self) -> float: ... + def setFontPointSize(self, size: float) -> None: ... + def fontFamily(self) -> str: ... + def setFontFamily(self, family: str) -> None: ... + def font(self) -> QFont: ... + @typing.overload + def setFont(self, font: QFont) -> None: ... + @typing.overload + def setFont(self, font: QFont, behavior: 'QTextCharFormat.FontPropertiesInheritanceBehavior') -> None: ... + def isValid(self) -> bool: ... + + +class QTextBlockFormat(QTextFormat): + + class LineHeightTypes(int): ... + SingleHeight = ... # type: 'QTextBlockFormat.LineHeightTypes' + ProportionalHeight = ... # type: 'QTextBlockFormat.LineHeightTypes' + FixedHeight = ... # type: 'QTextBlockFormat.LineHeightTypes' + MinimumHeight = ... # type: 'QTextBlockFormat.LineHeightTypes' + LineDistanceHeight = ... # type: 'QTextBlockFormat.LineHeightTypes' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextBlockFormat') -> None: ... + + def headingLevel(self) -> int: ... + def setHeadingLevel(self, alevel: int) -> None: ... + def lineHeightType(self) -> int: ... + @typing.overload + def lineHeight(self) -> float: ... + @typing.overload + def lineHeight(self, scriptLineHeight: float, scaling: float = ...) -> float: ... + def setLineHeight(self, height: float, heightType: int) -> None: ... + def tabPositions(self) -> typing.List['QTextOption.Tab']: ... + def setTabPositions(self, tabs: typing.Iterable['QTextOption.Tab']) -> None: ... + def pageBreakPolicy(self) -> QTextFormat.PageBreakFlags: ... + def setPageBreakPolicy(self, flags: typing.Union[QTextFormat.PageBreakFlags, QTextFormat.PageBreakFlag]) -> None: ... + def setIndent(self, aindent: int) -> None: ... + def setAlignment(self, aalignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def nonBreakableLines(self) -> bool: ... + def setNonBreakableLines(self, b: bool) -> None: ... + def indent(self) -> int: ... + def textIndent(self) -> float: ... + def setTextIndent(self, margin: float) -> None: ... + def rightMargin(self) -> float: ... + def setRightMargin(self, margin: float) -> None: ... + def leftMargin(self) -> float: ... + def setLeftMargin(self, margin: float) -> None: ... + def bottomMargin(self) -> float: ... + def setBottomMargin(self, margin: float) -> None: ... + def topMargin(self) -> float: ... + def setTopMargin(self, margin: float) -> None: ... + def alignment(self) -> QtCore.Qt.Alignment: ... + def isValid(self) -> bool: ... + + +class QTextListFormat(QTextFormat): + + class Style(int): ... + ListDisc = ... # type: 'QTextListFormat.Style' + ListCircle = ... # type: 'QTextListFormat.Style' + ListSquare = ... # type: 'QTextListFormat.Style' + ListDecimal = ... # type: 'QTextListFormat.Style' + ListLowerAlpha = ... # type: 'QTextListFormat.Style' + ListUpperAlpha = ... # type: 'QTextListFormat.Style' + ListLowerRoman = ... # type: 'QTextListFormat.Style' + ListUpperRoman = ... # type: 'QTextListFormat.Style' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextListFormat') -> None: ... + + def setNumberSuffix(self, ns: str) -> None: ... + def setNumberPrefix(self, np: str) -> None: ... + def numberSuffix(self) -> str: ... + def numberPrefix(self) -> str: ... + def setIndent(self, aindent: int) -> None: ... + def setStyle(self, astyle: 'QTextListFormat.Style') -> None: ... + def indent(self) -> int: ... + def style(self) -> 'QTextListFormat.Style': ... + def isValid(self) -> bool: ... + + +class QTextImageFormat(QTextCharFormat): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextImageFormat') -> None: ... + + def setQuality(self, quality: int = ...) -> None: ... + def setHeight(self, aheight: float) -> None: ... + def setWidth(self, awidth: float) -> None: ... + def setName(self, aname: str) -> None: ... + def quality(self) -> int: ... + def height(self) -> float: ... + def width(self) -> float: ... + def name(self) -> str: ... + def isValid(self) -> bool: ... + + +class QTextFrameFormat(QTextFormat): + + class BorderStyle(int): ... + BorderStyle_None = ... # type: 'QTextFrameFormat.BorderStyle' + BorderStyle_Dotted = ... # type: 'QTextFrameFormat.BorderStyle' + BorderStyle_Dashed = ... # type: 'QTextFrameFormat.BorderStyle' + BorderStyle_Solid = ... # type: 'QTextFrameFormat.BorderStyle' + BorderStyle_Double = ... # type: 'QTextFrameFormat.BorderStyle' + BorderStyle_DotDash = ... # type: 'QTextFrameFormat.BorderStyle' + BorderStyle_DotDotDash = ... # type: 'QTextFrameFormat.BorderStyle' + BorderStyle_Groove = ... # type: 'QTextFrameFormat.BorderStyle' + BorderStyle_Ridge = ... # type: 'QTextFrameFormat.BorderStyle' + BorderStyle_Inset = ... # type: 'QTextFrameFormat.BorderStyle' + BorderStyle_Outset = ... # type: 'QTextFrameFormat.BorderStyle' + + class Position(int): ... + InFlow = ... # type: 'QTextFrameFormat.Position' + FloatLeft = ... # type: 'QTextFrameFormat.Position' + FloatRight = ... # type: 'QTextFrameFormat.Position' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextFrameFormat') -> None: ... + + def setRightMargin(self, amargin: float) -> None: ... + def setLeftMargin(self, amargin: float) -> None: ... + def setBottomMargin(self, amargin: float) -> None: ... + def setTopMargin(self, amargin: float) -> None: ... + def rightMargin(self) -> float: ... + def leftMargin(self) -> float: ... + def bottomMargin(self) -> float: ... + def topMargin(self) -> float: ... + def borderStyle(self) -> 'QTextFrameFormat.BorderStyle': ... + def setBorderStyle(self, style: 'QTextFrameFormat.BorderStyle') -> None: ... + def borderBrush(self) -> QBrush: ... + def setBorderBrush(self, brush: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def pageBreakPolicy(self) -> QTextFormat.PageBreakFlags: ... + def setPageBreakPolicy(self, flags: typing.Union[QTextFormat.PageBreakFlags, QTextFormat.PageBreakFlag]) -> None: ... + @typing.overload + def setHeight(self, aheight: float) -> None: ... + @typing.overload + def setHeight(self, aheight: QTextLength) -> None: ... + def setPadding(self, apadding: float) -> None: ... + def setMargin(self, amargin: float) -> None: ... + def setBorder(self, aborder: float) -> None: ... + def height(self) -> QTextLength: ... + def width(self) -> QTextLength: ... + @typing.overload + def setWidth(self, length: QTextLength) -> None: ... + @typing.overload + def setWidth(self, awidth: float) -> None: ... + def padding(self) -> float: ... + def margin(self) -> float: ... + def border(self) -> float: ... + def position(self) -> 'QTextFrameFormat.Position': ... + def setPosition(self, f: 'QTextFrameFormat.Position') -> None: ... + def isValid(self) -> bool: ... + + +class QTextTableFormat(QTextFrameFormat): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextTableFormat') -> None: ... + + def headerRowCount(self) -> int: ... + def setHeaderRowCount(self, count: int) -> None: ... + def setAlignment(self, aalignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def setCellPadding(self, apadding: float) -> None: ... + def setColumns(self, acolumns: int) -> None: ... + def alignment(self) -> QtCore.Qt.Alignment: ... + def cellPadding(self) -> float: ... + def setCellSpacing(self, spacing: float) -> None: ... + def cellSpacing(self) -> float: ... + def clearColumnWidthConstraints(self) -> None: ... + def columnWidthConstraints(self) -> typing.List[QTextLength]: ... + def setColumnWidthConstraints(self, constraints: typing.Iterable[QTextLength]) -> None: ... + def columns(self) -> int: ... + def isValid(self) -> bool: ... + + +class QTextTableCellFormat(QTextCharFormat): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextTableCellFormat') -> None: ... + + def setPadding(self, padding: float) -> None: ... + def rightPadding(self) -> float: ... + def setRightPadding(self, padding: float) -> None: ... + def leftPadding(self) -> float: ... + def setLeftPadding(self, padding: float) -> None: ... + def bottomPadding(self) -> float: ... + def setBottomPadding(self, padding: float) -> None: ... + def topPadding(self) -> float: ... + def setTopPadding(self, padding: float) -> None: ... + def isValid(self) -> bool: ... + + +class QTextInlineObject(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextInlineObject') -> None: ... + + def format(self) -> QTextFormat: ... + def formatIndex(self) -> int: ... + def textPosition(self) -> int: ... + def setDescent(self, d: float) -> None: ... + def setAscent(self, a: float) -> None: ... + def setWidth(self, w: float) -> None: ... + def textDirection(self) -> QtCore.Qt.LayoutDirection: ... + def height(self) -> float: ... + def descent(self) -> float: ... + def ascent(self) -> float: ... + def width(self) -> float: ... + def rect(self) -> QtCore.QRectF: ... + def isValid(self) -> bool: ... + + +class QTextLayout(sip.simplewrapper): + + class CursorMode(int): ... + SkipCharacters = ... # type: 'QTextLayout.CursorMode' + SkipWords = ... # type: 'QTextLayout.CursorMode' + + class FormatRange(sip.simplewrapper): + + format = ... # type: QTextCharFormat + length = ... # type: int + start = ... # type: int + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextLayout.FormatRange') -> None: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, text: str) -> None: ... + @typing.overload + def __init__(self, text: str, font: QFont, paintDevice: typing.Optional[QPaintDevice] = ...) -> None: ... + @typing.overload + def __init__(self, b: 'QTextBlock') -> None: ... + + def clearFormats(self) -> None: ... + def formats(self) -> typing.List['QTextLayout.FormatRange']: ... + def setFormats(self, overrides: typing.Iterable['QTextLayout.FormatRange']) -> None: ... + def glyphRuns(self, from_: int = ..., length: int = ...) -> typing.List[QGlyphRun]: ... + def rightCursorPosition(self, oldPos: int) -> int: ... + def leftCursorPosition(self, oldPos: int) -> int: ... + def cursorMoveStyle(self) -> QtCore.Qt.CursorMoveStyle: ... + def setCursorMoveStyle(self, style: QtCore.Qt.CursorMoveStyle) -> None: ... + def clearLayout(self) -> None: ... + def maximumWidth(self) -> float: ... + def minimumWidth(self) -> float: ... + def boundingRect(self) -> QtCore.QRectF: ... + def setPosition(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def position(self) -> QtCore.QPointF: ... + @typing.overload + def drawCursor(self, p: QPainter, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], cursorPosition: int) -> None: ... + @typing.overload + def drawCursor(self, p: QPainter, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], cursorPosition: int, width: int) -> None: ... + def draw(self, p: QPainter, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], selections: typing.Iterable['QTextLayout.FormatRange'] = ..., clip: QtCore.QRectF = ...) -> None: ... + def previousCursorPosition(self, oldPos: int, mode: 'QTextLayout.CursorMode' = ...) -> int: ... + def nextCursorPosition(self, oldPos: int, mode: 'QTextLayout.CursorMode' = ...) -> int: ... + def isValidCursorPosition(self, pos: int) -> bool: ... + def lineForTextPosition(self, pos: int) -> 'QTextLine': ... + def lineAt(self, i: int) -> 'QTextLine': ... + def lineCount(self) -> int: ... + def createLine(self) -> 'QTextLine': ... + def endLayout(self) -> None: ... + def beginLayout(self) -> None: ... + def cacheEnabled(self) -> bool: ... + def setCacheEnabled(self, enable: bool) -> None: ... + def clearAdditionalFormats(self) -> None: ... + def additionalFormats(self) -> typing.List['QTextLayout.FormatRange']: ... + def setAdditionalFormats(self, overrides: typing.Iterable['QTextLayout.FormatRange']) -> None: ... + def preeditAreaText(self) -> str: ... + def preeditAreaPosition(self) -> int: ... + def setPreeditArea(self, position: int, text: str) -> None: ... + def textOption(self) -> 'QTextOption': ... + def setTextOption(self, option: 'QTextOption') -> None: ... + def text(self) -> str: ... + def setText(self, string: str) -> None: ... + def font(self) -> QFont: ... + def setFont(self, f: QFont) -> None: ... + + +class QTextLine(sip.simplewrapper): + + class CursorPosition(int): ... + CursorBetweenCharacters = ... # type: 'QTextLine.CursorPosition' + CursorOnCharacter = ... # type: 'QTextLine.CursorPosition' + + class Edge(int): ... + Leading = ... # type: 'QTextLine.Edge' + Trailing = ... # type: 'QTextLine.Edge' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextLine') -> None: ... + + def glyphRuns(self, from_: int = ..., length: int = ...) -> typing.List[QGlyphRun]: ... + def horizontalAdvance(self) -> float: ... + def leadingIncluded(self) -> bool: ... + def setLeadingIncluded(self, included: bool) -> None: ... + def leading(self) -> float: ... + def position(self) -> QtCore.QPointF: ... + def draw(self, painter: QPainter, position: typing.Union[QtCore.QPointF, QtCore.QPoint], selection: typing.Optional[QTextLayout.FormatRange] = ...) -> None: ... + def lineNumber(self) -> int: ... + def textLength(self) -> int: ... + def textStart(self) -> int: ... + def setPosition(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def setNumColumns(self, columns: int) -> None: ... + @typing.overload + def setNumColumns(self, columns: int, alignmentWidth: float) -> None: ... + def setLineWidth(self, width: float) -> None: ... + def xToCursor(self, x: float, edge: 'QTextLine.CursorPosition' = ...) -> int: ... + def cursorToX(self, cursorPos: int, edge: 'QTextLine.Edge' = ...) -> typing.Tuple[float, int]: ... + def naturalTextRect(self) -> QtCore.QRectF: ... + def naturalTextWidth(self) -> float: ... + def height(self) -> float: ... + def descent(self) -> float: ... + def ascent(self) -> float: ... + def width(self) -> float: ... + def y(self) -> float: ... + def x(self) -> float: ... + def rect(self) -> QtCore.QRectF: ... + def isValid(self) -> bool: ... + + +class QTextObject(QtCore.QObject): + + def __init__(self, doc: QTextDocument) -> None: ... + + def objectIndex(self) -> int: ... + def document(self) -> QTextDocument: ... + def formatIndex(self) -> int: ... + def format(self) -> QTextFormat: ... + def setFormat(self, format: QTextFormat) -> None: ... + + +class QTextBlockGroup(QTextObject): + + def __init__(self, doc: QTextDocument) -> None: ... + + def blockList(self) -> typing.List['QTextBlock']: ... + def blockFormatChanged(self, block: 'QTextBlock') -> None: ... + def blockRemoved(self, block: 'QTextBlock') -> None: ... + def blockInserted(self, block: 'QTextBlock') -> None: ... + + +class QTextList(QTextBlockGroup): + + def __init__(self, doc: QTextDocument) -> None: ... + + def setFormat(self, aformat: QTextListFormat) -> None: ... + def format(self) -> QTextListFormat: ... + def add(self, block: 'QTextBlock') -> None: ... + def remove(self, a0: 'QTextBlock') -> None: ... + def removeItem(self, i: int) -> None: ... + def itemText(self, a0: 'QTextBlock') -> str: ... + def itemNumber(self, a0: 'QTextBlock') -> int: ... + def item(self, i: int) -> 'QTextBlock': ... + def __len__(self) -> int: ... + def count(self) -> int: ... + + +class QTextFrame(QTextObject): + + class iterator(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, o: 'QTextFrame.iterator') -> None: ... + + def atEnd(self) -> bool: ... + def currentBlock(self) -> 'QTextBlock': ... + def currentFrame(self) -> 'QTextFrame': ... + def parentFrame(self) -> 'QTextFrame': ... + + def __init__(self, doc: QTextDocument) -> None: ... + + def setFrameFormat(self, aformat: QTextFrameFormat) -> None: ... + def end(self) -> 'QTextFrame.iterator': ... + def begin(self) -> 'QTextFrame.iterator': ... + def parentFrame(self) -> 'QTextFrame': ... + def childFrames(self) -> typing.List['QTextFrame']: ... + def lastPosition(self) -> int: ... + def firstPosition(self) -> int: ... + def lastCursorPosition(self) -> QTextCursor: ... + def firstCursorPosition(self) -> QTextCursor: ... + def frameFormat(self) -> QTextFrameFormat: ... + + +class QTextBlock(sip.wrapper): + + class iterator(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, o: 'QTextBlock.iterator') -> None: ... + + def atEnd(self) -> bool: ... + def fragment(self) -> 'QTextFragment': ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, o: 'QTextBlock') -> None: ... + + def textFormats(self) -> typing.List[QTextLayout.FormatRange]: ... + def textDirection(self) -> QtCore.Qt.LayoutDirection: ... + def lineCount(self) -> int: ... + def setLineCount(self, count: int) -> None: ... + def firstLineNumber(self) -> int: ... + def blockNumber(self) -> int: ... + def setVisible(self, visible: bool) -> None: ... + def isVisible(self) -> bool: ... + def setRevision(self, rev: int) -> None: ... + def revision(self) -> int: ... + def clearLayout(self) -> None: ... + def setUserState(self, state: int) -> None: ... + def userState(self) -> int: ... + def setUserData(self, data: 'QTextBlockUserData') -> None: ... + def userData(self) -> 'QTextBlockUserData': ... + def previous(self) -> 'QTextBlock': ... + def next(self) -> 'QTextBlock': ... + def end(self) -> 'QTextBlock.iterator': ... + def begin(self) -> 'QTextBlock.iterator': ... + def textList(self) -> QTextList: ... + def document(self) -> QTextDocument: ... + def text(self) -> str: ... + def charFormatIndex(self) -> int: ... + def charFormat(self) -> QTextCharFormat: ... + def blockFormatIndex(self) -> int: ... + def blockFormat(self) -> QTextBlockFormat: ... + def layout(self) -> QTextLayout: ... + def contains(self, position: int) -> bool: ... + def length(self) -> int: ... + def position(self) -> int: ... + def isValid(self) -> bool: ... + + +class QTextFragment(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, o: 'QTextFragment') -> None: ... + + def glyphRuns(self, from_: int = ..., length: int = ...) -> typing.List[QGlyphRun]: ... + def text(self) -> str: ... + def charFormatIndex(self) -> int: ... + def charFormat(self) -> QTextCharFormat: ... + def contains(self, position: int) -> bool: ... + def length(self) -> int: ... + def position(self) -> int: ... + def isValid(self) -> bool: ... + + +class QTextBlockUserData(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextBlockUserData') -> None: ... + + +class QTextOption(sip.simplewrapper): + + class TabType(int): ... + LeftTab = ... # type: 'QTextOption.TabType' + RightTab = ... # type: 'QTextOption.TabType' + CenterTab = ... # type: 'QTextOption.TabType' + DelimiterTab = ... # type: 'QTextOption.TabType' + + class Flag(int): ... + IncludeTrailingSpaces = ... # type: 'QTextOption.Flag' + ShowTabsAndSpaces = ... # type: 'QTextOption.Flag' + ShowLineAndParagraphSeparators = ... # type: 'QTextOption.Flag' + AddSpaceForLineAndParagraphSeparators = ... # type: 'QTextOption.Flag' + SuppressColors = ... # type: 'QTextOption.Flag' + ShowDocumentTerminator = ... # type: 'QTextOption.Flag' + + class WrapMode(int): ... + NoWrap = ... # type: 'QTextOption.WrapMode' + WordWrap = ... # type: 'QTextOption.WrapMode' + ManualWrap = ... # type: 'QTextOption.WrapMode' + WrapAnywhere = ... # type: 'QTextOption.WrapMode' + WrapAtWordBoundaryOrAnywhere = ... # type: 'QTextOption.WrapMode' + + class Flags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QTextOption.Flags', 'QTextOption.Flag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextOption.Flags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QTextOption.Flags': ... + def __int__(self) -> int: ... + + class Tab(sip.simplewrapper): + + delimiter = ... # type: str + position = ... # type: float + type = ... # type: 'QTextOption.TabType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, pos: float, tabType: 'QTextOption.TabType', delim: str = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextOption.Tab') -> None: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + @typing.overload + def __init__(self, o: 'QTextOption') -> None: ... + + def tabStopDistance(self) -> float: ... + def setTabStopDistance(self, tabStopDistance: float) -> None: ... + def tabs(self) -> typing.List['QTextOption.Tab']: ... + def setTabs(self, tabStops: typing.Iterable['QTextOption.Tab']) -> None: ... + def setTabStop(self, atabStop: float) -> None: ... + def setFlags(self, flags: typing.Union['QTextOption.Flags', 'QTextOption.Flag']) -> None: ... + def setAlignment(self, aalignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def useDesignMetrics(self) -> bool: ... + def setUseDesignMetrics(self, b: bool) -> None: ... + def tabArray(self) -> typing.List[float]: ... + def setTabArray(self, tabStops: typing.Iterable[float]) -> None: ... + def tabStop(self) -> float: ... + def flags(self) -> 'QTextOption.Flags': ... + def wrapMode(self) -> 'QTextOption.WrapMode': ... + def setWrapMode(self, wrap: 'QTextOption.WrapMode') -> None: ... + def textDirection(self) -> QtCore.Qt.LayoutDirection: ... + def setTextDirection(self, aDirection: QtCore.Qt.LayoutDirection) -> None: ... + def alignment(self) -> QtCore.Qt.Alignment: ... + + +class QTextTableCell(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, o: 'QTextTableCell') -> None: ... + + def tableCellFormatIndex(self) -> int: ... + def lastCursorPosition(self) -> QTextCursor: ... + def firstCursorPosition(self) -> QTextCursor: ... + def isValid(self) -> bool: ... + def columnSpan(self) -> int: ... + def rowSpan(self) -> int: ... + def column(self) -> int: ... + def row(self) -> int: ... + def setFormat(self, format: QTextCharFormat) -> None: ... + def format(self) -> QTextCharFormat: ... + + +class QTextTable(QTextFrame): + + def __init__(self, doc: QTextDocument) -> None: ... + + def appendColumns(self, count: int) -> None: ... + def appendRows(self, count: int) -> None: ... + def setFormat(self, aformat: QTextTableFormat) -> None: ... + def format(self) -> QTextTableFormat: ... + def rowEnd(self, c: QTextCursor) -> QTextCursor: ... + def rowStart(self, c: QTextCursor) -> QTextCursor: ... + @typing.overload + def cellAt(self, row: int, col: int) -> QTextTableCell: ... + @typing.overload + def cellAt(self, position: int) -> QTextTableCell: ... + @typing.overload + def cellAt(self, c: QTextCursor) -> QTextTableCell: ... + def columns(self) -> int: ... + def rows(self) -> int: ... + def splitCell(self, row: int, col: int, numRows: int, numCols: int) -> None: ... + @typing.overload + def mergeCells(self, row: int, col: int, numRows: int, numCols: int) -> None: ... + @typing.overload + def mergeCells(self, cursor: QTextCursor) -> None: ... + def removeColumns(self, pos: int, num: int) -> None: ... + def removeRows(self, pos: int, num: int) -> None: ... + def insertColumns(self, pos: int, num: int) -> None: ... + def insertRows(self, pos: int, num: int) -> None: ... + def resize(self, rows: int, cols: int) -> None: ... + + +class QTouchDevice(sip.simplewrapper): + + class CapabilityFlag(int): ... + Position = ... # type: 'QTouchDevice.CapabilityFlag' + Area = ... # type: 'QTouchDevice.CapabilityFlag' + Pressure = ... # type: 'QTouchDevice.CapabilityFlag' + Velocity = ... # type: 'QTouchDevice.CapabilityFlag' + RawPositions = ... # type: 'QTouchDevice.CapabilityFlag' + NormalizedPosition = ... # type: 'QTouchDevice.CapabilityFlag' + MouseEmulation = ... # type: 'QTouchDevice.CapabilityFlag' + + class DeviceType(int): ... + TouchScreen = ... # type: 'QTouchDevice.DeviceType' + TouchPad = ... # type: 'QTouchDevice.DeviceType' + + class Capabilities(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QTouchDevice.Capabilities', 'QTouchDevice.CapabilityFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QTouchDevice.Capabilities') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QTouchDevice.Capabilities': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTouchDevice') -> None: ... + + def setMaximumTouchPoints(self, max: int) -> None: ... + def maximumTouchPoints(self) -> int: ... + def setCapabilities(self, caps: typing.Union['QTouchDevice.Capabilities', 'QTouchDevice.CapabilityFlag']) -> None: ... + def setType(self, devType: 'QTouchDevice.DeviceType') -> None: ... + def setName(self, name: str) -> None: ... + def capabilities(self) -> 'QTouchDevice.Capabilities': ... + def type(self) -> 'QTouchDevice.DeviceType': ... + def name(self) -> str: ... + @staticmethod + def devices() -> typing.List['QTouchDevice']: ... + + +class QTransform(sip.simplewrapper): + + class TransformationType(int): ... + TxNone = ... # type: 'QTransform.TransformationType' + TxTranslate = ... # type: 'QTransform.TransformationType' + TxScale = ... # type: 'QTransform.TransformationType' + TxRotate = ... # type: 'QTransform.TransformationType' + TxShear = ... # type: 'QTransform.TransformationType' + TxProject = ... # type: 'QTransform.TransformationType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, m11: float, m12: float, m13: float, m21: float, m22: float, m23: float, m31: float, m32: float, m33: float = ...) -> None: ... + @typing.overload + def __init__(self, h11: float, h12: float, h13: float, h21: float, h22: float, h23: float) -> None: ... + @typing.overload + def __init__(self, other: 'QTransform') -> None: ... + + def __hash__(self) -> int: ... + @staticmethod + def fromScale(dx: float, dy: float) -> 'QTransform': ... + @staticmethod + def fromTranslate(dx: float, dy: float) -> 'QTransform': ... + def dy(self) -> float: ... + def dx(self) -> float: ... + def m33(self) -> float: ... + def m32(self) -> float: ... + def m31(self) -> float: ... + def m23(self) -> float: ... + def m22(self) -> float: ... + def m21(self) -> float: ... + def m13(self) -> float: ... + def m12(self) -> float: ... + def m11(self) -> float: ... + def determinant(self) -> float: ... + def isTranslating(self) -> bool: ... + def isRotating(self) -> bool: ... + def isScaling(self) -> bool: ... + def isInvertible(self) -> bool: ... + def isIdentity(self) -> bool: ... + def isAffine(self) -> bool: ... + @typing.overload + def mapRect(self, a0: QtCore.QRect) -> QtCore.QRect: ... + @typing.overload + def mapRect(self, a0: QtCore.QRectF) -> QtCore.QRectF: ... + def mapToPolygon(self, r: QtCore.QRect) -> QPolygon: ... + @typing.overload + def map(self, x: int, y: int) -> typing.Tuple[int, int]: ... + @typing.overload + def map(self, x: float, y: float) -> typing.Tuple[float, float]: ... + @typing.overload + def map(self, p: QtCore.QPoint) -> QtCore.QPoint: ... + @typing.overload + def map(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + @typing.overload + def map(self, l: QtCore.QLine) -> QtCore.QLine: ... + @typing.overload + def map(self, l: QtCore.QLineF) -> QtCore.QLineF: ... + @typing.overload + def map(self, a: QPolygonF) -> QPolygonF: ... + @typing.overload + def map(self, a: QPolygon) -> QPolygon: ... + @typing.overload + def map(self, r: QRegion) -> QRegion: ... + @typing.overload + def map(self, p: QPainterPath) -> QPainterPath: ... + def reset(self) -> None: ... + @staticmethod + def quadToQuad(one: QPolygonF, two: QPolygonF, result: 'QTransform') -> bool: ... + @staticmethod + def quadToSquare(quad: QPolygonF, result: 'QTransform') -> bool: ... + @staticmethod + def squareToQuad(square: QPolygonF, result: 'QTransform') -> bool: ... + def rotateRadians(self, angle: float, axis: QtCore.Qt.Axis = ...) -> 'QTransform': ... + def rotate(self, angle: float, axis: QtCore.Qt.Axis = ...) -> 'QTransform': ... + def shear(self, sh: float, sv: float) -> 'QTransform': ... + def scale(self, sx: float, sy: float) -> 'QTransform': ... + def translate(self, dx: float, dy: float) -> 'QTransform': ... + def transposed(self) -> 'QTransform': ... + def adjoint(self) -> 'QTransform': ... + def inverted(self) -> typing.Tuple['QTransform', bool]: ... + def setMatrix(self, m11: float, m12: float, m13: float, m21: float, m22: float, m23: float, m31: float, m32: float, m33: float) -> None: ... + def type(self) -> 'QTransform.TransformationType': ... + + +class QValidator(QtCore.QObject): + + class State(int): ... + Invalid = ... # type: 'QValidator.State' + Intermediate = ... # type: 'QValidator.State' + Acceptable = ... # type: 'QValidator.State' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def changed(self) -> None: ... + def locale(self) -> QtCore.QLocale: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + def fixup(self, a0: str) -> str: ... + def validate(self, a0: str, a1: int) -> typing.Tuple['QValidator.State', str, int]: ... + + +class QIntValidator(QValidator): + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, bottom: int, top: int, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def top(self) -> int: ... + def bottom(self) -> int: ... + def setRange(self, bottom: int, top: int) -> None: ... + def setTop(self, a0: int) -> None: ... + def setBottom(self, a0: int) -> None: ... + def fixup(self, input: str) -> str: ... + def validate(self, a0: str, a1: int) -> typing.Tuple[QValidator.State, str, int]: ... + + +class QDoubleValidator(QValidator): + + class Notation(int): ... + StandardNotation = ... # type: 'QDoubleValidator.Notation' + ScientificNotation = ... # type: 'QDoubleValidator.Notation' + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, bottom: float, top: float, decimals: int, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def notation(self) -> 'QDoubleValidator.Notation': ... + def setNotation(self, a0: 'QDoubleValidator.Notation') -> None: ... + def decimals(self) -> int: ... + def top(self) -> float: ... + def bottom(self) -> float: ... + def setDecimals(self, a0: int) -> None: ... + def setTop(self, a0: float) -> None: ... + def setBottom(self, a0: float) -> None: ... + def setRange(self, minimum: float, maximum: float, decimals: int = ...) -> None: ... + def validate(self, a0: str, a1: int) -> typing.Tuple[QValidator.State, str, int]: ... + + +class QRegExpValidator(QValidator): + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, rx: QtCore.QRegExp, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def regExp(self) -> QtCore.QRegExp: ... + def setRegExp(self, rx: QtCore.QRegExp) -> None: ... + def validate(self, input: str, pos: int) -> typing.Tuple[QValidator.State, str, int]: ... + + +class QRegularExpressionValidator(QValidator): + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, re: QtCore.QRegularExpression, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setRegularExpression(self, re: QtCore.QRegularExpression) -> None: ... + def regularExpression(self) -> QtCore.QRegularExpression: ... + def validate(self, input: str, pos: int) -> typing.Tuple[QValidator.State, str, int]: ... + + +class QVector2D(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, xpos: float, ypos: float) -> None: ... + @typing.overload + def __init__(self, point: QtCore.QPoint) -> None: ... + @typing.overload + def __init__(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def __init__(self, vector: 'QVector3D') -> None: ... + @typing.overload + def __init__(self, vector: 'QVector4D') -> None: ... + @typing.overload + def __init__(self, a0: 'QVector2D') -> None: ... + + def __neg__(self) -> 'QVector2D': ... + def __getitem__(self, i: int) -> float: ... + def distanceToLine(self, point: 'QVector2D', direction: 'QVector2D') -> float: ... + def distanceToPoint(self, point: 'QVector2D') -> float: ... + def toPointF(self) -> QtCore.QPointF: ... + def toPoint(self) -> QtCore.QPoint: ... + def setY(self, aY: float) -> None: ... + def setX(self, aX: float) -> None: ... + def y(self) -> float: ... + def x(self) -> float: ... + def isNull(self) -> bool: ... + def toVector4D(self) -> 'QVector4D': ... + def toVector3D(self) -> 'QVector3D': ... + @staticmethod + def dotProduct(v1: 'QVector2D', v2: 'QVector2D') -> float: ... + def normalize(self) -> None: ... + def normalized(self) -> 'QVector2D': ... + def lengthSquared(self) -> float: ... + def length(self) -> float: ... + def __repr__(self) -> str: ... + + +class QVector3D(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, xpos: float, ypos: float, zpos: float) -> None: ... + @typing.overload + def __init__(self, point: QtCore.QPoint) -> None: ... + @typing.overload + def __init__(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def __init__(self, vector: QVector2D) -> None: ... + @typing.overload + def __init__(self, vector: QVector2D, zpos: float) -> None: ... + @typing.overload + def __init__(self, vector: 'QVector4D') -> None: ... + @typing.overload + def __init__(self, a0: 'QVector3D') -> None: ... + + def __neg__(self) -> 'QVector3D': ... + def unproject(self, modelView: QMatrix4x4, projection: QMatrix4x4, viewport: QtCore.QRect) -> 'QVector3D': ... + def project(self, modelView: QMatrix4x4, projection: QMatrix4x4, viewport: QtCore.QRect) -> 'QVector3D': ... + def __getitem__(self, i: int) -> float: ... + def distanceToPoint(self, point: 'QVector3D') -> float: ... + def toPointF(self) -> QtCore.QPointF: ... + def toPoint(self) -> QtCore.QPoint: ... + def setZ(self, aZ: float) -> None: ... + def setY(self, aY: float) -> None: ... + def setX(self, aX: float) -> None: ... + def z(self) -> float: ... + def y(self) -> float: ... + def x(self) -> float: ... + def isNull(self) -> bool: ... + def toVector4D(self) -> 'QVector4D': ... + def toVector2D(self) -> QVector2D: ... + def distanceToLine(self, point: 'QVector3D', direction: 'QVector3D') -> float: ... + @typing.overload + def distanceToPlane(self, plane: 'QVector3D', normal: 'QVector3D') -> float: ... + @typing.overload + def distanceToPlane(self, plane1: 'QVector3D', plane2: 'QVector3D', plane3: 'QVector3D') -> float: ... + @typing.overload + @staticmethod + def normal(v1: 'QVector3D', v2: 'QVector3D') -> 'QVector3D': ... + @typing.overload + @staticmethod + def normal(v1: 'QVector3D', v2: 'QVector3D', v3: 'QVector3D') -> 'QVector3D': ... + @staticmethod + def crossProduct(v1: 'QVector3D', v2: 'QVector3D') -> 'QVector3D': ... + @staticmethod + def dotProduct(v1: 'QVector3D', v2: 'QVector3D') -> float: ... + def normalize(self) -> None: ... + def normalized(self) -> 'QVector3D': ... + def lengthSquared(self) -> float: ... + def length(self) -> float: ... + def __repr__(self) -> str: ... + + +class QVector4D(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, xpos: float, ypos: float, zpos: float, wpos: float) -> None: ... + @typing.overload + def __init__(self, point: QtCore.QPoint) -> None: ... + @typing.overload + def __init__(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def __init__(self, vector: QVector2D) -> None: ... + @typing.overload + def __init__(self, vector: QVector2D, zpos: float, wpos: float) -> None: ... + @typing.overload + def __init__(self, vector: QVector3D) -> None: ... + @typing.overload + def __init__(self, vector: QVector3D, wpos: float) -> None: ... + @typing.overload + def __init__(self, a0: 'QVector4D') -> None: ... + + def __neg__(self) -> 'QVector4D': ... + def __getitem__(self, i: int) -> float: ... + def toPointF(self) -> QtCore.QPointF: ... + def toPoint(self) -> QtCore.QPoint: ... + def setW(self, aW: float) -> None: ... + def setZ(self, aZ: float) -> None: ... + def setY(self, aY: float) -> None: ... + def setX(self, aX: float) -> None: ... + def w(self) -> float: ... + def z(self) -> float: ... + def y(self) -> float: ... + def x(self) -> float: ... + def isNull(self) -> bool: ... + def toVector3DAffine(self) -> QVector3D: ... + def toVector3D(self) -> QVector3D: ... + def toVector2DAffine(self) -> QVector2D: ... + def toVector2D(self) -> QVector2D: ... + @staticmethod + def dotProduct(v1: 'QVector4D', v2: 'QVector4D') -> float: ... + def normalize(self) -> None: ... + def normalized(self) -> 'QVector4D': ... + def lengthSquared(self) -> float: ... + def length(self) -> float: ... + def __repr__(self) -> str: ... + + +def qIsGray(rgb: int) -> bool: ... +@typing.overload +def qGray(r: int, g: int, b: int) -> int: ... +@typing.overload +def qGray(rgb: int) -> int: ... +def qRgba(r: int, g: int, b: int, a: int) -> int: ... +def qRgb(r: int, g: int, b: int) -> int: ... +@typing.overload +def qAlpha(rgb: QRgba64) -> int: ... +@typing.overload +def qAlpha(rgb: int) -> int: ... +@typing.overload +def qBlue(rgb: QRgba64) -> int: ... +@typing.overload +def qBlue(rgb: int) -> int: ... +@typing.overload +def qGreen(rgb: QRgba64) -> int: ... +@typing.overload +def qGreen(rgb: int) -> int: ... +@typing.overload +def qRed(rgb: QRgba64) -> int: ... +@typing.overload +def qRed(rgb: int) -> int: ... +@typing.overload +def qUnpremultiply(c: QRgba64) -> QRgba64: ... +@typing.overload +def qUnpremultiply(p: int) -> int: ... +@typing.overload +def qPremultiply(c: QRgba64) -> QRgba64: ... +@typing.overload +def qPremultiply(x: int) -> int: ... +@typing.overload +def qRgba64(r: int, g: int, b: int, a: int) -> QRgba64: ... +@typing.overload +def qRgba64(c: int) -> QRgba64: ... +def qPixelFormatAlpha(channelSize: int, typeInterpretation: QPixelFormat.TypeInterpretation = ...) -> QPixelFormat: ... +def qPixelFormatYuv(layout: QPixelFormat.YUVLayout, alphaSize: int = ..., alphaUsage: QPixelFormat.AlphaUsage = ..., alphaPosition: QPixelFormat.AlphaPosition = ..., premultiplied: QPixelFormat.AlphaPremultiplied = ..., typeInterpretation: QPixelFormat.TypeInterpretation = ..., byteOrder: QPixelFormat.ByteOrder = ...) -> QPixelFormat: ... +def qPixelFormatHsv(channelSize: int, alphaSize: int = ..., alphaUsage: QPixelFormat.AlphaUsage = ..., alphaPosition: QPixelFormat.AlphaPosition = ..., typeInterpretation: QPixelFormat.TypeInterpretation = ...) -> QPixelFormat: ... +def qPixelFormatHsl(channelSize: int, alphaSize: int = ..., alphaUsage: QPixelFormat.AlphaUsage = ..., alphaPosition: QPixelFormat.AlphaPosition = ..., typeInterpretation: QPixelFormat.TypeInterpretation = ...) -> QPixelFormat: ... +def qPixelFormatCmyk(channelSize: int, alphaSize: int = ..., alphaUsage: QPixelFormat.AlphaUsage = ..., alphaPosition: QPixelFormat.AlphaPosition = ..., typeInterpretation: QPixelFormat.TypeInterpretation = ...) -> QPixelFormat: ... +def qPixelFormatGrayscale(channelSize: int, typeInterpretation: QPixelFormat.TypeInterpretation = ...) -> QPixelFormat: ... +def qPixelFormatRgba(red: int, green: int, blue: int, alfa: int, usage: QPixelFormat.AlphaUsage, position: QPixelFormat.AlphaPosition, premultiplied: QPixelFormat.AlphaPremultiplied = ..., typeInterpretation: QPixelFormat.TypeInterpretation = ...) -> QPixelFormat: ... +@typing.overload +def qFuzzyCompare(m1: QMatrix4x4, m2: QMatrix4x4) -> bool: ... +@typing.overload +def qFuzzyCompare(q1: QQuaternion, q2: QQuaternion) -> bool: ... +@typing.overload +def qFuzzyCompare(t1: QTransform, t2: QTransform) -> bool: ... +@typing.overload +def qFuzzyCompare(v1: QVector2D, v2: QVector2D) -> bool: ... +@typing.overload +def qFuzzyCompare(v1: QVector3D, v2: QVector3D) -> bool: ... +@typing.overload +def qFuzzyCompare(v1: QVector4D, v2: QVector4D) -> bool: ... +def qt_set_sequence_auto_mnemonic(b: bool) -> None: ... diff --git a/tools/stubs/PyQt5/QtHelp.pyi b/tools/stubs/PyQt5/QtHelp.pyi new file mode 100644 index 000000000..5faf4d06d --- /dev/null +++ b/tools/stubs/PyQt5/QtHelp.pyi @@ -0,0 +1,273 @@ +# The PEP 484 type hints stub file for the QtHelp module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtWidgets +from PyQt5 import QtGui +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + +# Convenient aliases for complicated OpenGL types. +PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QCompressedHelpInfo(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QCompressedHelpInfo') -> None: ... + + @staticmethod + def fromCompressedHelpFile(documentationFileName: str) -> 'QCompressedHelpInfo': ... + def version(self) -> QtCore.QVersionNumber: ... + def component(self) -> str: ... + def namespaceName(self) -> str: ... + def swap(self, other: 'QCompressedHelpInfo') -> None: ... + + +class QHelpContentItem(sip.simplewrapper): + + def childPosition(self, child: 'QHelpContentItem') -> int: ... + def parent(self) -> 'QHelpContentItem': ... + def row(self) -> int: ... + def url(self) -> QtCore.QUrl: ... + def title(self) -> str: ... + def childCount(self) -> int: ... + def child(self, row: int) -> 'QHelpContentItem': ... + + +class QHelpContentModel(QtCore.QAbstractItemModel): + + def contentsCreated(self) -> None: ... + def contentsCreationStarted(self) -> None: ... + def isCreatingContents(self) -> bool: ... + def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + def parent(self, index: QtCore.QModelIndex) -> QtCore.QModelIndex: ... + def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ... + def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ... + def contentItemAt(self, index: QtCore.QModelIndex) -> QHelpContentItem: ... + def createContents(self, customFilterName: str) -> None: ... + + +class QHelpContentWidget(QtWidgets.QTreeView): + + def linkActivated(self, link: QtCore.QUrl) -> None: ... + def indexOf(self, link: QtCore.QUrl) -> QtCore.QModelIndex: ... + + +class QHelpEngineCore(QtCore.QObject): + + def __init__(self, collectionFile: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def usesFilterEngine(self) -> bool: ... + def setUsesFilterEngine(self, uses: bool) -> None: ... + def filterEngine(self) -> 'QHelpFilterEngine': ... + def readersAboutToBeInvalidated(self) -> None: ... + def warning(self, msg: str) -> None: ... + def currentFilterChanged(self, newFilter: str) -> None: ... + def setupFinished(self) -> None: ... + def setupStarted(self) -> None: ... + def setAutoSaveFilter(self, save: bool) -> None: ... + def autoSaveFilter(self) -> bool: ... + def error(self) -> str: ... + @staticmethod + def metaData(documentationFileName: str, name: str) -> typing.Any: ... + def setCustomValue(self, key: str, value: typing.Any) -> bool: ... + def customValue(self, key: str, defaultValue: typing.Any = ...) -> typing.Any: ... + def removeCustomValue(self, key: str) -> bool: ... + def linksForKeyword(self, keyword: str) -> typing.Dict[str, QtCore.QUrl]: ... + def linksForIdentifier(self, id: str) -> typing.Dict[str, QtCore.QUrl]: ... + def fileData(self, url: QtCore.QUrl) -> QtCore.QByteArray: ... + def findFile(self, url: QtCore.QUrl) -> QtCore.QUrl: ... + @typing.overload + def files(self, namespaceName: str, filterAttributes: typing.Iterable[str], extensionFilter: str = ...) -> typing.List[QtCore.QUrl]: ... + @typing.overload + def files(self, namespaceName: str, filterName: str, extensionFilter: str = ...) -> typing.List[QtCore.QUrl]: ... + def filterAttributeSets(self, namespaceName: str) -> typing.List[typing.List[str]]: ... + def registeredDocumentations(self) -> typing.List[str]: ... + def setCurrentFilter(self, filterName: str) -> None: ... + def currentFilter(self) -> str: ... + @typing.overload + def filterAttributes(self) -> typing.List[str]: ... + @typing.overload + def filterAttributes(self, filterName: str) -> typing.List[str]: ... + def addCustomFilter(self, filterName: str, attributes: typing.Iterable[str]) -> bool: ... + def removeCustomFilter(self, filterName: str) -> bool: ... + def customFilters(self) -> typing.List[str]: ... + def documentationFileName(self, namespaceName: str) -> str: ... + def unregisterDocumentation(self, namespaceName: str) -> bool: ... + def registerDocumentation(self, documentationFileName: str) -> bool: ... + @staticmethod + def namespaceName(documentationFileName: str) -> str: ... + def copyCollectionFile(self, fileName: str) -> bool: ... + def setCollectionFile(self, fileName: str) -> None: ... + def collectionFile(self) -> str: ... + def setupData(self) -> bool: ... + + +class QHelpEngine(QHelpEngineCore): + + def __init__(self, collectionFile: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def searchEngine(self) -> 'QHelpSearchEngine': ... + def indexWidget(self) -> 'QHelpIndexWidget': ... + def contentWidget(self) -> QHelpContentWidget: ... + def indexModel(self) -> 'QHelpIndexModel': ... + def contentModel(self) -> QHelpContentModel: ... + + +class QHelpFilterData(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QHelpFilterData') -> None: ... + + def versions(self) -> typing.List[QtCore.QVersionNumber]: ... + def components(self) -> typing.List[str]: ... + def setVersions(self, versions: typing.Iterable[QtCore.QVersionNumber]) -> None: ... + def setComponents(self, components: typing.Iterable[str]) -> None: ... + def swap(self, other: 'QHelpFilterData') -> None: ... + + +class QHelpFilterEngine(QtCore.QObject): + + def filterActivated(self, newFilter: str) -> None: ... + def namespacesForFilter(self, filterName: str) -> typing.List[str]: ... + def removeFilter(self, filterName: str) -> bool: ... + def setFilterData(self, filterName: str, filterData: QHelpFilterData) -> bool: ... + def filterData(self, filterName: str) -> QHelpFilterData: ... + def availableComponents(self) -> typing.List[str]: ... + def setActiveFilter(self, filterName: str) -> bool: ... + def activeFilter(self) -> str: ... + def filters(self) -> typing.List[str]: ... + def namespaceToVersion(self) -> typing.Dict[str, QtCore.QVersionNumber]: ... + def namespaceToComponent(self) -> typing.Dict[str, str]: ... + + +class QHelpIndexModel(QtCore.QStringListModel): + + def indexCreated(self) -> None: ... + def indexCreationStarted(self) -> None: ... + def isCreatingIndex(self) -> bool: ... + def linksForKeyword(self, keyword: str) -> typing.Dict[str, QtCore.QUrl]: ... + def filter(self, filter: str, wildcard: str = ...) -> QtCore.QModelIndex: ... + def createIndex(self, customFilterName: str) -> None: ... + + +class QHelpIndexWidget(QtWidgets.QListView): + + def activateCurrentItem(self) -> None: ... + def filterIndices(self, filter: str, wildcard: str = ...) -> None: ... + def linksActivated(self, links: typing.Dict[str, QtCore.QUrl], keyword: str) -> None: ... + def linkActivated(self, link: QtCore.QUrl, keyword: str) -> None: ... + + +class QHelpSearchQuery(sip.simplewrapper): + + class FieldName(int): ... + DEFAULT = ... # type: 'QHelpSearchQuery.FieldName' + FUZZY = ... # type: 'QHelpSearchQuery.FieldName' + WITHOUT = ... # type: 'QHelpSearchQuery.FieldName' + PHRASE = ... # type: 'QHelpSearchQuery.FieldName' + ALL = ... # type: 'QHelpSearchQuery.FieldName' + ATLEAST = ... # type: 'QHelpSearchQuery.FieldName' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, field: 'QHelpSearchQuery.FieldName', wordList: typing.Iterable[str]) -> None: ... + @typing.overload + def __init__(self, a0: 'QHelpSearchQuery') -> None: ... + + +class QHelpSearchEngine(QtCore.QObject): + + def __init__(self, helpEngine: QHelpEngineCore, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def searchInput(self) -> str: ... + def searchResults(self, start: int, end: int) -> typing.List['QHelpSearchResult']: ... + def searchResultCount(self) -> int: ... + def searchingFinished(self, hits: int) -> None: ... + def searchingStarted(self) -> None: ... + def indexingFinished(self) -> None: ... + def indexingStarted(self) -> None: ... + def cancelSearching(self) -> None: ... + @typing.overload + def search(self, queryList: typing.Iterable[QHelpSearchQuery]) -> None: ... + @typing.overload + def search(self, searchInput: str) -> None: ... + def cancelIndexing(self) -> None: ... + def reindexDocumentation(self) -> None: ... + def hits(self, start: int, end: int) -> typing.List[typing.Tuple[str, str]]: ... + def hitCount(self) -> int: ... + def resultWidget(self) -> 'QHelpSearchResultWidget': ... + def queryWidget(self) -> 'QHelpSearchQueryWidget': ... + def query(self) -> typing.List[QHelpSearchQuery]: ... + + +class QHelpSearchResult(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QHelpSearchResult') -> None: ... + @typing.overload + def __init__(self, url: QtCore.QUrl, title: str, snippet: str) -> None: ... + + def snippet(self) -> str: ... + def url(self) -> QtCore.QUrl: ... + def title(self) -> str: ... + + +class QHelpSearchQueryWidget(QtWidgets.QWidget): + + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + + def setSearchInput(self, searchInput: str) -> None: ... + def searchInput(self) -> str: ... + def setCompactMode(self, on: bool) -> None: ... + def isCompactMode(self) -> bool: ... + def search(self) -> None: ... + def collapseExtendedSearch(self) -> None: ... + def expandExtendedSearch(self) -> None: ... + def setQuery(self, queryList: typing.Iterable[QHelpSearchQuery]) -> None: ... + def query(self) -> typing.List[QHelpSearchQuery]: ... + + +class QHelpSearchResultWidget(QtWidgets.QWidget): + + def requestShowLink(self, url: QtCore.QUrl) -> None: ... + def linkAt(self, point: QtCore.QPoint) -> QtCore.QUrl: ... diff --git a/tools/stubs/PyQt5/QtLocation.pyi b/tools/stubs/PyQt5/QtLocation.pyi new file mode 100644 index 000000000..d36bd79b4 --- /dev/null +++ b/tools/stubs/PyQt5/QtLocation.pyi @@ -0,0 +1,1175 @@ +# The PEP 484 type hints stub file for the QtLocation module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtPositioning +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + + +class QGeoCodeReply(QtCore.QObject): + + class Error(int): ... + NoError = ... # type: 'QGeoCodeReply.Error' + EngineNotSetError = ... # type: 'QGeoCodeReply.Error' + CommunicationError = ... # type: 'QGeoCodeReply.Error' + ParseError = ... # type: 'QGeoCodeReply.Error' + UnsupportedOptionError = ... # type: 'QGeoCodeReply.Error' + CombinationError = ... # type: 'QGeoCodeReply.Error' + UnknownError = ... # type: 'QGeoCodeReply.Error' + + @typing.overload + def __init__(self, error: 'QGeoCodeReply.Error', errorString: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setOffset(self, offset: int) -> None: ... + def setLimit(self, limit: int) -> None: ... + def setLocations(self, locations: typing.Iterable[QtPositioning.QGeoLocation]) -> None: ... + def addLocation(self, location: QtPositioning.QGeoLocation) -> None: ... + def setViewport(self, viewport: QtPositioning.QGeoShape) -> None: ... + def setFinished(self, finished: bool) -> None: ... + def setError(self, error: 'QGeoCodeReply.Error', errorString: str) -> None: ... + def finished(self) -> None: ... + def aborted(self) -> None: ... + def abort(self) -> None: ... + def offset(self) -> int: ... + def limit(self) -> int: ... + def locations(self) -> typing.List[QtPositioning.QGeoLocation]: ... + def viewport(self) -> QtPositioning.QGeoShape: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QGeoCodeReply.Error': ... + @typing.overload + def error(self, error: 'QGeoCodeReply.Error', errorString: str = ...) -> None: ... + def isFinished(self) -> bool: ... + + +class QGeoCodingManager(QtCore.QObject): + + def error(self, reply: QGeoCodeReply, error: QGeoCodeReply.Error, errorString: str = ...) -> None: ... + def finished(self, reply: QGeoCodeReply) -> None: ... + def locale(self) -> QtCore.QLocale: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + def reverseGeocode(self, coordinate: QtPositioning.QGeoCoordinate, bounds: QtPositioning.QGeoShape = ...) -> QGeoCodeReply: ... + @typing.overload + def geocode(self, address: QtPositioning.QGeoAddress, bounds: QtPositioning.QGeoShape = ...) -> QGeoCodeReply: ... + @typing.overload + def geocode(self, searchString: str, limit: int = ..., offset: int = ..., bounds: QtPositioning.QGeoShape = ...) -> QGeoCodeReply: ... + def managerVersion(self) -> int: ... + def managerName(self) -> str: ... + + +class QGeoCodingManagerEngine(QtCore.QObject): + + def __init__(self, parameters: typing.Dict[str, typing.Any], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def error(self, reply: QGeoCodeReply, error: QGeoCodeReply.Error, errorString: str = ...) -> None: ... + def finished(self, reply: QGeoCodeReply) -> None: ... + def locale(self) -> QtCore.QLocale: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + def reverseGeocode(self, coordinate: QtPositioning.QGeoCoordinate, bounds: QtPositioning.QGeoShape) -> QGeoCodeReply: ... + @typing.overload + def geocode(self, address: QtPositioning.QGeoAddress, bounds: QtPositioning.QGeoShape) -> QGeoCodeReply: ... + @typing.overload + def geocode(self, address: str, limit: int, offset: int, bounds: QtPositioning.QGeoShape) -> QGeoCodeReply: ... + def managerVersion(self) -> int: ... + def managerName(self) -> str: ... + + +class QGeoManeuver(sip.simplewrapper): + + class InstructionDirection(int): ... + NoDirection = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionForward = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionBearRight = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionLightRight = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionRight = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionHardRight = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionUTurnRight = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionUTurnLeft = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionHardLeft = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionLeft = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionLightLeft = ... # type: 'QGeoManeuver.InstructionDirection' + DirectionBearLeft = ... # type: 'QGeoManeuver.InstructionDirection' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoManeuver') -> None: ... + + def extendedAttributes(self) -> typing.Dict[str, typing.Any]: ... + def setExtendedAttributes(self, extendedAttributes: typing.Dict[str, typing.Any]) -> None: ... + def waypoint(self) -> QtPositioning.QGeoCoordinate: ... + def setWaypoint(self, coordinate: QtPositioning.QGeoCoordinate) -> None: ... + def distanceToNextInstruction(self) -> float: ... + def setDistanceToNextInstruction(self, distance: float) -> None: ... + def timeToNextInstruction(self) -> int: ... + def setTimeToNextInstruction(self, secs: int) -> None: ... + def direction(self) -> 'QGeoManeuver.InstructionDirection': ... + def setDirection(self, direction: 'QGeoManeuver.InstructionDirection') -> None: ... + def instructionText(self) -> str: ... + def setInstructionText(self, instructionText: str) -> None: ... + def position(self) -> QtPositioning.QGeoCoordinate: ... + def setPosition(self, position: QtPositioning.QGeoCoordinate) -> None: ... + def isValid(self) -> bool: ... + + +class QGeoRoute(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoRoute') -> None: ... + + def extendedAttributes(self) -> typing.Dict[str, typing.Any]: ... + def setExtendedAttributes(self, extendedAttributes: typing.Dict[str, typing.Any]) -> None: ... + def routeLegs(self) -> typing.List['QGeoRouteLeg']: ... + def setRouteLegs(self, legs: typing.Iterable['QGeoRouteLeg']) -> None: ... + def path(self) -> typing.List[QtPositioning.QGeoCoordinate]: ... + def setPath(self, path: typing.Iterable[QtPositioning.QGeoCoordinate]) -> None: ... + def travelMode(self) -> 'QGeoRouteRequest.TravelMode': ... + def setTravelMode(self, mode: 'QGeoRouteRequest.TravelMode') -> None: ... + def distance(self) -> float: ... + def setDistance(self, distance: float) -> None: ... + def travelTime(self) -> int: ... + def setTravelTime(self, secs: int) -> None: ... + def firstRouteSegment(self) -> 'QGeoRouteSegment': ... + def setFirstRouteSegment(self, routeSegment: 'QGeoRouteSegment') -> None: ... + def bounds(self) -> QtPositioning.QGeoRectangle: ... + def setBounds(self, bounds: QtPositioning.QGeoRectangle) -> None: ... + def request(self) -> 'QGeoRouteRequest': ... + def setRequest(self, request: 'QGeoRouteRequest') -> None: ... + def routeId(self) -> str: ... + def setRouteId(self, id: str) -> None: ... + + +class QGeoRouteLeg(QGeoRoute): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoRouteLeg') -> None: ... + + def overallRoute(self) -> QGeoRoute: ... + def setOverallRoute(self, route: QGeoRoute) -> None: ... + def legIndex(self) -> int: ... + def setLegIndex(self, idx: int) -> None: ... + + +class QGeoRouteReply(QtCore.QObject): + + class Error(int): ... + NoError = ... # type: 'QGeoRouteReply.Error' + EngineNotSetError = ... # type: 'QGeoRouteReply.Error' + CommunicationError = ... # type: 'QGeoRouteReply.Error' + ParseError = ... # type: 'QGeoRouteReply.Error' + UnsupportedOptionError = ... # type: 'QGeoRouteReply.Error' + UnknownError = ... # type: 'QGeoRouteReply.Error' + + @typing.overload + def __init__(self, error: 'QGeoRouteReply.Error', errorString: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, request: 'QGeoRouteRequest', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def addRoutes(self, routes: typing.Iterable[QGeoRoute]) -> None: ... + def setRoutes(self, routes: typing.Iterable[QGeoRoute]) -> None: ... + def setFinished(self, finished: bool) -> None: ... + def setError(self, error: 'QGeoRouteReply.Error', errorString: str) -> None: ... + def finished(self) -> None: ... + def aborted(self) -> None: ... + def abort(self) -> None: ... + def routes(self) -> typing.List[QGeoRoute]: ... + def request(self) -> 'QGeoRouteRequest': ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QGeoRouteReply.Error': ... + @typing.overload + def error(self, error: 'QGeoRouteReply.Error', errorString: str = ...) -> None: ... + def isFinished(self) -> bool: ... + + +class QGeoRouteRequest(sip.simplewrapper): + + class ManeuverDetail(int): ... + NoManeuvers = ... # type: 'QGeoRouteRequest.ManeuverDetail' + BasicManeuvers = ... # type: 'QGeoRouteRequest.ManeuverDetail' + + class SegmentDetail(int): ... + NoSegmentData = ... # type: 'QGeoRouteRequest.SegmentDetail' + BasicSegmentData = ... # type: 'QGeoRouteRequest.SegmentDetail' + + class RouteOptimization(int): ... + ShortestRoute = ... # type: 'QGeoRouteRequest.RouteOptimization' + FastestRoute = ... # type: 'QGeoRouteRequest.RouteOptimization' + MostEconomicRoute = ... # type: 'QGeoRouteRequest.RouteOptimization' + MostScenicRoute = ... # type: 'QGeoRouteRequest.RouteOptimization' + + class FeatureWeight(int): ... + NeutralFeatureWeight = ... # type: 'QGeoRouteRequest.FeatureWeight' + PreferFeatureWeight = ... # type: 'QGeoRouteRequest.FeatureWeight' + RequireFeatureWeight = ... # type: 'QGeoRouteRequest.FeatureWeight' + AvoidFeatureWeight = ... # type: 'QGeoRouteRequest.FeatureWeight' + DisallowFeatureWeight = ... # type: 'QGeoRouteRequest.FeatureWeight' + + class FeatureType(int): ... + NoFeature = ... # type: 'QGeoRouteRequest.FeatureType' + TollFeature = ... # type: 'QGeoRouteRequest.FeatureType' + HighwayFeature = ... # type: 'QGeoRouteRequest.FeatureType' + PublicTransitFeature = ... # type: 'QGeoRouteRequest.FeatureType' + FerryFeature = ... # type: 'QGeoRouteRequest.FeatureType' + TunnelFeature = ... # type: 'QGeoRouteRequest.FeatureType' + DirtRoadFeature = ... # type: 'QGeoRouteRequest.FeatureType' + ParksFeature = ... # type: 'QGeoRouteRequest.FeatureType' + MotorPoolLaneFeature = ... # type: 'QGeoRouteRequest.FeatureType' + TrafficFeature = ... # type: 'QGeoRouteRequest.FeatureType' + + class TravelMode(int): ... + CarTravel = ... # type: 'QGeoRouteRequest.TravelMode' + PedestrianTravel = ... # type: 'QGeoRouteRequest.TravelMode' + BicycleTravel = ... # type: 'QGeoRouteRequest.TravelMode' + PublicTransitTravel = ... # type: 'QGeoRouteRequest.TravelMode' + TruckTravel = ... # type: 'QGeoRouteRequest.TravelMode' + + class TravelModes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoRouteRequest.TravelModes', 'QGeoRouteRequest.TravelMode']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoRouteRequest.TravelModes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoRouteRequest.TravelModes': ... + def __int__(self) -> int: ... + + class FeatureTypes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoRouteRequest.FeatureTypes', 'QGeoRouteRequest.FeatureType']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoRouteRequest.FeatureTypes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoRouteRequest.FeatureTypes': ... + def __int__(self) -> int: ... + + class FeatureWeights(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoRouteRequest.FeatureWeights', 'QGeoRouteRequest.FeatureWeight']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoRouteRequest.FeatureWeights') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoRouteRequest.FeatureWeights': ... + def __int__(self) -> int: ... + + class RouteOptimizations(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoRouteRequest.RouteOptimizations', 'QGeoRouteRequest.RouteOptimization']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoRouteRequest.RouteOptimizations') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoRouteRequest.RouteOptimizations': ... + def __int__(self) -> int: ... + + class SegmentDetails(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoRouteRequest.SegmentDetails', 'QGeoRouteRequest.SegmentDetail']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoRouteRequest.SegmentDetails') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoRouteRequest.SegmentDetails': ... + def __int__(self) -> int: ... + + class ManeuverDetails(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoRouteRequest.ManeuverDetails', 'QGeoRouteRequest.ManeuverDetail']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoRouteRequest.ManeuverDetails') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoRouteRequest.ManeuverDetails': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, waypoints: typing.Iterable[QtPositioning.QGeoCoordinate] = ...) -> None: ... + @typing.overload + def __init__(self, origin: QtPositioning.QGeoCoordinate, destination: QtPositioning.QGeoCoordinate) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoRouteRequest') -> None: ... + + def departureTime(self) -> QtCore.QDateTime: ... + def setDepartureTime(self, departureTime: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + def extraParameters(self) -> typing.Dict[str, typing.Any]: ... + def setExtraParameters(self, extraParameters: typing.Dict[str, typing.Any]) -> None: ... + def waypointsMetadata(self) -> typing.List[typing.Dict[str, typing.Any]]: ... + def setWaypointsMetadata(self, waypointMetadata: typing.Iterable[typing.Dict[str, typing.Any]]) -> None: ... + def maneuverDetail(self) -> 'QGeoRouteRequest.ManeuverDetail': ... + def setManeuverDetail(self, maneuverDetail: 'QGeoRouteRequest.ManeuverDetail') -> None: ... + def segmentDetail(self) -> 'QGeoRouteRequest.SegmentDetail': ... + def setSegmentDetail(self, segmentDetail: 'QGeoRouteRequest.SegmentDetail') -> None: ... + def routeOptimization(self) -> 'QGeoRouteRequest.RouteOptimizations': ... + def setRouteOptimization(self, optimization: typing.Union['QGeoRouteRequest.RouteOptimizations', 'QGeoRouteRequest.RouteOptimization']) -> None: ... + def featureTypes(self) -> typing.List['QGeoRouteRequest.FeatureType']: ... + def featureWeight(self, featureType: 'QGeoRouteRequest.FeatureType') -> 'QGeoRouteRequest.FeatureWeight': ... + def setFeatureWeight(self, featureType: 'QGeoRouteRequest.FeatureType', featureWeight: 'QGeoRouteRequest.FeatureWeight') -> None: ... + def travelModes(self) -> 'QGeoRouteRequest.TravelModes': ... + def setTravelModes(self, travelModes: typing.Union['QGeoRouteRequest.TravelModes', 'QGeoRouteRequest.TravelMode']) -> None: ... + def numberAlternativeRoutes(self) -> int: ... + def setNumberAlternativeRoutes(self, alternatives: int) -> None: ... + def excludeAreas(self) -> typing.List[QtPositioning.QGeoRectangle]: ... + def setExcludeAreas(self, areas: typing.Iterable[QtPositioning.QGeoRectangle]) -> None: ... + def waypoints(self) -> typing.List[QtPositioning.QGeoCoordinate]: ... + def setWaypoints(self, waypoints: typing.Iterable[QtPositioning.QGeoCoordinate]) -> None: ... + + +class QGeoRouteSegment(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoRouteSegment') -> None: ... + + def isLegLastSegment(self) -> bool: ... + def maneuver(self) -> QGeoManeuver: ... + def setManeuver(self, maneuver: QGeoManeuver) -> None: ... + def path(self) -> typing.List[QtPositioning.QGeoCoordinate]: ... + def setPath(self, path: typing.Iterable[QtPositioning.QGeoCoordinate]) -> None: ... + def distance(self) -> float: ... + def setDistance(self, distance: float) -> None: ... + def travelTime(self) -> int: ... + def setTravelTime(self, secs: int) -> None: ... + def nextRouteSegment(self) -> 'QGeoRouteSegment': ... + def setNextRouteSegment(self, routeSegment: 'QGeoRouteSegment') -> None: ... + def isValid(self) -> bool: ... + + +class QGeoRoutingManager(QtCore.QObject): + + def error(self, reply: QGeoRouteReply, error: QGeoRouteReply.Error, errorString: str = ...) -> None: ... + def finished(self, reply: QGeoRouteReply) -> None: ... + def measurementSystem(self) -> QtCore.QLocale.MeasurementSystem: ... + def setMeasurementSystem(self, system: QtCore.QLocale.MeasurementSystem) -> None: ... + def locale(self) -> QtCore.QLocale: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + def supportedManeuverDetails(self) -> QGeoRouteRequest.ManeuverDetails: ... + def supportedSegmentDetails(self) -> QGeoRouteRequest.SegmentDetails: ... + def supportedRouteOptimizations(self) -> QGeoRouteRequest.RouteOptimizations: ... + def supportedFeatureWeights(self) -> QGeoRouteRequest.FeatureWeights: ... + def supportedFeatureTypes(self) -> QGeoRouteRequest.FeatureTypes: ... + def supportedTravelModes(self) -> QGeoRouteRequest.TravelModes: ... + def updateRoute(self, route: QGeoRoute, position: QtPositioning.QGeoCoordinate) -> QGeoRouteReply: ... + def calculateRoute(self, request: QGeoRouteRequest) -> QGeoRouteReply: ... + def managerVersion(self) -> int: ... + def managerName(self) -> str: ... + + +class QGeoRoutingManagerEngine(QtCore.QObject): + + def __init__(self, parameters: typing.Dict[str, typing.Any], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setSupportedManeuverDetails(self, maneuverDetails: typing.Union[QGeoRouteRequest.ManeuverDetails, QGeoRouteRequest.ManeuverDetail]) -> None: ... + def setSupportedSegmentDetails(self, segmentDetails: typing.Union[QGeoRouteRequest.SegmentDetails, QGeoRouteRequest.SegmentDetail]) -> None: ... + def setSupportedRouteOptimizations(self, optimizations: typing.Union[QGeoRouteRequest.RouteOptimizations, QGeoRouteRequest.RouteOptimization]) -> None: ... + def setSupportedFeatureWeights(self, featureWeights: typing.Union[QGeoRouteRequest.FeatureWeights, QGeoRouteRequest.FeatureWeight]) -> None: ... + def setSupportedFeatureTypes(self, featureTypes: typing.Union[QGeoRouteRequest.FeatureTypes, QGeoRouteRequest.FeatureType]) -> None: ... + def setSupportedTravelModes(self, travelModes: typing.Union[QGeoRouteRequest.TravelModes, QGeoRouteRequest.TravelMode]) -> None: ... + def error(self, reply: QGeoRouteReply, error: QGeoRouteReply.Error, errorString: str = ...) -> None: ... + def finished(self, reply: QGeoRouteReply) -> None: ... + def measurementSystem(self) -> QtCore.QLocale.MeasurementSystem: ... + def setMeasurementSystem(self, system: QtCore.QLocale.MeasurementSystem) -> None: ... + def locale(self) -> QtCore.QLocale: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + def supportedManeuverDetails(self) -> QGeoRouteRequest.ManeuverDetails: ... + def supportedSegmentDetails(self) -> QGeoRouteRequest.SegmentDetails: ... + def supportedRouteOptimizations(self) -> QGeoRouteRequest.RouteOptimizations: ... + def supportedFeatureWeights(self) -> QGeoRouteRequest.FeatureWeights: ... + def supportedFeatureTypes(self) -> QGeoRouteRequest.FeatureTypes: ... + def supportedTravelModes(self) -> QGeoRouteRequest.TravelModes: ... + def updateRoute(self, route: QGeoRoute, position: QtPositioning.QGeoCoordinate) -> QGeoRouteReply: ... + def calculateRoute(self, request: QGeoRouteRequest) -> QGeoRouteReply: ... + def managerVersion(self) -> int: ... + def managerName(self) -> str: ... + + +class QNavigationManager(sip.simplewrapper): ... + + +class QGeoServiceProvider(QtCore.QObject): + + class NavigationFeature(int): ... + NoNavigationFeatures = ... # type: 'QGeoServiceProvider.NavigationFeature' + OnlineNavigationFeature = ... # type: 'QGeoServiceProvider.NavigationFeature' + OfflineNavigationFeature = ... # type: 'QGeoServiceProvider.NavigationFeature' + AnyNavigationFeatures = ... # type: 'QGeoServiceProvider.NavigationFeature' + + class PlacesFeature(int): ... + NoPlacesFeatures = ... # type: 'QGeoServiceProvider.PlacesFeature' + OnlinePlacesFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + OfflinePlacesFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + SavePlaceFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + RemovePlaceFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + SaveCategoryFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + RemoveCategoryFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + PlaceRecommendationsFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + SearchSuggestionsFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + LocalizedPlacesFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + NotificationsFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + PlaceMatchingFeature = ... # type: 'QGeoServiceProvider.PlacesFeature' + AnyPlacesFeatures = ... # type: 'QGeoServiceProvider.PlacesFeature' + + class MappingFeature(int): ... + NoMappingFeatures = ... # type: 'QGeoServiceProvider.MappingFeature' + OnlineMappingFeature = ... # type: 'QGeoServiceProvider.MappingFeature' + OfflineMappingFeature = ... # type: 'QGeoServiceProvider.MappingFeature' + LocalizedMappingFeature = ... # type: 'QGeoServiceProvider.MappingFeature' + AnyMappingFeatures = ... # type: 'QGeoServiceProvider.MappingFeature' + + class GeocodingFeature(int): ... + NoGeocodingFeatures = ... # type: 'QGeoServiceProvider.GeocodingFeature' + OnlineGeocodingFeature = ... # type: 'QGeoServiceProvider.GeocodingFeature' + OfflineGeocodingFeature = ... # type: 'QGeoServiceProvider.GeocodingFeature' + ReverseGeocodingFeature = ... # type: 'QGeoServiceProvider.GeocodingFeature' + LocalizedGeocodingFeature = ... # type: 'QGeoServiceProvider.GeocodingFeature' + AnyGeocodingFeatures = ... # type: 'QGeoServiceProvider.GeocodingFeature' + + class RoutingFeature(int): ... + NoRoutingFeatures = ... # type: 'QGeoServiceProvider.RoutingFeature' + OnlineRoutingFeature = ... # type: 'QGeoServiceProvider.RoutingFeature' + OfflineRoutingFeature = ... # type: 'QGeoServiceProvider.RoutingFeature' + LocalizedRoutingFeature = ... # type: 'QGeoServiceProvider.RoutingFeature' + RouteUpdatesFeature = ... # type: 'QGeoServiceProvider.RoutingFeature' + AlternativeRoutesFeature = ... # type: 'QGeoServiceProvider.RoutingFeature' + ExcludeAreasRoutingFeature = ... # type: 'QGeoServiceProvider.RoutingFeature' + AnyRoutingFeatures = ... # type: 'QGeoServiceProvider.RoutingFeature' + + class Error(int): ... + NoError = ... # type: 'QGeoServiceProvider.Error' + NotSupportedError = ... # type: 'QGeoServiceProvider.Error' + UnknownParameterError = ... # type: 'QGeoServiceProvider.Error' + MissingRequiredParameterError = ... # type: 'QGeoServiceProvider.Error' + ConnectionError = ... # type: 'QGeoServiceProvider.Error' + LoaderError = ... # type: 'QGeoServiceProvider.Error' + + class RoutingFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoServiceProvider.RoutingFeatures', 'QGeoServiceProvider.RoutingFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoServiceProvider.RoutingFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoServiceProvider.RoutingFeatures': ... + def __int__(self) -> int: ... + + class GeocodingFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoServiceProvider.GeocodingFeatures', 'QGeoServiceProvider.GeocodingFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoServiceProvider.GeocodingFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoServiceProvider.GeocodingFeatures': ... + def __int__(self) -> int: ... + + class MappingFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoServiceProvider.MappingFeatures', 'QGeoServiceProvider.MappingFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoServiceProvider.MappingFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoServiceProvider.MappingFeatures': ... + def __int__(self) -> int: ... + + class PlacesFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoServiceProvider.PlacesFeatures', 'QGeoServiceProvider.PlacesFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoServiceProvider.PlacesFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoServiceProvider.PlacesFeatures': ... + def __int__(self) -> int: ... + + class NavigationFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoServiceProvider.NavigationFeatures', 'QGeoServiceProvider.NavigationFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoServiceProvider.NavigationFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoServiceProvider.NavigationFeatures': ... + def __int__(self) -> int: ... + + def __init__(self, providerName: str, parameters: typing.Dict[str, typing.Any] = ..., allowExperimental: bool = ...) -> None: ... + + def navigationErrorString(self) -> str: ... + def navigationError(self) -> 'QGeoServiceProvider.Error': ... + def placesErrorString(self) -> str: ... + def placesError(self) -> 'QGeoServiceProvider.Error': ... + def routingErrorString(self) -> str: ... + def routingError(self) -> 'QGeoServiceProvider.Error': ... + def geocodingErrorString(self) -> str: ... + def geocodingError(self) -> 'QGeoServiceProvider.Error': ... + def mappingErrorString(self) -> str: ... + def mappingError(self) -> 'QGeoServiceProvider.Error': ... + def navigationManager(self) -> QNavigationManager: ... + def navigationFeatures(self) -> 'QGeoServiceProvider.NavigationFeatures': ... + def setAllowExperimental(self, allow: bool) -> None: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + def setParameters(self, parameters: typing.Dict[str, typing.Any]) -> None: ... + def errorString(self) -> str: ... + def error(self) -> 'QGeoServiceProvider.Error': ... + def placeManager(self) -> 'QPlaceManager': ... + def routingManager(self) -> QGeoRoutingManager: ... + def geocodingManager(self) -> QGeoCodingManager: ... + def placesFeatures(self) -> 'QGeoServiceProvider.PlacesFeatures': ... + def mappingFeatures(self) -> 'QGeoServiceProvider.MappingFeatures': ... + def geocodingFeatures(self) -> 'QGeoServiceProvider.GeocodingFeatures': ... + def routingFeatures(self) -> 'QGeoServiceProvider.RoutingFeatures': ... + @staticmethod + def availableServiceProviders() -> typing.List[str]: ... + + +class QLocation(sip.simplewrapper): + + class Visibility(int): ... + UnspecifiedVisibility = ... # type: 'QLocation.Visibility' + DeviceVisibility = ... # type: 'QLocation.Visibility' + PrivateVisibility = ... # type: 'QLocation.Visibility' + PublicVisibility = ... # type: 'QLocation.Visibility' + + class VisibilityScope(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QLocation.VisibilityScope', 'QLocation.Visibility']) -> None: ... + @typing.overload + def __init__(self, a0: 'QLocation.VisibilityScope') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QLocation.VisibilityScope': ... + def __int__(self) -> int: ... + + +class QPlace(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlace') -> None: ... + + def isEmpty(self) -> bool: ... + def setVisibility(self, visibility: QLocation.Visibility) -> None: ... + def visibility(self) -> QLocation.Visibility: ... + def removeContactDetails(self, contactType: str) -> None: ... + def appendContactDetail(self, contactType: str, detail: 'QPlaceContactDetail') -> None: ... + def setContactDetails(self, contactType: str, details: typing.Iterable['QPlaceContactDetail']) -> None: ... + def contactDetails(self, contactType: str) -> typing.List['QPlaceContactDetail']: ... + def contactTypes(self) -> typing.List[str]: ... + def removeExtendedAttribute(self, attributeType: str) -> None: ... + def setExtendedAttribute(self, attributeType: str, attribute: 'QPlaceAttribute') -> None: ... + def extendedAttribute(self, attributeType: str) -> 'QPlaceAttribute': ... + def extendedAttributeTypes(self) -> typing.List[str]: ... + def setDetailsFetched(self, fetched: bool) -> None: ... + def detailsFetched(self) -> bool: ... + def primaryWebsite(self) -> QtCore.QUrl: ... + def primaryEmail(self) -> str: ... + def primaryFax(self) -> str: ... + def primaryPhone(self) -> str: ... + def setPlaceId(self, identifier: str) -> None: ... + def placeId(self) -> str: ... + def setName(self, name: str) -> None: ... + def name(self) -> str: ... + def setTotalContentCount(self, type: 'QPlaceContent.Type', total: int) -> None: ... + def totalContentCount(self, type: 'QPlaceContent.Type') -> int: ... + def insertContent(self, type: 'QPlaceContent.Type', content: typing.Dict[int, 'QPlaceContent']) -> None: ... + def setContent(self, type: 'QPlaceContent.Type', content: typing.Dict[int, 'QPlaceContent']) -> None: ... + def content(self, type: 'QPlaceContent.Type') -> typing.Dict[int, 'QPlaceContent']: ... + def setIcon(self, icon: 'QPlaceIcon') -> None: ... + def icon(self) -> 'QPlaceIcon': ... + def setAttribution(self, attribution: str) -> None: ... + def attribution(self) -> str: ... + def setSupplier(self, supplier: 'QPlaceSupplier') -> None: ... + def supplier(self) -> 'QPlaceSupplier': ... + def setRatings(self, ratings: 'QPlaceRatings') -> None: ... + def ratings(self) -> 'QPlaceRatings': ... + def setLocation(self, location: QtPositioning.QGeoLocation) -> None: ... + def location(self) -> QtPositioning.QGeoLocation: ... + def setCategories(self, categories: typing.Iterable['QPlaceCategory']) -> None: ... + def setCategory(self, category: 'QPlaceCategory') -> None: ... + def categories(self) -> typing.List['QPlaceCategory']: ... + + +class QPlaceAttribute(sip.simplewrapper): + + OpeningHours = ... # type: str + Payment = ... # type: str + Provider = ... # type: str + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceAttribute') -> None: ... + + def isEmpty(self) -> bool: ... + def setText(self, text: str) -> None: ... + def text(self) -> str: ... + def setLabel(self, label: str) -> None: ... + def label(self) -> str: ... + + +class QPlaceCategory(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceCategory') -> None: ... + + def isEmpty(self) -> bool: ... + def setIcon(self, icon: 'QPlaceIcon') -> None: ... + def icon(self) -> 'QPlaceIcon': ... + def setVisibility(self, visibility: QLocation.Visibility) -> None: ... + def visibility(self) -> QLocation.Visibility: ... + def setName(self, name: str) -> None: ... + def name(self) -> str: ... + def setCategoryId(self, identifier: str) -> None: ... + def categoryId(self) -> str: ... + + +class QPlaceContactDetail(sip.simplewrapper): + + Email = ... # type: str + Fax = ... # type: str + Phone = ... # type: str + Website = ... # type: str + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceContactDetail') -> None: ... + + def clear(self) -> None: ... + def setValue(self, value: str) -> None: ... + def value(self) -> str: ... + def setLabel(self, label: str) -> None: ... + def label(self) -> str: ... + + +class QPlaceContent(sip.simplewrapper): + + class Type(int): ... + NoType = ... # type: 'QPlaceContent.Type' + ImageType = ... # type: 'QPlaceContent.Type' + ReviewType = ... # type: 'QPlaceContent.Type' + EditorialType = ... # type: 'QPlaceContent.Type' + CustomType = ... # type: 'QPlaceContent.Type' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceContent') -> None: ... + + def setAttribution(self, attribution: str) -> None: ... + def attribution(self) -> str: ... + def setUser(self, user: 'QPlaceUser') -> None: ... + def user(self) -> 'QPlaceUser': ... + def setSupplier(self, supplier: 'QPlaceSupplier') -> None: ... + def supplier(self) -> 'QPlaceSupplier': ... + def type(self) -> 'QPlaceContent.Type': ... + + +class QPlaceReply(QtCore.QObject): + + class Type(int): ... + Reply = ... # type: 'QPlaceReply.Type' + DetailsReply = ... # type: 'QPlaceReply.Type' + SearchReply = ... # type: 'QPlaceReply.Type' + SearchSuggestionReply = ... # type: 'QPlaceReply.Type' + ContentReply = ... # type: 'QPlaceReply.Type' + IdReply = ... # type: 'QPlaceReply.Type' + MatchReply = ... # type: 'QPlaceReply.Type' + + class Error(int): ... + NoError = ... # type: 'QPlaceReply.Error' + PlaceDoesNotExistError = ... # type: 'QPlaceReply.Error' + CategoryDoesNotExistError = ... # type: 'QPlaceReply.Error' + CommunicationError = ... # type: 'QPlaceReply.Error' + ParseError = ... # type: 'QPlaceReply.Error' + PermissionsError = ... # type: 'QPlaceReply.Error' + UnsupportedError = ... # type: 'QPlaceReply.Error' + BadArgumentError = ... # type: 'QPlaceReply.Error' + CancelError = ... # type: 'QPlaceReply.Error' + UnknownError = ... # type: 'QPlaceReply.Error' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setError(self, error: 'QPlaceReply.Error', errorString: str) -> None: ... + def setFinished(self, finished: bool) -> None: ... + def contentUpdated(self) -> None: ... + def finished(self) -> None: ... + def aborted(self) -> None: ... + def abort(self) -> None: ... + @typing.overload + def error(self) -> 'QPlaceReply.Error': ... + @typing.overload + def error(self, error: 'QPlaceReply.Error', errorString: str = ...) -> None: ... + def errorString(self) -> str: ... + def type(self) -> 'QPlaceReply.Type': ... + def isFinished(self) -> bool: ... + + +class QPlaceContentReply(QPlaceReply): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setNextPageRequest(self, next: 'QPlaceContentRequest') -> None: ... + def setPreviousPageRequest(self, previous: 'QPlaceContentRequest') -> None: ... + def setRequest(self, request: 'QPlaceContentRequest') -> None: ... + def setTotalCount(self, total: int) -> None: ... + def setContent(self, content: typing.Dict[int, QPlaceContent]) -> None: ... + def nextPageRequest(self) -> 'QPlaceContentRequest': ... + def previousPageRequest(self) -> 'QPlaceContentRequest': ... + def request(self) -> 'QPlaceContentRequest': ... + def totalCount(self) -> int: ... + def content(self) -> typing.Dict[int, QPlaceContent]: ... + def type(self) -> QPlaceReply.Type: ... + + +class QPlaceContentRequest(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceContentRequest') -> None: ... + + def clear(self) -> None: ... + def setLimit(self, limit: int) -> None: ... + def limit(self) -> int: ... + def setContentContext(self, context: typing.Any) -> None: ... + def contentContext(self) -> typing.Any: ... + def setPlaceId(self, identifier: str) -> None: ... + def placeId(self) -> str: ... + def setContentType(self, type: QPlaceContent.Type) -> None: ... + def contentType(self) -> QPlaceContent.Type: ... + + +class QPlaceDetailsReply(QPlaceReply): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setPlace(self, place: QPlace) -> None: ... + def place(self) -> QPlace: ... + def type(self) -> QPlaceReply.Type: ... + + +class QPlaceEditorial(QPlaceContent): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: QPlaceContent) -> None: ... + @typing.overload + def __init__(self, a0: 'QPlaceEditorial') -> None: ... + + def setLanguage(self, data: str) -> None: ... + def language(self) -> str: ... + def setTitle(self, data: str) -> None: ... + def title(self) -> str: ... + def setText(self, text: str) -> None: ... + def text(self) -> str: ... + + +class QPlaceIcon(sip.simplewrapper): + + SingleUrl = ... # type: str + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceIcon') -> None: ... + + def isEmpty(self) -> bool: ... + def setParameters(self, parameters: typing.Dict[str, typing.Any]) -> None: ... + def parameters(self) -> typing.Dict[str, typing.Any]: ... + def setManager(self, manager: 'QPlaceManager') -> None: ... + def manager(self) -> 'QPlaceManager': ... + def url(self, size: QtCore.QSize = ...) -> QtCore.QUrl: ... + + +class QPlaceIdReply(QPlaceReply): + + class OperationType(int): ... + SavePlace = ... # type: 'QPlaceIdReply.OperationType' + SaveCategory = ... # type: 'QPlaceIdReply.OperationType' + RemovePlace = ... # type: 'QPlaceIdReply.OperationType' + RemoveCategory = ... # type: 'QPlaceIdReply.OperationType' + + def __init__(self, operationType: 'QPlaceIdReply.OperationType', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setId(self, identifier: str) -> None: ... + def id(self) -> str: ... + def operationType(self) -> 'QPlaceIdReply.OperationType': ... + def type(self) -> QPlaceReply.Type: ... + + +class QPlaceImage(QPlaceContent): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: QPlaceContent) -> None: ... + @typing.overload + def __init__(self, a0: 'QPlaceImage') -> None: ... + + def setMimeType(self, data: str) -> None: ... + def mimeType(self) -> str: ... + def setImageId(self, identifier: str) -> None: ... + def imageId(self) -> str: ... + def setUrl(self, url: QtCore.QUrl) -> None: ... + def url(self) -> QtCore.QUrl: ... + + +class QPlaceManager(QtCore.QObject): + + def dataChanged(self) -> None: ... + def categoryRemoved(self, categoryId: str, parentId: str) -> None: ... + def categoryUpdated(self, category: QPlaceCategory, parentId: str) -> None: ... + def categoryAdded(self, category: QPlaceCategory, parentId: str) -> None: ... + def placeRemoved(self, placeId: str) -> None: ... + def placeUpdated(self, placeId: str) -> None: ... + def placeAdded(self, placeId: str) -> None: ... + def error(self, a0: QPlaceReply, error: QPlaceReply.Error, errorString: str = ...) -> None: ... + def finished(self, reply: QPlaceReply) -> None: ... + def matchingPlaces(self, request: 'QPlaceMatchRequest') -> 'QPlaceMatchReply': ... + def compatiblePlace(self, place: QPlace) -> QPlace: ... + def setLocales(self, locale: typing.Iterable[QtCore.QLocale]) -> None: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + def locales(self) -> typing.List[QtCore.QLocale]: ... + def childCategories(self, parentId: str = ...) -> typing.List[QPlaceCategory]: ... + def category(self, categoryId: str) -> QPlaceCategory: ... + def childCategoryIds(self, parentId: str = ...) -> typing.List[str]: ... + def parentCategoryId(self, categoryId: str) -> str: ... + def initializeCategories(self) -> QPlaceReply: ... + def removeCategory(self, categoryId: str) -> QPlaceIdReply: ... + def saveCategory(self, category: QPlaceCategory, parentId: str = ...) -> QPlaceIdReply: ... + def removePlace(self, placeId: str) -> QPlaceIdReply: ... + def savePlace(self, place: QPlace) -> QPlaceIdReply: ... + def searchSuggestions(self, request: 'QPlaceSearchRequest') -> 'QPlaceSearchSuggestionReply': ... + def search(self, query: 'QPlaceSearchRequest') -> 'QPlaceSearchReply': ... + def getPlaceContent(self, request: QPlaceContentRequest) -> QPlaceContentReply: ... + def getPlaceDetails(self, placeId: str) -> QPlaceDetailsReply: ... + def managerVersion(self) -> int: ... + def managerName(self) -> str: ... + + +class QPlaceManagerEngine(QtCore.QObject): + + def __init__(self, parameters: typing.Dict[str, typing.Any], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def manager(self) -> QPlaceManager: ... + def dataChanged(self) -> None: ... + def categoryRemoved(self, categoryId: str, parentCategoryId: str) -> None: ... + def categoryUpdated(self, category: QPlaceCategory, parentCategoryId: str) -> None: ... + def categoryAdded(self, category: QPlaceCategory, parentCategoryId: str) -> None: ... + def placeRemoved(self, placeId: str) -> None: ... + def placeUpdated(self, placeId: str) -> None: ... + def placeAdded(self, placeId: str) -> None: ... + def error(self, a0: QPlaceReply, error: QPlaceReply.Error, errorString: str = ...) -> None: ... + def finished(self, reply: QPlaceReply) -> None: ... + def matchingPlaces(self, request: 'QPlaceMatchRequest') -> 'QPlaceMatchReply': ... + def compatiblePlace(self, original: QPlace) -> QPlace: ... + def constructIconUrl(self, icon: QPlaceIcon, size: QtCore.QSize) -> QtCore.QUrl: ... + def setLocales(self, locales: typing.Iterable[QtCore.QLocale]) -> None: ... + def locales(self) -> typing.List[QtCore.QLocale]: ... + def childCategories(self, parentId: str) -> typing.List[QPlaceCategory]: ... + def category(self, categoryId: str) -> QPlaceCategory: ... + def childCategoryIds(self, categoryId: str) -> typing.List[str]: ... + def parentCategoryId(self, categoryId: str) -> str: ... + def initializeCategories(self) -> QPlaceReply: ... + def removeCategory(self, categoryId: str) -> QPlaceIdReply: ... + def saveCategory(self, category: QPlaceCategory, parentId: str) -> QPlaceIdReply: ... + def removePlace(self, placeId: str) -> QPlaceIdReply: ... + def savePlace(self, place: QPlace) -> QPlaceIdReply: ... + def searchSuggestions(self, request: 'QPlaceSearchRequest') -> 'QPlaceSearchSuggestionReply': ... + def search(self, request: 'QPlaceSearchRequest') -> 'QPlaceSearchReply': ... + def getPlaceContent(self, request: QPlaceContentRequest) -> QPlaceContentReply: ... + def getPlaceDetails(self, placeId: str) -> QPlaceDetailsReply: ... + def managerVersion(self) -> int: ... + def managerName(self) -> str: ... + + +class QPlaceMatchReply(QPlaceReply): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setRequest(self, request: 'QPlaceMatchRequest') -> None: ... + def setPlaces(self, results: typing.Iterable[QPlace]) -> None: ... + def request(self) -> 'QPlaceMatchRequest': ... + def places(self) -> typing.List[QPlace]: ... + def type(self) -> QPlaceReply.Type: ... + + +class QPlaceMatchRequest(sip.simplewrapper): + + AlternativeId = ... # type: str + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceMatchRequest') -> None: ... + + def clear(self) -> None: ... + def setParameters(self, parameters: typing.Dict[str, typing.Any]) -> None: ... + def parameters(self) -> typing.Dict[str, typing.Any]: ... + def setResults(self, results: typing.Iterable['QPlaceSearchResult']) -> None: ... + def setPlaces(self, places: typing.Iterable[QPlace]) -> None: ... + def places(self) -> typing.List[QPlace]: ... + + +class QPlaceSearchResult(sip.simplewrapper): + + class SearchResultType(int): ... + UnknownSearchResult = ... # type: 'QPlaceSearchResult.SearchResultType' + PlaceResult = ... # type: 'QPlaceSearchResult.SearchResultType' + ProposedSearchResult = ... # type: 'QPlaceSearchResult.SearchResultType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceSearchResult') -> None: ... + + def setIcon(self, icon: QPlaceIcon) -> None: ... + def icon(self) -> QPlaceIcon: ... + def setTitle(self, title: str) -> None: ... + def title(self) -> str: ... + def type(self) -> 'QPlaceSearchResult.SearchResultType': ... + + +class QPlaceProposedSearchResult(QPlaceSearchResult): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: QPlaceSearchResult) -> None: ... + @typing.overload + def __init__(self, a0: 'QPlaceProposedSearchResult') -> None: ... + + def setSearchRequest(self, request: 'QPlaceSearchRequest') -> None: ... + def searchRequest(self) -> 'QPlaceSearchRequest': ... + + +class QPlaceRatings(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceRatings') -> None: ... + + def isEmpty(self) -> bool: ... + def setMaximum(self, max: float) -> None: ... + def maximum(self) -> float: ... + def setCount(self, count: int) -> None: ... + def count(self) -> int: ... + def setAverage(self, average: float) -> None: ... + def average(self) -> float: ... + + +class QPlaceResult(QPlaceSearchResult): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: QPlaceSearchResult) -> None: ... + @typing.overload + def __init__(self, a0: 'QPlaceResult') -> None: ... + + def setSponsored(self, sponsored: bool) -> None: ... + def isSponsored(self) -> bool: ... + def setPlace(self, place: QPlace) -> None: ... + def place(self) -> QPlace: ... + def setDistance(self, distance: float) -> None: ... + def distance(self) -> float: ... + + +class QPlaceReview(QPlaceContent): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: QPlaceContent) -> None: ... + @typing.overload + def __init__(self, a0: 'QPlaceReview') -> None: ... + + def setTitle(self, data: str) -> None: ... + def title(self) -> str: ... + def setReviewId(self, identifier: str) -> None: ... + def reviewId(self) -> str: ... + def setRating(self, data: float) -> None: ... + def rating(self) -> float: ... + def setLanguage(self, data: str) -> None: ... + def language(self) -> str: ... + def setText(self, text: str) -> None: ... + def text(self) -> str: ... + def setDateTime(self, dt: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + def dateTime(self) -> QtCore.QDateTime: ... + + +class QPlaceSearchReply(QPlaceReply): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setNextPageRequest(self, next: 'QPlaceSearchRequest') -> None: ... + def setPreviousPageRequest(self, previous: 'QPlaceSearchRequest') -> None: ... + def setRequest(self, request: 'QPlaceSearchRequest') -> None: ... + def setResults(self, results: typing.Iterable[QPlaceSearchResult]) -> None: ... + def nextPageRequest(self) -> 'QPlaceSearchRequest': ... + def previousPageRequest(self) -> 'QPlaceSearchRequest': ... + def request(self) -> 'QPlaceSearchRequest': ... + def results(self) -> typing.List[QPlaceSearchResult]: ... + def type(self) -> QPlaceReply.Type: ... + + +class QPlaceSearchRequest(sip.simplewrapper): + + class RelevanceHint(int): ... + UnspecifiedHint = ... # type: 'QPlaceSearchRequest.RelevanceHint' + DistanceHint = ... # type: 'QPlaceSearchRequest.RelevanceHint' + LexicalPlaceNameHint = ... # type: 'QPlaceSearchRequest.RelevanceHint' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceSearchRequest') -> None: ... + + def clear(self) -> None: ... + def setLimit(self, limit: int) -> None: ... + def limit(self) -> int: ... + def setRelevanceHint(self, hint: 'QPlaceSearchRequest.RelevanceHint') -> None: ... + def relevanceHint(self) -> 'QPlaceSearchRequest.RelevanceHint': ... + def setVisibilityScope(self, visibilityScopes: typing.Union[QLocation.VisibilityScope, QLocation.Visibility]) -> None: ... + def visibilityScope(self) -> QLocation.VisibilityScope: ... + def setSearchContext(self, context: typing.Any) -> None: ... + def searchContext(self) -> typing.Any: ... + def setRecommendationId(self, recommendationId: str) -> None: ... + def recommendationId(self) -> str: ... + def setSearchArea(self, area: QtPositioning.QGeoShape) -> None: ... + def searchArea(self) -> QtPositioning.QGeoShape: ... + def setCategories(self, categories: typing.Iterable[QPlaceCategory]) -> None: ... + def setCategory(self, category: QPlaceCategory) -> None: ... + def categories(self) -> typing.List[QPlaceCategory]: ... + def setSearchTerm(self, term: str) -> None: ... + def searchTerm(self) -> str: ... + + +class QPlaceSearchSuggestionReply(QPlaceReply): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setSuggestions(self, suggestions: typing.Iterable[str]) -> None: ... + def type(self) -> QPlaceReply.Type: ... + def suggestions(self) -> typing.List[str]: ... + + +class QPlaceSupplier(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceSupplier') -> None: ... + + def isEmpty(self) -> bool: ... + def setIcon(self, icon: QPlaceIcon) -> None: ... + def icon(self) -> QPlaceIcon: ... + def setUrl(self, data: QtCore.QUrl) -> None: ... + def url(self) -> QtCore.QUrl: ... + def setSupplierId(self, identifier: str) -> None: ... + def supplierId(self) -> str: ... + def setName(self, data: str) -> None: ... + def name(self) -> str: ... + + +class QPlaceUser(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPlaceUser') -> None: ... + + def setName(self, name: str) -> None: ... + def name(self) -> str: ... + def setUserId(self, identifier: str) -> None: ... + def userId(self) -> str: ... diff --git a/tools/stubs/PyQt5/QtMacExtras.pyi b/tools/stubs/PyQt5/QtMacExtras.pyi new file mode 100644 index 000000000..46d25cd86 --- /dev/null +++ b/tools/stubs/PyQt5/QtMacExtras.pyi @@ -0,0 +1,119 @@ +# The PEP 484 type hints stub file for the QtMacExtras module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtGui +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + +# Convenient aliases for complicated OpenGL types. +PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QMacPasteboardMime(sip.simplewrapper): + + class QMacPasteboardMimeType(int): ... + MIME_DND = ... # type: 'QMacPasteboardMime.QMacPasteboardMimeType' + MIME_CLIP = ... # type: 'QMacPasteboardMime.QMacPasteboardMimeType' + MIME_QT_CONVERTOR = ... # type: 'QMacPasteboardMime.QMacPasteboardMimeType' + MIME_QT3_CONVERTOR = ... # type: 'QMacPasteboardMime.QMacPasteboardMimeType' + MIME_ALL = ... # type: 'QMacPasteboardMime.QMacPasteboardMimeType' + + @typing.overload + def __init__(self, t: int) -> None: ... + @typing.overload + def __init__(self, a0: 'QMacPasteboardMime') -> None: ... + + def count(self, mimeData: QtCore.QMimeData) -> int: ... + def convertFromMime(self, mime: str, data: typing.Any, flav: str) -> typing.List[QtCore.QByteArray]: ... + def convertToMime(self, mime: str, data: typing.Iterable[typing.Union[QtCore.QByteArray, bytes, bytearray]], flav: str) -> typing.Any: ... + def flavorFor(self, mime: str) -> str: ... + def mimeFor(self, flav: str) -> str: ... + def canConvert(self, mime: str, flav: str) -> bool: ... + def convertorName(self) -> str: ... + + +class NSToolbar(sip.simplewrapper): ... + + +class QMacToolBar(QtCore.QObject): + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, identifier: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def nativeToolbar(self) -> NSToolbar: ... + def detachFromWindow(self) -> None: ... + def attachToWindow(self, window: QtGui.QWindow) -> None: ... + def allowedItems(self) -> typing.List['QMacToolBarItem']: ... + def setAllowedItems(self, allowedItems: typing.Iterable['QMacToolBarItem']) -> None: ... + def items(self) -> typing.List['QMacToolBarItem']: ... + def setItems(self, items: typing.Iterable['QMacToolBarItem']) -> None: ... + def addSeparator(self) -> None: ... + def addAllowedItem(self, icon: QtGui.QIcon, text: str) -> 'QMacToolBarItem': ... + def addItem(self, icon: QtGui.QIcon, text: str) -> 'QMacToolBarItem': ... + + +class NSToolbarItem(sip.simplewrapper): ... + + +class QMacToolBarItem(QtCore.QObject): + + class StandardItem(int): ... + NoStandardItem = ... # type: 'QMacToolBarItem.StandardItem' + Space = ... # type: 'QMacToolBarItem.StandardItem' + FlexibleSpace = ... # type: 'QMacToolBarItem.StandardItem' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def activated(self) -> None: ... + def nativeToolBarItem(self) -> NSToolbarItem: ... + def setIcon(self, icon: QtGui.QIcon) -> None: ... + def icon(self) -> QtGui.QIcon: ... + def setText(self, text: str) -> None: ... + def text(self) -> str: ... + def setStandardItem(self, standardItem: 'QMacToolBarItem.StandardItem') -> None: ... + def standardItem(self) -> 'QMacToolBarItem.StandardItem': ... + def setSelectable(self, selectable: bool) -> None: ... + def selectable(self) -> bool: ... + + +class QtMac(sip.simplewrapper): + + def isMainWindow(self, window: QtGui.QWindow) -> bool: ... + def badgeLabelText(self) -> str: ... + def setBadgeLabelText(self, text: str) -> None: ... + + +def qRegisterDraggedTypes(types: typing.Iterable[str]) -> None: ... diff --git a/tools/stubs/PyQt5/QtMultimedia.pyi b/tools/stubs/PyQt5/QtMultimedia.pyi new file mode 100644 index 000000000..2a9f5bda5 --- /dev/null +++ b/tools/stubs/PyQt5/QtMultimedia.pyi @@ -0,0 +1,1902 @@ +# The PEP 484 type hints stub file for the QtMultimedia module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtNetwork +from PyQt5 import QtGui +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + +# Convenient aliases for complicated OpenGL types. +PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QAbstractVideoBuffer(sip.simplewrapper): + + class MapMode(int): ... + NotMapped = ... # type: 'QAbstractVideoBuffer.MapMode' + ReadOnly = ... # type: 'QAbstractVideoBuffer.MapMode' + WriteOnly = ... # type: 'QAbstractVideoBuffer.MapMode' + ReadWrite = ... # type: 'QAbstractVideoBuffer.MapMode' + + class HandleType(int): ... + NoHandle = ... # type: 'QAbstractVideoBuffer.HandleType' + GLTextureHandle = ... # type: 'QAbstractVideoBuffer.HandleType' + XvShmImageHandle = ... # type: 'QAbstractVideoBuffer.HandleType' + CoreImageHandle = ... # type: 'QAbstractVideoBuffer.HandleType' + QPixmapHandle = ... # type: 'QAbstractVideoBuffer.HandleType' + EGLImageHandle = ... # type: 'QAbstractVideoBuffer.HandleType' + UserHandle = ... # type: 'QAbstractVideoBuffer.HandleType' + + def __init__(self, type: 'QAbstractVideoBuffer.HandleType') -> None: ... + + def release(self) -> None: ... + def handle(self) -> typing.Any: ... + def unmap(self) -> None: ... + def map(self, mode: 'QAbstractVideoBuffer.MapMode') -> typing.Tuple[sip.voidptr, int, int]: ... + def mapMode(self) -> 'QAbstractVideoBuffer.MapMode': ... + def handleType(self) -> 'QAbstractVideoBuffer.HandleType': ... + + +class QVideoFilterRunnable(sip.simplewrapper): + + class RunFlag(int): ... + LastInChain = ... # type: 'QVideoFilterRunnable.RunFlag' + + class RunFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QVideoFilterRunnable.RunFlags', 'QVideoFilterRunnable.RunFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QVideoFilterRunnable.RunFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QVideoFilterRunnable.RunFlags': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QVideoFilterRunnable') -> None: ... + + def run(self, input: 'QVideoFrame', surfaceFormat: 'QVideoSurfaceFormat', flags: typing.Union['QVideoFilterRunnable.RunFlags', 'QVideoFilterRunnable.RunFlag']) -> 'QVideoFrame': ... + + +class QAbstractVideoFilter(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def activeChanged(self) -> None: ... + def createFilterRunnable(self) -> QVideoFilterRunnable: ... + def isActive(self) -> bool: ... + + +class QAbstractVideoSurface(QtCore.QObject): + + class Error(int): ... + NoError = ... # type: 'QAbstractVideoSurface.Error' + UnsupportedFormatError = ... # type: 'QAbstractVideoSurface.Error' + IncorrectFormatError = ... # type: 'QAbstractVideoSurface.Error' + StoppedError = ... # type: 'QAbstractVideoSurface.Error' + ResourceError = ... # type: 'QAbstractVideoSurface.Error' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def nativeResolutionChanged(self, a0: QtCore.QSize) -> None: ... + def setNativeResolution(self, resolution: QtCore.QSize) -> None: ... + def nativeResolution(self) -> QtCore.QSize: ... + def setError(self, error: 'QAbstractVideoSurface.Error') -> None: ... + def supportedFormatsChanged(self) -> None: ... + def surfaceFormatChanged(self, format: 'QVideoSurfaceFormat') -> None: ... + def activeChanged(self, active: bool) -> None: ... + def error(self) -> 'QAbstractVideoSurface.Error': ... + def present(self, frame: 'QVideoFrame') -> bool: ... + def isActive(self) -> bool: ... + def stop(self) -> None: ... + def start(self, format: 'QVideoSurfaceFormat') -> bool: ... + def surfaceFormat(self) -> 'QVideoSurfaceFormat': ... + def nearestFormat(self, format: 'QVideoSurfaceFormat') -> 'QVideoSurfaceFormat': ... + def isFormatSupported(self, format: 'QVideoSurfaceFormat') -> bool: ... + def supportedPixelFormats(self, type: QAbstractVideoBuffer.HandleType = ...) -> typing.List['QVideoFrame.PixelFormat']: ... + + +class QAudio(sip.simplewrapper): + + class VolumeScale(int): ... + LinearVolumeScale = ... # type: 'QAudio.VolumeScale' + CubicVolumeScale = ... # type: 'QAudio.VolumeScale' + LogarithmicVolumeScale = ... # type: 'QAudio.VolumeScale' + DecibelVolumeScale = ... # type: 'QAudio.VolumeScale' + + class Role(int): ... + UnknownRole = ... # type: 'QAudio.Role' + MusicRole = ... # type: 'QAudio.Role' + VideoRole = ... # type: 'QAudio.Role' + VoiceCommunicationRole = ... # type: 'QAudio.Role' + AlarmRole = ... # type: 'QAudio.Role' + NotificationRole = ... # type: 'QAudio.Role' + RingtoneRole = ... # type: 'QAudio.Role' + AccessibilityRole = ... # type: 'QAudio.Role' + SonificationRole = ... # type: 'QAudio.Role' + GameRole = ... # type: 'QAudio.Role' + CustomRole = ... # type: 'QAudio.Role' + + class Mode(int): ... + AudioInput = ... # type: 'QAudio.Mode' + AudioOutput = ... # type: 'QAudio.Mode' + + class State(int): ... + ActiveState = ... # type: 'QAudio.State' + SuspendedState = ... # type: 'QAudio.State' + StoppedState = ... # type: 'QAudio.State' + IdleState = ... # type: 'QAudio.State' + InterruptedState = ... # type: 'QAudio.State' + + class Error(int): ... + NoError = ... # type: 'QAudio.Error' + OpenError = ... # type: 'QAudio.Error' + IOError = ... # type: 'QAudio.Error' + UnderrunError = ... # type: 'QAudio.Error' + FatalError = ... # type: 'QAudio.Error' + + def convertVolume(self, volume: float, from_: 'QAudio.VolumeScale', to: 'QAudio.VolumeScale') -> float: ... + + +class QAudioBuffer(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], format: 'QAudioFormat', startTime: int = ...) -> None: ... + @typing.overload + def __init__(self, numFrames: int, format: 'QAudioFormat', startTime: int = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QAudioBuffer') -> None: ... + + def data(self) -> sip.voidptr: ... + def constData(self) -> sip.voidptr: ... + def startTime(self) -> int: ... + def duration(self) -> int: ... + def byteCount(self) -> int: ... + def sampleCount(self) -> int: ... + def frameCount(self) -> int: ... + def format(self) -> 'QAudioFormat': ... + def isValid(self) -> bool: ... + + +class QMediaObject(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject, service: 'QMediaService') -> None: ... + + def removePropertyWatch(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def addPropertyWatch(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + @typing.overload + def availabilityChanged(self, availability: 'QMultimedia.AvailabilityStatus') -> None: ... + @typing.overload + def availabilityChanged(self, available: bool) -> None: ... + @typing.overload + def metaDataChanged(self) -> None: ... + @typing.overload + def metaDataChanged(self, key: str, value: typing.Any) -> None: ... + def metaDataAvailableChanged(self, available: bool) -> None: ... + def notifyIntervalChanged(self, milliSeconds: int) -> None: ... + def availableMetaData(self) -> typing.List[str]: ... + def metaData(self, key: str) -> typing.Any: ... + def isMetaDataAvailable(self) -> bool: ... + def unbind(self, a0: QtCore.QObject) -> None: ... + def bind(self, a0: QtCore.QObject) -> bool: ... + def setNotifyInterval(self, milliSeconds: int) -> None: ... + def notifyInterval(self) -> int: ... + def service(self) -> 'QMediaService': ... + def availability(self) -> 'QMultimedia.AvailabilityStatus': ... + def isAvailable(self) -> bool: ... + + +class QAudioDecoder(QMediaObject): + + class Error(int): ... + NoError = ... # type: 'QAudioDecoder.Error' + ResourceError = ... # type: 'QAudioDecoder.Error' + FormatError = ... # type: 'QAudioDecoder.Error' + AccessDeniedError = ... # type: 'QAudioDecoder.Error' + ServiceMissingError = ... # type: 'QAudioDecoder.Error' + + class State(int): ... + StoppedState = ... # type: 'QAudioDecoder.State' + DecodingState = ... # type: 'QAudioDecoder.State' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def unbind(self, a0: QtCore.QObject) -> None: ... + def bind(self, a0: QtCore.QObject) -> bool: ... + def durationChanged(self, duration: int) -> None: ... + def positionChanged(self, position: int) -> None: ... + def sourceChanged(self) -> None: ... + def formatChanged(self, format: 'QAudioFormat') -> None: ... + def stateChanged(self, newState: 'QAudioDecoder.State') -> None: ... + def finished(self) -> None: ... + def bufferReady(self) -> None: ... + def bufferAvailableChanged(self, a0: bool) -> None: ... + def stop(self) -> None: ... + def start(self) -> None: ... + def duration(self) -> int: ... + def position(self) -> int: ... + def bufferAvailable(self) -> bool: ... + def read(self) -> QAudioBuffer: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QAudioDecoder.Error': ... + @typing.overload + def error(self, error: 'QAudioDecoder.Error') -> None: ... + def setAudioFormat(self, format: 'QAudioFormat') -> None: ... + def audioFormat(self) -> 'QAudioFormat': ... + def setSourceDevice(self, device: QtCore.QIODevice) -> None: ... + def sourceDevice(self) -> QtCore.QIODevice: ... + def setSourceFilename(self, fileName: str) -> None: ... + def sourceFilename(self) -> str: ... + def state(self) -> 'QAudioDecoder.State': ... + @staticmethod + def hasSupport(mimeType: str, codecs: typing.Iterable[str] = ...) -> 'QMultimedia.SupportEstimate': ... + + +class QAudioDeviceInfo(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QAudioDeviceInfo') -> None: ... + + def supportedChannelCounts(self) -> typing.List[int]: ... + def supportedSampleRates(self) -> typing.List[int]: ... + @staticmethod + def availableDevices(mode: QAudio.Mode) -> typing.List['QAudioDeviceInfo']: ... + @staticmethod + def defaultOutputDevice() -> 'QAudioDeviceInfo': ... + @staticmethod + def defaultInputDevice() -> 'QAudioDeviceInfo': ... + def supportedSampleTypes(self) -> typing.List['QAudioFormat.SampleType']: ... + def supportedByteOrders(self) -> typing.List['QAudioFormat.Endian']: ... + def supportedSampleSizes(self) -> typing.List[int]: ... + def supportedCodecs(self) -> typing.List[str]: ... + def nearestFormat(self, format: 'QAudioFormat') -> 'QAudioFormat': ... + def preferredFormat(self) -> 'QAudioFormat': ... + def isFormatSupported(self, format: 'QAudioFormat') -> bool: ... + def deviceName(self) -> str: ... + def isNull(self) -> bool: ... + + +class QAudioFormat(sip.simplewrapper): + + class Endian(int): ... + BigEndian = ... # type: 'QAudioFormat.Endian' + LittleEndian = ... # type: 'QAudioFormat.Endian' + + class SampleType(int): ... + Unknown = ... # type: 'QAudioFormat.SampleType' + SignedInt = ... # type: 'QAudioFormat.SampleType' + UnSignedInt = ... # type: 'QAudioFormat.SampleType' + Float = ... # type: 'QAudioFormat.SampleType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QAudioFormat') -> None: ... + + def bytesPerFrame(self) -> int: ... + def durationForFrames(self, frameCount: int) -> int: ... + def framesForDuration(self, duration: int) -> int: ... + def framesForBytes(self, byteCount: int) -> int: ... + def bytesForFrames(self, frameCount: int) -> int: ... + def durationForBytes(self, byteCount: int) -> int: ... + def bytesForDuration(self, duration: int) -> int: ... + def channelCount(self) -> int: ... + def setChannelCount(self, channelCount: int) -> None: ... + def sampleRate(self) -> int: ... + def setSampleRate(self, sampleRate: int) -> None: ... + def sampleType(self) -> 'QAudioFormat.SampleType': ... + def setSampleType(self, sampleType: 'QAudioFormat.SampleType') -> None: ... + def byteOrder(self) -> 'QAudioFormat.Endian': ... + def setByteOrder(self, byteOrder: 'QAudioFormat.Endian') -> None: ... + def codec(self) -> str: ... + def setCodec(self, codec: str) -> None: ... + def sampleSize(self) -> int: ... + def setSampleSize(self, sampleSize: int) -> None: ... + def isValid(self) -> bool: ... + + +class QAudioInput(QtCore.QObject): + + @typing.overload + def __init__(self, format: QAudioFormat = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, audioDevice: QAudioDeviceInfo, format: QAudioFormat = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def volume(self) -> float: ... + def setVolume(self, volume: float) -> None: ... + def notify(self) -> None: ... + def stateChanged(self, a0: QAudio.State) -> None: ... + def state(self) -> QAudio.State: ... + def error(self) -> QAudio.Error: ... + def elapsedUSecs(self) -> int: ... + def processedUSecs(self) -> int: ... + def notifyInterval(self) -> int: ... + def setNotifyInterval(self, milliSeconds: int) -> None: ... + def periodSize(self) -> int: ... + def bytesReady(self) -> int: ... + def bufferSize(self) -> int: ... + def setBufferSize(self, bytes: int) -> None: ... + def resume(self) -> None: ... + def suspend(self) -> None: ... + def reset(self) -> None: ... + def stop(self) -> None: ... + @typing.overload + def start(self, device: QtCore.QIODevice) -> None: ... + @typing.overload + def start(self) -> QtCore.QIODevice: ... + def format(self) -> QAudioFormat: ... + + +class QAudioOutput(QtCore.QObject): + + @typing.overload + def __init__(self, format: QAudioFormat = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, audioDevice: QAudioDeviceInfo, format: QAudioFormat = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setCategory(self, category: str) -> None: ... + def category(self) -> str: ... + def volume(self) -> float: ... + def setVolume(self, a0: float) -> None: ... + def notify(self) -> None: ... + def stateChanged(self, a0: QAudio.State) -> None: ... + def state(self) -> QAudio.State: ... + def error(self) -> QAudio.Error: ... + def elapsedUSecs(self) -> int: ... + def processedUSecs(self) -> int: ... + def notifyInterval(self) -> int: ... + def setNotifyInterval(self, milliSeconds: int) -> None: ... + def periodSize(self) -> int: ... + def bytesFree(self) -> int: ... + def bufferSize(self) -> int: ... + def setBufferSize(self, bytes: int) -> None: ... + def resume(self) -> None: ... + def suspend(self) -> None: ... + def reset(self) -> None: ... + def stop(self) -> None: ... + @typing.overload + def start(self, device: QtCore.QIODevice) -> None: ... + @typing.overload + def start(self) -> QtCore.QIODevice: ... + def format(self) -> QAudioFormat: ... + + +class QAudioProbe(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def flush(self) -> None: ... + def audioBufferProbed(self, audioBuffer: QAudioBuffer) -> None: ... + def isActive(self) -> bool: ... + @typing.overload + def setSource(self, source: QMediaObject) -> bool: ... + @typing.overload + def setSource(self, source: 'QMediaRecorder') -> bool: ... + + +class QMediaBindableInterface(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QMediaBindableInterface') -> None: ... + + def setMediaObject(self, object: QMediaObject) -> bool: ... + def mediaObject(self) -> QMediaObject: ... + + +class QMediaRecorder(QtCore.QObject, QMediaBindableInterface): + + class Error(int): ... + NoError = ... # type: 'QMediaRecorder.Error' + ResourceError = ... # type: 'QMediaRecorder.Error' + FormatError = ... # type: 'QMediaRecorder.Error' + OutOfSpaceError = ... # type: 'QMediaRecorder.Error' + + class Status(int): ... + UnavailableStatus = ... # type: 'QMediaRecorder.Status' + UnloadedStatus = ... # type: 'QMediaRecorder.Status' + LoadingStatus = ... # type: 'QMediaRecorder.Status' + LoadedStatus = ... # type: 'QMediaRecorder.Status' + StartingStatus = ... # type: 'QMediaRecorder.Status' + RecordingStatus = ... # type: 'QMediaRecorder.Status' + PausedStatus = ... # type: 'QMediaRecorder.Status' + FinalizingStatus = ... # type: 'QMediaRecorder.Status' + + class State(int): ... + StoppedState = ... # type: 'QMediaRecorder.State' + RecordingState = ... # type: 'QMediaRecorder.State' + PausedState = ... # type: 'QMediaRecorder.State' + + def __init__(self, mediaObject: QMediaObject, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setMediaObject(self, object: QMediaObject) -> bool: ... + @typing.overload + def availabilityChanged(self, availability: 'QMultimedia.AvailabilityStatus') -> None: ... + @typing.overload + def availabilityChanged(self, available: bool) -> None: ... + @typing.overload + def metaDataChanged(self, key: str, value: typing.Any) -> None: ... + @typing.overload + def metaDataChanged(self) -> None: ... + def metaDataWritableChanged(self, writable: bool) -> None: ... + def metaDataAvailableChanged(self, available: bool) -> None: ... + def actualLocationChanged(self, location: QtCore.QUrl) -> None: ... + def volumeChanged(self, volume: float) -> None: ... + def mutedChanged(self, muted: bool) -> None: ... + def durationChanged(self, duration: int) -> None: ... + def statusChanged(self, status: 'QMediaRecorder.Status') -> None: ... + def stateChanged(self, state: 'QMediaRecorder.State') -> None: ... + def setVolume(self, volume: float) -> None: ... + def setMuted(self, muted: bool) -> None: ... + def stop(self) -> None: ... + def pause(self) -> None: ... + def record(self) -> None: ... + def availableMetaData(self) -> typing.List[str]: ... + def setMetaData(self, key: str, value: typing.Any) -> None: ... + def metaData(self, key: str) -> typing.Any: ... + def isMetaDataWritable(self) -> bool: ... + def isMetaDataAvailable(self) -> bool: ... + def setEncodingSettings(self, audio: 'QAudioEncoderSettings', video: 'QVideoEncoderSettings' = ..., container: str = ...) -> None: ... + def setContainerFormat(self, container: str) -> None: ... + def setVideoSettings(self, videoSettings: 'QVideoEncoderSettings') -> None: ... + def setAudioSettings(self, audioSettings: 'QAudioEncoderSettings') -> None: ... + def containerFormat(self) -> str: ... + def videoSettings(self) -> 'QVideoEncoderSettings': ... + def audioSettings(self) -> 'QAudioEncoderSettings': ... + def supportedFrameRates(self, settings: 'QVideoEncoderSettings' = ...) -> typing.Tuple[typing.List[float], bool]: ... + def supportedResolutions(self, settings: 'QVideoEncoderSettings' = ...) -> typing.Tuple[typing.List[QtCore.QSize], bool]: ... + def videoCodecDescription(self, codecName: str) -> str: ... + def supportedVideoCodecs(self) -> typing.List[str]: ... + def supportedAudioSampleRates(self, settings: 'QAudioEncoderSettings' = ...) -> typing.Tuple[typing.List[int], bool]: ... + def audioCodecDescription(self, codecName: str) -> str: ... + def supportedAudioCodecs(self) -> typing.List[str]: ... + def containerDescription(self, format: str) -> str: ... + def supportedContainers(self) -> typing.List[str]: ... + def volume(self) -> float: ... + def isMuted(self) -> bool: ... + def duration(self) -> int: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QMediaRecorder.Error': ... + @typing.overload + def error(self, error: 'QMediaRecorder.Error') -> None: ... + def status(self) -> 'QMediaRecorder.Status': ... + def state(self) -> 'QMediaRecorder.State': ... + def actualLocation(self) -> QtCore.QUrl: ... + def setOutputLocation(self, location: QtCore.QUrl) -> bool: ... + def outputLocation(self) -> QtCore.QUrl: ... + def availability(self) -> 'QMultimedia.AvailabilityStatus': ... + def isAvailable(self) -> bool: ... + def mediaObject(self) -> QMediaObject: ... + + +class QAudioRecorder(QMediaRecorder): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def availableAudioInputsChanged(self) -> None: ... + def audioInputChanged(self, name: str) -> None: ... + def setAudioInput(self, name: str) -> None: ... + def audioInput(self) -> str: ... + def audioInputDescription(self, name: str) -> str: ... + def defaultAudioInput(self) -> str: ... + def audioInputs(self) -> typing.List[str]: ... + + +class QCamera(QMediaObject): + + class Position(int): ... + UnspecifiedPosition = ... # type: 'QCamera.Position' + BackFace = ... # type: 'QCamera.Position' + FrontFace = ... # type: 'QCamera.Position' + + class LockType(int): ... + NoLock = ... # type: 'QCamera.LockType' + LockExposure = ... # type: 'QCamera.LockType' + LockWhiteBalance = ... # type: 'QCamera.LockType' + LockFocus = ... # type: 'QCamera.LockType' + + class LockChangeReason(int): ... + UserRequest = ... # type: 'QCamera.LockChangeReason' + LockAcquired = ... # type: 'QCamera.LockChangeReason' + LockFailed = ... # type: 'QCamera.LockChangeReason' + LockLost = ... # type: 'QCamera.LockChangeReason' + LockTemporaryLost = ... # type: 'QCamera.LockChangeReason' + + class LockStatus(int): ... + Unlocked = ... # type: 'QCamera.LockStatus' + Searching = ... # type: 'QCamera.LockStatus' + Locked = ... # type: 'QCamera.LockStatus' + + class Error(int): ... + NoError = ... # type: 'QCamera.Error' + CameraError = ... # type: 'QCamera.Error' + InvalidRequestError = ... # type: 'QCamera.Error' + ServiceMissingError = ... # type: 'QCamera.Error' + NotSupportedFeatureError = ... # type: 'QCamera.Error' + + class CaptureMode(int): ... + CaptureViewfinder = ... # type: 'QCamera.CaptureMode' + CaptureStillImage = ... # type: 'QCamera.CaptureMode' + CaptureVideo = ... # type: 'QCamera.CaptureMode' + + class State(int): ... + UnloadedState = ... # type: 'QCamera.State' + LoadedState = ... # type: 'QCamera.State' + ActiveState = ... # type: 'QCamera.State' + + class Status(int): ... + UnavailableStatus = ... # type: 'QCamera.Status' + UnloadedStatus = ... # type: 'QCamera.Status' + LoadingStatus = ... # type: 'QCamera.Status' + UnloadingStatus = ... # type: 'QCamera.Status' + LoadedStatus = ... # type: 'QCamera.Status' + StandbyStatus = ... # type: 'QCamera.Status' + StartingStatus = ... # type: 'QCamera.Status' + StoppingStatus = ... # type: 'QCamera.Status' + ActiveStatus = ... # type: 'QCamera.Status' + + class CaptureModes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QCamera.CaptureModes', 'QCamera.CaptureMode']) -> None: ... + @typing.overload + def __init__(self, a0: 'QCamera.CaptureModes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QCamera.CaptureModes': ... + def __int__(self) -> int: ... + + class LockTypes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QCamera.LockTypes', 'QCamera.LockType']) -> None: ... + @typing.overload + def __init__(self, a0: 'QCamera.LockTypes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QCamera.LockTypes': ... + def __int__(self) -> int: ... + + class FrameRateRange(sip.simplewrapper): + + maximumFrameRate = ... # type: float + minimumFrameRate = ... # type: float + + @typing.overload + def __init__(self, minimum: float, maximum: float) -> None: ... + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QCamera.FrameRateRange') -> None: ... + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, device: typing.Union[QtCore.QByteArray, bytes, bytearray], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, cameraInfo: 'QCameraInfo', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, position: 'QCamera.Position', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def supportedViewfinderPixelFormats(self, settings: 'QCameraViewfinderSettings' = ...) -> typing.List['QVideoFrame.PixelFormat']: ... + def supportedViewfinderFrameRateRanges(self, settings: 'QCameraViewfinderSettings' = ...) -> typing.List['QCamera.FrameRateRange']: ... + def supportedViewfinderResolutions(self, settings: 'QCameraViewfinderSettings' = ...) -> typing.List[QtCore.QSize]: ... + def supportedViewfinderSettings(self, settings: 'QCameraViewfinderSettings' = ...) -> typing.List['QCameraViewfinderSettings']: ... + def setViewfinderSettings(self, settings: 'QCameraViewfinderSettings') -> None: ... + def viewfinderSettings(self) -> 'QCameraViewfinderSettings': ... + @typing.overload + def lockStatusChanged(self, a0: 'QCamera.LockStatus', a1: 'QCamera.LockChangeReason') -> None: ... + @typing.overload + def lockStatusChanged(self, a0: 'QCamera.LockType', a1: 'QCamera.LockStatus', a2: 'QCamera.LockChangeReason') -> None: ... + def lockFailed(self) -> None: ... + def locked(self) -> None: ... + def statusChanged(self, a0: 'QCamera.Status') -> None: ... + def captureModeChanged(self, a0: typing.Union['QCamera.CaptureModes', 'QCamera.CaptureMode']) -> None: ... + def stateChanged(self, a0: 'QCamera.State') -> None: ... + @typing.overload + def unlock(self) -> None: ... + @typing.overload + def unlock(self, locks: typing.Union['QCamera.LockTypes', 'QCamera.LockType']) -> None: ... + @typing.overload + def searchAndLock(self) -> None: ... + @typing.overload + def searchAndLock(self, locks: typing.Union['QCamera.LockTypes', 'QCamera.LockType']) -> None: ... + def stop(self) -> None: ... + def start(self) -> None: ... + def unload(self) -> None: ... + def load(self) -> None: ... + def setCaptureMode(self, mode: typing.Union['QCamera.CaptureModes', 'QCamera.CaptureMode']) -> None: ... + @typing.overload + def lockStatus(self) -> 'QCamera.LockStatus': ... + @typing.overload + def lockStatus(self, lock: 'QCamera.LockType') -> 'QCamera.LockStatus': ... + def requestedLocks(self) -> 'QCamera.LockTypes': ... + def supportedLocks(self) -> 'QCamera.LockTypes': ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QCamera.Error': ... + @typing.overload + def error(self, a0: 'QCamera.Error') -> None: ... + @typing.overload + def setViewfinder(self, viewfinder: QVideoWidget) -> None: ... + @typing.overload + def setViewfinder(self, viewfinder: QGraphicsVideoItem) -> None: ... + @typing.overload + def setViewfinder(self, surface: QAbstractVideoSurface) -> None: ... + def imageProcessing(self) -> 'QCameraImageProcessing': ... + def focus(self) -> 'QCameraFocus': ... + def exposure(self) -> 'QCameraExposure': ... + def isCaptureModeSupported(self, mode: typing.Union['QCamera.CaptureModes', 'QCamera.CaptureMode']) -> bool: ... + def captureMode(self) -> 'QCamera.CaptureModes': ... + def status(self) -> 'QCamera.Status': ... + def state(self) -> 'QCamera.State': ... + def availability(self) -> 'QMultimedia.AvailabilityStatus': ... + @staticmethod + def deviceDescription(device: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> str: ... + @staticmethod + def availableDevices() -> typing.List[QtCore.QByteArray]: ... + + +class QCameraExposure(QtCore.QObject): + + class MeteringMode(int): ... + MeteringMatrix = ... # type: 'QCameraExposure.MeteringMode' + MeteringAverage = ... # type: 'QCameraExposure.MeteringMode' + MeteringSpot = ... # type: 'QCameraExposure.MeteringMode' + + class ExposureMode(int): ... + ExposureAuto = ... # type: 'QCameraExposure.ExposureMode' + ExposureManual = ... # type: 'QCameraExposure.ExposureMode' + ExposurePortrait = ... # type: 'QCameraExposure.ExposureMode' + ExposureNight = ... # type: 'QCameraExposure.ExposureMode' + ExposureBacklight = ... # type: 'QCameraExposure.ExposureMode' + ExposureSpotlight = ... # type: 'QCameraExposure.ExposureMode' + ExposureSports = ... # type: 'QCameraExposure.ExposureMode' + ExposureSnow = ... # type: 'QCameraExposure.ExposureMode' + ExposureBeach = ... # type: 'QCameraExposure.ExposureMode' + ExposureLargeAperture = ... # type: 'QCameraExposure.ExposureMode' + ExposureSmallAperture = ... # type: 'QCameraExposure.ExposureMode' + ExposureAction = ... # type: 'QCameraExposure.ExposureMode' + ExposureLandscape = ... # type: 'QCameraExposure.ExposureMode' + ExposureNightPortrait = ... # type: 'QCameraExposure.ExposureMode' + ExposureTheatre = ... # type: 'QCameraExposure.ExposureMode' + ExposureSunset = ... # type: 'QCameraExposure.ExposureMode' + ExposureSteadyPhoto = ... # type: 'QCameraExposure.ExposureMode' + ExposureFireworks = ... # type: 'QCameraExposure.ExposureMode' + ExposureParty = ... # type: 'QCameraExposure.ExposureMode' + ExposureCandlelight = ... # type: 'QCameraExposure.ExposureMode' + ExposureBarcode = ... # type: 'QCameraExposure.ExposureMode' + ExposureModeVendor = ... # type: 'QCameraExposure.ExposureMode' + + class FlashMode(int): ... + FlashAuto = ... # type: 'QCameraExposure.FlashMode' + FlashOff = ... # type: 'QCameraExposure.FlashMode' + FlashOn = ... # type: 'QCameraExposure.FlashMode' + FlashRedEyeReduction = ... # type: 'QCameraExposure.FlashMode' + FlashFill = ... # type: 'QCameraExposure.FlashMode' + FlashTorch = ... # type: 'QCameraExposure.FlashMode' + FlashVideoLight = ... # type: 'QCameraExposure.FlashMode' + FlashSlowSyncFrontCurtain = ... # type: 'QCameraExposure.FlashMode' + FlashSlowSyncRearCurtain = ... # type: 'QCameraExposure.FlashMode' + FlashManual = ... # type: 'QCameraExposure.FlashMode' + + class FlashModes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QCameraExposure.FlashModes', 'QCameraExposure.FlashMode']) -> None: ... + @typing.overload + def __init__(self, a0: 'QCameraExposure.FlashModes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QCameraExposure.FlashModes': ... + def __int__(self) -> int: ... + + def exposureCompensationChanged(self, a0: float) -> None: ... + def isoSensitivityChanged(self, a0: int) -> None: ... + def shutterSpeedRangeChanged(self) -> None: ... + def shutterSpeedChanged(self, a0: float) -> None: ... + def apertureRangeChanged(self) -> None: ... + def apertureChanged(self, a0: float) -> None: ... + def flashReady(self, a0: bool) -> None: ... + def setAutoShutterSpeed(self) -> None: ... + def setManualShutterSpeed(self, seconds: float) -> None: ... + def setAutoAperture(self) -> None: ... + def setManualAperture(self, aperture: float) -> None: ... + def setAutoIsoSensitivity(self) -> None: ... + def setManualIsoSensitivity(self, iso: int) -> None: ... + def setExposureCompensation(self, ev: float) -> None: ... + def setMeteringMode(self, mode: 'QCameraExposure.MeteringMode') -> None: ... + def setExposureMode(self, mode: 'QCameraExposure.ExposureMode') -> None: ... + def setFlashMode(self, mode: typing.Union['QCameraExposure.FlashModes', 'QCameraExposure.FlashMode']) -> None: ... + def supportedShutterSpeeds(self) -> typing.Tuple[typing.List[float], bool]: ... + def supportedApertures(self) -> typing.Tuple[typing.List[float], bool]: ... + def supportedIsoSensitivities(self) -> typing.Tuple[typing.List[int], bool]: ... + def requestedShutterSpeed(self) -> float: ... + def requestedAperture(self) -> float: ... + def requestedIsoSensitivity(self) -> int: ... + def shutterSpeed(self) -> float: ... + def aperture(self) -> float: ... + def isoSensitivity(self) -> int: ... + def setSpotMeteringPoint(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def spotMeteringPoint(self) -> QtCore.QPointF: ... + def isMeteringModeSupported(self, mode: 'QCameraExposure.MeteringMode') -> bool: ... + def meteringMode(self) -> 'QCameraExposure.MeteringMode': ... + def exposureCompensation(self) -> float: ... + def isExposureModeSupported(self, mode: 'QCameraExposure.ExposureMode') -> bool: ... + def exposureMode(self) -> 'QCameraExposure.ExposureMode': ... + def isFlashReady(self) -> bool: ... + def isFlashModeSupported(self, mode: typing.Union['QCameraExposure.FlashModes', 'QCameraExposure.FlashMode']) -> bool: ... + def flashMode(self) -> 'QCameraExposure.FlashModes': ... + def isAvailable(self) -> bool: ... + + +class QCameraFocusZone(sip.simplewrapper): + + class FocusZoneStatus(int): ... + Invalid = ... # type: 'QCameraFocusZone.FocusZoneStatus' + Unused = ... # type: 'QCameraFocusZone.FocusZoneStatus' + Selected = ... # type: 'QCameraFocusZone.FocusZoneStatus' + Focused = ... # type: 'QCameraFocusZone.FocusZoneStatus' + + def __init__(self, other: 'QCameraFocusZone') -> None: ... + + def status(self) -> 'QCameraFocusZone.FocusZoneStatus': ... + def area(self) -> QtCore.QRectF: ... + def isValid(self) -> bool: ... + + +class QCameraFocus(QtCore.QObject): + + class FocusPointMode(int): ... + FocusPointAuto = ... # type: 'QCameraFocus.FocusPointMode' + FocusPointCenter = ... # type: 'QCameraFocus.FocusPointMode' + FocusPointFaceDetection = ... # type: 'QCameraFocus.FocusPointMode' + FocusPointCustom = ... # type: 'QCameraFocus.FocusPointMode' + + class FocusMode(int): ... + ManualFocus = ... # type: 'QCameraFocus.FocusMode' + HyperfocalFocus = ... # type: 'QCameraFocus.FocusMode' + InfinityFocus = ... # type: 'QCameraFocus.FocusMode' + AutoFocus = ... # type: 'QCameraFocus.FocusMode' + ContinuousFocus = ... # type: 'QCameraFocus.FocusMode' + MacroFocus = ... # type: 'QCameraFocus.FocusMode' + + class FocusModes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QCameraFocus.FocusModes', 'QCameraFocus.FocusMode']) -> None: ... + @typing.overload + def __init__(self, a0: 'QCameraFocus.FocusModes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QCameraFocus.FocusModes': ... + def __int__(self) -> int: ... + + def maximumDigitalZoomChanged(self, a0: float) -> None: ... + def maximumOpticalZoomChanged(self, a0: float) -> None: ... + def focusZonesChanged(self) -> None: ... + def digitalZoomChanged(self, a0: float) -> None: ... + def opticalZoomChanged(self, a0: float) -> None: ... + def zoomTo(self, opticalZoom: float, digitalZoom: float) -> None: ... + def digitalZoom(self) -> float: ... + def opticalZoom(self) -> float: ... + def maximumDigitalZoom(self) -> float: ... + def maximumOpticalZoom(self) -> float: ... + def focusZones(self) -> typing.List[QCameraFocusZone]: ... + def setCustomFocusPoint(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def customFocusPoint(self) -> QtCore.QPointF: ... + def isFocusPointModeSupported(self, a0: 'QCameraFocus.FocusPointMode') -> bool: ... + def setFocusPointMode(self, mode: 'QCameraFocus.FocusPointMode') -> None: ... + def focusPointMode(self) -> 'QCameraFocus.FocusPointMode': ... + def isFocusModeSupported(self, mode: 'QCameraFocus.FocusModes') -> bool: ... + def setFocusMode(self, mode: 'QCameraFocus.FocusModes') -> None: ... + def focusMode(self) -> 'QCameraFocus.FocusModes': ... + def isAvailable(self) -> bool: ... + + +class QCameraImageCapture(QtCore.QObject, QMediaBindableInterface): + + class CaptureDestination(int): ... + CaptureToFile = ... # type: 'QCameraImageCapture.CaptureDestination' + CaptureToBuffer = ... # type: 'QCameraImageCapture.CaptureDestination' + + class DriveMode(int): ... + SingleImageCapture = ... # type: 'QCameraImageCapture.DriveMode' + + class Error(int): ... + NoError = ... # type: 'QCameraImageCapture.Error' + NotReadyError = ... # type: 'QCameraImageCapture.Error' + ResourceError = ... # type: 'QCameraImageCapture.Error' + OutOfSpaceError = ... # type: 'QCameraImageCapture.Error' + NotSupportedFeatureError = ... # type: 'QCameraImageCapture.Error' + FormatError = ... # type: 'QCameraImageCapture.Error' + + class CaptureDestinations(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QCameraImageCapture.CaptureDestinations', 'QCameraImageCapture.CaptureDestination']) -> None: ... + @typing.overload + def __init__(self, a0: 'QCameraImageCapture.CaptureDestinations') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QCameraImageCapture.CaptureDestinations': ... + def __int__(self) -> int: ... + + def __init__(self, mediaObject: QMediaObject, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setMediaObject(self, a0: QMediaObject) -> bool: ... + def imageSaved(self, id: int, fileName: str) -> None: ... + def imageAvailable(self, id: int, image: 'QVideoFrame') -> None: ... + def imageMetadataAvailable(self, id: int, key: str, value: typing.Any) -> None: ... + def imageCaptured(self, id: int, preview: QtGui.QImage) -> None: ... + def imageExposed(self, id: int) -> None: ... + def captureDestinationChanged(self, a0: typing.Union['QCameraImageCapture.CaptureDestinations', 'QCameraImageCapture.CaptureDestination']) -> None: ... + def bufferFormatChanged(self, a0: 'QVideoFrame.PixelFormat') -> None: ... + def readyForCaptureChanged(self, a0: bool) -> None: ... + def cancelCapture(self) -> None: ... + def capture(self, file: str = ...) -> int: ... + def setCaptureDestination(self, destination: typing.Union['QCameraImageCapture.CaptureDestinations', 'QCameraImageCapture.CaptureDestination']) -> None: ... + def captureDestination(self) -> 'QCameraImageCapture.CaptureDestinations': ... + def isCaptureDestinationSupported(self, destination: typing.Union['QCameraImageCapture.CaptureDestinations', 'QCameraImageCapture.CaptureDestination']) -> bool: ... + def setBufferFormat(self, format: 'QVideoFrame.PixelFormat') -> None: ... + def bufferFormat(self) -> 'QVideoFrame.PixelFormat': ... + def supportedBufferFormats(self) -> typing.List['QVideoFrame.PixelFormat']: ... + def setEncodingSettings(self, settings: 'QImageEncoderSettings') -> None: ... + def encodingSettings(self) -> 'QImageEncoderSettings': ... + def supportedResolutions(self, settings: 'QImageEncoderSettings' = ...) -> typing.Tuple[typing.List[QtCore.QSize], bool]: ... + def imageCodecDescription(self, codecName: str) -> str: ... + def supportedImageCodecs(self) -> typing.List[str]: ... + def isReadyForCapture(self) -> bool: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QCameraImageCapture.Error': ... + @typing.overload + def error(self, id: int, error: 'QCameraImageCapture.Error', errorString: str) -> None: ... + def mediaObject(self) -> QMediaObject: ... + def availability(self) -> 'QMultimedia.AvailabilityStatus': ... + def isAvailable(self) -> bool: ... + + +class QCameraImageProcessing(QtCore.QObject): + + class ColorFilter(int): ... + ColorFilterNone = ... # type: 'QCameraImageProcessing.ColorFilter' + ColorFilterGrayscale = ... # type: 'QCameraImageProcessing.ColorFilter' + ColorFilterNegative = ... # type: 'QCameraImageProcessing.ColorFilter' + ColorFilterSolarize = ... # type: 'QCameraImageProcessing.ColorFilter' + ColorFilterSepia = ... # type: 'QCameraImageProcessing.ColorFilter' + ColorFilterPosterize = ... # type: 'QCameraImageProcessing.ColorFilter' + ColorFilterWhiteboard = ... # type: 'QCameraImageProcessing.ColorFilter' + ColorFilterBlackboard = ... # type: 'QCameraImageProcessing.ColorFilter' + ColorFilterAqua = ... # type: 'QCameraImageProcessing.ColorFilter' + ColorFilterVendor = ... # type: 'QCameraImageProcessing.ColorFilter' + + class WhiteBalanceMode(int): ... + WhiteBalanceAuto = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + WhiteBalanceManual = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + WhiteBalanceSunlight = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + WhiteBalanceCloudy = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + WhiteBalanceShade = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + WhiteBalanceTungsten = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + WhiteBalanceFluorescent = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + WhiteBalanceFlash = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + WhiteBalanceSunset = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + WhiteBalanceVendor = ... # type: 'QCameraImageProcessing.WhiteBalanceMode' + + def setBrightness(self, value: float) -> None: ... + def brightness(self) -> float: ... + def isColorFilterSupported(self, filter: 'QCameraImageProcessing.ColorFilter') -> bool: ... + def setColorFilter(self, filter: 'QCameraImageProcessing.ColorFilter') -> None: ... + def colorFilter(self) -> 'QCameraImageProcessing.ColorFilter': ... + def setDenoisingLevel(self, value: float) -> None: ... + def denoisingLevel(self) -> float: ... + def setSharpeningLevel(self, value: float) -> None: ... + def sharpeningLevel(self) -> float: ... + def setSaturation(self, value: float) -> None: ... + def saturation(self) -> float: ... + def setContrast(self, value: float) -> None: ... + def contrast(self) -> float: ... + def setManualWhiteBalance(self, colorTemperature: float) -> None: ... + def manualWhiteBalance(self) -> float: ... + def isWhiteBalanceModeSupported(self, mode: 'QCameraImageProcessing.WhiteBalanceMode') -> bool: ... + def setWhiteBalanceMode(self, mode: 'QCameraImageProcessing.WhiteBalanceMode') -> None: ... + def whiteBalanceMode(self) -> 'QCameraImageProcessing.WhiteBalanceMode': ... + def isAvailable(self) -> bool: ... + + +class QCameraInfo(sip.simplewrapper): + + @typing.overload + def __init__(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... + @typing.overload + def __init__(self, camera: QCamera) -> None: ... + @typing.overload + def __init__(self, other: 'QCameraInfo') -> None: ... + + @staticmethod + def availableCameras(position: QCamera.Position = ...) -> typing.List['QCameraInfo']: ... + @staticmethod + def defaultCamera() -> 'QCameraInfo': ... + def orientation(self) -> int: ... + def position(self) -> QCamera.Position: ... + def description(self) -> str: ... + def deviceName(self) -> str: ... + def isNull(self) -> bool: ... + + +class QCameraViewfinderSettings(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QCameraViewfinderSettings') -> None: ... + + @typing.overload + def setPixelAspectRatio(self, ratio: QtCore.QSize) -> None: ... + @typing.overload + def setPixelAspectRatio(self, horizontal: int, vertical: int) -> None: ... + def pixelAspectRatio(self) -> QtCore.QSize: ... + def setPixelFormat(self, format: 'QVideoFrame.PixelFormat') -> None: ... + def pixelFormat(self) -> 'QVideoFrame.PixelFormat': ... + def setMaximumFrameRate(self, rate: float) -> None: ... + def maximumFrameRate(self) -> float: ... + def setMinimumFrameRate(self, rate: float) -> None: ... + def minimumFrameRate(self) -> float: ... + @typing.overload + def setResolution(self, a0: QtCore.QSize) -> None: ... + @typing.overload + def setResolution(self, width: int, height: int) -> None: ... + def resolution(self) -> QtCore.QSize: ... + def isNull(self) -> bool: ... + def swap(self, other: 'QCameraViewfinderSettings') -> None: ... + + +class QMediaContent(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, contentUrl: QtCore.QUrl) -> None: ... + @typing.overload + def __init__(self, contentRequest: QtNetwork.QNetworkRequest) -> None: ... + @typing.overload + def __init__(self, contentResource: 'QMediaResource') -> None: ... + @typing.overload + def __init__(self, resources: typing.Iterable['QMediaResource']) -> None: ... + @typing.overload + def __init__(self, other: 'QMediaContent') -> None: ... + @typing.overload + def __init__(self, playlist: 'QMediaPlaylist', contentUrl: QtCore.QUrl = ...) -> None: ... + + def playlist(self) -> 'QMediaPlaylist': ... + def resources(self) -> typing.List['QMediaResource']: ... + def canonicalResource(self) -> 'QMediaResource': ... + def canonicalRequest(self) -> QtNetwork.QNetworkRequest: ... + def canonicalUrl(self) -> QtCore.QUrl: ... + def isNull(self) -> bool: ... + + +class QMediaControl(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + +class QAudioEncoderSettings(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QAudioEncoderSettings') -> None: ... + + def setEncodingOptions(self, options: typing.Dict[str, typing.Any]) -> None: ... + def setEncodingOption(self, option: str, value: typing.Any) -> None: ... + def encodingOptions(self) -> typing.Dict[str, typing.Any]: ... + def encodingOption(self, option: str) -> typing.Any: ... + def setQuality(self, quality: 'QMultimedia.EncodingQuality') -> None: ... + def quality(self) -> 'QMultimedia.EncodingQuality': ... + def setSampleRate(self, rate: int) -> None: ... + def sampleRate(self) -> int: ... + def setChannelCount(self, channels: int) -> None: ... + def channelCount(self) -> int: ... + def setBitRate(self, bitrate: int) -> None: ... + def bitRate(self) -> int: ... + def setCodec(self, codec: str) -> None: ... + def codec(self) -> str: ... + def setEncodingMode(self, a0: 'QMultimedia.EncodingMode') -> None: ... + def encodingMode(self) -> 'QMultimedia.EncodingMode': ... + def isNull(self) -> bool: ... + + +class QVideoEncoderSettings(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QVideoEncoderSettings') -> None: ... + + def setEncodingOptions(self, options: typing.Dict[str, typing.Any]) -> None: ... + def setEncodingOption(self, option: str, value: typing.Any) -> None: ... + def encodingOptions(self) -> typing.Dict[str, typing.Any]: ... + def encodingOption(self, option: str) -> typing.Any: ... + def setQuality(self, quality: 'QMultimedia.EncodingQuality') -> None: ... + def quality(self) -> 'QMultimedia.EncodingQuality': ... + def setBitRate(self, bitrate: int) -> None: ... + def bitRate(self) -> int: ... + def setFrameRate(self, rate: float) -> None: ... + def frameRate(self) -> float: ... + @typing.overload + def setResolution(self, a0: QtCore.QSize) -> None: ... + @typing.overload + def setResolution(self, width: int, height: int) -> None: ... + def resolution(self) -> QtCore.QSize: ... + def setCodec(self, a0: str) -> None: ... + def codec(self) -> str: ... + def setEncodingMode(self, a0: 'QMultimedia.EncodingMode') -> None: ... + def encodingMode(self) -> 'QMultimedia.EncodingMode': ... + def isNull(self) -> bool: ... + + +class QImageEncoderSettings(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QImageEncoderSettings') -> None: ... + + def setEncodingOptions(self, options: typing.Dict[str, typing.Any]) -> None: ... + def setEncodingOption(self, option: str, value: typing.Any) -> None: ... + def encodingOptions(self) -> typing.Dict[str, typing.Any]: ... + def encodingOption(self, option: str) -> typing.Any: ... + def setQuality(self, quality: 'QMultimedia.EncodingQuality') -> None: ... + def quality(self) -> 'QMultimedia.EncodingQuality': ... + @typing.overload + def setResolution(self, a0: QtCore.QSize) -> None: ... + @typing.overload + def setResolution(self, width: int, height: int) -> None: ... + def resolution(self) -> QtCore.QSize: ... + def setCodec(self, a0: str) -> None: ... + def codec(self) -> str: ... + def isNull(self) -> bool: ... + + +class QMediaMetaData(sip.simplewrapper): + + AlbumArtist = ... # type: str + AlbumTitle = ... # type: str + AudioBitRate = ... # type: str + AudioCodec = ... # type: str + Author = ... # type: str + AverageLevel = ... # type: str + CameraManufacturer = ... # type: str + CameraModel = ... # type: str + Category = ... # type: str + ChannelCount = ... # type: str + ChapterNumber = ... # type: str + Comment = ... # type: str + Composer = ... # type: str + Conductor = ... # type: str + Contrast = ... # type: str + ContributingArtist = ... # type: str + Copyright = ... # type: str + CoverArtImage = ... # type: str + CoverArtUrlLarge = ... # type: str + CoverArtUrlSmall = ... # type: str + Date = ... # type: str + DateTimeDigitized = ... # type: str + DateTimeOriginal = ... # type: str + Description = ... # type: str + DeviceSettingDescription = ... # type: str + DigitalZoomRatio = ... # type: str + Director = ... # type: str + Duration = ... # type: str + Event = ... # type: str + ExposureBiasValue = ... # type: str + ExposureMode = ... # type: str + ExposureProgram = ... # type: str + ExposureTime = ... # type: str + FNumber = ... # type: str + Flash = ... # type: str + FocalLength = ... # type: str + FocalLengthIn35mmFilm = ... # type: str + GPSAltitude = ... # type: str + GPSAreaInformation = ... # type: str + GPSDOP = ... # type: str + GPSImgDirection = ... # type: str + GPSImgDirectionRef = ... # type: str + GPSLatitude = ... # type: str + GPSLongitude = ... # type: str + GPSMapDatum = ... # type: str + GPSProcessingMethod = ... # type: str + GPSSatellites = ... # type: str + GPSSpeed = ... # type: str + GPSStatus = ... # type: str + GPSTimeStamp = ... # type: str + GPSTrack = ... # type: str + GPSTrackRef = ... # type: str + GainControl = ... # type: str + Genre = ... # type: str + ISOSpeedRatings = ... # type: str + Keywords = ... # type: str + Language = ... # type: str + LeadPerformer = ... # type: str + LightSource = ... # type: str + Lyrics = ... # type: str + MediaType = ... # type: str + MeteringMode = ... # type: str + Mood = ... # type: str + Orientation = ... # type: str + ParentalRating = ... # type: str + PeakValue = ... # type: str + PixelAspectRatio = ... # type: str + PosterImage = ... # type: str + PosterUrl = ... # type: str + Publisher = ... # type: str + RatingOrganization = ... # type: str + Resolution = ... # type: str + SampleRate = ... # type: str + Saturation = ... # type: str + SceneCaptureType = ... # type: str + Sharpness = ... # type: str + Size = ... # type: str + SubTitle = ... # type: str + Subject = ... # type: str + SubjectDistance = ... # type: str + ThumbnailImage = ... # type: str + Title = ... # type: str + TrackCount = ... # type: str + TrackNumber = ... # type: str + UserRating = ... # type: str + VideoBitRate = ... # type: str + VideoCodec = ... # type: str + VideoFrameRate = ... # type: str + WhiteBalance = ... # type: str + Writer = ... # type: str + Year = ... # type: str + + +class QMediaPlayer(QMediaObject): + + class Error(int): ... + NoError = ... # type: 'QMediaPlayer.Error' + ResourceError = ... # type: 'QMediaPlayer.Error' + FormatError = ... # type: 'QMediaPlayer.Error' + NetworkError = ... # type: 'QMediaPlayer.Error' + AccessDeniedError = ... # type: 'QMediaPlayer.Error' + ServiceMissingError = ... # type: 'QMediaPlayer.Error' + + class Flag(int): ... + LowLatency = ... # type: 'QMediaPlayer.Flag' + StreamPlayback = ... # type: 'QMediaPlayer.Flag' + VideoSurface = ... # type: 'QMediaPlayer.Flag' + + class MediaStatus(int): ... + UnknownMediaStatus = ... # type: 'QMediaPlayer.MediaStatus' + NoMedia = ... # type: 'QMediaPlayer.MediaStatus' + LoadingMedia = ... # type: 'QMediaPlayer.MediaStatus' + LoadedMedia = ... # type: 'QMediaPlayer.MediaStatus' + StalledMedia = ... # type: 'QMediaPlayer.MediaStatus' + BufferingMedia = ... # type: 'QMediaPlayer.MediaStatus' + BufferedMedia = ... # type: 'QMediaPlayer.MediaStatus' + EndOfMedia = ... # type: 'QMediaPlayer.MediaStatus' + InvalidMedia = ... # type: 'QMediaPlayer.MediaStatus' + + class State(int): ... + StoppedState = ... # type: 'QMediaPlayer.State' + PlayingState = ... # type: 'QMediaPlayer.State' + PausedState = ... # type: 'QMediaPlayer.State' + + class Flags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QMediaPlayer.Flags', 'QMediaPlayer.Flag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QMediaPlayer.Flags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QMediaPlayer.Flags': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ..., flags: typing.Union['QMediaPlayer.Flags', 'QMediaPlayer.Flag'] = ...) -> None: ... + + def customAudioRoleChanged(self, role: str) -> None: ... + def supportedCustomAudioRoles(self) -> typing.List[str]: ... + def setCustomAudioRole(self, audioRole: str) -> None: ... + def customAudioRole(self) -> str: ... + def audioRoleChanged(self, role: QAudio.Role) -> None: ... + def supportedAudioRoles(self) -> typing.List[QAudio.Role]: ... + def setAudioRole(self, audioRole: QAudio.Role) -> None: ... + def audioRole(self) -> QAudio.Role: ... + def unbind(self, a0: QtCore.QObject) -> None: ... + def bind(self, a0: QtCore.QObject) -> bool: ... + def networkConfigurationChanged(self, configuration: QtNetwork.QNetworkConfiguration) -> None: ... + def playbackRateChanged(self, rate: float) -> None: ... + def seekableChanged(self, seekable: bool) -> None: ... + def bufferStatusChanged(self, percentFilled: int) -> None: ... + def videoAvailableChanged(self, videoAvailable: bool) -> None: ... + def audioAvailableChanged(self, available: bool) -> None: ... + def mutedChanged(self, muted: bool) -> None: ... + def volumeChanged(self, volume: int) -> None: ... + def positionChanged(self, position: int) -> None: ... + def durationChanged(self, duration: int) -> None: ... + def mediaStatusChanged(self, status: 'QMediaPlayer.MediaStatus') -> None: ... + def stateChanged(self, newState: 'QMediaPlayer.State') -> None: ... + def currentMediaChanged(self, media: QMediaContent) -> None: ... + def mediaChanged(self, media: QMediaContent) -> None: ... + def setNetworkConfigurations(self, configurations: typing.Iterable[QtNetwork.QNetworkConfiguration]) -> None: ... + def setPlaylist(self, playlist: 'QMediaPlaylist') -> None: ... + def setMedia(self, media: QMediaContent, stream: typing.Optional[QtCore.QIODevice] = ...) -> None: ... + def setPlaybackRate(self, rate: float) -> None: ... + def setMuted(self, muted: bool) -> None: ... + def setVolume(self, volume: int) -> None: ... + def setPosition(self, position: int) -> None: ... + def stop(self) -> None: ... + def pause(self) -> None: ... + def play(self) -> None: ... + def availability(self) -> 'QMultimedia.AvailabilityStatus': ... + def currentNetworkConfiguration(self) -> QtNetwork.QNetworkConfiguration: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QMediaPlayer.Error': ... + @typing.overload + def error(self, error: 'QMediaPlayer.Error') -> None: ... + def playbackRate(self) -> float: ... + def isSeekable(self) -> bool: ... + def bufferStatus(self) -> int: ... + def isVideoAvailable(self) -> bool: ... + def isAudioAvailable(self) -> bool: ... + def isMuted(self) -> bool: ... + def volume(self) -> int: ... + def position(self) -> int: ... + def duration(self) -> int: ... + def mediaStatus(self) -> 'QMediaPlayer.MediaStatus': ... + def state(self) -> 'QMediaPlayer.State': ... + def currentMedia(self) -> QMediaContent: ... + def playlist(self) -> 'QMediaPlaylist': ... + def mediaStream(self) -> QtCore.QIODevice: ... + def media(self) -> QMediaContent: ... + @typing.overload + def setVideoOutput(self, a0: QVideoWidget) -> None: ... + @typing.overload + def setVideoOutput(self, a0: QGraphicsVideoItem) -> None: ... + @typing.overload + def setVideoOutput(self, surface: QAbstractVideoSurface) -> None: ... + @staticmethod + def supportedMimeTypes(flags: typing.Union['QMediaPlayer.Flags', 'QMediaPlayer.Flag'] = ...) -> typing.List[str]: ... + @staticmethod + def hasSupport(mimeType: str, codecs: typing.Iterable[str] = ..., flags: typing.Union['QMediaPlayer.Flags', 'QMediaPlayer.Flag'] = ...) -> 'QMultimedia.SupportEstimate': ... + + +class QMediaPlaylist(QtCore.QObject, QMediaBindableInterface): + + class Error(int): ... + NoError = ... # type: 'QMediaPlaylist.Error' + FormatError = ... # type: 'QMediaPlaylist.Error' + FormatNotSupportedError = ... # type: 'QMediaPlaylist.Error' + NetworkError = ... # type: 'QMediaPlaylist.Error' + AccessDeniedError = ... # type: 'QMediaPlaylist.Error' + + class PlaybackMode(int): ... + CurrentItemOnce = ... # type: 'QMediaPlaylist.PlaybackMode' + CurrentItemInLoop = ... # type: 'QMediaPlaylist.PlaybackMode' + Sequential = ... # type: 'QMediaPlaylist.PlaybackMode' + Loop = ... # type: 'QMediaPlaylist.PlaybackMode' + Random = ... # type: 'QMediaPlaylist.PlaybackMode' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setMediaObject(self, object: QMediaObject) -> bool: ... + def loadFailed(self) -> None: ... + def loaded(self) -> None: ... + def mediaChanged(self, start: int, end: int) -> None: ... + def mediaRemoved(self, start: int, end: int) -> None: ... + def mediaAboutToBeRemoved(self, start: int, end: int) -> None: ... + def mediaInserted(self, start: int, end: int) -> None: ... + def mediaAboutToBeInserted(self, start: int, end: int) -> None: ... + def currentMediaChanged(self, a0: QMediaContent) -> None: ... + def playbackModeChanged(self, mode: 'QMediaPlaylist.PlaybackMode') -> None: ... + def currentIndexChanged(self, index: int) -> None: ... + def setCurrentIndex(self, index: int) -> None: ... + def previous(self) -> None: ... + def next(self) -> None: ... + def shuffle(self) -> None: ... + def moveMedia(self, from_: int, to: int) -> bool: ... + def errorString(self) -> str: ... + def error(self) -> 'QMediaPlaylist.Error': ... + @typing.overload + def save(self, location: QtCore.QUrl, format: typing.Optional[str] = ...) -> bool: ... + @typing.overload + def save(self, device: QtCore.QIODevice, format: str) -> bool: ... + @typing.overload + def load(self, request: QtNetwork.QNetworkRequest, format: typing.Optional[str] = ...) -> None: ... + @typing.overload + def load(self, location: QtCore.QUrl, format: typing.Optional[str] = ...) -> None: ... + @typing.overload + def load(self, device: QtCore.QIODevice, format: typing.Optional[str] = ...) -> None: ... + def clear(self) -> bool: ... + @typing.overload + def removeMedia(self, pos: int) -> bool: ... + @typing.overload + def removeMedia(self, start: int, end: int) -> bool: ... + @typing.overload + def insertMedia(self, index: int, content: QMediaContent) -> bool: ... + @typing.overload + def insertMedia(self, index: int, items: typing.Iterable[QMediaContent]) -> bool: ... + @typing.overload + def addMedia(self, content: QMediaContent) -> bool: ... + @typing.overload + def addMedia(self, items: typing.Iterable[QMediaContent]) -> bool: ... + def isReadOnly(self) -> bool: ... + def isEmpty(self) -> bool: ... + def mediaCount(self) -> int: ... + def media(self, index: int) -> QMediaContent: ... + def previousIndex(self, steps: int = ...) -> int: ... + def nextIndex(self, steps: int = ...) -> int: ... + def currentMedia(self) -> QMediaContent: ... + def currentIndex(self) -> int: ... + def setPlaybackMode(self, mode: 'QMediaPlaylist.PlaybackMode') -> None: ... + def playbackMode(self) -> 'QMediaPlaylist.PlaybackMode': ... + def mediaObject(self) -> QMediaObject: ... + + +class QMediaResource(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, url: QtCore.QUrl, mimeType: str = ...) -> None: ... + @typing.overload + def __init__(self, request: QtNetwork.QNetworkRequest, mimeType: str = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QMediaResource') -> None: ... + + @typing.overload + def setResolution(self, resolution: QtCore.QSize) -> None: ... + @typing.overload + def setResolution(self, width: int, height: int) -> None: ... + def resolution(self) -> QtCore.QSize: ... + def setVideoBitRate(self, rate: int) -> None: ... + def videoBitRate(self) -> int: ... + def setChannelCount(self, channels: int) -> None: ... + def channelCount(self) -> int: ... + def setSampleRate(self, frequency: int) -> None: ... + def sampleRate(self) -> int: ... + def setAudioBitRate(self, rate: int) -> None: ... + def audioBitRate(self) -> int: ... + def setDataSize(self, size: int) -> None: ... + def dataSize(self) -> int: ... + def setVideoCodec(self, codec: str) -> None: ... + def videoCodec(self) -> str: ... + def setAudioCodec(self, codec: str) -> None: ... + def audioCodec(self) -> str: ... + def setLanguage(self, language: str) -> None: ... + def language(self) -> str: ... + def mimeType(self) -> str: ... + def request(self) -> QtNetwork.QNetworkRequest: ... + def url(self) -> QtCore.QUrl: ... + def isNull(self) -> bool: ... + + +class QMediaService(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject) -> None: ... + + def releaseControl(self, control: QMediaControl) -> None: ... + def requestControl(self, name: str) -> QMediaControl: ... + + +class QMediaTimeInterval(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, start: int, end: int) -> None: ... + @typing.overload + def __init__(self, a0: 'QMediaTimeInterval') -> None: ... + + def translated(self, offset: int) -> 'QMediaTimeInterval': ... + def normalized(self) -> 'QMediaTimeInterval': ... + def isNormal(self) -> bool: ... + def contains(self, time: int) -> bool: ... + def end(self) -> int: ... + def start(self) -> int: ... + + +class QMediaTimeRange(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, start: int, end: int) -> None: ... + @typing.overload + def __init__(self, a0: QMediaTimeInterval) -> None: ... + @typing.overload + def __init__(self, range: 'QMediaTimeRange') -> None: ... + + def clear(self) -> None: ... + def removeTimeRange(self, a0: 'QMediaTimeRange') -> None: ... + @typing.overload + def removeInterval(self, start: int, end: int) -> None: ... + @typing.overload + def removeInterval(self, interval: QMediaTimeInterval) -> None: ... + def addTimeRange(self, a0: 'QMediaTimeRange') -> None: ... + @typing.overload + def addInterval(self, start: int, end: int) -> None: ... + @typing.overload + def addInterval(self, interval: QMediaTimeInterval) -> None: ... + def contains(self, time: int) -> bool: ... + def isContinuous(self) -> bool: ... + def isEmpty(self) -> bool: ... + def intervals(self) -> typing.List[QMediaTimeInterval]: ... + def latestTime(self) -> int: ... + def earliestTime(self) -> int: ... + + +class QMultimedia(sip.simplewrapper): + + class AvailabilityStatus(int): ... + Available = ... # type: 'QMultimedia.AvailabilityStatus' + ServiceMissing = ... # type: 'QMultimedia.AvailabilityStatus' + Busy = ... # type: 'QMultimedia.AvailabilityStatus' + ResourceError = ... # type: 'QMultimedia.AvailabilityStatus' + + class EncodingMode(int): ... + ConstantQualityEncoding = ... # type: 'QMultimedia.EncodingMode' + ConstantBitRateEncoding = ... # type: 'QMultimedia.EncodingMode' + AverageBitRateEncoding = ... # type: 'QMultimedia.EncodingMode' + TwoPassEncoding = ... # type: 'QMultimedia.EncodingMode' + + class EncodingQuality(int): ... + VeryLowQuality = ... # type: 'QMultimedia.EncodingQuality' + LowQuality = ... # type: 'QMultimedia.EncodingQuality' + NormalQuality = ... # type: 'QMultimedia.EncodingQuality' + HighQuality = ... # type: 'QMultimedia.EncodingQuality' + VeryHighQuality = ... # type: 'QMultimedia.EncodingQuality' + + class SupportEstimate(int): ... + NotSupported = ... # type: 'QMultimedia.SupportEstimate' + MaybeSupported = ... # type: 'QMultimedia.SupportEstimate' + ProbablySupported = ... # type: 'QMultimedia.SupportEstimate' + PreferredService = ... # type: 'QMultimedia.SupportEstimate' + + +class QRadioData(QtCore.QObject, QMediaBindableInterface): + + class ProgramType(int): ... + Undefined = ... # type: 'QRadioData.ProgramType' + News = ... # type: 'QRadioData.ProgramType' + CurrentAffairs = ... # type: 'QRadioData.ProgramType' + Information = ... # type: 'QRadioData.ProgramType' + Sport = ... # type: 'QRadioData.ProgramType' + Education = ... # type: 'QRadioData.ProgramType' + Drama = ... # type: 'QRadioData.ProgramType' + Culture = ... # type: 'QRadioData.ProgramType' + Science = ... # type: 'QRadioData.ProgramType' + Varied = ... # type: 'QRadioData.ProgramType' + PopMusic = ... # type: 'QRadioData.ProgramType' + RockMusic = ... # type: 'QRadioData.ProgramType' + EasyListening = ... # type: 'QRadioData.ProgramType' + LightClassical = ... # type: 'QRadioData.ProgramType' + SeriousClassical = ... # type: 'QRadioData.ProgramType' + OtherMusic = ... # type: 'QRadioData.ProgramType' + Weather = ... # type: 'QRadioData.ProgramType' + Finance = ... # type: 'QRadioData.ProgramType' + ChildrensProgrammes = ... # type: 'QRadioData.ProgramType' + SocialAffairs = ... # type: 'QRadioData.ProgramType' + Religion = ... # type: 'QRadioData.ProgramType' + PhoneIn = ... # type: 'QRadioData.ProgramType' + Travel = ... # type: 'QRadioData.ProgramType' + Leisure = ... # type: 'QRadioData.ProgramType' + JazzMusic = ... # type: 'QRadioData.ProgramType' + CountryMusic = ... # type: 'QRadioData.ProgramType' + NationalMusic = ... # type: 'QRadioData.ProgramType' + OldiesMusic = ... # type: 'QRadioData.ProgramType' + FolkMusic = ... # type: 'QRadioData.ProgramType' + Documentary = ... # type: 'QRadioData.ProgramType' + AlarmTest = ... # type: 'QRadioData.ProgramType' + Alarm = ... # type: 'QRadioData.ProgramType' + Talk = ... # type: 'QRadioData.ProgramType' + ClassicRock = ... # type: 'QRadioData.ProgramType' + AdultHits = ... # type: 'QRadioData.ProgramType' + SoftRock = ... # type: 'QRadioData.ProgramType' + Top40 = ... # type: 'QRadioData.ProgramType' + Soft = ... # type: 'QRadioData.ProgramType' + Nostalgia = ... # type: 'QRadioData.ProgramType' + Classical = ... # type: 'QRadioData.ProgramType' + RhythmAndBlues = ... # type: 'QRadioData.ProgramType' + SoftRhythmAndBlues = ... # type: 'QRadioData.ProgramType' + Language = ... # type: 'QRadioData.ProgramType' + ReligiousMusic = ... # type: 'QRadioData.ProgramType' + ReligiousTalk = ... # type: 'QRadioData.ProgramType' + Personality = ... # type: 'QRadioData.ProgramType' + Public = ... # type: 'QRadioData.ProgramType' + College = ... # type: 'QRadioData.ProgramType' + + class Error(int): ... + NoError = ... # type: 'QRadioData.Error' + ResourceError = ... # type: 'QRadioData.Error' + OpenError = ... # type: 'QRadioData.Error' + OutOfRangeError = ... # type: 'QRadioData.Error' + + def __init__(self, mediaObject: QMediaObject, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setMediaObject(self, a0: QMediaObject) -> bool: ... + def alternativeFrequenciesEnabledChanged(self, enabled: bool) -> None: ... + def radioTextChanged(self, radioText: str) -> None: ... + def stationNameChanged(self, stationName: str) -> None: ... + def programTypeNameChanged(self, programTypeName: str) -> None: ... + def programTypeChanged(self, programType: 'QRadioData.ProgramType') -> None: ... + def stationIdChanged(self, stationId: str) -> None: ... + def setAlternativeFrequenciesEnabled(self, enabled: bool) -> None: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QRadioData.Error': ... + @typing.overload + def error(self, error: 'QRadioData.Error') -> None: ... + def isAlternativeFrequenciesEnabled(self) -> bool: ... + def radioText(self) -> str: ... + def stationName(self) -> str: ... + def programTypeName(self) -> str: ... + def programType(self) -> 'QRadioData.ProgramType': ... + def stationId(self) -> str: ... + def availability(self) -> QMultimedia.AvailabilityStatus: ... + def mediaObject(self) -> QMediaObject: ... + + +class QRadioTuner(QMediaObject): + + class SearchMode(int): ... + SearchFast = ... # type: 'QRadioTuner.SearchMode' + SearchGetStationId = ... # type: 'QRadioTuner.SearchMode' + + class StereoMode(int): ... + ForceStereo = ... # type: 'QRadioTuner.StereoMode' + ForceMono = ... # type: 'QRadioTuner.StereoMode' + Auto = ... # type: 'QRadioTuner.StereoMode' + + class Error(int): ... + NoError = ... # type: 'QRadioTuner.Error' + ResourceError = ... # type: 'QRadioTuner.Error' + OpenError = ... # type: 'QRadioTuner.Error' + OutOfRangeError = ... # type: 'QRadioTuner.Error' + + class Band(int): ... + AM = ... # type: 'QRadioTuner.Band' + FM = ... # type: 'QRadioTuner.Band' + SW = ... # type: 'QRadioTuner.Band' + LW = ... # type: 'QRadioTuner.Band' + FM2 = ... # type: 'QRadioTuner.Band' + + class State(int): ... + ActiveState = ... # type: 'QRadioTuner.State' + StoppedState = ... # type: 'QRadioTuner.State' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def antennaConnectedChanged(self, connectionStatus: bool) -> None: ... + def stationFound(self, frequency: int, stationId: str) -> None: ... + def mutedChanged(self, muted: bool) -> None: ... + def volumeChanged(self, volume: int) -> None: ... + def signalStrengthChanged(self, signalStrength: int) -> None: ... + def searchingChanged(self, searching: bool) -> None: ... + def stereoStatusChanged(self, stereo: bool) -> None: ... + def frequencyChanged(self, frequency: int) -> None: ... + def bandChanged(self, band: 'QRadioTuner.Band') -> None: ... + def stateChanged(self, state: 'QRadioTuner.State') -> None: ... + def stop(self) -> None: ... + def start(self) -> None: ... + def setMuted(self, muted: bool) -> None: ... + def setVolume(self, volume: int) -> None: ... + def setFrequency(self, frequency: int) -> None: ... + def setBand(self, band: 'QRadioTuner.Band') -> None: ... + def cancelSearch(self) -> None: ... + def searchAllStations(self, searchMode: 'QRadioTuner.SearchMode' = ...) -> None: ... + def searchBackward(self) -> None: ... + def searchForward(self) -> None: ... + def radioData(self) -> QRadioData: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QRadioTuner.Error': ... + @typing.overload + def error(self, error: 'QRadioTuner.Error') -> None: ... + def isAntennaConnected(self) -> bool: ... + def isSearching(self) -> bool: ... + def isMuted(self) -> bool: ... + def volume(self) -> int: ... + def signalStrength(self) -> int: ... + def stereoMode(self) -> 'QRadioTuner.StereoMode': ... + def setStereoMode(self, mode: 'QRadioTuner.StereoMode') -> None: ... + def isStereo(self) -> bool: ... + def frequencyRange(self, band: 'QRadioTuner.Band') -> typing.Tuple[int, int]: ... + def frequencyStep(self, band: 'QRadioTuner.Band') -> int: ... + def frequency(self) -> int: ... + def isBandSupported(self, b: 'QRadioTuner.Band') -> bool: ... + def band(self) -> 'QRadioTuner.Band': ... + def state(self) -> 'QRadioTuner.State': ... + def availability(self) -> QMultimedia.AvailabilityStatus: ... + + +class QSound(QtCore.QObject): + + class Loop(int): ... + Infinite = ... # type: 'QSound.Loop' + + def __init__(self, filename: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def stop(self) -> None: ... + def isFinished(self) -> bool: ... + def fileName(self) -> str: ... + def setLoops(self, a0: int) -> None: ... + def loopsRemaining(self) -> int: ... + def loops(self) -> int: ... + @typing.overload + @staticmethod + def play(filename: str) -> None: ... + @typing.overload + def play(self) -> None: ... + + +class QSoundEffect(QtCore.QObject): + + class Status(int): ... + Null = ... # type: 'QSoundEffect.Status' + Loading = ... # type: 'QSoundEffect.Status' + Ready = ... # type: 'QSoundEffect.Status' + Error = ... # type: 'QSoundEffect.Status' + + class Loop(int): ... + Infinite = ... # type: 'QSoundEffect.Loop' + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, audioDevice: QAudioDeviceInfo, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def stop(self) -> None: ... + def play(self) -> None: ... + def categoryChanged(self) -> None: ... + def statusChanged(self) -> None: ... + def playingChanged(self) -> None: ... + def loadedChanged(self) -> None: ... + def mutedChanged(self) -> None: ... + def volumeChanged(self) -> None: ... + def loopsRemainingChanged(self) -> None: ... + def loopCountChanged(self) -> None: ... + def sourceChanged(self) -> None: ... + def setCategory(self, category: str) -> None: ... + def category(self) -> str: ... + def status(self) -> 'QSoundEffect.Status': ... + def isPlaying(self) -> bool: ... + def isLoaded(self) -> bool: ... + def setMuted(self, muted: bool) -> None: ... + def isMuted(self) -> bool: ... + def setVolume(self, volume: float) -> None: ... + def volume(self) -> float: ... + def setLoopCount(self, loopCount: int) -> None: ... + def loopsRemaining(self) -> int: ... + def loopCount(self) -> int: ... + def setSource(self, url: QtCore.QUrl) -> None: ... + def source(self) -> QtCore.QUrl: ... + @staticmethod + def supportedMimeTypes() -> typing.List[str]: ... + + +class QVideoFrame(sip.simplewrapper): + + class PixelFormat(int): ... + Format_Invalid = ... # type: 'QVideoFrame.PixelFormat' + Format_ARGB32 = ... # type: 'QVideoFrame.PixelFormat' + Format_ARGB32_Premultiplied = ... # type: 'QVideoFrame.PixelFormat' + Format_RGB32 = ... # type: 'QVideoFrame.PixelFormat' + Format_RGB24 = ... # type: 'QVideoFrame.PixelFormat' + Format_RGB565 = ... # type: 'QVideoFrame.PixelFormat' + Format_RGB555 = ... # type: 'QVideoFrame.PixelFormat' + Format_ARGB8565_Premultiplied = ... # type: 'QVideoFrame.PixelFormat' + Format_BGRA32 = ... # type: 'QVideoFrame.PixelFormat' + Format_BGRA32_Premultiplied = ... # type: 'QVideoFrame.PixelFormat' + Format_BGR32 = ... # type: 'QVideoFrame.PixelFormat' + Format_BGR24 = ... # type: 'QVideoFrame.PixelFormat' + Format_BGR565 = ... # type: 'QVideoFrame.PixelFormat' + Format_BGR555 = ... # type: 'QVideoFrame.PixelFormat' + Format_BGRA5658_Premultiplied = ... # type: 'QVideoFrame.PixelFormat' + Format_AYUV444 = ... # type: 'QVideoFrame.PixelFormat' + Format_AYUV444_Premultiplied = ... # type: 'QVideoFrame.PixelFormat' + Format_YUV444 = ... # type: 'QVideoFrame.PixelFormat' + Format_YUV420P = ... # type: 'QVideoFrame.PixelFormat' + Format_YV12 = ... # type: 'QVideoFrame.PixelFormat' + Format_UYVY = ... # type: 'QVideoFrame.PixelFormat' + Format_YUYV = ... # type: 'QVideoFrame.PixelFormat' + Format_NV12 = ... # type: 'QVideoFrame.PixelFormat' + Format_NV21 = ... # type: 'QVideoFrame.PixelFormat' + Format_IMC1 = ... # type: 'QVideoFrame.PixelFormat' + Format_IMC2 = ... # type: 'QVideoFrame.PixelFormat' + Format_IMC3 = ... # type: 'QVideoFrame.PixelFormat' + Format_IMC4 = ... # type: 'QVideoFrame.PixelFormat' + Format_Y8 = ... # type: 'QVideoFrame.PixelFormat' + Format_Y16 = ... # type: 'QVideoFrame.PixelFormat' + Format_Jpeg = ... # type: 'QVideoFrame.PixelFormat' + Format_CameraRaw = ... # type: 'QVideoFrame.PixelFormat' + Format_AdobeDng = ... # type: 'QVideoFrame.PixelFormat' + Format_ABGR32 = ... # type: 'QVideoFrame.PixelFormat' + Format_User = ... # type: 'QVideoFrame.PixelFormat' + + class FieldType(int): ... + ProgressiveFrame = ... # type: 'QVideoFrame.FieldType' + TopField = ... # type: 'QVideoFrame.FieldType' + BottomField = ... # type: 'QVideoFrame.FieldType' + InterlacedFrame = ... # type: 'QVideoFrame.FieldType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, buffer: QAbstractVideoBuffer, size: QtCore.QSize, format: 'QVideoFrame.PixelFormat') -> None: ... + @typing.overload + def __init__(self, bytes: int, size: QtCore.QSize, bytesPerLine: int, format: 'QVideoFrame.PixelFormat') -> None: ... + @typing.overload + def __init__(self, image: QtGui.QImage) -> None: ... + @typing.overload + def __init__(self, other: 'QVideoFrame') -> None: ... + + def buffer(self) -> QAbstractVideoBuffer: ... + def planeCount(self) -> int: ... + def setMetaData(self, key: str, value: typing.Any) -> None: ... + def metaData(self, key: str) -> typing.Any: ... + def availableMetaData(self) -> typing.Dict[str, typing.Any]: ... + @staticmethod + def imageFormatFromPixelFormat(format: 'QVideoFrame.PixelFormat') -> QtGui.QImage.Format: ... + @staticmethod + def pixelFormatFromImageFormat(format: QtGui.QImage.Format) -> 'QVideoFrame.PixelFormat': ... + def setEndTime(self, time: int) -> None: ... + def endTime(self) -> int: ... + def setStartTime(self, time: int) -> None: ... + def startTime(self) -> int: ... + def handle(self) -> typing.Any: ... + def mappedBytes(self) -> int: ... + @typing.overload + def bits(self) -> sip.voidptr: ... + @typing.overload + def bits(self, plane: int) -> sip.voidptr: ... + @typing.overload + def bytesPerLine(self) -> int: ... + @typing.overload + def bytesPerLine(self, plane: int) -> int: ... + def unmap(self) -> None: ... + def map(self, mode: QAbstractVideoBuffer.MapMode) -> bool: ... + def mapMode(self) -> QAbstractVideoBuffer.MapMode: ... + def isWritable(self) -> bool: ... + def isReadable(self) -> bool: ... + def isMapped(self) -> bool: ... + def setFieldType(self, a0: 'QVideoFrame.FieldType') -> None: ... + def fieldType(self) -> 'QVideoFrame.FieldType': ... + def height(self) -> int: ... + def width(self) -> int: ... + def size(self) -> QtCore.QSize: ... + def handleType(self) -> QAbstractVideoBuffer.HandleType: ... + def pixelFormat(self) -> 'QVideoFrame.PixelFormat': ... + def isValid(self) -> bool: ... + + +class QVideoProbe(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def flush(self) -> None: ... + def videoFrameProbed(self, videoFrame: QVideoFrame) -> None: ... + def isActive(self) -> bool: ... + @typing.overload + def setSource(self, source: QMediaObject) -> bool: ... + @typing.overload + def setSource(self, source: QMediaRecorder) -> bool: ... + + +class QVideoSurfaceFormat(sip.simplewrapper): + + class YCbCrColorSpace(int): ... + YCbCr_Undefined = ... # type: 'QVideoSurfaceFormat.YCbCrColorSpace' + YCbCr_BT601 = ... # type: 'QVideoSurfaceFormat.YCbCrColorSpace' + YCbCr_BT709 = ... # type: 'QVideoSurfaceFormat.YCbCrColorSpace' + YCbCr_xvYCC601 = ... # type: 'QVideoSurfaceFormat.YCbCrColorSpace' + YCbCr_xvYCC709 = ... # type: 'QVideoSurfaceFormat.YCbCrColorSpace' + YCbCr_JPEG = ... # type: 'QVideoSurfaceFormat.YCbCrColorSpace' + + class Direction(int): ... + TopToBottom = ... # type: 'QVideoSurfaceFormat.Direction' + BottomToTop = ... # type: 'QVideoSurfaceFormat.Direction' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, size: QtCore.QSize, format: QVideoFrame.PixelFormat, type: QAbstractVideoBuffer.HandleType = ...) -> None: ... + @typing.overload + def __init__(self, format: 'QVideoSurfaceFormat') -> None: ... + + def setMirrored(self, mirrored: bool) -> None: ... + def isMirrored(self) -> bool: ... + def setProperty(self, name: str, value: typing.Any) -> None: ... + def property(self, name: str) -> typing.Any: ... + def propertyNames(self) -> typing.List[QtCore.QByteArray]: ... + def sizeHint(self) -> QtCore.QSize: ... + def setYCbCrColorSpace(self, colorSpace: 'QVideoSurfaceFormat.YCbCrColorSpace') -> None: ... + def yCbCrColorSpace(self) -> 'QVideoSurfaceFormat.YCbCrColorSpace': ... + @typing.overload + def setPixelAspectRatio(self, ratio: QtCore.QSize) -> None: ... + @typing.overload + def setPixelAspectRatio(self, width: int, height: int) -> None: ... + def pixelAspectRatio(self) -> QtCore.QSize: ... + def setFrameRate(self, rate: float) -> None: ... + def frameRate(self) -> float: ... + def setScanLineDirection(self, direction: 'QVideoSurfaceFormat.Direction') -> None: ... + def scanLineDirection(self) -> 'QVideoSurfaceFormat.Direction': ... + def setViewport(self, viewport: QtCore.QRect) -> None: ... + def viewport(self) -> QtCore.QRect: ... + def frameHeight(self) -> int: ... + def frameWidth(self) -> int: ... + @typing.overload + def setFrameSize(self, size: QtCore.QSize) -> None: ... + @typing.overload + def setFrameSize(self, width: int, height: int) -> None: ... + def frameSize(self) -> QtCore.QSize: ... + def handleType(self) -> QAbstractVideoBuffer.HandleType: ... + def pixelFormat(self) -> QVideoFrame.PixelFormat: ... + def isValid(self) -> bool: ... diff --git a/tools/stubs/PyQt5/QtMultimediaWidgets.pyi b/tools/stubs/PyQt5/QtMultimediaWidgets.pyi new file mode 100644 index 000000000..d1219f36d --- /dev/null +++ b/tools/stubs/PyQt5/QtMultimediaWidgets.pyi @@ -0,0 +1,100 @@ +# The PEP 484 type hints stub file for the QtMultimediaWidgets module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtWidgets +from PyQt5 import QtMultimedia +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + +# Convenient aliases for complicated OpenGL types. +PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QVideoWidget(QtWidgets.QWidget, QtMultimedia.QMediaBindableInterface): + + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + + def setMediaObject(self, object: QtMultimedia.QMediaObject) -> bool: ... + def paintEvent(self, event: QtGui.QPaintEvent) -> None: ... + def moveEvent(self, event: QtGui.QMoveEvent) -> None: ... + def resizeEvent(self, event: QtGui.QResizeEvent) -> None: ... + def hideEvent(self, event: QtGui.QHideEvent) -> None: ... + def showEvent(self, event: QtGui.QShowEvent) -> None: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def saturationChanged(self, saturation: int) -> None: ... + def hueChanged(self, hue: int) -> None: ... + def contrastChanged(self, contrast: int) -> None: ... + def brightnessChanged(self, brightness: int) -> None: ... + def fullScreenChanged(self, fullScreen: bool) -> None: ... + def setSaturation(self, saturation: int) -> None: ... + def setHue(self, hue: int) -> None: ... + def setContrast(self, contrast: int) -> None: ... + def setBrightness(self, brightness: int) -> None: ... + def setAspectRatioMode(self, mode: QtCore.Qt.AspectRatioMode) -> None: ... + def setFullScreen(self, fullScreen: bool) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + def saturation(self) -> int: ... + def hue(self) -> int: ... + def contrast(self) -> int: ... + def brightness(self) -> int: ... + def aspectRatioMode(self) -> QtCore.Qt.AspectRatioMode: ... + def mediaObject(self) -> QtMultimedia.QMediaObject: ... + + +class QCameraViewfinder(QVideoWidget): + + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + + def setMediaObject(self, object: QtMultimedia.QMediaObject) -> bool: ... + def mediaObject(self) -> QtMultimedia.QMediaObject: ... + + +class QGraphicsVideoItem(QtWidgets.QGraphicsObject, QtMultimedia.QMediaBindableInterface): + + def __init__(self, parent: typing.Optional[QtWidgets.QGraphicsItem] = ...) -> None: ... + + def setMediaObject(self, object: QtMultimedia.QMediaObject) -> bool: ... + def itemChange(self, change: QtWidgets.QGraphicsItem.GraphicsItemChange, value: typing.Any) -> typing.Any: ... + def timerEvent(self, event: QtCore.QTimerEvent) -> None: ... + def nativeSizeChanged(self, size: QtCore.QSizeF) -> None: ... + def paint(self, painter: QtGui.QPainter, option: QtWidgets.QStyleOptionGraphicsItem, widget: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + def boundingRect(self) -> QtCore.QRectF: ... + def nativeSize(self) -> QtCore.QSizeF: ... + def setSize(self, size: QtCore.QSizeF) -> None: ... + def size(self) -> QtCore.QSizeF: ... + def setOffset(self, offset: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def offset(self) -> QtCore.QPointF: ... + def setAspectRatioMode(self, mode: QtCore.Qt.AspectRatioMode) -> None: ... + def aspectRatioMode(self) -> QtCore.Qt.AspectRatioMode: ... + def mediaObject(self) -> QtMultimedia.QMediaObject: ... diff --git a/tools/stubs/PyQt5/QtNetwork.pyi b/tools/stubs/PyQt5/QtNetwork.pyi new file mode 100644 index 000000000..6fab52e65 --- /dev/null +++ b/tools/stubs/PyQt5/QtNetwork.pyi @@ -0,0 +1,2047 @@ +# The PEP 484 type hints stub file for the QtNetwork module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + + +class QOcspRevocationReason(int): ... +None = ... # type: QOcspRevocationReason +Unspecified = ... # type: QOcspRevocationReason +KeyCompromise = ... # type: QOcspRevocationReason +CACompromise = ... # type: QOcspRevocationReason +AffiliationChanged = ... # type: QOcspRevocationReason +Superseded = ... # type: QOcspRevocationReason +CessationOfOperation = ... # type: QOcspRevocationReason +CertificateHold = ... # type: QOcspRevocationReason +RemoveFromCRL = ... # type: QOcspRevocationReason + + +class QOcspCertificateStatus(int): ... +Good = ... # type: QOcspCertificateStatus +Revoked = ... # type: QOcspCertificateStatus +Unknown = ... # type: QOcspCertificateStatus + + +class QNetworkCacheMetaData(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QNetworkCacheMetaData') -> None: ... + + def swap(self, other: 'QNetworkCacheMetaData') -> None: ... + def setAttributes(self, attributes: typing.Dict['QNetworkRequest.Attribute', typing.Any]) -> None: ... + def attributes(self) -> typing.Dict['QNetworkRequest.Attribute', typing.Any]: ... + def setSaveToDisk(self, allow: bool) -> None: ... + def saveToDisk(self) -> bool: ... + def setExpirationDate(self, dateTime: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + def expirationDate(self) -> QtCore.QDateTime: ... + def setLastModified(self, dateTime: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + def lastModified(self) -> QtCore.QDateTime: ... + def setRawHeaders(self, headers: typing.Iterable[typing.Tuple[typing.Union[QtCore.QByteArray, bytes, bytearray], typing.Union[QtCore.QByteArray, bytes, bytearray]]]) -> None: ... + def rawHeaders(self) -> typing.List[typing.Tuple[QtCore.QByteArray, QtCore.QByteArray]]: ... + def setUrl(self, url: QtCore.QUrl) -> None: ... + def url(self) -> QtCore.QUrl: ... + def isValid(self) -> bool: ... + + +class QAbstractNetworkCache(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def clear(self) -> None: ... + def insert(self, device: QtCore.QIODevice) -> None: ... + def prepare(self, metaData: QNetworkCacheMetaData) -> QtCore.QIODevice: ... + def cacheSize(self) -> int: ... + def remove(self, url: QtCore.QUrl) -> bool: ... + def data(self, url: QtCore.QUrl) -> QtCore.QIODevice: ... + def updateMetaData(self, metaData: QNetworkCacheMetaData) -> None: ... + def metaData(self, url: QtCore.QUrl) -> QNetworkCacheMetaData: ... + + +class QAbstractSocket(QtCore.QIODevice): + + class PauseMode(int): ... + PauseNever = ... # type: 'QAbstractSocket.PauseMode' + PauseOnSslErrors = ... # type: 'QAbstractSocket.PauseMode' + + class BindFlag(int): ... + DefaultForPlatform = ... # type: 'QAbstractSocket.BindFlag' + ShareAddress = ... # type: 'QAbstractSocket.BindFlag' + DontShareAddress = ... # type: 'QAbstractSocket.BindFlag' + ReuseAddressHint = ... # type: 'QAbstractSocket.BindFlag' + + class SocketOption(int): ... + LowDelayOption = ... # type: 'QAbstractSocket.SocketOption' + KeepAliveOption = ... # type: 'QAbstractSocket.SocketOption' + MulticastTtlOption = ... # type: 'QAbstractSocket.SocketOption' + MulticastLoopbackOption = ... # type: 'QAbstractSocket.SocketOption' + TypeOfServiceOption = ... # type: 'QAbstractSocket.SocketOption' + SendBufferSizeSocketOption = ... # type: 'QAbstractSocket.SocketOption' + ReceiveBufferSizeSocketOption = ... # type: 'QAbstractSocket.SocketOption' + PathMtuSocketOption = ... # type: 'QAbstractSocket.SocketOption' + + class SocketState(int): ... + UnconnectedState = ... # type: 'QAbstractSocket.SocketState' + HostLookupState = ... # type: 'QAbstractSocket.SocketState' + ConnectingState = ... # type: 'QAbstractSocket.SocketState' + ConnectedState = ... # type: 'QAbstractSocket.SocketState' + BoundState = ... # type: 'QAbstractSocket.SocketState' + ListeningState = ... # type: 'QAbstractSocket.SocketState' + ClosingState = ... # type: 'QAbstractSocket.SocketState' + + class SocketError(int): ... + ConnectionRefusedError = ... # type: 'QAbstractSocket.SocketError' + RemoteHostClosedError = ... # type: 'QAbstractSocket.SocketError' + HostNotFoundError = ... # type: 'QAbstractSocket.SocketError' + SocketAccessError = ... # type: 'QAbstractSocket.SocketError' + SocketResourceError = ... # type: 'QAbstractSocket.SocketError' + SocketTimeoutError = ... # type: 'QAbstractSocket.SocketError' + DatagramTooLargeError = ... # type: 'QAbstractSocket.SocketError' + NetworkError = ... # type: 'QAbstractSocket.SocketError' + AddressInUseError = ... # type: 'QAbstractSocket.SocketError' + SocketAddressNotAvailableError = ... # type: 'QAbstractSocket.SocketError' + UnsupportedSocketOperationError = ... # type: 'QAbstractSocket.SocketError' + UnfinishedSocketOperationError = ... # type: 'QAbstractSocket.SocketError' + ProxyAuthenticationRequiredError = ... # type: 'QAbstractSocket.SocketError' + SslHandshakeFailedError = ... # type: 'QAbstractSocket.SocketError' + ProxyConnectionRefusedError = ... # type: 'QAbstractSocket.SocketError' + ProxyConnectionClosedError = ... # type: 'QAbstractSocket.SocketError' + ProxyConnectionTimeoutError = ... # type: 'QAbstractSocket.SocketError' + ProxyNotFoundError = ... # type: 'QAbstractSocket.SocketError' + ProxyProtocolError = ... # type: 'QAbstractSocket.SocketError' + OperationError = ... # type: 'QAbstractSocket.SocketError' + SslInternalError = ... # type: 'QAbstractSocket.SocketError' + SslInvalidUserDataError = ... # type: 'QAbstractSocket.SocketError' + TemporaryError = ... # type: 'QAbstractSocket.SocketError' + UnknownSocketError = ... # type: 'QAbstractSocket.SocketError' + + class NetworkLayerProtocol(int): ... + IPv4Protocol = ... # type: 'QAbstractSocket.NetworkLayerProtocol' + IPv6Protocol = ... # type: 'QAbstractSocket.NetworkLayerProtocol' + AnyIPProtocol = ... # type: 'QAbstractSocket.NetworkLayerProtocol' + UnknownNetworkLayerProtocol = ... # type: 'QAbstractSocket.NetworkLayerProtocol' + + class SocketType(int): ... + TcpSocket = ... # type: 'QAbstractSocket.SocketType' + UdpSocket = ... # type: 'QAbstractSocket.SocketType' + SctpSocket = ... # type: 'QAbstractSocket.SocketType' + UnknownSocketType = ... # type: 'QAbstractSocket.SocketType' + + class BindMode(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QAbstractSocket.BindMode', 'QAbstractSocket.BindFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstractSocket.BindMode') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QAbstractSocket.BindMode': ... + def __int__(self) -> int: ... + + class PauseModes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QAbstractSocket.PauseModes', 'QAbstractSocket.PauseMode']) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstractSocket.PauseModes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QAbstractSocket.PauseModes': ... + def __int__(self) -> int: ... + + def __init__(self, socketType: 'QAbstractSocket.SocketType', parent: QtCore.QObject) -> None: ... + + def setProtocolTag(self, tag: str) -> None: ... + def protocolTag(self) -> str: ... + @typing.overload + def bind(self, address: typing.Union['QHostAddress', 'QHostAddress.SpecialAddress'], port: int = ..., mode: typing.Union['QAbstractSocket.BindMode', 'QAbstractSocket.BindFlag'] = ...) -> bool: ... + @typing.overload + def bind(self, port: int = ..., mode: typing.Union['QAbstractSocket.BindMode', 'QAbstractSocket.BindFlag'] = ...) -> bool: ... + def setPauseMode(self, pauseMode: typing.Union['QAbstractSocket.PauseModes', 'QAbstractSocket.PauseMode']) -> None: ... + def pauseMode(self) -> 'QAbstractSocket.PauseModes': ... + def resume(self) -> None: ... + def socketOption(self, option: 'QAbstractSocket.SocketOption') -> typing.Any: ... + def setSocketOption(self, option: 'QAbstractSocket.SocketOption', value: typing.Any) -> None: ... + def setPeerName(self, name: str) -> None: ... + def setPeerAddress(self, address: typing.Union['QHostAddress', 'QHostAddress.SpecialAddress']) -> None: ... + def setPeerPort(self, port: int) -> None: ... + def setLocalAddress(self, address: typing.Union['QHostAddress', 'QHostAddress.SpecialAddress']) -> None: ... + def setLocalPort(self, port: int) -> None: ... + def setSocketError(self, socketError: 'QAbstractSocket.SocketError') -> None: ... + def setSocketState(self, state: 'QAbstractSocket.SocketState') -> None: ... + def writeData(self, data: bytes) -> int: ... + def readLineData(self, maxlen: int) -> bytes: ... + def readData(self, maxlen: int) -> bytes: ... + def proxyAuthenticationRequired(self, proxy: 'QNetworkProxy', authenticator: 'QAuthenticator') -> None: ... + def stateChanged(self, a0: 'QAbstractSocket.SocketState') -> None: ... + def disconnected(self) -> None: ... + def connected(self) -> None: ... + def hostFound(self) -> None: ... + def proxy(self) -> 'QNetworkProxy': ... + def setProxy(self, networkProxy: 'QNetworkProxy') -> None: ... + def waitForDisconnected(self, msecs: int = ...) -> bool: ... + def waitForBytesWritten(self, msecs: int = ...) -> bool: ... + def waitForReadyRead(self, msecs: int = ...) -> bool: ... + def waitForConnected(self, msecs: int = ...) -> bool: ... + def flush(self) -> bool: ... + def atEnd(self) -> bool: ... + def isSequential(self) -> bool: ... + def close(self) -> None: ... + @typing.overload + def error(self) -> 'QAbstractSocket.SocketError': ... + @typing.overload + def error(self, a0: 'QAbstractSocket.SocketError') -> None: ... + def state(self) -> 'QAbstractSocket.SocketState': ... + def socketType(self) -> 'QAbstractSocket.SocketType': ... + def socketDescriptor(self) -> sip.voidptr: ... + def setSocketDescriptor(self, socketDescriptor: sip.voidptr, state: 'QAbstractSocket.SocketState' = ..., mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag] = ...) -> bool: ... + def abort(self) -> None: ... + def setReadBufferSize(self, size: int) -> None: ... + def readBufferSize(self) -> int: ... + def peerName(self) -> str: ... + def peerAddress(self) -> 'QHostAddress': ... + def peerPort(self) -> int: ... + def localAddress(self) -> 'QHostAddress': ... + def localPort(self) -> int: ... + def canReadLine(self) -> bool: ... + def bytesToWrite(self) -> int: ... + def bytesAvailable(self) -> int: ... + def isValid(self) -> bool: ... + def disconnectFromHost(self) -> None: ... + @typing.overload + def connectToHost(self, hostName: str, port: int, mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag] = ..., protocol: 'QAbstractSocket.NetworkLayerProtocol' = ...) -> None: ... + @typing.overload + def connectToHost(self, address: typing.Union['QHostAddress', 'QHostAddress.SpecialAddress'], port: int, mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag] = ...) -> None: ... + + +class QAuthenticator(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QAuthenticator') -> None: ... + + def setOption(self, opt: str, value: typing.Any) -> None: ... + def options(self) -> typing.Dict[str, typing.Any]: ... + def option(self, opt: str) -> typing.Any: ... + def isNull(self) -> bool: ... + def realm(self) -> str: ... + def setPassword(self, password: str) -> None: ... + def password(self) -> str: ... + def setUser(self, user: str) -> None: ... + def user(self) -> str: ... + + +class QDnsDomainNameRecord(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QDnsDomainNameRecord') -> None: ... + + def value(self) -> str: ... + def timeToLive(self) -> int: ... + def name(self) -> str: ... + def swap(self, other: 'QDnsDomainNameRecord') -> None: ... + + +class QDnsHostAddressRecord(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QDnsHostAddressRecord') -> None: ... + + def value(self) -> 'QHostAddress': ... + def timeToLive(self) -> int: ... + def name(self) -> str: ... + def swap(self, other: 'QDnsHostAddressRecord') -> None: ... + + +class QDnsMailExchangeRecord(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QDnsMailExchangeRecord') -> None: ... + + def timeToLive(self) -> int: ... + def preference(self) -> int: ... + def name(self) -> str: ... + def exchange(self) -> str: ... + def swap(self, other: 'QDnsMailExchangeRecord') -> None: ... + + +class QDnsServiceRecord(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QDnsServiceRecord') -> None: ... + + def weight(self) -> int: ... + def timeToLive(self) -> int: ... + def target(self) -> str: ... + def priority(self) -> int: ... + def port(self) -> int: ... + def name(self) -> str: ... + def swap(self, other: 'QDnsServiceRecord') -> None: ... + + +class QDnsTextRecord(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QDnsTextRecord') -> None: ... + + def values(self) -> typing.List[QtCore.QByteArray]: ... + def timeToLive(self) -> int: ... + def name(self) -> str: ... + def swap(self, other: 'QDnsTextRecord') -> None: ... + + +class QDnsLookup(QtCore.QObject): + + class Type(int): ... + A = ... # type: 'QDnsLookup.Type' + AAAA = ... # type: 'QDnsLookup.Type' + ANY = ... # type: 'QDnsLookup.Type' + CNAME = ... # type: 'QDnsLookup.Type' + MX = ... # type: 'QDnsLookup.Type' + NS = ... # type: 'QDnsLookup.Type' + PTR = ... # type: 'QDnsLookup.Type' + SRV = ... # type: 'QDnsLookup.Type' + TXT = ... # type: 'QDnsLookup.Type' + + class Error(int): ... + NoError = ... # type: 'QDnsLookup.Error' + ResolverError = ... # type: 'QDnsLookup.Error' + OperationCancelledError = ... # type: 'QDnsLookup.Error' + InvalidRequestError = ... # type: 'QDnsLookup.Error' + InvalidReplyError = ... # type: 'QDnsLookup.Error' + ServerFailureError = ... # type: 'QDnsLookup.Error' + ServerRefusedError = ... # type: 'QDnsLookup.Error' + NotFoundError = ... # type: 'QDnsLookup.Error' + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, type: 'QDnsLookup.Type', name: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, type: 'QDnsLookup.Type', name: str, nameserver: typing.Union['QHostAddress', 'QHostAddress.SpecialAddress'], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def nameserverChanged(self, nameserver: typing.Union['QHostAddress', 'QHostAddress.SpecialAddress']) -> None: ... + def setNameserver(self, nameserver: typing.Union['QHostAddress', 'QHostAddress.SpecialAddress']) -> None: ... + def nameserver(self) -> 'QHostAddress': ... + def typeChanged(self, type: 'QDnsLookup.Type') -> None: ... + def nameChanged(self, name: str) -> None: ... + def finished(self) -> None: ... + def lookup(self) -> None: ... + def abort(self) -> None: ... + def textRecords(self) -> typing.List[QDnsTextRecord]: ... + def serviceRecords(self) -> typing.List[QDnsServiceRecord]: ... + def pointerRecords(self) -> typing.List[QDnsDomainNameRecord]: ... + def nameServerRecords(self) -> typing.List[QDnsDomainNameRecord]: ... + def mailExchangeRecords(self) -> typing.List[QDnsMailExchangeRecord]: ... + def hostAddressRecords(self) -> typing.List[QDnsHostAddressRecord]: ... + def canonicalNameRecords(self) -> typing.List[QDnsDomainNameRecord]: ... + def setType(self, a0: 'QDnsLookup.Type') -> None: ... + def type(self) -> 'QDnsLookup.Type': ... + def setName(self, name: str) -> None: ... + def name(self) -> str: ... + def isFinished(self) -> bool: ... + def errorString(self) -> str: ... + def error(self) -> 'QDnsLookup.Error': ... + + +class QHostAddress(sip.simplewrapper): + + class ConversionModeFlag(int): ... + ConvertV4MappedToIPv4 = ... # type: 'QHostAddress.ConversionModeFlag' + ConvertV4CompatToIPv4 = ... # type: 'QHostAddress.ConversionModeFlag' + ConvertUnspecifiedAddress = ... # type: 'QHostAddress.ConversionModeFlag' + ConvertLocalHost = ... # type: 'QHostAddress.ConversionModeFlag' + TolerantConversion = ... # type: 'QHostAddress.ConversionModeFlag' + StrictConversion = ... # type: 'QHostAddress.ConversionModeFlag' + + class SpecialAddress(int): ... + Null = ... # type: 'QHostAddress.SpecialAddress' + Broadcast = ... # type: 'QHostAddress.SpecialAddress' + LocalHost = ... # type: 'QHostAddress.SpecialAddress' + LocalHostIPv6 = ... # type: 'QHostAddress.SpecialAddress' + AnyIPv4 = ... # type: 'QHostAddress.SpecialAddress' + AnyIPv6 = ... # type: 'QHostAddress.SpecialAddress' + Any = ... # type: 'QHostAddress.SpecialAddress' + + class ConversionMode(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QHostAddress.ConversionMode', 'QHostAddress.ConversionModeFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QHostAddress.ConversionMode') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QHostAddress.ConversionMode': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, address: 'QHostAddress.SpecialAddress') -> None: ... + @typing.overload + def __init__(self, ip4Addr: int) -> None: ... + @typing.overload + def __init__(self, address: str) -> None: ... + @typing.overload + def __init__(self, ip6Addr: typing.Tuple[int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int]) -> None: ... + @typing.overload + def __init__(self, copy: typing.Union['QHostAddress', 'QHostAddress.SpecialAddress']) -> None: ... + + def isBroadcast(self) -> bool: ... + def isUniqueLocalUnicast(self) -> bool: ... + def isSiteLocal(self) -> bool: ... + def isLinkLocal(self) -> bool: ... + def isGlobal(self) -> bool: ... + def isEqual(self, address: typing.Union['QHostAddress', 'QHostAddress.SpecialAddress'], mode: typing.Union['QHostAddress.ConversionMode', 'QHostAddress.ConversionModeFlag'] = ...) -> bool: ... + def isMulticast(self) -> bool: ... + def swap(self, other: 'QHostAddress') -> None: ... + @staticmethod + def parseSubnet(subnet: str) -> typing.Tuple['QHostAddress', int]: ... + def isLoopback(self) -> bool: ... + @typing.overload + def isInSubnet(self, subnet: typing.Union['QHostAddress', 'QHostAddress.SpecialAddress'], netmask: int) -> bool: ... + @typing.overload + def isInSubnet(self, subnet: typing.Tuple[typing.Union['QHostAddress', 'QHostAddress.SpecialAddress'], int]) -> bool: ... + def __hash__(self) -> int: ... + def clear(self) -> None: ... + def isNull(self) -> bool: ... + def setScopeId(self, id: str) -> None: ... + def scopeId(self) -> str: ... + def toString(self) -> str: ... + def toIPv6Address(self) -> typing.Tuple[int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int]: ... + def toIPv4Address(self) -> int: ... + def protocol(self) -> QAbstractSocket.NetworkLayerProtocol: ... + @typing.overload + def setAddress(self, address: 'QHostAddress.SpecialAddress') -> None: ... + @typing.overload + def setAddress(self, ip4Addr: int) -> None: ... + @typing.overload + def setAddress(self, address: str) -> bool: ... + @typing.overload + def setAddress(self, ip6Addr: typing.Tuple[int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int]) -> None: ... + + +class QHostInfo(sip.simplewrapper): + + class HostInfoError(int): ... + NoError = ... # type: 'QHostInfo.HostInfoError' + HostNotFound = ... # type: 'QHostInfo.HostInfoError' + UnknownError = ... # type: 'QHostInfo.HostInfoError' + + @typing.overload + def __init__(self, id: int = ...) -> None: ... + @typing.overload + def __init__(self, d: 'QHostInfo') -> None: ... + + def swap(self, other: 'QHostInfo') -> None: ... + @staticmethod + def localDomainName() -> str: ... + @staticmethod + def localHostName() -> str: ... + @staticmethod + def fromName(name: str) -> 'QHostInfo': ... + @staticmethod + def abortHostLookup(lookupId: int) -> None: ... + @staticmethod + def lookupHost(name: str, slot: PYQT_SLOT) -> int: ... + def lookupId(self) -> int: ... + def setLookupId(self, id: int) -> None: ... + def setErrorString(self, errorString: str) -> None: ... + def errorString(self) -> str: ... + def setError(self, error: 'QHostInfo.HostInfoError') -> None: ... + def error(self) -> 'QHostInfo.HostInfoError': ... + def setAddresses(self, addresses: typing.Iterable[typing.Union[QHostAddress, QHostAddress.SpecialAddress]]) -> None: ... + def addresses(self) -> typing.List[QHostAddress]: ... + def setHostName(self, name: str) -> None: ... + def hostName(self) -> str: ... + + +class QHstsPolicy(sip.simplewrapper): + + class PolicyFlag(int): ... + IncludeSubDomains = ... # type: 'QHstsPolicy.PolicyFlag' + + class PolicyFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QHstsPolicy.PolicyFlags', 'QHstsPolicy.PolicyFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QHstsPolicy.PolicyFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QHstsPolicy.PolicyFlags': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, expiry: typing.Union[QtCore.QDateTime, datetime.datetime], flags: typing.Union['QHstsPolicy.PolicyFlags', 'QHstsPolicy.PolicyFlag'], host: str, mode: QtCore.QUrl.ParsingMode = ...) -> None: ... + @typing.overload + def __init__(self, rhs: 'QHstsPolicy') -> None: ... + + def isExpired(self) -> bool: ... + def includesSubDomains(self) -> bool: ... + def setIncludesSubDomains(self, include: bool) -> None: ... + def expiry(self) -> QtCore.QDateTime: ... + def setExpiry(self, expiry: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + def host(self, options: typing.Union[QtCore.QUrl.ComponentFormattingOptions, QtCore.QUrl.ComponentFormattingOption] = ...) -> str: ... + def setHost(self, host: str, mode: QtCore.QUrl.ParsingMode = ...) -> None: ... + def swap(self, other: 'QHstsPolicy') -> None: ... + + +class QHttpPart(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QHttpPart') -> None: ... + + def swap(self, other: 'QHttpPart') -> None: ... + def setBodyDevice(self, device: QtCore.QIODevice) -> None: ... + def setBody(self, body: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def setRawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray], headerValue: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def setHeader(self, header: 'QNetworkRequest.KnownHeaders', value: typing.Any) -> None: ... + + +class QHttpMultiPart(QtCore.QObject): + + class ContentType(int): ... + MixedType = ... # type: 'QHttpMultiPart.ContentType' + RelatedType = ... # type: 'QHttpMultiPart.ContentType' + FormDataType = ... # type: 'QHttpMultiPart.ContentType' + AlternativeType = ... # type: 'QHttpMultiPart.ContentType' + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, contentType: 'QHttpMultiPart.ContentType', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setBoundary(self, boundary: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def boundary(self) -> QtCore.QByteArray: ... + def setContentType(self, contentType: 'QHttpMultiPart.ContentType') -> None: ... + def append(self, httpPart: QHttpPart) -> None: ... + + +class QLocalServer(QtCore.QObject): + + class SocketOption(int): ... + UserAccessOption = ... # type: 'QLocalServer.SocketOption' + GroupAccessOption = ... # type: 'QLocalServer.SocketOption' + OtherAccessOption = ... # type: 'QLocalServer.SocketOption' + WorldAccessOption = ... # type: 'QLocalServer.SocketOption' + + class SocketOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QLocalServer.SocketOptions', 'QLocalServer.SocketOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QLocalServer.SocketOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QLocalServer.SocketOptions': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def socketDescriptor(self) -> sip.voidptr: ... + def socketOptions(self) -> 'QLocalServer.SocketOptions': ... + def setSocketOptions(self, options: typing.Union['QLocalServer.SocketOptions', 'QLocalServer.SocketOption']) -> None: ... + def incomingConnection(self, socketDescriptor: sip.voidptr) -> None: ... + def newConnection(self) -> None: ... + @staticmethod + def removeServer(name: str) -> bool: ... + def waitForNewConnection(self, msecs: int = ...) -> typing.Tuple[bool, bool]: ... + def setMaxPendingConnections(self, numConnections: int) -> None: ... + def serverError(self) -> QAbstractSocket.SocketError: ... + def fullServerName(self) -> str: ... + def serverName(self) -> str: ... + def nextPendingConnection(self) -> 'QLocalSocket': ... + def maxPendingConnections(self) -> int: ... + @typing.overload + def listen(self, name: str) -> bool: ... + @typing.overload + def listen(self, socketDescriptor: sip.voidptr) -> bool: ... + def isListening(self) -> bool: ... + def hasPendingConnections(self) -> bool: ... + def errorString(self) -> str: ... + def close(self) -> None: ... + + +class QLocalSocket(QtCore.QIODevice): + + class LocalSocketState(int): ... + UnconnectedState = ... # type: 'QLocalSocket.LocalSocketState' + ConnectingState = ... # type: 'QLocalSocket.LocalSocketState' + ConnectedState = ... # type: 'QLocalSocket.LocalSocketState' + ClosingState = ... # type: 'QLocalSocket.LocalSocketState' + + class LocalSocketError(int): ... + ConnectionRefusedError = ... # type: 'QLocalSocket.LocalSocketError' + PeerClosedError = ... # type: 'QLocalSocket.LocalSocketError' + ServerNotFoundError = ... # type: 'QLocalSocket.LocalSocketError' + SocketAccessError = ... # type: 'QLocalSocket.LocalSocketError' + SocketResourceError = ... # type: 'QLocalSocket.LocalSocketError' + SocketTimeoutError = ... # type: 'QLocalSocket.LocalSocketError' + DatagramTooLargeError = ... # type: 'QLocalSocket.LocalSocketError' + ConnectionError = ... # type: 'QLocalSocket.LocalSocketError' + UnsupportedSocketOperationError = ... # type: 'QLocalSocket.LocalSocketError' + OperationError = ... # type: 'QLocalSocket.LocalSocketError' + UnknownSocketError = ... # type: 'QLocalSocket.LocalSocketError' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def writeData(self, a0: bytes) -> int: ... + def readData(self, maxlen: int) -> bytes: ... + def stateChanged(self, socketState: 'QLocalSocket.LocalSocketState') -> None: ... + def disconnected(self) -> None: ... + def connected(self) -> None: ... + def waitForReadyRead(self, msecs: int = ...) -> bool: ... + def waitForDisconnected(self, msecs: int = ...) -> bool: ... + def waitForConnected(self, msecs: int = ...) -> bool: ... + def waitForBytesWritten(self, msecs: int = ...) -> bool: ... + def state(self) -> 'QLocalSocket.LocalSocketState': ... + def socketDescriptor(self) -> sip.voidptr: ... + def setSocketDescriptor(self, socketDescriptor: sip.voidptr, state: 'QLocalSocket.LocalSocketState' = ..., mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag] = ...) -> bool: ... + def setReadBufferSize(self, size: int) -> None: ... + def readBufferSize(self) -> int: ... + def isValid(self) -> bool: ... + def flush(self) -> bool: ... + @typing.overload + def error(self) -> 'QLocalSocket.LocalSocketError': ... + @typing.overload + def error(self, socketError: 'QLocalSocket.LocalSocketError') -> None: ... + def close(self) -> None: ... + def canReadLine(self) -> bool: ... + def bytesToWrite(self) -> int: ... + def bytesAvailable(self) -> int: ... + def isSequential(self) -> bool: ... + def abort(self) -> None: ... + def fullServerName(self) -> str: ... + def setServerName(self, name: str) -> None: ... + def serverName(self) -> str: ... + def open(self, mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag] = ...) -> bool: ... + def disconnectFromServer(self) -> None: ... + @typing.overload + def connectToServer(self, name: str, mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag] = ...) -> None: ... + @typing.overload + def connectToServer(self, mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag] = ...) -> None: ... + + +class QNetworkAccessManager(QtCore.QObject): + + class NetworkAccessibility(int): ... + UnknownAccessibility = ... # type: 'QNetworkAccessManager.NetworkAccessibility' + NotAccessible = ... # type: 'QNetworkAccessManager.NetworkAccessibility' + Accessible = ... # type: 'QNetworkAccessManager.NetworkAccessibility' + + class Operation(int): ... + HeadOperation = ... # type: 'QNetworkAccessManager.Operation' + GetOperation = ... # type: 'QNetworkAccessManager.Operation' + PutOperation = ... # type: 'QNetworkAccessManager.Operation' + PostOperation = ... # type: 'QNetworkAccessManager.Operation' + DeleteOperation = ... # type: 'QNetworkAccessManager.Operation' + CustomOperation = ... # type: 'QNetworkAccessManager.Operation' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def isStrictTransportSecurityStoreEnabled(self) -> bool: ... + def enableStrictTransportSecurityStore(self, enabled: bool, storeDir: str = ...) -> None: ... + def redirectPolicy(self) -> 'QNetworkRequest.RedirectPolicy': ... + def setRedirectPolicy(self, policy: 'QNetworkRequest.RedirectPolicy') -> None: ... + def strictTransportSecurityHosts(self) -> typing.List[QHstsPolicy]: ... + def addStrictTransportSecurityHosts(self, knownHosts: typing.Iterable[QHstsPolicy]) -> None: ... + def isStrictTransportSecurityEnabled(self) -> bool: ... + def setStrictTransportSecurityEnabled(self, enabled: bool) -> None: ... + def clearConnectionCache(self) -> None: ... + def supportedSchemesImplementation(self) -> typing.List[str]: ... + def connectToHost(self, hostName: str, port: int = ...) -> None: ... + @typing.overload + def connectToHostEncrypted(self, hostName: str, port: int = ..., sslConfiguration: 'QSslConfiguration' = ...) -> None: ... + @typing.overload + def connectToHostEncrypted(self, hostName: str, port: int, sslConfiguration: 'QSslConfiguration', peerName: str) -> None: ... + def supportedSchemes(self) -> typing.List[str]: ... + def clearAccessCache(self) -> None: ... + def networkAccessible(self) -> 'QNetworkAccessManager.NetworkAccessibility': ... + def setNetworkAccessible(self, accessible: 'QNetworkAccessManager.NetworkAccessibility') -> None: ... + def activeConfiguration(self) -> 'QNetworkConfiguration': ... + def configuration(self) -> 'QNetworkConfiguration': ... + def setConfiguration(self, config: 'QNetworkConfiguration') -> None: ... + @typing.overload + def sendCustomRequest(self, request: 'QNetworkRequest', verb: typing.Union[QtCore.QByteArray, bytes, bytearray], data: typing.Optional[QtCore.QIODevice] = ...) -> 'QNetworkReply': ... + @typing.overload + def sendCustomRequest(self, request: 'QNetworkRequest', verb: typing.Union[QtCore.QByteArray, bytes, bytearray], data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> 'QNetworkReply': ... + @typing.overload + def sendCustomRequest(self, request: 'QNetworkRequest', verb: typing.Union[QtCore.QByteArray, bytes, bytearray], multiPart: QHttpMultiPart) -> 'QNetworkReply': ... + def deleteResource(self, request: 'QNetworkRequest') -> 'QNetworkReply': ... + def setCache(self, cache: QAbstractNetworkCache) -> None: ... + def cache(self) -> QAbstractNetworkCache: ... + def setProxyFactory(self, factory: 'QNetworkProxyFactory') -> None: ... + def proxyFactory(self) -> 'QNetworkProxyFactory': ... + def createRequest(self, op: 'QNetworkAccessManager.Operation', request: 'QNetworkRequest', device: typing.Optional[QtCore.QIODevice] = ...) -> 'QNetworkReply': ... + def preSharedKeyAuthenticationRequired(self, reply: 'QNetworkReply', authenticator: 'QSslPreSharedKeyAuthenticator') -> None: ... + def networkAccessibleChanged(self, accessible: 'QNetworkAccessManager.NetworkAccessibility') -> None: ... + def sslErrors(self, reply: 'QNetworkReply', errors: typing.Iterable['QSslError']) -> None: ... + def encrypted(self, reply: 'QNetworkReply') -> None: ... + def finished(self, reply: 'QNetworkReply') -> None: ... + def authenticationRequired(self, reply: 'QNetworkReply', authenticator: QAuthenticator) -> None: ... + def proxyAuthenticationRequired(self, proxy: 'QNetworkProxy', authenticator: QAuthenticator) -> None: ... + @typing.overload + def put(self, request: 'QNetworkRequest', data: QtCore.QIODevice) -> 'QNetworkReply': ... + @typing.overload + def put(self, request: 'QNetworkRequest', data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> 'QNetworkReply': ... + @typing.overload + def put(self, request: 'QNetworkRequest', multiPart: QHttpMultiPart) -> 'QNetworkReply': ... + @typing.overload + def post(self, request: 'QNetworkRequest', data: QtCore.QIODevice) -> 'QNetworkReply': ... + @typing.overload + def post(self, request: 'QNetworkRequest', data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> 'QNetworkReply': ... + @typing.overload + def post(self, request: 'QNetworkRequest', multiPart: QHttpMultiPart) -> 'QNetworkReply': ... + def get(self, request: 'QNetworkRequest') -> 'QNetworkReply': ... + def head(self, request: 'QNetworkRequest') -> 'QNetworkReply': ... + def setCookieJar(self, cookieJar: 'QNetworkCookieJar') -> None: ... + def cookieJar(self) -> 'QNetworkCookieJar': ... + def setProxy(self, proxy: 'QNetworkProxy') -> None: ... + def proxy(self) -> 'QNetworkProxy': ... + + +class QNetworkConfigurationManager(QtCore.QObject): + + class Capability(int): ... + CanStartAndStopInterfaces = ... # type: 'QNetworkConfigurationManager.Capability' + DirectConnectionRouting = ... # type: 'QNetworkConfigurationManager.Capability' + SystemSessionSupport = ... # type: 'QNetworkConfigurationManager.Capability' + ApplicationLevelRoaming = ... # type: 'QNetworkConfigurationManager.Capability' + ForcedRoaming = ... # type: 'QNetworkConfigurationManager.Capability' + DataStatistics = ... # type: 'QNetworkConfigurationManager.Capability' + NetworkSessionRequired = ... # type: 'QNetworkConfigurationManager.Capability' + + class Capabilities(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QNetworkConfigurationManager.Capabilities', 'QNetworkConfigurationManager.Capability']) -> None: ... + @typing.overload + def __init__(self, a0: 'QNetworkConfigurationManager.Capabilities') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QNetworkConfigurationManager.Capabilities': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def updateCompleted(self) -> None: ... + def onlineStateChanged(self, isOnline: bool) -> None: ... + def configurationChanged(self, config: 'QNetworkConfiguration') -> None: ... + def configurationRemoved(self, config: 'QNetworkConfiguration') -> None: ... + def configurationAdded(self, config: 'QNetworkConfiguration') -> None: ... + def isOnline(self) -> bool: ... + def updateConfigurations(self) -> None: ... + def configurationFromIdentifier(self, identifier: str) -> 'QNetworkConfiguration': ... + def allConfigurations(self, flags: typing.Union['QNetworkConfiguration.StateFlags', 'QNetworkConfiguration.StateFlag'] = ...) -> typing.List['QNetworkConfiguration']: ... + def defaultConfiguration(self) -> 'QNetworkConfiguration': ... + def capabilities(self) -> 'QNetworkConfigurationManager.Capabilities': ... + + +class QNetworkConfiguration(sip.simplewrapper): + + class BearerType(int): ... + BearerUnknown = ... # type: 'QNetworkConfiguration.BearerType' + BearerEthernet = ... # type: 'QNetworkConfiguration.BearerType' + BearerWLAN = ... # type: 'QNetworkConfiguration.BearerType' + Bearer2G = ... # type: 'QNetworkConfiguration.BearerType' + BearerCDMA2000 = ... # type: 'QNetworkConfiguration.BearerType' + BearerWCDMA = ... # type: 'QNetworkConfiguration.BearerType' + BearerHSPA = ... # type: 'QNetworkConfiguration.BearerType' + BearerBluetooth = ... # type: 'QNetworkConfiguration.BearerType' + BearerWiMAX = ... # type: 'QNetworkConfiguration.BearerType' + BearerEVDO = ... # type: 'QNetworkConfiguration.BearerType' + BearerLTE = ... # type: 'QNetworkConfiguration.BearerType' + Bearer3G = ... # type: 'QNetworkConfiguration.BearerType' + Bearer4G = ... # type: 'QNetworkConfiguration.BearerType' + + class StateFlag(int): ... + Undefined = ... # type: 'QNetworkConfiguration.StateFlag' + Defined = ... # type: 'QNetworkConfiguration.StateFlag' + Discovered = ... # type: 'QNetworkConfiguration.StateFlag' + Active = ... # type: 'QNetworkConfiguration.StateFlag' + + class Purpose(int): ... + UnknownPurpose = ... # type: 'QNetworkConfiguration.Purpose' + PublicPurpose = ... # type: 'QNetworkConfiguration.Purpose' + PrivatePurpose = ... # type: 'QNetworkConfiguration.Purpose' + ServiceSpecificPurpose = ... # type: 'QNetworkConfiguration.Purpose' + + class Type(int): ... + InternetAccessPoint = ... # type: 'QNetworkConfiguration.Type' + ServiceNetwork = ... # type: 'QNetworkConfiguration.Type' + UserChoice = ... # type: 'QNetworkConfiguration.Type' + Invalid = ... # type: 'QNetworkConfiguration.Type' + + class StateFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QNetworkConfiguration.StateFlags', 'QNetworkConfiguration.StateFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QNetworkConfiguration.StateFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QNetworkConfiguration.StateFlags': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QNetworkConfiguration') -> None: ... + + def setConnectTimeout(self, timeout: int) -> bool: ... + def connectTimeout(self) -> int: ... + def swap(self, other: 'QNetworkConfiguration') -> None: ... + def isValid(self) -> bool: ... + def name(self) -> str: ... + def children(self) -> typing.List['QNetworkConfiguration']: ... + def isRoamingAvailable(self) -> bool: ... + def identifier(self) -> str: ... + def bearerTypeFamily(self) -> 'QNetworkConfiguration.BearerType': ... + def bearerTypeName(self) -> str: ... + def bearerType(self) -> 'QNetworkConfiguration.BearerType': ... + def purpose(self) -> 'QNetworkConfiguration.Purpose': ... + def type(self) -> 'QNetworkConfiguration.Type': ... + def state(self) -> 'QNetworkConfiguration.StateFlags': ... + + +class QNetworkCookie(sip.simplewrapper): + + class RawForm(int): ... + NameAndValueOnly = ... # type: 'QNetworkCookie.RawForm' + Full = ... # type: 'QNetworkCookie.RawForm' + + @typing.overload + def __init__(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray] = ..., value: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QNetworkCookie') -> None: ... + + def normalize(self, url: QtCore.QUrl) -> None: ... + def hasSameIdentifier(self, other: 'QNetworkCookie') -> bool: ... + def swap(self, other: 'QNetworkCookie') -> None: ... + def setHttpOnly(self, enable: bool) -> None: ... + def isHttpOnly(self) -> bool: ... + @staticmethod + def parseCookies(cookieString: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.List['QNetworkCookie']: ... + def toRawForm(self, form: 'QNetworkCookie.RawForm' = ...) -> QtCore.QByteArray: ... + def setValue(self, value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def value(self) -> QtCore.QByteArray: ... + def setName(self, cookieName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def name(self) -> QtCore.QByteArray: ... + def setPath(self, path: str) -> None: ... + def path(self) -> str: ... + def setDomain(self, domain: str) -> None: ... + def domain(self) -> str: ... + def setExpirationDate(self, date: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + def expirationDate(self) -> QtCore.QDateTime: ... + def isSessionCookie(self) -> bool: ... + def setSecure(self, enable: bool) -> None: ... + def isSecure(self) -> bool: ... + + +class QNetworkCookieJar(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def validateCookie(self, cookie: QNetworkCookie, url: QtCore.QUrl) -> bool: ... + def allCookies(self) -> typing.List[QNetworkCookie]: ... + def setAllCookies(self, cookieList: typing.Iterable[QNetworkCookie]) -> None: ... + def deleteCookie(self, cookie: QNetworkCookie) -> bool: ... + def updateCookie(self, cookie: QNetworkCookie) -> bool: ... + def insertCookie(self, cookie: QNetworkCookie) -> bool: ... + def setCookiesFromUrl(self, cookieList: typing.Iterable[QNetworkCookie], url: QtCore.QUrl) -> bool: ... + def cookiesForUrl(self, url: QtCore.QUrl) -> typing.List[QNetworkCookie]: ... + + +class QNetworkDatagram(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], destinationAddress: typing.Union[QHostAddress, QHostAddress.SpecialAddress] = ..., port: int = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QNetworkDatagram') -> None: ... + + def makeReply(self, payload: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> 'QNetworkDatagram': ... + def setData(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def data(self) -> QtCore.QByteArray: ... + def setHopLimit(self, count: int) -> None: ... + def hopLimit(self) -> int: ... + def setDestination(self, address: typing.Union[QHostAddress, QHostAddress.SpecialAddress], port: int) -> None: ... + def setSender(self, address: typing.Union[QHostAddress, QHostAddress.SpecialAddress], port: int = ...) -> None: ... + def destinationPort(self) -> int: ... + def senderPort(self) -> int: ... + def destinationAddress(self) -> QHostAddress: ... + def senderAddress(self) -> QHostAddress: ... + def setInterfaceIndex(self, index: int) -> None: ... + def interfaceIndex(self) -> int: ... + def isNull(self) -> bool: ... + def isValid(self) -> bool: ... + def clear(self) -> None: ... + def swap(self, other: 'QNetworkDatagram') -> None: ... + + +class QNetworkDiskCache(QAbstractNetworkCache): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def expire(self) -> int: ... + def clear(self) -> None: ... + def fileMetaData(self, fileName: str) -> QNetworkCacheMetaData: ... + def insert(self, device: QtCore.QIODevice) -> None: ... + def prepare(self, metaData: QNetworkCacheMetaData) -> QtCore.QIODevice: ... + def remove(self, url: QtCore.QUrl) -> bool: ... + def data(self, url: QtCore.QUrl) -> QtCore.QIODevice: ... + def updateMetaData(self, metaData: QNetworkCacheMetaData) -> None: ... + def metaData(self, url: QtCore.QUrl) -> QNetworkCacheMetaData: ... + def cacheSize(self) -> int: ... + def setMaximumCacheSize(self, size: int) -> None: ... + def maximumCacheSize(self) -> int: ... + def setCacheDirectory(self, cacheDir: str) -> None: ... + def cacheDirectory(self) -> str: ... + + +class QNetworkAddressEntry(sip.simplewrapper): + + class DnsEligibilityStatus(int): ... + DnsEligibilityUnknown = ... # type: 'QNetworkAddressEntry.DnsEligibilityStatus' + DnsIneligible = ... # type: 'QNetworkAddressEntry.DnsEligibilityStatus' + DnsEligible = ... # type: 'QNetworkAddressEntry.DnsEligibilityStatus' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QNetworkAddressEntry') -> None: ... + + def isTemporary(self) -> bool: ... + def isPermanent(self) -> bool: ... + def clearAddressLifetime(self) -> None: ... + def setAddressLifetime(self, preferred: QtCore.QDeadlineTimer, validity: QtCore.QDeadlineTimer) -> None: ... + def validityLifetime(self) -> QtCore.QDeadlineTimer: ... + def preferredLifetime(self) -> QtCore.QDeadlineTimer: ... + def isLifetimeKnown(self) -> bool: ... + def setDnsEligibility(self, status: 'QNetworkAddressEntry.DnsEligibilityStatus') -> None: ... + def dnsEligibility(self) -> 'QNetworkAddressEntry.DnsEligibilityStatus': ... + def swap(self, other: 'QNetworkAddressEntry') -> None: ... + def setPrefixLength(self, length: int) -> None: ... + def prefixLength(self) -> int: ... + def setBroadcast(self, newBroadcast: typing.Union[QHostAddress, QHostAddress.SpecialAddress]) -> None: ... + def broadcast(self) -> QHostAddress: ... + def setNetmask(self, newNetmask: typing.Union[QHostAddress, QHostAddress.SpecialAddress]) -> None: ... + def netmask(self) -> QHostAddress: ... + def setIp(self, newIp: typing.Union[QHostAddress, QHostAddress.SpecialAddress]) -> None: ... + def ip(self) -> QHostAddress: ... + + +class QNetworkInterface(sip.simplewrapper): + + class InterfaceType(int): ... + Unknown = ... # type: 'QNetworkInterface.InterfaceType' + Loopback = ... # type: 'QNetworkInterface.InterfaceType' + Virtual = ... # type: 'QNetworkInterface.InterfaceType' + Ethernet = ... # type: 'QNetworkInterface.InterfaceType' + Slip = ... # type: 'QNetworkInterface.InterfaceType' + CanBus = ... # type: 'QNetworkInterface.InterfaceType' + Ppp = ... # type: 'QNetworkInterface.InterfaceType' + Fddi = ... # type: 'QNetworkInterface.InterfaceType' + Wifi = ... # type: 'QNetworkInterface.InterfaceType' + Ieee80211 = ... # type: 'QNetworkInterface.InterfaceType' + Phonet = ... # type: 'QNetworkInterface.InterfaceType' + Ieee802154 = ... # type: 'QNetworkInterface.InterfaceType' + SixLoWPAN = ... # type: 'QNetworkInterface.InterfaceType' + Ieee80216 = ... # type: 'QNetworkInterface.InterfaceType' + Ieee1394 = ... # type: 'QNetworkInterface.InterfaceType' + + class InterfaceFlag(int): ... + IsUp = ... # type: 'QNetworkInterface.InterfaceFlag' + IsRunning = ... # type: 'QNetworkInterface.InterfaceFlag' + CanBroadcast = ... # type: 'QNetworkInterface.InterfaceFlag' + IsLoopBack = ... # type: 'QNetworkInterface.InterfaceFlag' + IsPointToPoint = ... # type: 'QNetworkInterface.InterfaceFlag' + CanMulticast = ... # type: 'QNetworkInterface.InterfaceFlag' + + class InterfaceFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QNetworkInterface.InterfaceFlags', 'QNetworkInterface.InterfaceFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QNetworkInterface.InterfaceFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QNetworkInterface.InterfaceFlags': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QNetworkInterface') -> None: ... + + def maximumTransmissionUnit(self) -> int: ... + def type(self) -> 'QNetworkInterface.InterfaceType': ... + @staticmethod + def interfaceNameFromIndex(index: int) -> str: ... + @staticmethod + def interfaceIndexFromName(name: str) -> int: ... + def swap(self, other: 'QNetworkInterface') -> None: ... + def humanReadableName(self) -> str: ... + def index(self) -> int: ... + @staticmethod + def allAddresses() -> typing.List[QHostAddress]: ... + @staticmethod + def allInterfaces() -> typing.List['QNetworkInterface']: ... + @staticmethod + def interfaceFromIndex(index: int) -> 'QNetworkInterface': ... + @staticmethod + def interfaceFromName(name: str) -> 'QNetworkInterface': ... + def addressEntries(self) -> typing.List[QNetworkAddressEntry]: ... + def hardwareAddress(self) -> str: ... + def flags(self) -> 'QNetworkInterface.InterfaceFlags': ... + def name(self) -> str: ... + def isValid(self) -> bool: ... + + +class QNetworkProxy(sip.simplewrapper): + + class Capability(int): ... + TunnelingCapability = ... # type: 'QNetworkProxy.Capability' + ListeningCapability = ... # type: 'QNetworkProxy.Capability' + UdpTunnelingCapability = ... # type: 'QNetworkProxy.Capability' + CachingCapability = ... # type: 'QNetworkProxy.Capability' + HostNameLookupCapability = ... # type: 'QNetworkProxy.Capability' + SctpTunnelingCapability = ... # type: 'QNetworkProxy.Capability' + SctpListeningCapability = ... # type: 'QNetworkProxy.Capability' + + class ProxyType(int): ... + DefaultProxy = ... # type: 'QNetworkProxy.ProxyType' + Socks5Proxy = ... # type: 'QNetworkProxy.ProxyType' + NoProxy = ... # type: 'QNetworkProxy.ProxyType' + HttpProxy = ... # type: 'QNetworkProxy.ProxyType' + HttpCachingProxy = ... # type: 'QNetworkProxy.ProxyType' + FtpCachingProxy = ... # type: 'QNetworkProxy.ProxyType' + + class Capabilities(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QNetworkProxy.Capabilities', 'QNetworkProxy.Capability']) -> None: ... + @typing.overload + def __init__(self, a0: 'QNetworkProxy.Capabilities') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QNetworkProxy.Capabilities': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, type: 'QNetworkProxy.ProxyType', hostName: str = ..., port: int = ..., user: str = ..., password: str = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QNetworkProxy') -> None: ... + + def setRawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray], value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def rawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> QtCore.QByteArray: ... + def rawHeaderList(self) -> typing.List[QtCore.QByteArray]: ... + def hasRawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + def setHeader(self, header: 'QNetworkRequest.KnownHeaders', value: typing.Any) -> None: ... + def header(self, header: 'QNetworkRequest.KnownHeaders') -> typing.Any: ... + def swap(self, other: 'QNetworkProxy') -> None: ... + def capabilities(self) -> 'QNetworkProxy.Capabilities': ... + def setCapabilities(self, capab: typing.Union['QNetworkProxy.Capabilities', 'QNetworkProxy.Capability']) -> None: ... + def isTransparentProxy(self) -> bool: ... + def isCachingProxy(self) -> bool: ... + @staticmethod + def applicationProxy() -> 'QNetworkProxy': ... + @staticmethod + def setApplicationProxy(proxy: 'QNetworkProxy') -> None: ... + def port(self) -> int: ... + def setPort(self, port: int) -> None: ... + def hostName(self) -> str: ... + def setHostName(self, hostName: str) -> None: ... + def password(self) -> str: ... + def setPassword(self, password: str) -> None: ... + def user(self) -> str: ... + def setUser(self, userName: str) -> None: ... + def type(self) -> 'QNetworkProxy.ProxyType': ... + def setType(self, type: 'QNetworkProxy.ProxyType') -> None: ... + + +class QNetworkProxyQuery(sip.simplewrapper): + + class QueryType(int): ... + TcpSocket = ... # type: 'QNetworkProxyQuery.QueryType' + UdpSocket = ... # type: 'QNetworkProxyQuery.QueryType' + TcpServer = ... # type: 'QNetworkProxyQuery.QueryType' + UrlRequest = ... # type: 'QNetworkProxyQuery.QueryType' + SctpSocket = ... # type: 'QNetworkProxyQuery.QueryType' + SctpServer = ... # type: 'QNetworkProxyQuery.QueryType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, requestUrl: QtCore.QUrl, type: 'QNetworkProxyQuery.QueryType' = ...) -> None: ... + @typing.overload + def __init__(self, hostname: str, port: int, protocolTag: str = ..., type: 'QNetworkProxyQuery.QueryType' = ...) -> None: ... + @typing.overload + def __init__(self, bindPort: int, protocolTag: str = ..., type: 'QNetworkProxyQuery.QueryType' = ...) -> None: ... + @typing.overload + def __init__(self, networkConfiguration: QNetworkConfiguration, requestUrl: QtCore.QUrl, queryType: 'QNetworkProxyQuery.QueryType' = ...) -> None: ... + @typing.overload + def __init__(self, networkConfiguration: QNetworkConfiguration, hostname: str, port: int, protocolTag: str = ..., type: 'QNetworkProxyQuery.QueryType' = ...) -> None: ... + @typing.overload + def __init__(self, networkConfiguration: QNetworkConfiguration, bindPort: int, protocolTag: str = ..., type: 'QNetworkProxyQuery.QueryType' = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QNetworkProxyQuery') -> None: ... + + def swap(self, other: 'QNetworkProxyQuery') -> None: ... + def setNetworkConfiguration(self, networkConfiguration: QNetworkConfiguration) -> None: ... + def networkConfiguration(self) -> QNetworkConfiguration: ... + def setUrl(self, url: QtCore.QUrl) -> None: ... + def url(self) -> QtCore.QUrl: ... + def setProtocolTag(self, protocolTag: str) -> None: ... + def protocolTag(self) -> str: ... + def setLocalPort(self, port: int) -> None: ... + def localPort(self) -> int: ... + def setPeerHostName(self, hostname: str) -> None: ... + def peerHostName(self) -> str: ... + def setPeerPort(self, port: int) -> None: ... + def peerPort(self) -> int: ... + def setQueryType(self, type: 'QNetworkProxyQuery.QueryType') -> None: ... + def queryType(self) -> 'QNetworkProxyQuery.QueryType': ... + + +class QNetworkProxyFactory(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QNetworkProxyFactory') -> None: ... + + @staticmethod + def usesSystemConfiguration() -> bool: ... + @staticmethod + def setUseSystemConfiguration(enable: bool) -> None: ... + @staticmethod + def systemProxyForQuery(query: QNetworkProxyQuery = ...) -> typing.List[QNetworkProxy]: ... + @staticmethod + def proxyForQuery(query: QNetworkProxyQuery) -> typing.List[QNetworkProxy]: ... + @staticmethod + def setApplicationProxyFactory(factory: 'QNetworkProxyFactory') -> None: ... + def queryProxy(self, query: QNetworkProxyQuery = ...) -> typing.List[QNetworkProxy]: ... + + +class QNetworkReply(QtCore.QIODevice): + + class NetworkError(int): ... + NoError = ... # type: 'QNetworkReply.NetworkError' + ConnectionRefusedError = ... # type: 'QNetworkReply.NetworkError' + RemoteHostClosedError = ... # type: 'QNetworkReply.NetworkError' + HostNotFoundError = ... # type: 'QNetworkReply.NetworkError' + TimeoutError = ... # type: 'QNetworkReply.NetworkError' + OperationCanceledError = ... # type: 'QNetworkReply.NetworkError' + SslHandshakeFailedError = ... # type: 'QNetworkReply.NetworkError' + UnknownNetworkError = ... # type: 'QNetworkReply.NetworkError' + ProxyConnectionRefusedError = ... # type: 'QNetworkReply.NetworkError' + ProxyConnectionClosedError = ... # type: 'QNetworkReply.NetworkError' + ProxyNotFoundError = ... # type: 'QNetworkReply.NetworkError' + ProxyTimeoutError = ... # type: 'QNetworkReply.NetworkError' + ProxyAuthenticationRequiredError = ... # type: 'QNetworkReply.NetworkError' + UnknownProxyError = ... # type: 'QNetworkReply.NetworkError' + ContentAccessDenied = ... # type: 'QNetworkReply.NetworkError' + ContentOperationNotPermittedError = ... # type: 'QNetworkReply.NetworkError' + ContentNotFoundError = ... # type: 'QNetworkReply.NetworkError' + AuthenticationRequiredError = ... # type: 'QNetworkReply.NetworkError' + UnknownContentError = ... # type: 'QNetworkReply.NetworkError' + ProtocolUnknownError = ... # type: 'QNetworkReply.NetworkError' + ProtocolInvalidOperationError = ... # type: 'QNetworkReply.NetworkError' + ProtocolFailure = ... # type: 'QNetworkReply.NetworkError' + ContentReSendError = ... # type: 'QNetworkReply.NetworkError' + TemporaryNetworkFailureError = ... # type: 'QNetworkReply.NetworkError' + NetworkSessionFailedError = ... # type: 'QNetworkReply.NetworkError' + BackgroundRequestNotAllowedError = ... # type: 'QNetworkReply.NetworkError' + ContentConflictError = ... # type: 'QNetworkReply.NetworkError' + ContentGoneError = ... # type: 'QNetworkReply.NetworkError' + InternalServerError = ... # type: 'QNetworkReply.NetworkError' + OperationNotImplementedError = ... # type: 'QNetworkReply.NetworkError' + ServiceUnavailableError = ... # type: 'QNetworkReply.NetworkError' + UnknownServerError = ... # type: 'QNetworkReply.NetworkError' + TooManyRedirectsError = ... # type: 'QNetworkReply.NetworkError' + InsecureRedirectError = ... # type: 'QNetworkReply.NetworkError' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def ignoreSslErrorsImplementation(self, a0: typing.Iterable['QSslError']) -> None: ... + def setSslConfigurationImplementation(self, a0: 'QSslConfiguration') -> None: ... + def sslConfigurationImplementation(self, a0: 'QSslConfiguration') -> None: ... + def rawHeaderPairs(self) -> typing.List[typing.Tuple[QtCore.QByteArray, QtCore.QByteArray]]: ... + def isRunning(self) -> bool: ... + def isFinished(self) -> bool: ... + def setFinished(self, finished: bool) -> None: ... + def setAttribute(self, code: 'QNetworkRequest.Attribute', value: typing.Any) -> None: ... + def setRawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray], value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def setHeader(self, header: 'QNetworkRequest.KnownHeaders', value: typing.Any) -> None: ... + def setUrl(self, url: QtCore.QUrl) -> None: ... + def setError(self, errorCode: 'QNetworkReply.NetworkError', errorString: str) -> None: ... + def setRequest(self, request: 'QNetworkRequest') -> None: ... + def setOperation(self, operation: QNetworkAccessManager.Operation) -> None: ... + def writeData(self, data: bytes) -> int: ... + def redirectAllowed(self) -> None: ... + def redirected(self, url: QtCore.QUrl) -> None: ... + def preSharedKeyAuthenticationRequired(self, authenticator: 'QSslPreSharedKeyAuthenticator') -> None: ... + def downloadProgress(self, bytesReceived: int, bytesTotal: int) -> None: ... + def uploadProgress(self, bytesSent: int, bytesTotal: int) -> None: ... + def sslErrors(self, errors: typing.Iterable['QSslError']) -> None: ... + def encrypted(self) -> None: ... + def finished(self) -> None: ... + def metaDataChanged(self) -> None: ... + @typing.overload + def ignoreSslErrors(self) -> None: ... + @typing.overload + def ignoreSslErrors(self, errors: typing.Iterable['QSslError']) -> None: ... + def setSslConfiguration(self, configuration: 'QSslConfiguration') -> None: ... + def sslConfiguration(self) -> 'QSslConfiguration': ... + def attribute(self, code: 'QNetworkRequest.Attribute') -> typing.Any: ... + def rawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> QtCore.QByteArray: ... + def rawHeaderList(self) -> typing.List[QtCore.QByteArray]: ... + def hasRawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + def header(self, header: 'QNetworkRequest.KnownHeaders') -> typing.Any: ... + def url(self) -> QtCore.QUrl: ... + @typing.overload + def error(self) -> 'QNetworkReply.NetworkError': ... + @typing.overload + def error(self, a0: 'QNetworkReply.NetworkError') -> None: ... + def request(self) -> 'QNetworkRequest': ... + def operation(self) -> QNetworkAccessManager.Operation: ... + def manager(self) -> QNetworkAccessManager: ... + def setReadBufferSize(self, size: int) -> None: ... + def readBufferSize(self) -> int: ... + def isSequential(self) -> bool: ... + def close(self) -> None: ... + def abort(self) -> None: ... + + +class QNetworkRequest(sip.simplewrapper): + + class RedirectPolicy(int): ... + ManualRedirectPolicy = ... # type: 'QNetworkRequest.RedirectPolicy' + NoLessSafeRedirectPolicy = ... # type: 'QNetworkRequest.RedirectPolicy' + SameOriginRedirectPolicy = ... # type: 'QNetworkRequest.RedirectPolicy' + UserVerifiedRedirectPolicy = ... # type: 'QNetworkRequest.RedirectPolicy' + + class Priority(int): ... + HighPriority = ... # type: 'QNetworkRequest.Priority' + NormalPriority = ... # type: 'QNetworkRequest.Priority' + LowPriority = ... # type: 'QNetworkRequest.Priority' + + class LoadControl(int): ... + Automatic = ... # type: 'QNetworkRequest.LoadControl' + Manual = ... # type: 'QNetworkRequest.LoadControl' + + class CacheLoadControl(int): ... + AlwaysNetwork = ... # type: 'QNetworkRequest.CacheLoadControl' + PreferNetwork = ... # type: 'QNetworkRequest.CacheLoadControl' + PreferCache = ... # type: 'QNetworkRequest.CacheLoadControl' + AlwaysCache = ... # type: 'QNetworkRequest.CacheLoadControl' + + class Attribute(int): ... + HttpStatusCodeAttribute = ... # type: 'QNetworkRequest.Attribute' + HttpReasonPhraseAttribute = ... # type: 'QNetworkRequest.Attribute' + RedirectionTargetAttribute = ... # type: 'QNetworkRequest.Attribute' + ConnectionEncryptedAttribute = ... # type: 'QNetworkRequest.Attribute' + CacheLoadControlAttribute = ... # type: 'QNetworkRequest.Attribute' + CacheSaveControlAttribute = ... # type: 'QNetworkRequest.Attribute' + SourceIsFromCacheAttribute = ... # type: 'QNetworkRequest.Attribute' + DoNotBufferUploadDataAttribute = ... # type: 'QNetworkRequest.Attribute' + HttpPipeliningAllowedAttribute = ... # type: 'QNetworkRequest.Attribute' + HttpPipeliningWasUsedAttribute = ... # type: 'QNetworkRequest.Attribute' + CustomVerbAttribute = ... # type: 'QNetworkRequest.Attribute' + CookieLoadControlAttribute = ... # type: 'QNetworkRequest.Attribute' + AuthenticationReuseAttribute = ... # type: 'QNetworkRequest.Attribute' + CookieSaveControlAttribute = ... # type: 'QNetworkRequest.Attribute' + BackgroundRequestAttribute = ... # type: 'QNetworkRequest.Attribute' + SpdyAllowedAttribute = ... # type: 'QNetworkRequest.Attribute' + SpdyWasUsedAttribute = ... # type: 'QNetworkRequest.Attribute' + EmitAllUploadProgressSignalsAttribute = ... # type: 'QNetworkRequest.Attribute' + FollowRedirectsAttribute = ... # type: 'QNetworkRequest.Attribute' + HTTP2AllowedAttribute = ... # type: 'QNetworkRequest.Attribute' + HTTP2WasUsedAttribute = ... # type: 'QNetworkRequest.Attribute' + OriginalContentLengthAttribute = ... # type: 'QNetworkRequest.Attribute' + RedirectPolicyAttribute = ... # type: 'QNetworkRequest.Attribute' + Http2DirectAttribute = ... # type: 'QNetworkRequest.Attribute' + User = ... # type: 'QNetworkRequest.Attribute' + UserMax = ... # type: 'QNetworkRequest.Attribute' + + class KnownHeaders(int): ... + ContentTypeHeader = ... # type: 'QNetworkRequest.KnownHeaders' + ContentLengthHeader = ... # type: 'QNetworkRequest.KnownHeaders' + LocationHeader = ... # type: 'QNetworkRequest.KnownHeaders' + LastModifiedHeader = ... # type: 'QNetworkRequest.KnownHeaders' + CookieHeader = ... # type: 'QNetworkRequest.KnownHeaders' + SetCookieHeader = ... # type: 'QNetworkRequest.KnownHeaders' + ContentDispositionHeader = ... # type: 'QNetworkRequest.KnownHeaders' + UserAgentHeader = ... # type: 'QNetworkRequest.KnownHeaders' + ServerHeader = ... # type: 'QNetworkRequest.KnownHeaders' + IfModifiedSinceHeader = ... # type: 'QNetworkRequest.KnownHeaders' + ETagHeader = ... # type: 'QNetworkRequest.KnownHeaders' + IfMatchHeader = ... # type: 'QNetworkRequest.KnownHeaders' + IfNoneMatchHeader = ... # type: 'QNetworkRequest.KnownHeaders' + + @typing.overload + def __init__(self, url: QtCore.QUrl = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QNetworkRequest') -> None: ... + + def setPeerVerifyName(self, peerName: str) -> None: ... + def peerVerifyName(self) -> str: ... + def setMaximumRedirectsAllowed(self, maximumRedirectsAllowed: int) -> None: ... + def maximumRedirectsAllowed(self) -> int: ... + def swap(self, other: 'QNetworkRequest') -> None: ... + def setPriority(self, priority: 'QNetworkRequest.Priority') -> None: ... + def priority(self) -> 'QNetworkRequest.Priority': ... + def originatingObject(self) -> QtCore.QObject: ... + def setOriginatingObject(self, object: QtCore.QObject) -> None: ... + def setSslConfiguration(self, configuration: 'QSslConfiguration') -> None: ... + def sslConfiguration(self) -> 'QSslConfiguration': ... + def setAttribute(self, code: 'QNetworkRequest.Attribute', value: typing.Any) -> None: ... + def attribute(self, code: 'QNetworkRequest.Attribute', defaultValue: typing.Any = ...) -> typing.Any: ... + def setRawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray], value: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def rawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> QtCore.QByteArray: ... + def rawHeaderList(self) -> typing.List[QtCore.QByteArray]: ... + def hasRawHeader(self, headerName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + def setHeader(self, header: 'QNetworkRequest.KnownHeaders', value: typing.Any) -> None: ... + def header(self, header: 'QNetworkRequest.KnownHeaders') -> typing.Any: ... + def setUrl(self, url: QtCore.QUrl) -> None: ... + def url(self) -> QtCore.QUrl: ... + + +class QNetworkSession(QtCore.QObject): + + class UsagePolicy(int): ... + NoPolicy = ... # type: 'QNetworkSession.UsagePolicy' + NoBackgroundTrafficPolicy = ... # type: 'QNetworkSession.UsagePolicy' + + class SessionError(int): ... + UnknownSessionError = ... # type: 'QNetworkSession.SessionError' + SessionAbortedError = ... # type: 'QNetworkSession.SessionError' + RoamingError = ... # type: 'QNetworkSession.SessionError' + OperationNotSupportedError = ... # type: 'QNetworkSession.SessionError' + InvalidConfigurationError = ... # type: 'QNetworkSession.SessionError' + + class State(int): ... + Invalid = ... # type: 'QNetworkSession.State' + NotAvailable = ... # type: 'QNetworkSession.State' + Connecting = ... # type: 'QNetworkSession.State' + Connected = ... # type: 'QNetworkSession.State' + Closing = ... # type: 'QNetworkSession.State' + Disconnected = ... # type: 'QNetworkSession.State' + Roaming = ... # type: 'QNetworkSession.State' + + class UsagePolicies(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QNetworkSession.UsagePolicies', 'QNetworkSession.UsagePolicy']) -> None: ... + @typing.overload + def __init__(self, a0: 'QNetworkSession.UsagePolicies') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QNetworkSession.UsagePolicies': ... + def __int__(self) -> int: ... + + def __init__(self, connConfig: QNetworkConfiguration, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def usagePoliciesChanged(self, usagePolicies: typing.Union['QNetworkSession.UsagePolicies', 'QNetworkSession.UsagePolicy']) -> None: ... + def usagePolicies(self) -> 'QNetworkSession.UsagePolicies': ... + def disconnectNotify(self, signal: QtCore.QMetaMethod) -> None: ... + def connectNotify(self, signal: QtCore.QMetaMethod) -> None: ... + def newConfigurationActivated(self) -> None: ... + def preferredConfigurationChanged(self, config: QNetworkConfiguration, isSeamless: bool) -> None: ... + def closed(self) -> None: ... + def opened(self) -> None: ... + def stateChanged(self, a0: 'QNetworkSession.State') -> None: ... + def reject(self) -> None: ... + def accept(self) -> None: ... + def ignore(self) -> None: ... + def migrate(self) -> None: ... + def stop(self) -> None: ... + def close(self) -> None: ... + def open(self) -> None: ... + def waitForOpened(self, msecs: int = ...) -> bool: ... + def activeTime(self) -> int: ... + def bytesReceived(self) -> int: ... + def bytesWritten(self) -> int: ... + def setSessionProperty(self, key: str, value: typing.Any) -> None: ... + def sessionProperty(self, key: str) -> typing.Any: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> 'QNetworkSession.SessionError': ... + @typing.overload + def error(self, a0: 'QNetworkSession.SessionError') -> None: ... + def state(self) -> 'QNetworkSession.State': ... + def interface(self) -> QNetworkInterface: ... + def configuration(self) -> QNetworkConfiguration: ... + def isOpen(self) -> bool: ... + + +class QOcspResponse(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QOcspResponse') -> None: ... + + def __hash__(self) -> int: ... + def swap(self, other: 'QOcspResponse') -> None: ... + def subject(self) -> 'QSslCertificate': ... + def responder(self) -> 'QSslCertificate': ... + def revocationReason(self) -> QOcspRevocationReason: ... + def certificateStatus(self) -> QOcspCertificateStatus: ... + + +class QPasswordDigestor(sip.simplewrapper): + + def deriveKeyPbkdf2(self, algorithm: QtCore.QCryptographicHash.Algorithm, password: typing.Union[QtCore.QByteArray, bytes, bytearray], salt: typing.Union[QtCore.QByteArray, bytes, bytearray], iterations: int, dkLen: int) -> QtCore.QByteArray: ... + def deriveKeyPbkdf1(self, algorithm: QtCore.QCryptographicHash.Algorithm, password: typing.Union[QtCore.QByteArray, bytes, bytearray], salt: typing.Union[QtCore.QByteArray, bytes, bytearray], iterations: int, dkLen: int) -> QtCore.QByteArray: ... + + +class QSsl(sip.simplewrapper): + + class SslOption(int): ... + SslOptionDisableEmptyFragments = ... # type: 'QSsl.SslOption' + SslOptionDisableSessionTickets = ... # type: 'QSsl.SslOption' + SslOptionDisableCompression = ... # type: 'QSsl.SslOption' + SslOptionDisableServerNameIndication = ... # type: 'QSsl.SslOption' + SslOptionDisableLegacyRenegotiation = ... # type: 'QSsl.SslOption' + SslOptionDisableSessionSharing = ... # type: 'QSsl.SslOption' + SslOptionDisableSessionPersistence = ... # type: 'QSsl.SslOption' + SslOptionDisableServerCipherPreference = ... # type: 'QSsl.SslOption' + + class SslProtocol(int): ... + UnknownProtocol = ... # type: 'QSsl.SslProtocol' + SslV3 = ... # type: 'QSsl.SslProtocol' + SslV2 = ... # type: 'QSsl.SslProtocol' + TlsV1_0 = ... # type: 'QSsl.SslProtocol' + TlsV1_0OrLater = ... # type: 'QSsl.SslProtocol' + TlsV1_1 = ... # type: 'QSsl.SslProtocol' + TlsV1_1OrLater = ... # type: 'QSsl.SslProtocol' + TlsV1_2 = ... # type: 'QSsl.SslProtocol' + TlsV1_2OrLater = ... # type: 'QSsl.SslProtocol' + AnyProtocol = ... # type: 'QSsl.SslProtocol' + TlsV1SslV3 = ... # type: 'QSsl.SslProtocol' + SecureProtocols = ... # type: 'QSsl.SslProtocol' + DtlsV1_0 = ... # type: 'QSsl.SslProtocol' + DtlsV1_0OrLater = ... # type: 'QSsl.SslProtocol' + DtlsV1_2 = ... # type: 'QSsl.SslProtocol' + DtlsV1_2OrLater = ... # type: 'QSsl.SslProtocol' + TlsV1_3 = ... # type: 'QSsl.SslProtocol' + TlsV1_3OrLater = ... # type: 'QSsl.SslProtocol' + + class AlternativeNameEntryType(int): ... + EmailEntry = ... # type: 'QSsl.AlternativeNameEntryType' + DnsEntry = ... # type: 'QSsl.AlternativeNameEntryType' + IpAddressEntry = ... # type: 'QSsl.AlternativeNameEntryType' + + class KeyAlgorithm(int): ... + Opaque = ... # type: 'QSsl.KeyAlgorithm' + Rsa = ... # type: 'QSsl.KeyAlgorithm' + Dsa = ... # type: 'QSsl.KeyAlgorithm' + Ec = ... # type: 'QSsl.KeyAlgorithm' + Dh = ... # type: 'QSsl.KeyAlgorithm' + + class EncodingFormat(int): ... + Pem = ... # type: 'QSsl.EncodingFormat' + Der = ... # type: 'QSsl.EncodingFormat' + + class KeyType(int): ... + PrivateKey = ... # type: 'QSsl.KeyType' + PublicKey = ... # type: 'QSsl.KeyType' + + class SslOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSsl.SslOptions', 'QSsl.SslOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSsl.SslOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSsl.SslOptions': ... + def __int__(self) -> int: ... + + +class QSslCertificate(sip.simplewrapper): + + class SubjectInfo(int): ... + Organization = ... # type: 'QSslCertificate.SubjectInfo' + CommonName = ... # type: 'QSslCertificate.SubjectInfo' + LocalityName = ... # type: 'QSslCertificate.SubjectInfo' + OrganizationalUnitName = ... # type: 'QSslCertificate.SubjectInfo' + CountryName = ... # type: 'QSslCertificate.SubjectInfo' + StateOrProvinceName = ... # type: 'QSslCertificate.SubjectInfo' + DistinguishedNameQualifier = ... # type: 'QSslCertificate.SubjectInfo' + SerialNumber = ... # type: 'QSslCertificate.SubjectInfo' + EmailAddress = ... # type: 'QSslCertificate.SubjectInfo' + + @typing.overload + def __init__(self, device: QtCore.QIODevice, format: QSsl.EncodingFormat = ...) -> None: ... + @typing.overload + def __init__(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray] = ..., format: QSsl.EncodingFormat = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QSslCertificate') -> None: ... + + def subjectDisplayName(self) -> str: ... + def issuerDisplayName(self) -> str: ... + @staticmethod + def importPkcs12(device: QtCore.QIODevice, key: 'QSslKey', certificate: 'QSslCertificate', caCertificates: typing.Optional[typing.Iterable['QSslCertificate']] = ..., passPhrase: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> bool: ... + def __hash__(self) -> int: ... + def isSelfSigned(self) -> bool: ... + @staticmethod + def verify(certificateChain: typing.Iterable['QSslCertificate'], hostName: str = ...) -> typing.List['QSslError']: ... + def toText(self) -> str: ... + def extensions(self) -> typing.List['QSslCertificateExtension']: ... + def issuerInfoAttributes(self) -> typing.List[QtCore.QByteArray]: ... + def subjectInfoAttributes(self) -> typing.List[QtCore.QByteArray]: ... + def isBlacklisted(self) -> bool: ... + def swap(self, other: 'QSslCertificate') -> None: ... + def handle(self) -> sip.voidptr: ... + @staticmethod + def fromData(data: typing.Union[QtCore.QByteArray, bytes, bytearray], format: QSsl.EncodingFormat = ...) -> typing.List['QSslCertificate']: ... + @staticmethod + def fromDevice(device: QtCore.QIODevice, format: QSsl.EncodingFormat = ...) -> typing.List['QSslCertificate']: ... + @staticmethod + def fromPath(path: str, format: QSsl.EncodingFormat = ..., syntax: QtCore.QRegExp.PatternSyntax = ...) -> typing.List['QSslCertificate']: ... + def toDer(self) -> QtCore.QByteArray: ... + def toPem(self) -> QtCore.QByteArray: ... + def publicKey(self) -> 'QSslKey': ... + def expiryDate(self) -> QtCore.QDateTime: ... + def effectiveDate(self) -> QtCore.QDateTime: ... + def subjectAlternativeNames(self) -> typing.Dict[QSsl.AlternativeNameEntryType, typing.List[str]]: ... + @typing.overload + def subjectInfo(self, info: 'QSslCertificate.SubjectInfo') -> typing.List[str]: ... + @typing.overload + def subjectInfo(self, attribute: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.List[str]: ... + @typing.overload + def issuerInfo(self, info: 'QSslCertificate.SubjectInfo') -> typing.List[str]: ... + @typing.overload + def issuerInfo(self, attribute: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.List[str]: ... + def digest(self, algorithm: QtCore.QCryptographicHash.Algorithm = ...) -> QtCore.QByteArray: ... + def serialNumber(self) -> QtCore.QByteArray: ... + def version(self) -> QtCore.QByteArray: ... + def clear(self) -> None: ... + def isNull(self) -> bool: ... + + +class QSslCertificateExtension(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QSslCertificateExtension') -> None: ... + + def isSupported(self) -> bool: ... + def isCritical(self) -> bool: ... + def value(self) -> typing.Any: ... + def name(self) -> str: ... + def oid(self) -> str: ... + def swap(self, other: 'QSslCertificateExtension') -> None: ... + + +class QSslCipher(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, name: str) -> None: ... + @typing.overload + def __init__(self, name: str, protocol: QSsl.SslProtocol) -> None: ... + @typing.overload + def __init__(self, other: 'QSslCipher') -> None: ... + + def swap(self, other: 'QSslCipher') -> None: ... + def protocol(self) -> QSsl.SslProtocol: ... + def protocolString(self) -> str: ... + def encryptionMethod(self) -> str: ... + def authenticationMethod(self) -> str: ... + def keyExchangeMethod(self) -> str: ... + def usedBits(self) -> int: ... + def supportedBits(self) -> int: ... + def name(self) -> str: ... + def isNull(self) -> bool: ... + + +class QSslConfiguration(sip.simplewrapper): + + class NextProtocolNegotiationStatus(int): ... + NextProtocolNegotiationNone = ... # type: 'QSslConfiguration.NextProtocolNegotiationStatus' + NextProtocolNegotiationNegotiated = ... # type: 'QSslConfiguration.NextProtocolNegotiationStatus' + NextProtocolNegotiationUnsupported = ... # type: 'QSslConfiguration.NextProtocolNegotiationStatus' + + NextProtocolHttp1_1 = ... # type: str + NextProtocolSpdy3_0 = ... # type: str + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QSslConfiguration') -> None: ... + + def ocspStaplingEnabled(self) -> bool: ... + def setOcspStaplingEnabled(self, enable: bool) -> None: ... + def setBackendConfiguration(self, backendConfiguration: typing.Dict[typing.Union[QtCore.QByteArray, bytes, bytearray], typing.Any] = ...) -> None: ... + def setBackendConfigurationOption(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray], value: typing.Any) -> None: ... + def backendConfiguration(self) -> typing.Dict[QtCore.QByteArray, typing.Any]: ... + def setDiffieHellmanParameters(self, dhparams: 'QSslDiffieHellmanParameters') -> None: ... + def diffieHellmanParameters(self) -> 'QSslDiffieHellmanParameters': ... + def setPreSharedKeyIdentityHint(self, hint: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def preSharedKeyIdentityHint(self) -> QtCore.QByteArray: ... + def ephemeralServerKey(self) -> 'QSslKey': ... + @staticmethod + def supportedEllipticCurves() -> typing.List['QSslEllipticCurve']: ... + def setEllipticCurves(self, curves: typing.Iterable['QSslEllipticCurve']) -> None: ... + def ellipticCurves(self) -> typing.List['QSslEllipticCurve']: ... + @staticmethod + def systemCaCertificates() -> typing.List[QSslCertificate]: ... + @staticmethod + def supportedCiphers() -> typing.List[QSslCipher]: ... + def sessionProtocol(self) -> QSsl.SslProtocol: ... + def nextProtocolNegotiationStatus(self) -> 'QSslConfiguration.NextProtocolNegotiationStatus': ... + def nextNegotiatedProtocol(self) -> QtCore.QByteArray: ... + def allowedNextProtocols(self) -> typing.List[QtCore.QByteArray]: ... + def setAllowedNextProtocols(self, protocols: typing.Iterable[typing.Union[QtCore.QByteArray, bytes, bytearray]]) -> None: ... + def sessionTicketLifeTimeHint(self) -> int: ... + def setSessionTicket(self, sessionTicket: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def sessionTicket(self) -> QtCore.QByteArray: ... + def setLocalCertificateChain(self, localChain: typing.Iterable[QSslCertificate]) -> None: ... + def localCertificateChain(self) -> typing.List[QSslCertificate]: ... + def swap(self, other: 'QSslConfiguration') -> None: ... + def testSslOption(self, option: QSsl.SslOption) -> bool: ... + def setSslOption(self, option: QSsl.SslOption, on: bool) -> None: ... + @staticmethod + def setDefaultConfiguration(configuration: 'QSslConfiguration') -> None: ... + @staticmethod + def defaultConfiguration() -> 'QSslConfiguration': ... + def setCaCertificates(self, certificates: typing.Iterable[QSslCertificate]) -> None: ... + def caCertificates(self) -> typing.List[QSslCertificate]: ... + def setCiphers(self, ciphers: typing.Iterable[QSslCipher]) -> None: ... + def ciphers(self) -> typing.List[QSslCipher]: ... + def setPrivateKey(self, key: 'QSslKey') -> None: ... + def privateKey(self) -> 'QSslKey': ... + def sessionCipher(self) -> QSslCipher: ... + def peerCertificateChain(self) -> typing.List[QSslCertificate]: ... + def peerCertificate(self) -> QSslCertificate: ... + def setLocalCertificate(self, certificate: QSslCertificate) -> None: ... + def localCertificate(self) -> QSslCertificate: ... + def setPeerVerifyDepth(self, depth: int) -> None: ... + def peerVerifyDepth(self) -> int: ... + def setPeerVerifyMode(self, mode: 'QSslSocket.PeerVerifyMode') -> None: ... + def peerVerifyMode(self) -> 'QSslSocket.PeerVerifyMode': ... + def setProtocol(self, protocol: QSsl.SslProtocol) -> None: ... + def protocol(self) -> QSsl.SslProtocol: ... + def isNull(self) -> bool: ... + + +class QSslDiffieHellmanParameters(sip.simplewrapper): + + class Error(int): ... + NoError = ... # type: 'QSslDiffieHellmanParameters.Error' + InvalidInputDataError = ... # type: 'QSslDiffieHellmanParameters.Error' + UnsafeParametersError = ... # type: 'QSslDiffieHellmanParameters.Error' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QSslDiffieHellmanParameters') -> None: ... + + def __hash__(self) -> int: ... + def errorString(self) -> str: ... + def error(self) -> 'QSslDiffieHellmanParameters.Error': ... + def isValid(self) -> bool: ... + def isEmpty(self) -> bool: ... + @typing.overload + @staticmethod + def fromEncoded(encoded: typing.Union[QtCore.QByteArray, bytes, bytearray], encoding: QSsl.EncodingFormat = ...) -> 'QSslDiffieHellmanParameters': ... + @typing.overload + @staticmethod + def fromEncoded(device: QtCore.QIODevice, encoding: QSsl.EncodingFormat = ...) -> 'QSslDiffieHellmanParameters': ... + @staticmethod + def defaultParameters() -> 'QSslDiffieHellmanParameters': ... + def swap(self, other: 'QSslDiffieHellmanParameters') -> None: ... + + +class QSslEllipticCurve(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSslEllipticCurve') -> None: ... + + def __hash__(self) -> int: ... + def isTlsNamedCurve(self) -> bool: ... + def isValid(self) -> bool: ... + def longName(self) -> str: ... + def shortName(self) -> str: ... + @staticmethod + def fromLongName(name: str) -> 'QSslEllipticCurve': ... + @staticmethod + def fromShortName(name: str) -> 'QSslEllipticCurve': ... + + +class QSslError(sip.simplewrapper): + + class SslError(int): ... + UnspecifiedError = ... # type: 'QSslError.SslError' + NoError = ... # type: 'QSslError.SslError' + UnableToGetIssuerCertificate = ... # type: 'QSslError.SslError' + UnableToDecryptCertificateSignature = ... # type: 'QSslError.SslError' + UnableToDecodeIssuerPublicKey = ... # type: 'QSslError.SslError' + CertificateSignatureFailed = ... # type: 'QSslError.SslError' + CertificateNotYetValid = ... # type: 'QSslError.SslError' + CertificateExpired = ... # type: 'QSslError.SslError' + InvalidNotBeforeField = ... # type: 'QSslError.SslError' + InvalidNotAfterField = ... # type: 'QSslError.SslError' + SelfSignedCertificate = ... # type: 'QSslError.SslError' + SelfSignedCertificateInChain = ... # type: 'QSslError.SslError' + UnableToGetLocalIssuerCertificate = ... # type: 'QSslError.SslError' + UnableToVerifyFirstCertificate = ... # type: 'QSslError.SslError' + CertificateRevoked = ... # type: 'QSslError.SslError' + InvalidCaCertificate = ... # type: 'QSslError.SslError' + PathLengthExceeded = ... # type: 'QSslError.SslError' + InvalidPurpose = ... # type: 'QSslError.SslError' + CertificateUntrusted = ... # type: 'QSslError.SslError' + CertificateRejected = ... # type: 'QSslError.SslError' + SubjectIssuerMismatch = ... # type: 'QSslError.SslError' + AuthorityIssuerSerialNumberMismatch = ... # type: 'QSslError.SslError' + NoPeerCertificate = ... # type: 'QSslError.SslError' + HostNameMismatch = ... # type: 'QSslError.SslError' + NoSslSupport = ... # type: 'QSslError.SslError' + CertificateBlacklisted = ... # type: 'QSslError.SslError' + CertificateStatusUnknown = ... # type: 'QSslError.SslError' + OcspNoResponseFound = ... # type: 'QSslError.SslError' + OcspMalformedRequest = ... # type: 'QSslError.SslError' + OcspMalformedResponse = ... # type: 'QSslError.SslError' + OcspInternalError = ... # type: 'QSslError.SslError' + OcspTryLater = ... # type: 'QSslError.SslError' + OcspSigRequred = ... # type: 'QSslError.SslError' + OcspUnauthorized = ... # type: 'QSslError.SslError' + OcspResponseCannotBeTrusted = ... # type: 'QSslError.SslError' + OcspResponseCertIdUnknown = ... # type: 'QSslError.SslError' + OcspResponseExpired = ... # type: 'QSslError.SslError' + OcspStatusUnknown = ... # type: 'QSslError.SslError' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, error: 'QSslError.SslError') -> None: ... + @typing.overload + def __init__(self, error: 'QSslError.SslError', certificate: QSslCertificate) -> None: ... + @typing.overload + def __init__(self, other: 'QSslError') -> None: ... + + def __hash__(self) -> int: ... + def swap(self, other: 'QSslError') -> None: ... + def certificate(self) -> QSslCertificate: ... + def errorString(self) -> str: ... + def error(self) -> 'QSslError.SslError': ... + + +class QSslKey(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, encoded: typing.Union[QtCore.QByteArray, bytes, bytearray], algorithm: QSsl.KeyAlgorithm, encoding: QSsl.EncodingFormat = ..., type: QSsl.KeyType = ..., passPhrase: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... + @typing.overload + def __init__(self, device: QtCore.QIODevice, algorithm: QSsl.KeyAlgorithm, encoding: QSsl.EncodingFormat = ..., type: QSsl.KeyType = ..., passPhrase: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... + @typing.overload + def __init__(self, handle: sip.voidptr, type: QSsl.KeyType = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QSslKey') -> None: ... + + def swap(self, other: 'QSslKey') -> None: ... + def handle(self) -> sip.voidptr: ... + def toDer(self, passPhrase: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> QtCore.QByteArray: ... + def toPem(self, passPhrase: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> QtCore.QByteArray: ... + def algorithm(self) -> QSsl.KeyAlgorithm: ... + def type(self) -> QSsl.KeyType: ... + def length(self) -> int: ... + def clear(self) -> None: ... + def isNull(self) -> bool: ... + + +class QSslPreSharedKeyAuthenticator(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, authenticator: 'QSslPreSharedKeyAuthenticator') -> None: ... + + def maximumPreSharedKeyLength(self) -> int: ... + def preSharedKey(self) -> QtCore.QByteArray: ... + def setPreSharedKey(self, preSharedKey: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def maximumIdentityLength(self) -> int: ... + def identity(self) -> QtCore.QByteArray: ... + def setIdentity(self, identity: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def identityHint(self) -> QtCore.QByteArray: ... + def swap(self, authenticator: 'QSslPreSharedKeyAuthenticator') -> None: ... + + +class QTcpSocket(QAbstractSocket): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + +class QSslSocket(QTcpSocket): + + class PeerVerifyMode(int): ... + VerifyNone = ... # type: 'QSslSocket.PeerVerifyMode' + QueryPeer = ... # type: 'QSslSocket.PeerVerifyMode' + VerifyPeer = ... # type: 'QSslSocket.PeerVerifyMode' + AutoVerifyPeer = ... # type: 'QSslSocket.PeerVerifyMode' + + class SslMode(int): ... + UnencryptedMode = ... # type: 'QSslSocket.SslMode' + SslClientMode = ... # type: 'QSslSocket.SslMode' + SslServerMode = ... # type: 'QSslSocket.SslMode' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def ocspResponses(self) -> typing.List[QOcspResponse]: ... + @staticmethod + def sslLibraryBuildVersionString() -> str: ... + @staticmethod + def sslLibraryBuildVersionNumber() -> int: ... + def sessionProtocol(self) -> QSsl.SslProtocol: ... + def localCertificateChain(self) -> typing.List[QSslCertificate]: ... + def setLocalCertificateChain(self, localChain: typing.Iterable[QSslCertificate]) -> None: ... + @staticmethod + def sslLibraryVersionString() -> str: ... + @staticmethod + def sslLibraryVersionNumber() -> int: ... + def disconnectFromHost(self) -> None: ... + def connectToHost(self, hostName: str, port: int, mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag] = ..., protocol: QAbstractSocket.NetworkLayerProtocol = ...) -> None: ... + def resume(self) -> None: ... + def setPeerVerifyName(self, hostName: str) -> None: ... + def peerVerifyName(self) -> str: ... + def socketOption(self, option: QAbstractSocket.SocketOption) -> typing.Any: ... + def setSocketOption(self, option: QAbstractSocket.SocketOption, value: typing.Any) -> None: ... + def encryptedBytesWritten(self, totalBytes: int) -> None: ... + def peerVerifyError(self, error: QSslError) -> None: ... + def setSslConfiguration(self, config: QSslConfiguration) -> None: ... + def sslConfiguration(self) -> QSslConfiguration: ... + def encryptedBytesToWrite(self) -> int: ... + def encryptedBytesAvailable(self) -> int: ... + def setReadBufferSize(self, size: int) -> None: ... + def setPeerVerifyDepth(self, depth: int) -> None: ... + def peerVerifyDepth(self) -> int: ... + def setPeerVerifyMode(self, mode: 'QSslSocket.PeerVerifyMode') -> None: ... + def peerVerifyMode(self) -> 'QSslSocket.PeerVerifyMode': ... + def writeData(self, data: bytes) -> int: ... + def readData(self, maxlen: int) -> bytes: ... + def preSharedKeyAuthenticationRequired(self, authenticator: QSslPreSharedKeyAuthenticator) -> None: ... + def modeChanged(self, newMode: 'QSslSocket.SslMode') -> None: ... + def encrypted(self) -> None: ... + @typing.overload + def ignoreSslErrors(self) -> None: ... + @typing.overload + def ignoreSslErrors(self, errors: typing.Iterable[QSslError]) -> None: ... + def startServerEncryption(self) -> None: ... + def startClientEncryption(self) -> None: ... + @staticmethod + def supportsSsl() -> bool: ... + @typing.overload + def sslErrors(self) -> typing.List[QSslError]: ... + @typing.overload + def sslErrors(self, errors: typing.Iterable[QSslError]) -> None: ... + def waitForDisconnected(self, msecs: int = ...) -> bool: ... + def waitForBytesWritten(self, msecs: int = ...) -> bool: ... + def waitForReadyRead(self, msecs: int = ...) -> bool: ... + def waitForEncrypted(self, msecs: int = ...) -> bool: ... + def waitForConnected(self, msecs: int = ...) -> bool: ... + @staticmethod + def systemCaCertificates() -> typing.List[QSslCertificate]: ... + @staticmethod + def defaultCaCertificates() -> typing.List[QSslCertificate]: ... + @staticmethod + def setDefaultCaCertificates(certificates: typing.Iterable[QSslCertificate]) -> None: ... + @staticmethod + def addDefaultCaCertificate(certificate: QSslCertificate) -> None: ... + @typing.overload + @staticmethod + def addDefaultCaCertificates(path: str, format: QSsl.EncodingFormat = ..., syntax: QtCore.QRegExp.PatternSyntax = ...) -> bool: ... + @typing.overload + @staticmethod + def addDefaultCaCertificates(certificates: typing.Iterable[QSslCertificate]) -> None: ... + def caCertificates(self) -> typing.List[QSslCertificate]: ... + def setCaCertificates(self, certificates: typing.Iterable[QSslCertificate]) -> None: ... + def addCaCertificate(self, certificate: QSslCertificate) -> None: ... + @typing.overload + def addCaCertificates(self, path: str, format: QSsl.EncodingFormat = ..., syntax: QtCore.QRegExp.PatternSyntax = ...) -> bool: ... + @typing.overload + def addCaCertificates(self, certificates: typing.Iterable[QSslCertificate]) -> None: ... + @staticmethod + def supportedCiphers() -> typing.List[QSslCipher]: ... + @staticmethod + def defaultCiphers() -> typing.List[QSslCipher]: ... + @staticmethod + def setDefaultCiphers(ciphers: typing.Iterable[QSslCipher]) -> None: ... + @typing.overload + def setCiphers(self, ciphers: typing.Iterable[QSslCipher]) -> None: ... + @typing.overload + def setCiphers(self, ciphers: str) -> None: ... + def ciphers(self) -> typing.List[QSslCipher]: ... + def privateKey(self) -> QSslKey: ... + @typing.overload + def setPrivateKey(self, key: QSslKey) -> None: ... + @typing.overload + def setPrivateKey(self, fileName: str, algorithm: QSsl.KeyAlgorithm = ..., format: QSsl.EncodingFormat = ..., passPhrase: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... + def sessionCipher(self) -> QSslCipher: ... + def peerCertificateChain(self) -> typing.List[QSslCertificate]: ... + def peerCertificate(self) -> QSslCertificate: ... + def localCertificate(self) -> QSslCertificate: ... + @typing.overload + def setLocalCertificate(self, certificate: QSslCertificate) -> None: ... + @typing.overload + def setLocalCertificate(self, path: str, format: QSsl.EncodingFormat = ...) -> None: ... + def abort(self) -> None: ... + def flush(self) -> bool: ... + def atEnd(self) -> bool: ... + def close(self) -> None: ... + def canReadLine(self) -> bool: ... + def bytesToWrite(self) -> int: ... + def bytesAvailable(self) -> int: ... + def setProtocol(self, protocol: QSsl.SslProtocol) -> None: ... + def protocol(self) -> QSsl.SslProtocol: ... + def isEncrypted(self) -> bool: ... + def mode(self) -> 'QSslSocket.SslMode': ... + def setSocketDescriptor(self, socketDescriptor: sip.voidptr, state: QAbstractSocket.SocketState = ..., mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag] = ...) -> bool: ... + @typing.overload + def connectToHostEncrypted(self, hostName: str, port: int, mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag] = ..., protocol: QAbstractSocket.NetworkLayerProtocol = ...) -> None: ... + @typing.overload + def connectToHostEncrypted(self, hostName: str, port: int, sslPeerName: str, mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag] = ..., protocol: QAbstractSocket.NetworkLayerProtocol = ...) -> None: ... + + +class QTcpServer(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def acceptError(self, socketError: QAbstractSocket.SocketError) -> None: ... + def newConnection(self) -> None: ... + def addPendingConnection(self, socket: QTcpSocket) -> None: ... + def incomingConnection(self, handle: sip.voidptr) -> None: ... + def resumeAccepting(self) -> None: ... + def pauseAccepting(self) -> None: ... + def proxy(self) -> QNetworkProxy: ... + def setProxy(self, networkProxy: QNetworkProxy) -> None: ... + def errorString(self) -> str: ... + def serverError(self) -> QAbstractSocket.SocketError: ... + def nextPendingConnection(self) -> QTcpSocket: ... + def hasPendingConnections(self) -> bool: ... + def waitForNewConnection(self, msecs: int = ...) -> typing.Tuple[bool, bool]: ... + def setSocketDescriptor(self, socketDescriptor: sip.voidptr) -> bool: ... + def socketDescriptor(self) -> sip.voidptr: ... + def serverAddress(self) -> QHostAddress: ... + def serverPort(self) -> int: ... + def maxPendingConnections(self) -> int: ... + def setMaxPendingConnections(self, numConnections: int) -> None: ... + def isListening(self) -> bool: ... + def close(self) -> None: ... + def listen(self, address: typing.Union[QHostAddress, QHostAddress.SpecialAddress] = ..., port: int = ...) -> bool: ... + + +class QUdpSocket(QAbstractSocket): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def receiveDatagram(self, maxSize: int = ...) -> QNetworkDatagram: ... + def setMulticastInterface(self, iface: QNetworkInterface) -> None: ... + def multicastInterface(self) -> QNetworkInterface: ... + @typing.overload + def leaveMulticastGroup(self, groupAddress: typing.Union[QHostAddress, QHostAddress.SpecialAddress]) -> bool: ... + @typing.overload + def leaveMulticastGroup(self, groupAddress: typing.Union[QHostAddress, QHostAddress.SpecialAddress], iface: QNetworkInterface) -> bool: ... + @typing.overload + def joinMulticastGroup(self, groupAddress: typing.Union[QHostAddress, QHostAddress.SpecialAddress]) -> bool: ... + @typing.overload + def joinMulticastGroup(self, groupAddress: typing.Union[QHostAddress, QHostAddress.SpecialAddress], iface: QNetworkInterface) -> bool: ... + @typing.overload + def writeDatagram(self, data: bytes, host: typing.Union[QHostAddress, QHostAddress.SpecialAddress], port: int) -> int: ... + @typing.overload + def writeDatagram(self, datagram: typing.Union[QtCore.QByteArray, bytes, bytearray], host: typing.Union[QHostAddress, QHostAddress.SpecialAddress], port: int) -> int: ... + @typing.overload + def writeDatagram(self, datagram: QNetworkDatagram) -> int: ... + def readDatagram(self, maxlen: int) -> typing.Tuple[bytes, QHostAddress, int]: ... + def pendingDatagramSize(self) -> int: ... + def hasPendingDatagrams(self) -> bool: ... diff --git a/tools/stubs/PyQt5/QtNfc.pyi b/tools/stubs/PyQt5/QtNfc.pyi new file mode 100644 index 000000000..9d3e9bc67 --- /dev/null +++ b/tools/stubs/PyQt5/QtNfc.pyi @@ -0,0 +1,431 @@ +# The PEP 484 type hints stub file for the QtNfc module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + + +class QNdefFilter(sip.simplewrapper): + + class Record(sip.simplewrapper): + + maximum = ... # type: int + minimum = ... # type: int + type = ... # type: typing.Union[QtCore.QByteArray, bytes, bytearray] + typeNameFormat = ... # type: 'QNdefRecord.TypeNameFormat' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QNdefFilter.Record') -> None: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QNdefFilter') -> None: ... + + def recordAt(self, i: int) -> 'QNdefFilter.Record': ... + def __len__(self) -> int: ... + def recordCount(self) -> int: ... + @typing.overload + def appendRecord(self, typeNameFormat: 'QNdefRecord.TypeNameFormat', type: typing.Union[QtCore.QByteArray, bytes, bytearray], min: int = ..., max: int = ...) -> None: ... + @typing.overload + def appendRecord(self, record: 'QNdefFilter.Record') -> None: ... + def orderMatch(self) -> bool: ... + def setOrderMatch(self, on: bool) -> None: ... + def clear(self) -> None: ... + + +class QNdefMessage(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, record: 'QNdefRecord') -> None: ... + @typing.overload + def __init__(self, message: 'QNdefMessage') -> None: ... + @typing.overload + def __init__(self, records: typing.Iterable['QNdefRecord']) -> None: ... + + @staticmethod + def fromByteArray(message: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> 'QNdefMessage': ... + def __delitem__(self, i: int) -> None: ... + def __setitem__(self, i: int, value: 'QNdefRecord') -> None: ... + def __getitem__(self, i: int) -> 'QNdefRecord': ... + def __len__(self) -> int: ... + def toByteArray(self) -> QtCore.QByteArray: ... + + +class QNdefRecord(sip.simplewrapper): + + class TypeNameFormat(int): ... + Empty = ... # type: 'QNdefRecord.TypeNameFormat' + NfcRtd = ... # type: 'QNdefRecord.TypeNameFormat' + Mime = ... # type: 'QNdefRecord.TypeNameFormat' + Uri = ... # type: 'QNdefRecord.TypeNameFormat' + ExternalRtd = ... # type: 'QNdefRecord.TypeNameFormat' + Unknown = ... # type: 'QNdefRecord.TypeNameFormat' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QNdefRecord') -> None: ... + + def __hash__(self) -> int: ... + def isEmpty(self) -> bool: ... + def payload(self) -> QtCore.QByteArray: ... + def setPayload(self, payload: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def id(self) -> QtCore.QByteArray: ... + def setId(self, id: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def type(self) -> QtCore.QByteArray: ... + def setType(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def typeNameFormat(self) -> 'QNdefRecord.TypeNameFormat': ... + def setTypeNameFormat(self, typeNameFormat: 'QNdefRecord.TypeNameFormat') -> None: ... + + +class QNdefNfcIconRecord(QNdefRecord): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: QNdefRecord) -> None: ... + @typing.overload + def __init__(self, a0: 'QNdefNfcIconRecord') -> None: ... + + def data(self) -> QtCore.QByteArray: ... + def setData(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + + +class QNdefNfcSmartPosterRecord(QNdefRecord): + + class Action(int): ... + UnspecifiedAction = ... # type: 'QNdefNfcSmartPosterRecord.Action' + DoAction = ... # type: 'QNdefNfcSmartPosterRecord.Action' + SaveAction = ... # type: 'QNdefNfcSmartPosterRecord.Action' + EditAction = ... # type: 'QNdefNfcSmartPosterRecord.Action' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QNdefNfcSmartPosterRecord') -> None: ... + @typing.overload + def __init__(self, other: QNdefRecord) -> None: ... + + def setTypeInfo(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def typeInfo(self) -> QtCore.QByteArray: ... + def setSize(self, size: int) -> None: ... + def size(self) -> int: ... + def setIcons(self, icons: typing.Iterable[QNdefNfcIconRecord]) -> None: ... + @typing.overload + def removeIcon(self, icon: QNdefNfcIconRecord) -> bool: ... + @typing.overload + def removeIcon(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + @typing.overload + def addIcon(self, icon: QNdefNfcIconRecord) -> None: ... + @typing.overload + def addIcon(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray], data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def iconRecords(self) -> typing.List[QNdefNfcIconRecord]: ... + def iconRecord(self, index: int) -> QNdefNfcIconRecord: ... + def icon(self, mimetype: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> QtCore.QByteArray: ... + def iconCount(self) -> int: ... + def setAction(self, act: 'QNdefNfcSmartPosterRecord.Action') -> None: ... + def action(self) -> 'QNdefNfcSmartPosterRecord.Action': ... + @typing.overload + def setUri(self, url: 'QNdefNfcUriRecord') -> None: ... + @typing.overload + def setUri(self, url: QtCore.QUrl) -> None: ... + def uriRecord(self) -> 'QNdefNfcUriRecord': ... + def uri(self) -> QtCore.QUrl: ... + def setTitles(self, titles: typing.Iterable['QNdefNfcTextRecord']) -> None: ... + @typing.overload + def removeTitle(self, text: 'QNdefNfcTextRecord') -> bool: ... + @typing.overload + def removeTitle(self, locale: str) -> bool: ... + @typing.overload + def addTitle(self, text: 'QNdefNfcTextRecord') -> bool: ... + @typing.overload + def addTitle(self, text: str, locale: str, encoding: 'QNdefNfcTextRecord.Encoding') -> bool: ... + def titleRecords(self) -> typing.List['QNdefNfcTextRecord']: ... + def titleRecord(self, index: int) -> 'QNdefNfcTextRecord': ... + def title(self, locale: str = ...) -> str: ... + def titleCount(self) -> int: ... + def hasTypeInfo(self) -> bool: ... + def hasSize(self) -> bool: ... + def hasIcon(self, mimetype: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> bool: ... + def hasAction(self) -> bool: ... + def hasTitle(self, locale: str = ...) -> bool: ... + def setPayload(self, payload: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + + +class QNdefNfcTextRecord(QNdefRecord): + + class Encoding(int): ... + Utf8 = ... # type: 'QNdefNfcTextRecord.Encoding' + Utf16 = ... # type: 'QNdefNfcTextRecord.Encoding' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: QNdefRecord) -> None: ... + @typing.overload + def __init__(self, a0: 'QNdefNfcTextRecord') -> None: ... + + def setEncoding(self, encoding: 'QNdefNfcTextRecord.Encoding') -> None: ... + def encoding(self) -> 'QNdefNfcTextRecord.Encoding': ... + def setText(self, text: str) -> None: ... + def text(self) -> str: ... + def setLocale(self, locale: str) -> None: ... + def locale(self) -> str: ... + + +class QNdefNfcUriRecord(QNdefRecord): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: QNdefRecord) -> None: ... + @typing.overload + def __init__(self, a0: 'QNdefNfcUriRecord') -> None: ... + + def setUri(self, uri: QtCore.QUrl) -> None: ... + def uri(self) -> QtCore.QUrl: ... + + +class QNearFieldManager(QtCore.QObject): + + class AdapterState(int): ... + Offline = ... # type: 'QNearFieldManager.AdapterState' + TurningOn = ... # type: 'QNearFieldManager.AdapterState' + Online = ... # type: 'QNearFieldManager.AdapterState' + TurningOff = ... # type: 'QNearFieldManager.AdapterState' + + class TargetAccessMode(int): ... + NoTargetAccess = ... # type: 'QNearFieldManager.TargetAccessMode' + NdefReadTargetAccess = ... # type: 'QNearFieldManager.TargetAccessMode' + NdefWriteTargetAccess = ... # type: 'QNearFieldManager.TargetAccessMode' + TagTypeSpecificTargetAccess = ... # type: 'QNearFieldManager.TargetAccessMode' + + class TargetAccessModes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QNearFieldManager.TargetAccessModes', 'QNearFieldManager.TargetAccessMode']) -> None: ... + @typing.overload + def __init__(self, a0: 'QNearFieldManager.TargetAccessModes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QNearFieldManager.TargetAccessModes': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def adapterStateChanged(self, state: 'QNearFieldManager.AdapterState') -> None: ... + def isSupported(self) -> bool: ... + def targetLost(self, target: 'QNearFieldTarget') -> None: ... + def targetDetected(self, target: 'QNearFieldTarget') -> None: ... + def unregisterNdefMessageHandler(self, handlerId: int) -> bool: ... + @typing.overload + def registerNdefMessageHandler(self, slot: PYQT_SLOT) -> int: ... + @typing.overload + def registerNdefMessageHandler(self, typeNameFormat: QNdefRecord.TypeNameFormat, type: typing.Union[QtCore.QByteArray, bytes, bytearray], slot: PYQT_SLOT) -> int: ... + @typing.overload + def registerNdefMessageHandler(self, filter: QNdefFilter, slot: PYQT_SLOT) -> int: ... + def stopTargetDetection(self) -> None: ... + def startTargetDetection(self) -> bool: ... + def targetAccessModes(self) -> 'QNearFieldManager.TargetAccessModes': ... + def setTargetAccessModes(self, accessModes: typing.Union['QNearFieldManager.TargetAccessModes', 'QNearFieldManager.TargetAccessMode']) -> None: ... + def isAvailable(self) -> bool: ... + + +class QNearFieldShareManager(QtCore.QObject): + + class ShareMode(int): ... + NoShare = ... # type: 'QNearFieldShareManager.ShareMode' + NdefShare = ... # type: 'QNearFieldShareManager.ShareMode' + FileShare = ... # type: 'QNearFieldShareManager.ShareMode' + + class ShareError(int): ... + NoError = ... # type: 'QNearFieldShareManager.ShareError' + UnknownError = ... # type: 'QNearFieldShareManager.ShareError' + InvalidShareContentError = ... # type: 'QNearFieldShareManager.ShareError' + ShareCanceledError = ... # type: 'QNearFieldShareManager.ShareError' + ShareInterruptedError = ... # type: 'QNearFieldShareManager.ShareError' + ShareRejectedError = ... # type: 'QNearFieldShareManager.ShareError' + UnsupportedShareModeError = ... # type: 'QNearFieldShareManager.ShareError' + ShareAlreadyInProgressError = ... # type: 'QNearFieldShareManager.ShareError' + SharePermissionDeniedError = ... # type: 'QNearFieldShareManager.ShareError' + + class ShareModes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QNearFieldShareManager.ShareModes', 'QNearFieldShareManager.ShareMode']) -> None: ... + @typing.overload + def __init__(self, a0: 'QNearFieldShareManager.ShareModes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QNearFieldShareManager.ShareModes': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def error(self, error: 'QNearFieldShareManager.ShareError') -> None: ... + def shareModesChanged(self, modes: typing.Union['QNearFieldShareManager.ShareModes', 'QNearFieldShareManager.ShareMode']) -> None: ... + def targetDetected(self, shareTarget: 'QNearFieldShareTarget') -> None: ... + def shareError(self) -> 'QNearFieldShareManager.ShareError': ... + def shareModes(self) -> 'QNearFieldShareManager.ShareModes': ... + def setShareModes(self, modes: typing.Union['QNearFieldShareManager.ShareModes', 'QNearFieldShareManager.ShareMode']) -> None: ... + @staticmethod + def supportedShareModes() -> 'QNearFieldShareManager.ShareModes': ... + + +class QNearFieldShareTarget(QtCore.QObject): + + def shareFinished(self) -> None: ... + def error(self, error: QNearFieldShareManager.ShareError) -> None: ... + def shareError(self) -> QNearFieldShareManager.ShareError: ... + def isShareInProgress(self) -> bool: ... + def cancel(self) -> None: ... + @typing.overload + def share(self, message: QNdefMessage) -> bool: ... + @typing.overload + def share(self, files: typing.Iterable[QtCore.QFileInfo]) -> bool: ... + def shareModes(self) -> QNearFieldShareManager.ShareModes: ... + + +class QNearFieldTarget(QtCore.QObject): + + class Error(int): ... + NoError = ... # type: 'QNearFieldTarget.Error' + UnknownError = ... # type: 'QNearFieldTarget.Error' + UnsupportedError = ... # type: 'QNearFieldTarget.Error' + TargetOutOfRangeError = ... # type: 'QNearFieldTarget.Error' + NoResponseError = ... # type: 'QNearFieldTarget.Error' + ChecksumMismatchError = ... # type: 'QNearFieldTarget.Error' + InvalidParametersError = ... # type: 'QNearFieldTarget.Error' + NdefReadError = ... # type: 'QNearFieldTarget.Error' + NdefWriteError = ... # type: 'QNearFieldTarget.Error' + CommandError = ... # type: 'QNearFieldTarget.Error' + + class AccessMethod(int): ... + UnknownAccess = ... # type: 'QNearFieldTarget.AccessMethod' + NdefAccess = ... # type: 'QNearFieldTarget.AccessMethod' + TagTypeSpecificAccess = ... # type: 'QNearFieldTarget.AccessMethod' + LlcpAccess = ... # type: 'QNearFieldTarget.AccessMethod' + + class Type(int): ... + ProprietaryTag = ... # type: 'QNearFieldTarget.Type' + NfcTagType1 = ... # type: 'QNearFieldTarget.Type' + NfcTagType2 = ... # type: 'QNearFieldTarget.Type' + NfcTagType3 = ... # type: 'QNearFieldTarget.Type' + NfcTagType4 = ... # type: 'QNearFieldTarget.Type' + MifareTag = ... # type: 'QNearFieldTarget.Type' + + class AccessMethods(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QNearFieldTarget.AccessMethods', 'QNearFieldTarget.AccessMethod']) -> None: ... + @typing.overload + def __init__(self, a0: 'QNearFieldTarget.AccessMethods') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QNearFieldTarget.AccessMethods': ... + def __int__(self) -> int: ... + + class RequestId(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QNearFieldTarget.RequestId') -> None: ... + + def refCount(self) -> int: ... + def isValid(self) -> bool: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def maxCommandLength(self) -> int: ... + def disconnect(self) -> bool: ... + def setKeepConnection(self, isPersistent: bool) -> bool: ... + def keepConnection(self) -> bool: ... + def error(self, error: 'QNearFieldTarget.Error', id: 'QNearFieldTarget.RequestId') -> None: ... + def requestCompleted(self, id: 'QNearFieldTarget.RequestId') -> None: ... + def ndefMessagesWritten(self) -> None: ... + def ndefMessageRead(self, message: QNdefMessage) -> None: ... + def disconnected(self) -> None: ... + def reportError(self, error: 'QNearFieldTarget.Error', id: 'QNearFieldTarget.RequestId') -> None: ... + def handleResponse(self, id: 'QNearFieldTarget.RequestId', response: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + def setResponseForRequest(self, id: 'QNearFieldTarget.RequestId', response: typing.Any, emitRequestCompleted: bool = ...) -> None: ... + def requestResponse(self, id: 'QNearFieldTarget.RequestId') -> typing.Any: ... + def waitForRequestCompleted(self, id: 'QNearFieldTarget.RequestId', msecs: int = ...) -> bool: ... + def sendCommands(self, commands: typing.Iterable[typing.Union[QtCore.QByteArray, bytes, bytearray]]) -> 'QNearFieldTarget.RequestId': ... + def sendCommand(self, command: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> 'QNearFieldTarget.RequestId': ... + def writeNdefMessages(self, messages: typing.Iterable[QNdefMessage]) -> 'QNearFieldTarget.RequestId': ... + def readNdefMessages(self) -> 'QNearFieldTarget.RequestId': ... + def hasNdefMessage(self) -> bool: ... + def isProcessingCommand(self) -> bool: ... + def accessMethods(self) -> 'QNearFieldTarget.AccessMethods': ... + def type(self) -> 'QNearFieldTarget.Type': ... + def url(self) -> QtCore.QUrl: ... + def uid(self) -> QtCore.QByteArray: ... + + +class QQmlNdefRecord(QtCore.QObject): + + class TypeNameFormat(int): ... + Empty = ... # type: 'QQmlNdefRecord.TypeNameFormat' + NfcRtd = ... # type: 'QQmlNdefRecord.TypeNameFormat' + Mime = ... # type: 'QQmlNdefRecord.TypeNameFormat' + Uri = ... # type: 'QQmlNdefRecord.TypeNameFormat' + ExternalRtd = ... # type: 'QQmlNdefRecord.TypeNameFormat' + Unknown = ... # type: 'QQmlNdefRecord.TypeNameFormat' + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, record: QNdefRecord, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def recordChanged(self) -> None: ... + def typeNameFormatChanged(self) -> None: ... + def typeChanged(self) -> None: ... + def setRecord(self, record: QNdefRecord) -> None: ... + def record(self) -> QNdefRecord: ... + def typeNameFormat(self) -> 'QQmlNdefRecord.TypeNameFormat': ... + def setTypeNameFormat(self, typeNameFormat: 'QQmlNdefRecord.TypeNameFormat') -> None: ... + def setType(self, t: str) -> None: ... + def type(self) -> str: ... diff --git a/tools/stubs/PyQt5/QtOpenGL.pyi b/tools/stubs/PyQt5/QtOpenGL.pyi new file mode 100644 index 000000000..62cf3d8bb --- /dev/null +++ b/tools/stubs/PyQt5/QtOpenGL.pyi @@ -0,0 +1,330 @@ +# The PEP 484 type hints stub file for the QtOpenGL module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtWidgets +from PyQt5 import QtGui +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + +# Convenient aliases for complicated OpenGL types. +PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QGL(sip.simplewrapper): + + class FormatOption(int): ... + DoubleBuffer = ... # type: 'QGL.FormatOption' + DepthBuffer = ... # type: 'QGL.FormatOption' + Rgba = ... # type: 'QGL.FormatOption' + AlphaChannel = ... # type: 'QGL.FormatOption' + AccumBuffer = ... # type: 'QGL.FormatOption' + StencilBuffer = ... # type: 'QGL.FormatOption' + StereoBuffers = ... # type: 'QGL.FormatOption' + DirectRendering = ... # type: 'QGL.FormatOption' + HasOverlay = ... # type: 'QGL.FormatOption' + SampleBuffers = ... # type: 'QGL.FormatOption' + SingleBuffer = ... # type: 'QGL.FormatOption' + NoDepthBuffer = ... # type: 'QGL.FormatOption' + ColorIndex = ... # type: 'QGL.FormatOption' + NoAlphaChannel = ... # type: 'QGL.FormatOption' + NoAccumBuffer = ... # type: 'QGL.FormatOption' + NoStencilBuffer = ... # type: 'QGL.FormatOption' + NoStereoBuffers = ... # type: 'QGL.FormatOption' + IndirectRendering = ... # type: 'QGL.FormatOption' + NoOverlay = ... # type: 'QGL.FormatOption' + NoSampleBuffers = ... # type: 'QGL.FormatOption' + DeprecatedFunctions = ... # type: 'QGL.FormatOption' + NoDeprecatedFunctions = ... # type: 'QGL.FormatOption' + + class FormatOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGL.FormatOptions', 'QGL.FormatOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGL.FormatOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGL.FormatOptions': ... + def __int__(self) -> int: ... + + +class QGLFormat(sip.simplewrapper): + + class OpenGLContextProfile(int): ... + NoProfile = ... # type: 'QGLFormat.OpenGLContextProfile' + CoreProfile = ... # type: 'QGLFormat.OpenGLContextProfile' + CompatibilityProfile = ... # type: 'QGLFormat.OpenGLContextProfile' + + class OpenGLVersionFlag(int): ... + OpenGL_Version_None = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_Version_1_1 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_Version_1_2 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_Version_1_3 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_Version_1_4 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_Version_1_5 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_Version_2_0 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_Version_2_1 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_Version_3_0 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_Version_3_1 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_Version_3_2 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_Version_3_3 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_Version_4_0 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_Version_4_1 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_Version_4_2 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_Version_4_3 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_ES_Common_Version_1_0 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_ES_CommonLite_Version_1_0 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_ES_Common_Version_1_1 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_ES_CommonLite_Version_1_1 = ... # type: 'QGLFormat.OpenGLVersionFlag' + OpenGL_ES_Version_2_0 = ... # type: 'QGLFormat.OpenGLVersionFlag' + + class OpenGLVersionFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGLFormat.OpenGLVersionFlags', 'QGLFormat.OpenGLVersionFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGLFormat.OpenGLVersionFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGLFormat.OpenGLVersionFlags': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, options: typing.Union[QGL.FormatOptions, QGL.FormatOption], plane: int = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QGLFormat') -> None: ... + + def profile(self) -> 'QGLFormat.OpenGLContextProfile': ... + def setProfile(self, profile: 'QGLFormat.OpenGLContextProfile') -> None: ... + def minorVersion(self) -> int: ... + def majorVersion(self) -> int: ... + def setVersion(self, major: int, minor: int) -> None: ... + @staticmethod + def openGLVersionFlags() -> 'QGLFormat.OpenGLVersionFlags': ... + def swapInterval(self) -> int: ... + def setSwapInterval(self, interval: int) -> None: ... + def blueBufferSize(self) -> int: ... + def setBlueBufferSize(self, size: int) -> None: ... + def greenBufferSize(self) -> int: ... + def setGreenBufferSize(self, size: int) -> None: ... + def redBufferSize(self) -> int: ... + def setRedBufferSize(self, size: int) -> None: ... + def sampleBuffers(self) -> bool: ... + def hasOverlay(self) -> bool: ... + def directRendering(self) -> bool: ... + def stereo(self) -> bool: ... + def stencil(self) -> bool: ... + def accum(self) -> bool: ... + def alpha(self) -> bool: ... + def rgba(self) -> bool: ... + def depth(self) -> bool: ... + def doubleBuffer(self) -> bool: ... + @staticmethod + def hasOpenGLOverlays() -> bool: ... + @staticmethod + def hasOpenGL() -> bool: ... + @staticmethod + def setDefaultOverlayFormat(f: 'QGLFormat') -> None: ... + @staticmethod + def defaultOverlayFormat() -> 'QGLFormat': ... + @staticmethod + def setDefaultFormat(f: 'QGLFormat') -> None: ... + @staticmethod + def defaultFormat() -> 'QGLFormat': ... + def testOption(self, opt: typing.Union[QGL.FormatOptions, QGL.FormatOption]) -> bool: ... + def setOption(self, opt: typing.Union[QGL.FormatOptions, QGL.FormatOption]) -> None: ... + def setPlane(self, plane: int) -> None: ... + def plane(self) -> int: ... + def setOverlay(self, enable: bool) -> None: ... + def setDirectRendering(self, enable: bool) -> None: ... + def setStereo(self, enable: bool) -> None: ... + def setStencil(self, enable: bool) -> None: ... + def setAccum(self, enable: bool) -> None: ... + def setAlpha(self, enable: bool) -> None: ... + def setRgba(self, enable: bool) -> None: ... + def setDepth(self, enable: bool) -> None: ... + def setDoubleBuffer(self, enable: bool) -> None: ... + def samples(self) -> int: ... + def setSamples(self, numSamples: int) -> None: ... + def setSampleBuffers(self, enable: bool) -> None: ... + def stencilBufferSize(self) -> int: ... + def setStencilBufferSize(self, size: int) -> None: ... + def alphaBufferSize(self) -> int: ... + def setAlphaBufferSize(self, size: int) -> None: ... + def accumBufferSize(self) -> int: ... + def setAccumBufferSize(self, size: int) -> None: ... + def depthBufferSize(self) -> int: ... + def setDepthBufferSize(self, size: int) -> None: ... + + +class QGLContext(sip.wrapper): + + class BindOption(int): ... + NoBindOption = ... # type: 'QGLContext.BindOption' + InvertedYBindOption = ... # type: 'QGLContext.BindOption' + MipmapBindOption = ... # type: 'QGLContext.BindOption' + PremultipliedAlphaBindOption = ... # type: 'QGLContext.BindOption' + LinearFilteringBindOption = ... # type: 'QGLContext.BindOption' + DefaultBindOption = ... # type: 'QGLContext.BindOption' + + class BindOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGLContext.BindOptions', 'QGLContext.BindOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGLContext.BindOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGLContext.BindOptions': ... + def __int__(self) -> int: ... + + def __init__(self, format: QGLFormat) -> None: ... + + def moveToThread(self, thread: QtCore.QThread) -> None: ... + @staticmethod + def areSharing(context1: 'QGLContext', context2: 'QGLContext') -> bool: ... + def setInitialized(self, on: bool) -> None: ... + def initialized(self) -> bool: ... + def setWindowCreated(self, on: bool) -> None: ... + def windowCreated(self) -> bool: ... + def deviceIsPixmap(self) -> bool: ... + def chooseContext(self, shareContext: typing.Optional['QGLContext'] = ...) -> bool: ... + @staticmethod + def currentContext() -> 'QGLContext': ... + def overlayTransparentColor(self) -> QtGui.QColor: ... + def device(self) -> QtGui.QPaintDevice: ... + def getProcAddress(self, proc: str) -> sip.voidptr: ... + @staticmethod + def textureCacheLimit() -> int: ... + @staticmethod + def setTextureCacheLimit(size: int) -> None: ... + def deleteTexture(self, tx_id: int) -> None: ... + @typing.overload + def drawTexture(self, target: QtCore.QRectF, textureId: int, textureTarget: int = ...) -> None: ... + @typing.overload + def drawTexture(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], textureId: int, textureTarget: int = ...) -> None: ... + @typing.overload + def bindTexture(self, image: QtGui.QImage, target: int = ..., format: int = ...) -> int: ... + @typing.overload + def bindTexture(self, pixmap: QtGui.QPixmap, target: int = ..., format: int = ...) -> int: ... + @typing.overload + def bindTexture(self, fileName: str) -> int: ... + @typing.overload + def bindTexture(self, image: QtGui.QImage, target: int, format: int, options: typing.Union['QGLContext.BindOptions', 'QGLContext.BindOption']) -> int: ... + @typing.overload + def bindTexture(self, pixmap: QtGui.QPixmap, target: int, format: int, options: typing.Union['QGLContext.BindOptions', 'QGLContext.BindOption']) -> int: ... + def swapBuffers(self) -> None: ... + def doneCurrent(self) -> None: ... + def makeCurrent(self) -> None: ... + def setFormat(self, format: QGLFormat) -> None: ... + def requestedFormat(self) -> QGLFormat: ... + def format(self) -> QGLFormat: ... + def reset(self) -> None: ... + def isSharing(self) -> bool: ... + def isValid(self) -> bool: ... + def create(self, shareContext: typing.Optional['QGLContext'] = ...) -> bool: ... + + +class QGLWidget(QtWidgets.QWidget): + + @typing.overload + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., shareWidget: typing.Optional['QGLWidget'] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + @typing.overload + def __init__(self, context: QGLContext, parent: typing.Optional[QtWidgets.QWidget] = ..., shareWidget: typing.Optional['QGLWidget'] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + @typing.overload + def __init__(self, format: QGLFormat, parent: typing.Optional[QtWidgets.QWidget] = ..., shareWidget: typing.Optional['QGLWidget'] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def glDraw(self) -> None: ... + def glInit(self) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def autoBufferSwap(self) -> bool: ... + def setAutoBufferSwap(self, on: bool) -> None: ... + def paintOverlayGL(self) -> None: ... + def resizeOverlayGL(self, w: int, h: int) -> None: ... + def initializeOverlayGL(self) -> None: ... + def paintGL(self) -> None: ... + def resizeGL(self, w: int, h: int) -> None: ... + def initializeGL(self) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def updateOverlayGL(self) -> None: ... + def updateGL(self) -> None: ... + def deleteTexture(self, tx_id: int) -> None: ... + @typing.overload + def drawTexture(self, target: QtCore.QRectF, textureId: int, textureTarget: int = ...) -> None: ... + @typing.overload + def drawTexture(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], textureId: int, textureTarget: int = ...) -> None: ... + @typing.overload + def bindTexture(self, image: QtGui.QImage, target: int = ..., format: int = ...) -> int: ... + @typing.overload + def bindTexture(self, pixmap: QtGui.QPixmap, target: int = ..., format: int = ...) -> int: ... + @typing.overload + def bindTexture(self, fileName: str) -> int: ... + @typing.overload + def bindTexture(self, image: QtGui.QImage, target: int, format: int, options: typing.Union[QGLContext.BindOptions, QGLContext.BindOption]) -> int: ... + @typing.overload + def bindTexture(self, pixmap: QtGui.QPixmap, target: int, format: int, options: typing.Union[QGLContext.BindOptions, QGLContext.BindOption]) -> int: ... + def paintEngine(self) -> QtGui.QPaintEngine: ... + @typing.overload + def renderText(self, x: int, y: int, str: str, font: QtGui.QFont = ...) -> None: ... + @typing.overload + def renderText(self, x: float, y: float, z: float, str: str, font: QtGui.QFont = ...) -> None: ... + @staticmethod + def convertToGLFormat(img: QtGui.QImage) -> QtGui.QImage: ... + def overlayContext(self) -> QGLContext: ... + def makeOverlayCurrent(self) -> None: ... + def grabFrameBuffer(self, withAlpha: bool = ...) -> QtGui.QImage: ... + def renderPixmap(self, width: int = ..., height: int = ..., useContext: bool = ...) -> QtGui.QPixmap: ... + def setContext(self, context: QGLContext, shareContext: typing.Optional[QGLContext] = ..., deleteOldContext: bool = ...) -> None: ... + def context(self) -> QGLContext: ... + def format(self) -> QGLFormat: ... + def swapBuffers(self) -> None: ... + def doubleBuffer(self) -> bool: ... + def doneCurrent(self) -> None: ... + def makeCurrent(self) -> None: ... + def isSharing(self) -> bool: ... + def isValid(self) -> bool: ... + def qglClearColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def qglColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... diff --git a/tools/stubs/PyQt5/QtPositioning.pyi b/tools/stubs/PyQt5/QtPositioning.pyi new file mode 100644 index 000000000..5b65430cf --- /dev/null +++ b/tools/stubs/PyQt5/QtPositioning.pyi @@ -0,0 +1,517 @@ +# The PEP 484 type hints stub file for the QtPositioning module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + + +class QGeoAddress(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoAddress') -> None: ... + + def isTextGenerated(self) -> bool: ... + def clear(self) -> None: ... + def isEmpty(self) -> bool: ... + def setStreet(self, street: str) -> None: ... + def street(self) -> str: ... + def setPostalCode(self, postalCode: str) -> None: ... + def postalCode(self) -> str: ... + def setDistrict(self, district: str) -> None: ... + def district(self) -> str: ... + def setCity(self, city: str) -> None: ... + def city(self) -> str: ... + def setCounty(self, county: str) -> None: ... + def county(self) -> str: ... + def setState(self, state: str) -> None: ... + def state(self) -> str: ... + def setCountryCode(self, countryCode: str) -> None: ... + def countryCode(self) -> str: ... + def setCountry(self, country: str) -> None: ... + def country(self) -> str: ... + def setText(self, text: str) -> None: ... + def text(self) -> str: ... + + +class QGeoAreaMonitorInfo(sip.wrapper): + + @typing.overload + def __init__(self, name: str = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoAreaMonitorInfo') -> None: ... + + def setNotificationParameters(self, parameters: typing.Dict[str, typing.Any]) -> None: ... + def notificationParameters(self) -> typing.Dict[str, typing.Any]: ... + def setPersistent(self, isPersistent: bool) -> None: ... + def isPersistent(self) -> bool: ... + def setExpiration(self, expiry: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + def expiration(self) -> QtCore.QDateTime: ... + def setArea(self, newShape: 'QGeoShape') -> None: ... + def area(self) -> 'QGeoShape': ... + def isValid(self) -> bool: ... + def identifier(self) -> str: ... + def setName(self, name: str) -> None: ... + def name(self) -> str: ... + + +class QGeoAreaMonitorSource(QtCore.QObject): + + class AreaMonitorFeature(int): ... + PersistentAreaMonitorFeature = ... # type: 'QGeoAreaMonitorSource.AreaMonitorFeature' + AnyAreaMonitorFeature = ... # type: 'QGeoAreaMonitorSource.AreaMonitorFeature' + + class Error(int): ... + AccessError = ... # type: 'QGeoAreaMonitorSource.Error' + InsufficientPositionInfo = ... # type: 'QGeoAreaMonitorSource.Error' + UnknownSourceError = ... # type: 'QGeoAreaMonitorSource.Error' + NoError = ... # type: 'QGeoAreaMonitorSource.Error' + + class AreaMonitorFeatures(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoAreaMonitorSource.AreaMonitorFeatures', 'QGeoAreaMonitorSource.AreaMonitorFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoAreaMonitorSource.AreaMonitorFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoAreaMonitorSource.AreaMonitorFeatures': ... + def __int__(self) -> int: ... + + def __init__(self, parent: QtCore.QObject) -> None: ... + + def monitorExpired(self, monitor: QGeoAreaMonitorInfo) -> None: ... + def areaExited(self, monitor: QGeoAreaMonitorInfo, update: 'QGeoPositionInfo') -> None: ... + def areaEntered(self, monitor: QGeoAreaMonitorInfo, update: 'QGeoPositionInfo') -> None: ... + @typing.overload + def activeMonitors(self) -> typing.List[QGeoAreaMonitorInfo]: ... + @typing.overload + def activeMonitors(self, lookupArea: 'QGeoShape') -> typing.List[QGeoAreaMonitorInfo]: ... + def requestUpdate(self, monitor: QGeoAreaMonitorInfo, signal: str) -> bool: ... + def stopMonitoring(self, monitor: QGeoAreaMonitorInfo) -> bool: ... + def startMonitoring(self, monitor: QGeoAreaMonitorInfo) -> bool: ... + def supportedAreaMonitorFeatures(self) -> 'QGeoAreaMonitorSource.AreaMonitorFeatures': ... + @typing.overload + def error(self) -> 'QGeoAreaMonitorSource.Error': ... + @typing.overload + def error(self, error: 'QGeoAreaMonitorSource.Error') -> None: ... + def sourceName(self) -> str: ... + def positionInfoSource(self) -> 'QGeoPositionInfoSource': ... + def setPositionInfoSource(self, source: 'QGeoPositionInfoSource') -> None: ... + @staticmethod + def availableSources() -> typing.List[str]: ... + @staticmethod + def createSource(sourceName: str, parent: QtCore.QObject) -> 'QGeoAreaMonitorSource': ... + @staticmethod + def createDefaultSource(parent: QtCore.QObject) -> 'QGeoAreaMonitorSource': ... + + +class QGeoShape(sip.wrapper): + + class ShapeType(int): ... + UnknownType = ... # type: 'QGeoShape.ShapeType' + RectangleType = ... # type: 'QGeoShape.ShapeType' + CircleType = ... # type: 'QGeoShape.ShapeType' + PathType = ... # type: 'QGeoShape.ShapeType' + PolygonType = ... # type: 'QGeoShape.ShapeType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoShape') -> None: ... + + def boundingGeoRectangle(self) -> 'QGeoRectangle': ... + def toString(self) -> str: ... + def center(self) -> 'QGeoCoordinate': ... + def extendShape(self, coordinate: 'QGeoCoordinate') -> None: ... + def contains(self, coordinate: 'QGeoCoordinate') -> bool: ... + def isEmpty(self) -> bool: ... + def isValid(self) -> bool: ... + def type(self) -> 'QGeoShape.ShapeType': ... + + +class QGeoCircle(QGeoShape): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, center: 'QGeoCoordinate', radius: float = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoCircle') -> None: ... + @typing.overload + def __init__(self, other: QGeoShape) -> None: ... + + def extendCircle(self, coordinate: 'QGeoCoordinate') -> None: ... + def toString(self) -> str: ... + def translated(self, degreesLatitude: float, degreesLongitude: float) -> 'QGeoCircle': ... + def translate(self, degreesLatitude: float, degreesLongitude: float) -> None: ... + def radius(self) -> float: ... + def setRadius(self, radius: float) -> None: ... + def center(self) -> 'QGeoCoordinate': ... + def setCenter(self, center: 'QGeoCoordinate') -> None: ... + + +class QGeoCoordinate(sip.wrapper): + + class CoordinateFormat(int): ... + Degrees = ... # type: 'QGeoCoordinate.CoordinateFormat' + DegreesWithHemisphere = ... # type: 'QGeoCoordinate.CoordinateFormat' + DegreesMinutes = ... # type: 'QGeoCoordinate.CoordinateFormat' + DegreesMinutesWithHemisphere = ... # type: 'QGeoCoordinate.CoordinateFormat' + DegreesMinutesSeconds = ... # type: 'QGeoCoordinate.CoordinateFormat' + DegreesMinutesSecondsWithHemisphere = ... # type: 'QGeoCoordinate.CoordinateFormat' + + class CoordinateType(int): ... + InvalidCoordinate = ... # type: 'QGeoCoordinate.CoordinateType' + Coordinate2D = ... # type: 'QGeoCoordinate.CoordinateType' + Coordinate3D = ... # type: 'QGeoCoordinate.CoordinateType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, latitude: float, longitude: float) -> None: ... + @typing.overload + def __init__(self, latitude: float, longitude: float, altitude: float) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoCoordinate') -> None: ... + + def __hash__(self) -> int: ... + def toString(self, format: 'QGeoCoordinate.CoordinateFormat' = ...) -> str: ... + def atDistanceAndAzimuth(self, distance: float, azimuth: float, distanceUp: float = ...) -> 'QGeoCoordinate': ... + def azimuthTo(self, other: 'QGeoCoordinate') -> float: ... + def distanceTo(self, other: 'QGeoCoordinate') -> float: ... + def altitude(self) -> float: ... + def setAltitude(self, altitude: float) -> None: ... + def longitude(self) -> float: ... + def setLongitude(self, longitude: float) -> None: ... + def latitude(self) -> float: ... + def setLatitude(self, latitude: float) -> None: ... + def type(self) -> 'QGeoCoordinate.CoordinateType': ... + def isValid(self) -> bool: ... + + +class QGeoLocation(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoLocation') -> None: ... + + def setExtendedAttributes(self, data: typing.Dict[str, typing.Any]) -> None: ... + def extendedAttributes(self) -> typing.Dict[str, typing.Any]: ... + def isEmpty(self) -> bool: ... + def setBoundingBox(self, box: 'QGeoRectangle') -> None: ... + def boundingBox(self) -> 'QGeoRectangle': ... + def setCoordinate(self, position: QGeoCoordinate) -> None: ... + def coordinate(self) -> QGeoCoordinate: ... + def setAddress(self, address: QGeoAddress) -> None: ... + def address(self) -> QGeoAddress: ... + + +class QGeoPath(QGeoShape): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, path: typing.Iterable[QGeoCoordinate], width: float = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoPath') -> None: ... + @typing.overload + def __init__(self, other: QGeoShape) -> None: ... + + def clearPath(self) -> None: ... + def size(self) -> int: ... + def toString(self) -> str: ... + @typing.overload + def removeCoordinate(self, coordinate: QGeoCoordinate) -> None: ... + @typing.overload + def removeCoordinate(self, index: int) -> None: ... + def containsCoordinate(self, coordinate: QGeoCoordinate) -> bool: ... + def coordinateAt(self, index: int) -> QGeoCoordinate: ... + def replaceCoordinate(self, index: int, coordinate: QGeoCoordinate) -> None: ... + def insertCoordinate(self, index: int, coordinate: QGeoCoordinate) -> None: ... + def addCoordinate(self, coordinate: QGeoCoordinate) -> None: ... + def length(self, indexFrom: int = ..., indexTo: int = ...) -> float: ... + def translated(self, degreesLatitude: float, degreesLongitude: float) -> 'QGeoPath': ... + def translate(self, degreesLatitude: float, degreesLongitude: float) -> None: ... + def width(self) -> float: ... + def setWidth(self, width: float) -> None: ... + def path(self) -> typing.List[QGeoCoordinate]: ... + def setPath(self, path: typing.Iterable[QGeoCoordinate]) -> None: ... + + +class QGeoPolygon(QGeoShape): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, path: typing.Iterable[QGeoCoordinate]) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoPolygon') -> None: ... + @typing.overload + def __init__(self, other: QGeoShape) -> None: ... + + def perimeter(self) -> typing.List[typing.Any]: ... + def setPerimeter(self, path: typing.Iterable[typing.Any]) -> None: ... + def holesCount(self) -> int: ... + def removeHole(self, index: int) -> None: ... + def holePath(self, index: int) -> typing.List[QGeoCoordinate]: ... + def hole(self, index: int) -> typing.List[typing.Any]: ... + @typing.overload + def addHole(self, holePath: typing.Iterable[QGeoCoordinate]) -> None: ... + @typing.overload + def addHole(self, holePath: typing.Any) -> None: ... + def toString(self) -> str: ... + @typing.overload + def removeCoordinate(self, coordinate: QGeoCoordinate) -> None: ... + @typing.overload + def removeCoordinate(self, index: int) -> None: ... + def containsCoordinate(self, coordinate: QGeoCoordinate) -> bool: ... + def coordinateAt(self, index: int) -> QGeoCoordinate: ... + def replaceCoordinate(self, index: int, coordinate: QGeoCoordinate) -> None: ... + def insertCoordinate(self, index: int, coordinate: QGeoCoordinate) -> None: ... + def addCoordinate(self, coordinate: QGeoCoordinate) -> None: ... + def size(self) -> int: ... + def length(self, indexFrom: int = ..., indexTo: int = ...) -> float: ... + def translated(self, degreesLatitude: float, degreesLongitude: float) -> 'QGeoPolygon': ... + def translate(self, degreesLatitude: float, degreesLongitude: float) -> None: ... + def path(self) -> typing.List[QGeoCoordinate]: ... + def setPath(self, path: typing.Iterable[QGeoCoordinate]) -> None: ... + + +class QGeoPositionInfo(sip.wrapper): + + class Attribute(int): ... + Direction = ... # type: 'QGeoPositionInfo.Attribute' + GroundSpeed = ... # type: 'QGeoPositionInfo.Attribute' + VerticalSpeed = ... # type: 'QGeoPositionInfo.Attribute' + MagneticVariation = ... # type: 'QGeoPositionInfo.Attribute' + HorizontalAccuracy = ... # type: 'QGeoPositionInfo.Attribute' + VerticalAccuracy = ... # type: 'QGeoPositionInfo.Attribute' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, coordinate: QGeoCoordinate, updateTime: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoPositionInfo') -> None: ... + + def hasAttribute(self, attribute: 'QGeoPositionInfo.Attribute') -> bool: ... + def removeAttribute(self, attribute: 'QGeoPositionInfo.Attribute') -> None: ... + def attribute(self, attribute: 'QGeoPositionInfo.Attribute') -> float: ... + def setAttribute(self, attribute: 'QGeoPositionInfo.Attribute', value: float) -> None: ... + def coordinate(self) -> QGeoCoordinate: ... + def setCoordinate(self, coordinate: QGeoCoordinate) -> None: ... + def timestamp(self) -> QtCore.QDateTime: ... + def setTimestamp(self, timestamp: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + def isValid(self) -> bool: ... + + +class QGeoPositionInfoSource(QtCore.QObject): + + class PositioningMethod(int): ... + NoPositioningMethods = ... # type: 'QGeoPositionInfoSource.PositioningMethod' + SatellitePositioningMethods = ... # type: 'QGeoPositionInfoSource.PositioningMethod' + NonSatellitePositioningMethods = ... # type: 'QGeoPositionInfoSource.PositioningMethod' + AllPositioningMethods = ... # type: 'QGeoPositionInfoSource.PositioningMethod' + + class Error(int): ... + AccessError = ... # type: 'QGeoPositionInfoSource.Error' + ClosedError = ... # type: 'QGeoPositionInfoSource.Error' + UnknownSourceError = ... # type: 'QGeoPositionInfoSource.Error' + NoError = ... # type: 'QGeoPositionInfoSource.Error' + + class PositioningMethods(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGeoPositionInfoSource.PositioningMethods', 'QGeoPositionInfoSource.PositioningMethod']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGeoPositionInfoSource.PositioningMethods') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGeoPositionInfoSource.PositioningMethods': ... + def __int__(self) -> int: ... + + def __init__(self, parent: QtCore.QObject) -> None: ... + + def supportedPositioningMethodsChanged(self) -> None: ... + def updateTimeout(self) -> None: ... + def positionUpdated(self, update: QGeoPositionInfo) -> None: ... + def requestUpdate(self, timeout: int = ...) -> None: ... + def stopUpdates(self) -> None: ... + def startUpdates(self) -> None: ... + @typing.overload + def error(self) -> 'QGeoPositionInfoSource.Error': ... + @typing.overload + def error(self, a0: 'QGeoPositionInfoSource.Error') -> None: ... + @staticmethod + def availableSources() -> typing.List[str]: ... + @staticmethod + def createSource(sourceName: str, parent: QtCore.QObject) -> 'QGeoPositionInfoSource': ... + @staticmethod + def createDefaultSource(parent: QtCore.QObject) -> 'QGeoPositionInfoSource': ... + def sourceName(self) -> str: ... + def minimumUpdateInterval(self) -> int: ... + def supportedPositioningMethods(self) -> 'QGeoPositionInfoSource.PositioningMethods': ... + def lastKnownPosition(self, fromSatellitePositioningMethodsOnly: bool = ...) -> QGeoPositionInfo: ... + def preferredPositioningMethods(self) -> 'QGeoPositionInfoSource.PositioningMethods': ... + def setPreferredPositioningMethods(self, methods: typing.Union['QGeoPositionInfoSource.PositioningMethods', 'QGeoPositionInfoSource.PositioningMethod']) -> None: ... + def updateInterval(self) -> int: ... + def setUpdateInterval(self, msec: int) -> None: ... + + +class QGeoRectangle(QGeoShape): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, center: QGeoCoordinate, degreesWidth: float, degreesHeight: float) -> None: ... + @typing.overload + def __init__(self, topLeft: QGeoCoordinate, bottomRight: QGeoCoordinate) -> None: ... + @typing.overload + def __init__(self, coordinates: typing.Iterable[QGeoCoordinate]) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoRectangle') -> None: ... + @typing.overload + def __init__(self, other: QGeoShape) -> None: ... + + def extendRectangle(self, coordinate: QGeoCoordinate) -> None: ... + def toString(self) -> str: ... + def united(self, rectangle: 'QGeoRectangle') -> 'QGeoRectangle': ... + def translated(self, degreesLatitude: float, degreesLongitude: float) -> 'QGeoRectangle': ... + def translate(self, degreesLatitude: float, degreesLongitude: float) -> None: ... + def intersects(self, rectangle: 'QGeoRectangle') -> bool: ... + def contains(self, rectangle: 'QGeoRectangle') -> bool: ... + def height(self) -> float: ... + def setHeight(self, degreesHeight: float) -> None: ... + def width(self) -> float: ... + def setWidth(self, degreesWidth: float) -> None: ... + def center(self) -> QGeoCoordinate: ... + def setCenter(self, center: QGeoCoordinate) -> None: ... + def bottomRight(self) -> QGeoCoordinate: ... + def setBottomRight(self, bottomRight: QGeoCoordinate) -> None: ... + def bottomLeft(self) -> QGeoCoordinate: ... + def setBottomLeft(self, bottomLeft: QGeoCoordinate) -> None: ... + def topRight(self) -> QGeoCoordinate: ... + def setTopRight(self, topRight: QGeoCoordinate) -> None: ... + def topLeft(self) -> QGeoCoordinate: ... + def setTopLeft(self, topLeft: QGeoCoordinate) -> None: ... + + +class QGeoSatelliteInfo(sip.wrapper): + + class SatelliteSystem(int): ... + Undefined = ... # type: 'QGeoSatelliteInfo.SatelliteSystem' + GPS = ... # type: 'QGeoSatelliteInfo.SatelliteSystem' + GLONASS = ... # type: 'QGeoSatelliteInfo.SatelliteSystem' + + class Attribute(int): ... + Elevation = ... # type: 'QGeoSatelliteInfo.Attribute' + Azimuth = ... # type: 'QGeoSatelliteInfo.Attribute' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoSatelliteInfo') -> None: ... + + def hasAttribute(self, attribute: 'QGeoSatelliteInfo.Attribute') -> bool: ... + def removeAttribute(self, attribute: 'QGeoSatelliteInfo.Attribute') -> None: ... + def attribute(self, attribute: 'QGeoSatelliteInfo.Attribute') -> float: ... + def setAttribute(self, attribute: 'QGeoSatelliteInfo.Attribute', value: float) -> None: ... + def signalStrength(self) -> int: ... + def setSignalStrength(self, signalStrength: int) -> None: ... + def satelliteIdentifier(self) -> int: ... + def setSatelliteIdentifier(self, satId: int) -> None: ... + def satelliteSystem(self) -> 'QGeoSatelliteInfo.SatelliteSystem': ... + def setSatelliteSystem(self, system: 'QGeoSatelliteInfo.SatelliteSystem') -> None: ... + + +class QGeoSatelliteInfoSource(QtCore.QObject): + + class Error(int): ... + AccessError = ... # type: 'QGeoSatelliteInfoSource.Error' + ClosedError = ... # type: 'QGeoSatelliteInfoSource.Error' + NoError = ... # type: 'QGeoSatelliteInfoSource.Error' + UnknownSourceError = ... # type: 'QGeoSatelliteInfoSource.Error' + + def __init__(self, parent: QtCore.QObject) -> None: ... + + def requestTimeout(self) -> None: ... + def satellitesInUseUpdated(self, satellites: typing.Iterable[QGeoSatelliteInfo]) -> None: ... + def satellitesInViewUpdated(self, satellites: typing.Iterable[QGeoSatelliteInfo]) -> None: ... + def requestUpdate(self, timeout: int = ...) -> None: ... + def stopUpdates(self) -> None: ... + def startUpdates(self) -> None: ... + @typing.overload + def error(self) -> 'QGeoSatelliteInfoSource.Error': ... + @typing.overload + def error(self, a0: 'QGeoSatelliteInfoSource.Error') -> None: ... + def minimumUpdateInterval(self) -> int: ... + def updateInterval(self) -> int: ... + def setUpdateInterval(self, msec: int) -> None: ... + def sourceName(self) -> str: ... + @staticmethod + def availableSources() -> typing.List[str]: ... + @staticmethod + def createSource(sourceName: str, parent: QtCore.QObject) -> 'QGeoSatelliteInfoSource': ... + @staticmethod + def createDefaultSource(parent: QtCore.QObject) -> 'QGeoSatelliteInfoSource': ... + + +class QNmeaPositionInfoSource(QGeoPositionInfoSource): + + class UpdateMode(int): ... + RealTimeMode = ... # type: 'QNmeaPositionInfoSource.UpdateMode' + SimulationMode = ... # type: 'QNmeaPositionInfoSource.UpdateMode' + + def __init__(self, updateMode: 'QNmeaPositionInfoSource.UpdateMode', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def userEquivalentRangeError(self) -> float: ... + def setUserEquivalentRangeError(self, uere: float) -> None: ... + def parsePosInfoFromNmeaData(self, data: str, size: int, posInfo: QGeoPositionInfo) -> typing.Tuple[bool, bool]: ... + def requestUpdate(self, timeout: int = ...) -> None: ... + def stopUpdates(self) -> None: ... + def startUpdates(self) -> None: ... + def error(self) -> QGeoPositionInfoSource.Error: ... + def minimumUpdateInterval(self) -> int: ... + def supportedPositioningMethods(self) -> QGeoPositionInfoSource.PositioningMethods: ... + def lastKnownPosition(self, fromSatellitePositioningMethodsOnly: bool = ...) -> QGeoPositionInfo: ... + def setUpdateInterval(self, msec: int) -> None: ... + def device(self) -> QtCore.QIODevice: ... + def setDevice(self, source: QtCore.QIODevice) -> None: ... + def updateMode(self) -> 'QNmeaPositionInfoSource.UpdateMode': ... diff --git a/tools/stubs/PyQt5/QtPrintSupport.pyi b/tools/stubs/PyQt5/QtPrintSupport.pyi new file mode 100644 index 000000000..6fccad459 --- /dev/null +++ b/tools/stubs/PyQt5/QtPrintSupport.pyi @@ -0,0 +1,436 @@ +# The PEP 484 type hints stub file for the QtPrintSupport module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtWidgets +from PyQt5 import QtGui +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + +# Convenient aliases for complicated OpenGL types. +PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QAbstractPrintDialog(QtWidgets.QDialog): + + class PrintDialogOption(int): ... + None_ = ... # type: 'QAbstractPrintDialog.PrintDialogOption' + PrintToFile = ... # type: 'QAbstractPrintDialog.PrintDialogOption' + PrintSelection = ... # type: 'QAbstractPrintDialog.PrintDialogOption' + PrintPageRange = ... # type: 'QAbstractPrintDialog.PrintDialogOption' + PrintCollateCopies = ... # type: 'QAbstractPrintDialog.PrintDialogOption' + PrintShowPageSize = ... # type: 'QAbstractPrintDialog.PrintDialogOption' + PrintCurrentPage = ... # type: 'QAbstractPrintDialog.PrintDialogOption' + + class PrintRange(int): ... + AllPages = ... # type: 'QAbstractPrintDialog.PrintRange' + Selection = ... # type: 'QAbstractPrintDialog.PrintRange' + PageRange = ... # type: 'QAbstractPrintDialog.PrintRange' + CurrentPage = ... # type: 'QAbstractPrintDialog.PrintRange' + + class PrintDialogOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QAbstractPrintDialog.PrintDialogOptions', 'QAbstractPrintDialog.PrintDialogOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstractPrintDialog.PrintDialogOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QAbstractPrintDialog.PrintDialogOptions': ... + def __int__(self) -> int: ... + + def __init__(self, printer: 'QPrinter', parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + + def enabledOptions(self) -> 'QAbstractPrintDialog.PrintDialogOptions': ... + def setEnabledOptions(self, options: typing.Union['QAbstractPrintDialog.PrintDialogOptions', 'QAbstractPrintDialog.PrintDialogOption']) -> None: ... + def setOptionTabs(self, tabs: typing.Iterable[QtWidgets.QWidget]) -> None: ... + def printer(self) -> 'QPrinter': ... + def toPage(self) -> int: ... + def fromPage(self) -> int: ... + def setFromTo(self, fromPage: int, toPage: int) -> None: ... + def maxPage(self) -> int: ... + def minPage(self) -> int: ... + def setMinMax(self, min: int, max: int) -> None: ... + def printRange(self) -> 'QAbstractPrintDialog.PrintRange': ... + def setPrintRange(self, range: 'QAbstractPrintDialog.PrintRange') -> None: ... + def exec(self) -> int: ... + def exec_(self) -> int: ... + + +class QPageSetupDialog(QtWidgets.QDialog): + + @typing.overload + def __init__(self, printer: 'QPrinter', parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + + def printer(self) -> 'QPrinter': ... + def done(self, result: int) -> None: ... + @typing.overload + def open(self) -> None: ... + @typing.overload + def open(self, slot: PYQT_SLOT) -> None: ... + def exec(self) -> int: ... + def exec_(self) -> int: ... + def setVisible(self, visible: bool) -> None: ... + + +class QPrintDialog(QAbstractPrintDialog): + + @typing.overload + def __init__(self, printer: 'QPrinter', parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + + @typing.overload + def accepted(self) -> None: ... + @typing.overload + def accepted(self, printer: 'QPrinter') -> None: ... + @typing.overload + def open(self) -> None: ... + @typing.overload + def open(self, slot: PYQT_SLOT) -> None: ... + def setVisible(self, visible: bool) -> None: ... + def options(self) -> QAbstractPrintDialog.PrintDialogOptions: ... + def setOptions(self, options: typing.Union[QAbstractPrintDialog.PrintDialogOptions, QAbstractPrintDialog.PrintDialogOption]) -> None: ... + def testOption(self, option: QAbstractPrintDialog.PrintDialogOption) -> bool: ... + def setOption(self, option: QAbstractPrintDialog.PrintDialogOption, on: bool = ...) -> None: ... + def done(self, result: int) -> None: ... + def exec(self) -> int: ... + def exec_(self) -> int: ... + + +class QPrintEngine(sip.simplewrapper): + + class PrintEnginePropertyKey(int): ... + PPK_CollateCopies = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_ColorMode = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_Creator = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_DocumentName = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_FullPage = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_NumberOfCopies = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_Orientation = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_OutputFileName = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_PageOrder = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_PageRect = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_PageSize = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_PaperRect = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_PaperSource = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_PrinterName = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_PrinterProgram = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_Resolution = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_SelectionOption = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_SupportedResolutions = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_WindowsPageSize = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_FontEmbedding = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_Duplex = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_PaperSources = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_CustomPaperSize = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_PageMargins = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_PaperSize = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_CopyCount = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_SupportsMultipleCopies = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_PaperName = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_QPageSize = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_QPageMargins = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_QPageLayout = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + PPK_CustomBase = ... # type: 'QPrintEngine.PrintEnginePropertyKey' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QPrintEngine') -> None: ... + + def printerState(self) -> 'QPrinter.PrinterState': ... + def metric(self, a0: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ... + def abort(self) -> bool: ... + def newPage(self) -> bool: ... + def property(self, key: 'QPrintEngine.PrintEnginePropertyKey') -> typing.Any: ... + def setProperty(self, key: 'QPrintEngine.PrintEnginePropertyKey', value: typing.Any) -> None: ... + + +class QPrinter(QtGui.QPagedPaintDevice): + + class DuplexMode(int): ... + DuplexNone = ... # type: 'QPrinter.DuplexMode' + DuplexAuto = ... # type: 'QPrinter.DuplexMode' + DuplexLongSide = ... # type: 'QPrinter.DuplexMode' + DuplexShortSide = ... # type: 'QPrinter.DuplexMode' + + class Unit(int): ... + Millimeter = ... # type: 'QPrinter.Unit' + Point = ... # type: 'QPrinter.Unit' + Inch = ... # type: 'QPrinter.Unit' + Pica = ... # type: 'QPrinter.Unit' + Didot = ... # type: 'QPrinter.Unit' + Cicero = ... # type: 'QPrinter.Unit' + DevicePixel = ... # type: 'QPrinter.Unit' + + class PrintRange(int): ... + AllPages = ... # type: 'QPrinter.PrintRange' + Selection = ... # type: 'QPrinter.PrintRange' + PageRange = ... # type: 'QPrinter.PrintRange' + CurrentPage = ... # type: 'QPrinter.PrintRange' + + class OutputFormat(int): ... + NativeFormat = ... # type: 'QPrinter.OutputFormat' + PdfFormat = ... # type: 'QPrinter.OutputFormat' + + class PrinterState(int): ... + Idle = ... # type: 'QPrinter.PrinterState' + Active = ... # type: 'QPrinter.PrinterState' + Aborted = ... # type: 'QPrinter.PrinterState' + Error = ... # type: 'QPrinter.PrinterState' + + class PaperSource(int): ... + OnlyOne = ... # type: 'QPrinter.PaperSource' + Lower = ... # type: 'QPrinter.PaperSource' + Middle = ... # type: 'QPrinter.PaperSource' + Manual = ... # type: 'QPrinter.PaperSource' + Envelope = ... # type: 'QPrinter.PaperSource' + EnvelopeManual = ... # type: 'QPrinter.PaperSource' + Auto = ... # type: 'QPrinter.PaperSource' + Tractor = ... # type: 'QPrinter.PaperSource' + SmallFormat = ... # type: 'QPrinter.PaperSource' + LargeFormat = ... # type: 'QPrinter.PaperSource' + LargeCapacity = ... # type: 'QPrinter.PaperSource' + Cassette = ... # type: 'QPrinter.PaperSource' + FormSource = ... # type: 'QPrinter.PaperSource' + MaxPageSource = ... # type: 'QPrinter.PaperSource' + Upper = ... # type: 'QPrinter.PaperSource' + CustomSource = ... # type: 'QPrinter.PaperSource' + LastPaperSource = ... # type: 'QPrinter.PaperSource' + + class ColorMode(int): ... + GrayScale = ... # type: 'QPrinter.ColorMode' + Color = ... # type: 'QPrinter.ColorMode' + + class PageOrder(int): ... + FirstPageFirst = ... # type: 'QPrinter.PageOrder' + LastPageFirst = ... # type: 'QPrinter.PageOrder' + + class Orientation(int): ... + Portrait = ... # type: 'QPrinter.Orientation' + Landscape = ... # type: 'QPrinter.Orientation' + + class PrinterMode(int): ... + ScreenResolution = ... # type: 'QPrinter.PrinterMode' + PrinterResolution = ... # type: 'QPrinter.PrinterMode' + HighResolution = ... # type: 'QPrinter.PrinterMode' + + @typing.overload + def __init__(self, mode: 'QPrinter.PrinterMode' = ...) -> None: ... + @typing.overload + def __init__(self, printer: 'QPrinterInfo', mode: 'QPrinter.PrinterMode' = ...) -> None: ... + + def pdfVersion(self) -> QtGui.QPagedPaintDevice.PdfVersion: ... + def setPdfVersion(self, version: QtGui.QPagedPaintDevice.PdfVersion) -> None: ... + def paperName(self) -> str: ... + def setPaperName(self, paperName: str) -> None: ... + def setEngines(self, printEngine: QPrintEngine, paintEngine: QtGui.QPaintEngine) -> None: ... + def metric(self, a0: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ... + def getPageMargins(self, unit: 'QPrinter.Unit') -> typing.Tuple[float, float, float, float]: ... + def setPageMargins(self, left: float, top: float, right: float, bottom: float, unit: 'QPrinter.Unit') -> None: ... + def setMargins(self, m: QtGui.QPagedPaintDevice.Margins) -> None: ... + def printRange(self) -> 'QPrinter.PrintRange': ... + def setPrintRange(self, range: 'QPrinter.PrintRange') -> None: ... + def toPage(self) -> int: ... + def fromPage(self) -> int: ... + def setFromTo(self, fromPage: int, toPage: int) -> None: ... + def printEngine(self) -> QPrintEngine: ... + def paintEngine(self) -> QtGui.QPaintEngine: ... + def printerState(self) -> 'QPrinter.PrinterState': ... + def abort(self) -> bool: ... + def newPage(self) -> bool: ... + def setPrinterSelectionOption(self, a0: str) -> None: ... + def printerSelectionOption(self) -> str: ... + @typing.overload + def pageRect(self) -> QtCore.QRect: ... + @typing.overload + def pageRect(self, a0: 'QPrinter.Unit') -> QtCore.QRectF: ... + @typing.overload + def paperRect(self) -> QtCore.QRect: ... + @typing.overload + def paperRect(self, a0: 'QPrinter.Unit') -> QtCore.QRectF: ... + def doubleSidedPrinting(self) -> bool: ... + def setDoubleSidedPrinting(self, enable: bool) -> None: ... + def fontEmbeddingEnabled(self) -> bool: ... + def setFontEmbeddingEnabled(self, enable: bool) -> None: ... + def supportedResolutions(self) -> typing.List[int]: ... + def duplex(self) -> 'QPrinter.DuplexMode': ... + def setDuplex(self, duplex: 'QPrinter.DuplexMode') -> None: ... + def paperSource(self) -> 'QPrinter.PaperSource': ... + def setPaperSource(self, a0: 'QPrinter.PaperSource') -> None: ... + def supportsMultipleCopies(self) -> bool: ... + def copyCount(self) -> int: ... + def setCopyCount(self, a0: int) -> None: ... + def fullPage(self) -> bool: ... + def setFullPage(self, a0: bool) -> None: ... + def collateCopies(self) -> bool: ... + def setCollateCopies(self, collate: bool) -> None: ... + def colorMode(self) -> 'QPrinter.ColorMode': ... + def setColorMode(self, a0: 'QPrinter.ColorMode') -> None: ... + def resolution(self) -> int: ... + def setResolution(self, a0: int) -> None: ... + def pageOrder(self) -> 'QPrinter.PageOrder': ... + def setPageOrder(self, a0: 'QPrinter.PageOrder') -> None: ... + @typing.overload + def paperSize(self) -> QtGui.QPagedPaintDevice.PageSize: ... + @typing.overload + def paperSize(self, unit: 'QPrinter.Unit') -> QtCore.QSizeF: ... + @typing.overload + def setPaperSize(self, a0: QtGui.QPagedPaintDevice.PageSize) -> None: ... + @typing.overload + def setPaperSize(self, paperSize: QtCore.QSizeF, unit: 'QPrinter.Unit') -> None: ... + def setPageSizeMM(self, size: QtCore.QSizeF) -> None: ... + def orientation(self) -> 'QPrinter.Orientation': ... + def setOrientation(self, a0: 'QPrinter.Orientation') -> None: ... + def creator(self) -> str: ... + def setCreator(self, a0: str) -> None: ... + def docName(self) -> str: ... + def setDocName(self, a0: str) -> None: ... + def printProgram(self) -> str: ... + def setPrintProgram(self, a0: str) -> None: ... + def outputFileName(self) -> str: ... + def setOutputFileName(self, a0: str) -> None: ... + def isValid(self) -> bool: ... + def printerName(self) -> str: ... + def setPrinterName(self, a0: str) -> None: ... + def outputFormat(self) -> 'QPrinter.OutputFormat': ... + def setOutputFormat(self, format: 'QPrinter.OutputFormat') -> None: ... + + +class QPrinterInfo(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, src: 'QPrinterInfo') -> None: ... + @typing.overload + def __init__(self, printer: QPrinter) -> None: ... + + def supportedColorModes(self) -> typing.List[QPrinter.ColorMode]: ... + def defaultColorMode(self) -> QPrinter.ColorMode: ... + def supportedDuplexModes(self) -> typing.List[QPrinter.DuplexMode]: ... + def defaultDuplexMode(self) -> QPrinter.DuplexMode: ... + @staticmethod + def defaultPrinterName() -> str: ... + @staticmethod + def availablePrinterNames() -> typing.List[str]: ... + def supportedResolutions(self) -> typing.List[int]: ... + def maximumPhysicalPageSize(self) -> QtGui.QPageSize: ... + def minimumPhysicalPageSize(self) -> QtGui.QPageSize: ... + def supportsCustomPageSizes(self) -> bool: ... + def defaultPageSize(self) -> QtGui.QPageSize: ... + def supportedPageSizes(self) -> typing.List[QtGui.QPageSize]: ... + def state(self) -> QPrinter.PrinterState: ... + def isRemote(self) -> bool: ... + @staticmethod + def printerInfo(printerName: str) -> 'QPrinterInfo': ... + def makeAndModel(self) -> str: ... + def location(self) -> str: ... + def description(self) -> str: ... + @staticmethod + def defaultPrinter() -> 'QPrinterInfo': ... + @staticmethod + def availablePrinters() -> typing.List['QPrinterInfo']: ... + def supportedSizesWithNames(self) -> typing.List[typing.Tuple[str, QtCore.QSizeF]]: ... + def supportedPaperSizes(self) -> typing.List[QtGui.QPagedPaintDevice.PageSize]: ... + def isDefault(self) -> bool: ... + def isNull(self) -> bool: ... + def printerName(self) -> str: ... + + +class QPrintPreviewDialog(QtWidgets.QDialog): + + @typing.overload + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + @typing.overload + def __init__(self, printer: QPrinter, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def paintRequested(self, printer: QPrinter) -> None: ... + def done(self, result: int) -> None: ... + def printer(self) -> QPrinter: ... + @typing.overload + def open(self) -> None: ... + @typing.overload + def open(self, slot: PYQT_SLOT) -> None: ... + def setVisible(self, visible: bool) -> None: ... + + +class QPrintPreviewWidget(QtWidgets.QWidget): + + class ZoomMode(int): ... + CustomZoom = ... # type: 'QPrintPreviewWidget.ZoomMode' + FitToWidth = ... # type: 'QPrintPreviewWidget.ZoomMode' + FitInView = ... # type: 'QPrintPreviewWidget.ZoomMode' + + class ViewMode(int): ... + SinglePageView = ... # type: 'QPrintPreviewWidget.ViewMode' + FacingPagesView = ... # type: 'QPrintPreviewWidget.ViewMode' + AllPagesView = ... # type: 'QPrintPreviewWidget.ViewMode' + + @typing.overload + def __init__(self, printer: QPrinter, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def pageCount(self) -> int: ... + def previewChanged(self) -> None: ... + def paintRequested(self, printer: QPrinter) -> None: ... + def updatePreview(self) -> None: ... + def setAllPagesViewMode(self) -> None: ... + def setFacingPagesViewMode(self) -> None: ... + def setSinglePageViewMode(self) -> None: ... + def setPortraitOrientation(self) -> None: ... + def setLandscapeOrientation(self) -> None: ... + def fitInView(self) -> None: ... + def fitToWidth(self) -> None: ... + def setCurrentPage(self, pageNumber: int) -> None: ... + def setZoomMode(self, zoomMode: 'QPrintPreviewWidget.ZoomMode') -> None: ... + def setViewMode(self, viewMode: 'QPrintPreviewWidget.ViewMode') -> None: ... + def setOrientation(self, orientation: QPrinter.Orientation) -> None: ... + def setZoomFactor(self, zoomFactor: float) -> None: ... + def zoomOut(self, factor: float = ...) -> None: ... + def zoomIn(self, factor: float = ...) -> None: ... + def print(self) -> None: ... + def print_(self) -> None: ... + def setVisible(self, visible: bool) -> None: ... + def currentPage(self) -> int: ... + def zoomMode(self) -> 'QPrintPreviewWidget.ZoomMode': ... + def viewMode(self) -> 'QPrintPreviewWidget.ViewMode': ... + def orientation(self) -> QPrinter.Orientation: ... + def zoomFactor(self) -> float: ... diff --git a/tools/stubs/PyQt5/QtQml.pyi b/tools/stubs/PyQt5/QtQml.pyi new file mode 100644 index 000000000..f7009482d --- /dev/null +++ b/tools/stubs/PyQt5/QtQml.pyi @@ -0,0 +1,646 @@ +# The PEP 484 type hints stub file for the QtQml module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtNetwork +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + + +class QJSEngine(QtCore.QObject): + + class Extension(int): ... + TranslationExtension = ... # type: 'QJSEngine.Extension' + ConsoleExtension = ... # type: 'QJSEngine.Extension' + GarbageCollectionExtension = ... # type: 'QJSEngine.Extension' + AllExtensions = ... # type: 'QJSEngine.Extension' + + class Extensions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QJSEngine.Extensions', 'QJSEngine.Extension']) -> None: ... + @typing.overload + def __init__(self, a0: 'QJSEngine.Extensions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QJSEngine.Extensions': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, parent: QtCore.QObject) -> None: ... + + @typing.overload + def throwError(self, message: str) -> None: ... + @typing.overload + def throwError(self, errorType: 'QJSValue.ErrorType', message: str = ...) -> None: ... + def newErrorObject(self, errorType: 'QJSValue.ErrorType', message: str = ...) -> 'QJSValue': ... + def importModule(self, fileName: str) -> 'QJSValue': ... + def newQMetaObject(self, metaObject: QtCore.QMetaObject) -> 'QJSValue': ... + def installExtensions(self, extensions: typing.Union['QJSEngine.Extensions', 'QJSEngine.Extension'], object: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str] = ...) -> None: ... + def installTranslatorFunctions(self, object: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str] = ...) -> None: ... + def collectGarbage(self) -> None: ... + def newQObject(self, object: QtCore.QObject) -> 'QJSValue': ... + def newArray(self, length: int = ...) -> 'QJSValue': ... + def newObject(self) -> 'QJSValue': ... + def evaluate(self, program: str, fileName: str = ..., lineNumber: int = ...) -> 'QJSValue': ... + def globalObject(self) -> 'QJSValue': ... + + +class QJSValue(sip.simplewrapper): + + class ErrorType(int): ... + GenericError = ... # type: 'QJSValue.ErrorType' + EvalError = ... # type: 'QJSValue.ErrorType' + RangeError = ... # type: 'QJSValue.ErrorType' + ReferenceError = ... # type: 'QJSValue.ErrorType' + SyntaxError = ... # type: 'QJSValue.ErrorType' + TypeError = ... # type: 'QJSValue.ErrorType' + URIError = ... # type: 'QJSValue.ErrorType' + + class SpecialValue(int): ... + NullValue = ... # type: 'QJSValue.SpecialValue' + UndefinedValue = ... # type: 'QJSValue.SpecialValue' + + @typing.overload + def __init__(self, value: 'QJSValue.SpecialValue' = ...) -> None: ... + @typing.overload + def __init__(self, other: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]) -> None: ... + + def errorType(self) -> 'QJSValue.ErrorType': ... + def callAsConstructor(self, args: typing.Iterable[typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]] = ...) -> 'QJSValue': ... + def callWithInstance(self, instance: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str], args: typing.Iterable[typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]] = ...) -> 'QJSValue': ... + def call(self, args: typing.Iterable[typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]] = ...) -> 'QJSValue': ... + def isCallable(self) -> bool: ... + def deleteProperty(self, name: str) -> bool: ... + def hasOwnProperty(self, name: str) -> bool: ... + def hasProperty(self, name: str) -> bool: ... + @typing.overload + def setProperty(self, name: str, value: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]) -> None: ... + @typing.overload + def setProperty(self, arrayIndex: int, value: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]) -> None: ... + @typing.overload + def property(self, name: str) -> 'QJSValue': ... + @typing.overload + def property(self, arrayIndex: int) -> 'QJSValue': ... + def setPrototype(self, prototype: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]) -> None: ... + def prototype(self) -> 'QJSValue': ... + def strictlyEquals(self, other: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]) -> bool: ... + def equals(self, other: typing.Union['QJSValue', 'QJSValue.SpecialValue', bool, int, float, str]) -> bool: ... + def toDateTime(self) -> QtCore.QDateTime: ... + def toQObject(self) -> QtCore.QObject: ... + def toVariant(self) -> typing.Any: ... + def toBool(self) -> bool: ... + def toUInt(self) -> int: ... + def toInt(self) -> int: ... + def toNumber(self) -> float: ... + def toString(self) -> str: ... + def isError(self) -> bool: ... + def isArray(self) -> bool: ... + def isRegExp(self) -> bool: ... + def isDate(self) -> bool: ... + def isObject(self) -> bool: ... + def isQObject(self) -> bool: ... + def isVariant(self) -> bool: ... + def isUndefined(self) -> bool: ... + def isString(self) -> bool: ... + def isNull(self) -> bool: ... + def isNumber(self) -> bool: ... + def isBool(self) -> bool: ... + + +class QJSValueIterator(sip.simplewrapper): + + def __init__(self, value: typing.Union[QJSValue, QJSValue.SpecialValue, bool, int, float, str]) -> None: ... + + def value(self) -> QJSValue: ... + def name(self) -> str: ... + def next(self) -> bool: ... + def hasNext(self) -> bool: ... + + +class QQmlAbstractUrlInterceptor(sip.simplewrapper): + + class DataType(int): ... + QmlFile = ... # type: 'QQmlAbstractUrlInterceptor.DataType' + JavaScriptFile = ... # type: 'QQmlAbstractUrlInterceptor.DataType' + QmldirFile = ... # type: 'QQmlAbstractUrlInterceptor.DataType' + UrlString = ... # type: 'QQmlAbstractUrlInterceptor.DataType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlAbstractUrlInterceptor') -> None: ... + + def intercept(self, path: QtCore.QUrl, type: 'QQmlAbstractUrlInterceptor.DataType') -> QtCore.QUrl: ... + + +class QQmlEngine(QJSEngine): + + class ObjectOwnership(int): ... + CppOwnership = ... # type: 'QQmlEngine.ObjectOwnership' + JavaScriptOwnership = ... # type: 'QQmlEngine.ObjectOwnership' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def singletonInstance(self, qmlTypeId: int) -> QtCore.QObject: ... + def retranslate(self) -> None: ... + def offlineStorageDatabaseFilePath(self, databaseName: str) -> str: ... + def exit(self, retCode: int) -> None: ... + def warnings(self, warnings: typing.Iterable['QQmlError']) -> None: ... + def quit(self) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + @staticmethod + def objectOwnership(a0: QtCore.QObject) -> 'QQmlEngine.ObjectOwnership': ... + @staticmethod + def setObjectOwnership(a0: QtCore.QObject, a1: 'QQmlEngine.ObjectOwnership') -> None: ... + @staticmethod + def setContextForObject(a0: QtCore.QObject, a1: 'QQmlContext') -> None: ... + @staticmethod + def contextForObject(a0: QtCore.QObject) -> 'QQmlContext': ... + def setOutputWarningsToStandardError(self, a0: bool) -> None: ... + def outputWarningsToStandardError(self) -> bool: ... + def setBaseUrl(self, a0: QtCore.QUrl) -> None: ... + def baseUrl(self) -> QtCore.QUrl: ... + def offlineStoragePath(self) -> str: ... + def setOfflineStoragePath(self, dir: str) -> None: ... + def incubationController(self) -> 'QQmlIncubationController': ... + def setIncubationController(self, a0: 'QQmlIncubationController') -> None: ... + def removeImageProvider(self, id: str) -> None: ... + def imageProvider(self, id: str) -> 'QQmlImageProviderBase': ... + def addImageProvider(self, id: str, a1: 'QQmlImageProviderBase') -> None: ... + def networkAccessManager(self) -> QtNetwork.QNetworkAccessManager: ... + def networkAccessManagerFactory(self) -> 'QQmlNetworkAccessManagerFactory': ... + def setNetworkAccessManagerFactory(self, a0: 'QQmlNetworkAccessManagerFactory') -> None: ... + def importPlugin(self, filePath: str, uri: str, errors: typing.Iterable['QQmlError']) -> bool: ... + def addNamedBundle(self, name: str, fileName: str) -> bool: ... + def addPluginPath(self, dir: str) -> None: ... + def setPluginPathList(self, paths: typing.Iterable[str]) -> None: ... + def pluginPathList(self) -> typing.List[str]: ... + def addImportPath(self, dir: str) -> None: ... + def setImportPathList(self, paths: typing.Iterable[str]) -> None: ... + def importPathList(self) -> typing.List[str]: ... + def trimComponentCache(self) -> None: ... + def clearComponentCache(self) -> None: ... + def rootContext(self) -> 'QQmlContext': ... + + +class QQmlApplicationEngine(QQmlEngine): + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, url: QtCore.QUrl, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, filePath: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def objectCreated(self, object: QtCore.QObject, url: QtCore.QUrl) -> None: ... + def loadData(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], url: QtCore.QUrl = ...) -> None: ... + @typing.overload + def load(self, url: QtCore.QUrl) -> None: ... + @typing.overload + def load(self, filePath: str) -> None: ... + def rootObjects(self) -> typing.List[QtCore.QObject]: ... + + +class QQmlComponent(QtCore.QObject): + + class Status(int): ... + Null = ... # type: 'QQmlComponent.Status' + Ready = ... # type: 'QQmlComponent.Status' + Loading = ... # type: 'QQmlComponent.Status' + Error = ... # type: 'QQmlComponent.Status' + + class CompilationMode(int): ... + PreferSynchronous = ... # type: 'QQmlComponent.CompilationMode' + Asynchronous = ... # type: 'QQmlComponent.CompilationMode' + + @typing.overload + def __init__(self, a0: QQmlEngine, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, a0: QQmlEngine, fileName: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, a0: QQmlEngine, fileName: str, mode: 'QQmlComponent.CompilationMode', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, a0: QQmlEngine, url: QtCore.QUrl, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, a0: QQmlEngine, url: QtCore.QUrl, mode: 'QQmlComponent.CompilationMode', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def engine(self) -> QQmlEngine: ... + def progressChanged(self, a0: float) -> None: ... + def statusChanged(self, a0: 'QQmlComponent.Status') -> None: ... + def setData(self, a0: typing.Union[QtCore.QByteArray, bytes, bytearray], baseUrl: QtCore.QUrl) -> None: ... + @typing.overload + def loadUrl(self, url: QtCore.QUrl) -> None: ... + @typing.overload + def loadUrl(self, url: QtCore.QUrl, mode: 'QQmlComponent.CompilationMode') -> None: ... + def creationContext(self) -> 'QQmlContext': ... + def completeCreate(self) -> None: ... + def beginCreate(self, a0: 'QQmlContext') -> QtCore.QObject: ... + @typing.overload + def create(self, context: typing.Optional['QQmlContext'] = ...) -> QtCore.QObject: ... + @typing.overload + def create(self, a0: 'QQmlIncubator', context: typing.Optional['QQmlContext'] = ..., forContext: typing.Optional['QQmlContext'] = ...) -> None: ... + def url(self) -> QtCore.QUrl: ... + def progress(self) -> float: ... + def errors(self) -> typing.List['QQmlError']: ... + def isLoading(self) -> bool: ... + def isError(self) -> bool: ... + def isReady(self) -> bool: ... + def isNull(self) -> bool: ... + def status(self) -> 'QQmlComponent.Status': ... + + +class QQmlContext(QtCore.QObject): + + class PropertyPair(sip.simplewrapper): + + name = ... # type: str + value = ... # type: typing.Any + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlContext.PropertyPair') -> None: ... + + @typing.overload + def __init__(self, engine: QQmlEngine, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, parentContext: 'QQmlContext', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setContextProperties(self, properties: typing.Iterable['QQmlContext.PropertyPair']) -> None: ... + def baseUrl(self) -> QtCore.QUrl: ... + def setBaseUrl(self, a0: QtCore.QUrl) -> None: ... + def resolvedUrl(self, a0: QtCore.QUrl) -> QtCore.QUrl: ... + def nameForObject(self, a0: QtCore.QObject) -> str: ... + @typing.overload + def setContextProperty(self, a0: str, a1: QtCore.QObject) -> None: ... + @typing.overload + def setContextProperty(self, a0: str, a1: typing.Any) -> None: ... + def contextProperty(self, a0: str) -> typing.Any: ... + def setContextObject(self, a0: QtCore.QObject) -> None: ... + def contextObject(self) -> QtCore.QObject: ... + def parentContext(self) -> 'QQmlContext': ... + def engine(self) -> QQmlEngine: ... + def isValid(self) -> bool: ... + + +class QQmlImageProviderBase(sip.wrapper): + + class Flag(int): ... + ForceAsynchronousImageLoading = ... # type: 'QQmlImageProviderBase.Flag' + + class ImageType(int): ... + Image = ... # type: 'QQmlImageProviderBase.ImageType' + Pixmap = ... # type: 'QQmlImageProviderBase.ImageType' + Texture = ... # type: 'QQmlImageProviderBase.ImageType' + ImageResponse = ... # type: 'QQmlImageProviderBase.ImageType' + + class Flags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QQmlImageProviderBase.Flags', 'QQmlImageProviderBase.Flag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlImageProviderBase.Flags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QQmlImageProviderBase.Flags': ... + def __int__(self) -> int: ... + + def __init__(self, a0: 'QQmlImageProviderBase') -> None: ... + + def flags(self) -> 'QQmlImageProviderBase.Flags': ... + def imageType(self) -> 'QQmlImageProviderBase.ImageType': ... + + +class QQmlError(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlError') -> None: ... + + def setMessageType(self, messageType: QtCore.QtMsgType) -> None: ... + def messageType(self) -> QtCore.QtMsgType: ... + def setObject(self, a0: QtCore.QObject) -> None: ... + def object(self) -> QtCore.QObject: ... + def toString(self) -> str: ... + def setColumn(self, a0: int) -> None: ... + def column(self) -> int: ... + def setLine(self, a0: int) -> None: ... + def line(self) -> int: ... + def setDescription(self, a0: str) -> None: ... + def description(self) -> str: ... + def setUrl(self, a0: QtCore.QUrl) -> None: ... + def url(self) -> QtCore.QUrl: ... + def isValid(self) -> bool: ... + + +class QQmlExpression(QtCore.QObject): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: QQmlContext, a1: QtCore.QObject, a2: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlScriptString', context: typing.Optional[QQmlContext] = ..., scope: typing.Optional[QtCore.QObject] = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def valueChanged(self) -> None: ... + def evaluate(self) -> typing.Tuple[typing.Any, bool]: ... + def error(self) -> QQmlError: ... + def clearError(self) -> None: ... + def hasError(self) -> bool: ... + def scopeObject(self) -> QtCore.QObject: ... + def setSourceLocation(self, fileName: str, line: int, column: int = ...) -> None: ... + def columnNumber(self) -> int: ... + def lineNumber(self) -> int: ... + def sourceFile(self) -> str: ... + def setNotifyOnValueChanged(self, a0: bool) -> None: ... + def notifyOnValueChanged(self) -> bool: ... + def setExpression(self, a0: str) -> None: ... + def expression(self) -> str: ... + def context(self) -> QQmlContext: ... + def engine(self) -> QQmlEngine: ... + + +class QQmlExtensionPlugin(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def baseUrl(self) -> QtCore.QUrl: ... + def initializeEngine(self, engine: QQmlEngine, uri: str) -> None: ... + def registerTypes(self, uri: str) -> None: ... + + +class QQmlFileSelector(QtCore.QObject): + + def __init__(self, engine: QQmlEngine, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def selector(self) -> QtCore.QFileSelector: ... + @staticmethod + def get(a0: QQmlEngine) -> 'QQmlFileSelector': ... + def setExtraSelectors(self, strings: typing.Iterable[str]) -> None: ... + def setSelector(self, selector: QtCore.QFileSelector) -> None: ... + + +class QQmlIncubator(sip.simplewrapper): + + class Status(int): ... + Null = ... # type: 'QQmlIncubator.Status' + Ready = ... # type: 'QQmlIncubator.Status' + Loading = ... # type: 'QQmlIncubator.Status' + Error = ... # type: 'QQmlIncubator.Status' + + class IncubationMode(int): ... + Asynchronous = ... # type: 'QQmlIncubator.IncubationMode' + AsynchronousIfNested = ... # type: 'QQmlIncubator.IncubationMode' + Synchronous = ... # type: 'QQmlIncubator.IncubationMode' + + def __init__(self, mode: 'QQmlIncubator.IncubationMode' = ...) -> None: ... + + def setInitialState(self, a0: QtCore.QObject) -> None: ... + def statusChanged(self, a0: 'QQmlIncubator.Status') -> None: ... + def object(self) -> QtCore.QObject: ... + def status(self) -> 'QQmlIncubator.Status': ... + def incubationMode(self) -> 'QQmlIncubator.IncubationMode': ... + def errors(self) -> typing.List[QQmlError]: ... + def isLoading(self) -> bool: ... + def isError(self) -> bool: ... + def isReady(self) -> bool: ... + def isNull(self) -> bool: ... + def forceCompletion(self) -> None: ... + def clear(self) -> None: ... + + +class QQmlIncubationController(sip.simplewrapper): + + def __init__(self) -> None: ... + + def incubatingObjectCountChanged(self, a0: int) -> None: ... + def incubateFor(self, msecs: int) -> None: ... + def incubatingObjectCount(self) -> int: ... + def engine(self) -> QQmlEngine: ... + + +class QQmlListReference(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject, property: str, engine: typing.Optional[QQmlEngine] = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlListReference') -> None: ... + + def count(self) -> int: ... + def clear(self) -> bool: ... + def at(self, a0: int) -> QtCore.QObject: ... + def append(self, a0: QtCore.QObject) -> bool: ... + def isReadable(self) -> bool: ... + def isManipulable(self) -> bool: ... + def canCount(self) -> bool: ... + def canClear(self) -> bool: ... + def canAt(self) -> bool: ... + def canAppend(self) -> bool: ... + def listElementType(self) -> QtCore.QMetaObject: ... + def object(self) -> QtCore.QObject: ... + def isValid(self) -> bool: ... + + +class QQmlNetworkAccessManagerFactory(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlNetworkAccessManagerFactory') -> None: ... + + def create(self, parent: QtCore.QObject) -> QtNetwork.QNetworkAccessManager: ... + + +class QQmlParserStatus(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlParserStatus') -> None: ... + + def componentComplete(self) -> None: ... + def classBegin(self) -> None: ... + + +class QQmlProperty(sip.simplewrapper): + + class Type(int): ... + Invalid = ... # type: 'QQmlProperty.Type' + Property = ... # type: 'QQmlProperty.Type' + SignalProperty = ... # type: 'QQmlProperty.Type' + + class PropertyTypeCategory(int): ... + InvalidCategory = ... # type: 'QQmlProperty.PropertyTypeCategory' + List = ... # type: 'QQmlProperty.PropertyTypeCategory' + Object = ... # type: 'QQmlProperty.PropertyTypeCategory' + Normal = ... # type: 'QQmlProperty.PropertyTypeCategory' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject, a1: QQmlContext) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject, a1: QQmlEngine) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject, a1: str) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject, a1: str, a2: QQmlContext) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject, a1: str, a2: QQmlEngine) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlProperty') -> None: ... + + def method(self) -> QtCore.QMetaMethod: ... + def property(self) -> QtCore.QMetaProperty: ... + def index(self) -> int: ... + def object(self) -> QtCore.QObject: ... + def isResettable(self) -> bool: ... + def isDesignable(self) -> bool: ... + def isWritable(self) -> bool: ... + @typing.overload + def connectNotifySignal(self, slot: PYQT_SLOT) -> bool: ... + @typing.overload + def connectNotifySignal(self, dest: QtCore.QObject, method: int) -> bool: ... + def needsNotifySignal(self) -> bool: ... + def hasNotifySignal(self) -> bool: ... + def reset(self) -> bool: ... + @typing.overload + def write(self, a0: typing.Any) -> bool: ... + @typing.overload + @staticmethod + def write(a0: QtCore.QObject, a1: str, a2: typing.Any) -> bool: ... + @typing.overload + @staticmethod + def write(a0: QtCore.QObject, a1: str, a2: typing.Any, a3: QQmlContext) -> bool: ... + @typing.overload + @staticmethod + def write(a0: QtCore.QObject, a1: str, a2: typing.Any, a3: QQmlEngine) -> bool: ... + @typing.overload + def read(self) -> typing.Any: ... + @typing.overload + @staticmethod + def read(a0: QtCore.QObject, a1: str) -> typing.Any: ... + @typing.overload + @staticmethod + def read(a0: QtCore.QObject, a1: str, a2: QQmlContext) -> typing.Any: ... + @typing.overload + @staticmethod + def read(a0: QtCore.QObject, a1: str, a2: QQmlEngine) -> typing.Any: ... + def name(self) -> str: ... + def propertyTypeName(self) -> str: ... + def propertyTypeCategory(self) -> 'QQmlProperty.PropertyTypeCategory': ... + def propertyType(self) -> int: ... + def isSignalProperty(self) -> bool: ... + def isProperty(self) -> bool: ... + def isValid(self) -> bool: ... + def type(self) -> 'QQmlProperty.Type': ... + def __hash__(self) -> int: ... + + +class QQmlPropertyMap(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def updateValue(self, key: str, input: typing.Any) -> typing.Any: ... + def valueChanged(self, key: str, value: typing.Any) -> None: ... + def __getitem__(self, key: str) -> typing.Any: ... + def contains(self, key: str) -> bool: ... + def isEmpty(self) -> bool: ... + def __len__(self) -> int: ... + def size(self) -> int: ... + def count(self) -> int: ... + def keys(self) -> typing.List[str]: ... + def clear(self, key: str) -> None: ... + def insert(self, key: str, value: typing.Any) -> None: ... + def value(self, key: str) -> typing.Any: ... + + +class QQmlPropertyValueSource(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlPropertyValueSource') -> None: ... + + def setTarget(self, a0: QQmlProperty) -> None: ... + + +class QQmlScriptString(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlScriptString') -> None: ... + + def booleanLiteral(self) -> typing.Tuple[bool, bool]: ... + def numberLiteral(self) -> typing.Tuple[float, bool]: ... + def stringLiteral(self) -> str: ... + def isNullLiteral(self) -> bool: ... + def isUndefinedLiteral(self) -> bool: ... + def isEmpty(self) -> bool: ... + + +@typing.overload +def qmlRegisterUncreatableType(a0: type, uri: str, major: int, minor: int, qmlName: str, reason: str) -> int: ... +@typing.overload +def qmlRegisterUncreatableType(a0: type, revision: int, uri: str, major: int, minor: int, qmlName: str, reason: str) -> int: ... +@typing.overload +def qmlRegisterType(url: QtCore.QUrl, uri: str, major: int, minor: int, qmlName: str) -> int: ... +@typing.overload +def qmlRegisterType(a0: type, attachedProperties: type = ...) -> int: ... +@typing.overload +def qmlRegisterType(a0: type, uri: str, major: int, minor: int, qmlName: str, attachedProperties: type = ...) -> int: ... +@typing.overload +def qmlRegisterType(a0: type, revision: int, uri: str, major: int, minor: int, qmlName: str, attachedProperties: type = ...) -> int: ... +@typing.overload +def qmlRegisterSingletonType(url: QtCore.QUrl, uri: str, major: int, minor: int, qmlName: str) -> int: ... +@typing.overload +def qmlRegisterSingletonType(a0: type, uri: str, major: int, minor: int, typeName: str, factory: typing.Callable[[QQmlEngine, QJSEngine], typing.Any]) -> int: ... +def qmlRegisterRevision(a0: type, revision: int, uri: str, major: int, minor: int, attachedProperties: type = ...) -> int: ... +def qmlAttachedPropertiesObject(a0: type, object: QtCore.QObject, create: bool = ...) -> QtCore.QObject: ... +def qjsEngine(a0: QtCore.QObject) -> QJSEngine: ... +def qmlTypeId(uri: str, versionMajor: int, versionMinor: int, qmlName: str) -> int: ... +def qmlClearTypeRegistrations() -> None: ... diff --git a/tools/stubs/PyQt5/QtQuick.pyi b/tools/stubs/PyQt5/QtQuick.pyi new file mode 100644 index 000000000..d3d45c542 --- /dev/null +++ b/tools/stubs/PyQt5/QtQuick.pyi @@ -0,0 +1,1400 @@ +# The PEP 484 type hints stub file for the QtQuick module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtQml +from PyQt5 import QtGui +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + +# Convenient aliases for complicated OpenGL types. +PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QQuickItem(QtCore.QObject, QtQml.QQmlParserStatus): + + class TransformOrigin(int): ... + TopLeft = ... # type: 'QQuickItem.TransformOrigin' + Top = ... # type: 'QQuickItem.TransformOrigin' + TopRight = ... # type: 'QQuickItem.TransformOrigin' + Left = ... # type: 'QQuickItem.TransformOrigin' + Center = ... # type: 'QQuickItem.TransformOrigin' + Right = ... # type: 'QQuickItem.TransformOrigin' + BottomLeft = ... # type: 'QQuickItem.TransformOrigin' + Bottom = ... # type: 'QQuickItem.TransformOrigin' + BottomRight = ... # type: 'QQuickItem.TransformOrigin' + + class ItemChange(int): ... + ItemChildAddedChange = ... # type: 'QQuickItem.ItemChange' + ItemChildRemovedChange = ... # type: 'QQuickItem.ItemChange' + ItemSceneChange = ... # type: 'QQuickItem.ItemChange' + ItemVisibleHasChanged = ... # type: 'QQuickItem.ItemChange' + ItemParentHasChanged = ... # type: 'QQuickItem.ItemChange' + ItemOpacityHasChanged = ... # type: 'QQuickItem.ItemChange' + ItemActiveFocusHasChanged = ... # type: 'QQuickItem.ItemChange' + ItemRotationHasChanged = ... # type: 'QQuickItem.ItemChange' + ItemAntialiasingHasChanged = ... # type: 'QQuickItem.ItemChange' + ItemDevicePixelRatioHasChanged = ... # type: 'QQuickItem.ItemChange' + ItemEnabledHasChanged = ... # type: 'QQuickItem.ItemChange' + + class Flag(int): ... + ItemClipsChildrenToShape = ... # type: 'QQuickItem.Flag' + ItemAcceptsInputMethod = ... # type: 'QQuickItem.Flag' + ItemIsFocusScope = ... # type: 'QQuickItem.Flag' + ItemHasContents = ... # type: 'QQuickItem.Flag' + ItemAcceptsDrops = ... # type: 'QQuickItem.Flag' + + class Flags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QQuickItem.Flags', 'QQuickItem.Flag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuickItem.Flags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QQuickItem.Flags': ... + def __int__(self) -> int: ... + + class ItemChangeData(sip.simplewrapper): + + boolValue = ... # type: bool + item = ... # type: 'QQuickItem' + realValue = ... # type: float + window = ... # type: 'QQuickWindow' + + @typing.overload + def __init__(self, v: 'QQuickItem') -> None: ... + @typing.overload + def __init__(self, v: 'QQuickWindow') -> None: ... + @typing.overload + def __init__(self, v: float) -> None: ... + @typing.overload + def __init__(self, v: bool) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuickItem.ItemChangeData') -> None: ... + + class UpdatePaintNodeData(sip.simplewrapper): + + transformNode = ... # type: 'QSGTransformNode' + + def __init__(self, a0: 'QQuickItem.UpdatePaintNodeData') -> None: ... + + def __init__(self, parent: typing.Optional['QQuickItem'] = ...) -> None: ... + + def containmentMaskChanged(self) -> None: ... + def setContainmentMask(self, mask: QtCore.QObject) -> None: ... + def containmentMask(self) -> QtCore.QObject: ... + def setAcceptTouchEvents(self, accept: bool) -> None: ... + def acceptTouchEvents(self) -> bool: ... + def size(self) -> QtCore.QSizeF: ... + def mapFromGlobal(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + def mapToGlobal(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + def isAncestorOf(self, child: 'QQuickItem') -> bool: ... + def grabToImage(self, targetSize: QtCore.QSize = ...) -> 'QQuickItemGrabResult': ... + def resetAntialiasing(self) -> None: ... + def windowChanged(self, window: 'QQuickWindow') -> None: ... + def nextItemInFocusChain(self, forward: bool = ...) -> 'QQuickItem': ... + def setActiveFocusOnTab(self, a0: bool) -> None: ... + def activeFocusOnTab(self) -> bool: ... + def updatePolish(self) -> None: ... + def releaseResources(self) -> None: ... + def updatePaintNode(self, a0: 'QSGNode', a1: 'QQuickItem.UpdatePaintNodeData') -> 'QSGNode': ... + def geometryChanged(self, newGeometry: QtCore.QRectF, oldGeometry: QtCore.QRectF) -> None: ... + def childMouseEventFilter(self, a0: 'QQuickItem', a1: QtCore.QEvent) -> bool: ... + def dropEvent(self, a0: QtGui.QDropEvent) -> None: ... + def dragLeaveEvent(self, a0: QtGui.QDragLeaveEvent) -> None: ... + def dragMoveEvent(self, a0: QtGui.QDragMoveEvent) -> None: ... + def dragEnterEvent(self, a0: QtGui.QDragEnterEvent) -> None: ... + def hoverLeaveEvent(self, event: QtGui.QHoverEvent) -> None: ... + def hoverMoveEvent(self, event: QtGui.QHoverEvent) -> None: ... + def hoverEnterEvent(self, event: QtGui.QHoverEvent) -> None: ... + def touchEvent(self, event: QtGui.QTouchEvent) -> None: ... + def wheelEvent(self, event: QtGui.QWheelEvent) -> None: ... + def touchUngrabEvent(self) -> None: ... + def mouseUngrabEvent(self) -> None: ... + def mouseDoubleClickEvent(self, event: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, event: QtGui.QMouseEvent) -> None: ... + def mouseMoveEvent(self, event: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, event: QtGui.QMouseEvent) -> None: ... + def focusOutEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def inputMethodEvent(self, a0: QtGui.QInputMethodEvent) -> None: ... + def keyReleaseEvent(self, event: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, event: QtGui.QKeyEvent) -> None: ... + def componentComplete(self) -> None: ... + def classBegin(self) -> None: ... + def heightValid(self) -> bool: ... + def widthValid(self) -> bool: ... + def updateInputMethod(self, queries: typing.Union[QtCore.Qt.InputMethodQueries, QtCore.Qt.InputMethodQuery] = ...) -> None: ... + def itemChange(self, a0: 'QQuickItem.ItemChange', a1: 'QQuickItem.ItemChangeData') -> None: ... + def isComponentComplete(self) -> bool: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def update(self) -> None: ... + def textureProvider(self) -> 'QSGTextureProvider': ... + def isTextureProvider(self) -> bool: ... + def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + def childAt(self, x: float, y: float) -> 'QQuickItem': ... + @typing.overload + def forceActiveFocus(self) -> None: ... + @typing.overload + def forceActiveFocus(self, reason: QtCore.Qt.FocusReason) -> None: ... + def polish(self) -> None: ... + def mapRectFromScene(self, rect: QtCore.QRectF) -> QtCore.QRectF: ... + def mapRectFromItem(self, item: 'QQuickItem', rect: QtCore.QRectF) -> QtCore.QRectF: ... + def mapFromScene(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + def mapFromItem(self, item: 'QQuickItem', point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + def mapRectToScene(self, rect: QtCore.QRectF) -> QtCore.QRectF: ... + def mapRectToItem(self, item: 'QQuickItem', rect: QtCore.QRectF) -> QtCore.QRectF: ... + def mapToScene(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + def mapToItem(self, item: 'QQuickItem', point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + def contains(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> bool: ... + def setKeepTouchGrab(self, a0: bool) -> None: ... + def keepTouchGrab(self) -> bool: ... + def ungrabTouchPoints(self) -> None: ... + def grabTouchPoints(self, ids: typing.Iterable[int]) -> None: ... + def setFiltersChildMouseEvents(self, filter: bool) -> None: ... + def filtersChildMouseEvents(self) -> bool: ... + def setKeepMouseGrab(self, a0: bool) -> None: ... + def keepMouseGrab(self) -> bool: ... + def ungrabMouse(self) -> None: ... + def grabMouse(self) -> None: ... + def unsetCursor(self) -> None: ... + def setCursor(self, cursor: typing.Union[QtGui.QCursor, QtCore.Qt.CursorShape]) -> None: ... + def cursor(self) -> QtGui.QCursor: ... + def setAcceptHoverEvents(self, enabled: bool) -> None: ... + def acceptHoverEvents(self) -> bool: ... + def setAcceptedMouseButtons(self, buttons: typing.Union[QtCore.Qt.MouseButtons, QtCore.Qt.MouseButton]) -> None: ... + def acceptedMouseButtons(self) -> QtCore.Qt.MouseButtons: ... + def scopedFocusItem(self) -> 'QQuickItem': ... + def isFocusScope(self) -> bool: ... + @typing.overload + def setFocus(self, a0: bool) -> None: ... + @typing.overload + def setFocus(self, focus: bool, reason: QtCore.Qt.FocusReason) -> None: ... + def hasFocus(self) -> bool: ... + def hasActiveFocus(self) -> bool: ... + def setFlags(self, flags: typing.Union['QQuickItem.Flags', 'QQuickItem.Flag']) -> None: ... + def setFlag(self, flag: 'QQuickItem.Flag', enabled: bool = ...) -> None: ... + def flags(self) -> 'QQuickItem.Flags': ... + def setAntialiasing(self, a0: bool) -> None: ... + def antialiasing(self) -> bool: ... + def setSmooth(self, a0: bool) -> None: ... + def smooth(self) -> bool: ... + def setEnabled(self, a0: bool) -> None: ... + def isEnabled(self) -> bool: ... + def setVisible(self, a0: bool) -> None: ... + def isVisible(self) -> bool: ... + def setOpacity(self, a0: float) -> None: ... + def opacity(self) -> float: ... + def setScale(self, a0: float) -> None: ... + def scale(self) -> float: ... + def setRotation(self, a0: float) -> None: ... + def rotation(self) -> float: ... + def setZ(self, a0: float) -> None: ... + def z(self) -> float: ... + def setTransformOrigin(self, a0: 'QQuickItem.TransformOrigin') -> None: ... + def transformOrigin(self) -> 'QQuickItem.TransformOrigin': ... + def implicitHeight(self) -> float: ... + def setImplicitHeight(self, a0: float) -> None: ... + def resetHeight(self) -> None: ... + def setHeight(self, a0: float) -> None: ... + def height(self) -> float: ... + def implicitWidth(self) -> float: ... + def setImplicitWidth(self, a0: float) -> None: ... + def resetWidth(self) -> None: ... + def setWidth(self, a0: float) -> None: ... + def width(self) -> float: ... + def setY(self, a0: float) -> None: ... + def setX(self, a0: float) -> None: ... + def y(self) -> float: ... + def x(self) -> float: ... + def setBaselineOffset(self, a0: float) -> None: ... + def baselineOffset(self) -> float: ... + def setState(self, a0: str) -> None: ... + def state(self) -> str: ... + def setClip(self, a0: bool) -> None: ... + def clip(self) -> bool: ... + def childItems(self) -> typing.List['QQuickItem']: ... + def childrenRect(self) -> QtCore.QRectF: ... + def stackAfter(self, a0: 'QQuickItem') -> None: ... + def stackBefore(self, a0: 'QQuickItem') -> None: ... + def setParentItem(self, parent: 'QQuickItem') -> None: ... + def parentItem(self) -> 'QQuickItem': ... + def window(self) -> 'QQuickWindow': ... + + +class QQuickFramebufferObject(QQuickItem): + + class Renderer(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuickFramebufferObject.Renderer') -> None: ... + + def invalidateFramebufferObject(self) -> None: ... + def update(self) -> None: ... + def framebufferObject(self) -> QtGui.QOpenGLFramebufferObject: ... + def synchronize(self, a0: 'QQuickFramebufferObject') -> None: ... + def createFramebufferObject(self, size: QtCore.QSize) -> QtGui.QOpenGLFramebufferObject: ... + def render(self) -> None: ... + + def __init__(self, parent: typing.Optional[QQuickItem] = ...) -> None: ... + + def mirrorVerticallyChanged(self, a0: bool) -> None: ... + def setMirrorVertically(self, enable: bool) -> None: ... + def mirrorVertically(self) -> bool: ... + def releaseResources(self) -> None: ... + def textureProvider(self) -> 'QSGTextureProvider': ... + def isTextureProvider(self) -> bool: ... + def textureFollowsItemSizeChanged(self, a0: bool) -> None: ... + def updatePaintNode(self, a0: 'QSGNode', a1: QQuickItem.UpdatePaintNodeData) -> 'QSGNode': ... + def geometryChanged(self, newGeometry: QtCore.QRectF, oldGeometry: QtCore.QRectF) -> None: ... + def createRenderer(self) -> 'QQuickFramebufferObject.Renderer': ... + def setTextureFollowsItemSize(self, follows: bool) -> None: ... + def textureFollowsItemSize(self) -> bool: ... + + +class QQuickTextureFactory(QtCore.QObject): + + def __init__(self) -> None: ... + + @staticmethod + def textureFactoryForImage(image: QtGui.QImage) -> 'QQuickTextureFactory': ... + def image(self) -> QtGui.QImage: ... + def textureByteCount(self) -> int: ... + def textureSize(self) -> QtCore.QSize: ... + def createTexture(self, window: 'QQuickWindow') -> 'QSGTexture': ... + + +class QQuickImageProvider(QtQml.QQmlImageProviderBase): + + @typing.overload + def __init__(self, type: QtQml.QQmlImageProviderBase.ImageType, flags: typing.Union[QtQml.QQmlImageProviderBase.Flags, QtQml.QQmlImageProviderBase.Flag] = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuickImageProvider') -> None: ... + + def requestTexture(self, id: str, requestedSize: QtCore.QSize) -> typing.Tuple[QQuickTextureFactory, QtCore.QSize]: ... + def requestPixmap(self, id: str, requestedSize: QtCore.QSize) -> typing.Tuple[QtGui.QPixmap, QtCore.QSize]: ... + def requestImage(self, id: str, requestedSize: QtCore.QSize) -> typing.Tuple[QtGui.QImage, QtCore.QSize]: ... + def flags(self) -> QtQml.QQmlImageProviderBase.Flags: ... + def imageType(self) -> QtQml.QQmlImageProviderBase.ImageType: ... + + +class QQuickImageResponse(QtCore.QObject): + + def __init__(self) -> None: ... + + def finished(self) -> None: ... + def cancel(self) -> None: ... + def errorString(self) -> str: ... + def textureFactory(self) -> QQuickTextureFactory: ... + + +class QQuickAsyncImageProvider(QQuickImageProvider): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuickAsyncImageProvider') -> None: ... + + def requestImageResponse(self, id: str, requestedSize: QtCore.QSize) -> QQuickImageResponse: ... + + +class QQuickItemGrabResult(QtCore.QObject): + + def ready(self) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def saveToFile(self, fileName: str) -> bool: ... + def url(self) -> QtCore.QUrl: ... + def image(self) -> QtGui.QImage: ... + + +class QQuickPaintedItem(QQuickItem): + + class PerformanceHint(int): ... + FastFBOResizing = ... # type: 'QQuickPaintedItem.PerformanceHint' + + class RenderTarget(int): ... + Image = ... # type: 'QQuickPaintedItem.RenderTarget' + FramebufferObject = ... # type: 'QQuickPaintedItem.RenderTarget' + InvertedYFramebufferObject = ... # type: 'QQuickPaintedItem.RenderTarget' + + class PerformanceHints(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QQuickPaintedItem.PerformanceHints', 'QQuickPaintedItem.PerformanceHint']) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuickPaintedItem.PerformanceHints') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QQuickPaintedItem.PerformanceHints': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QQuickItem] = ...) -> None: ... + + def textureSizeChanged(self) -> None: ... + def setTextureSize(self, size: QtCore.QSize) -> None: ... + def textureSize(self) -> QtCore.QSize: ... + def itemChange(self, a0: QQuickItem.ItemChange, a1: QQuickItem.ItemChangeData) -> None: ... + def releaseResources(self) -> None: ... + def textureProvider(self) -> 'QSGTextureProvider': ... + def isTextureProvider(self) -> bool: ... + def updatePaintNode(self, a0: 'QSGNode', a1: QQuickItem.UpdatePaintNodeData) -> 'QSGNode': ... + def renderTargetChanged(self) -> None: ... + def contentsScaleChanged(self) -> None: ... + def contentsSizeChanged(self) -> None: ... + def fillColorChanged(self) -> None: ... + def paint(self, painter: QtGui.QPainter) -> None: ... + def setRenderTarget(self, target: 'QQuickPaintedItem.RenderTarget') -> None: ... + def renderTarget(self) -> 'QQuickPaintedItem.RenderTarget': ... + def setFillColor(self, a0: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def fillColor(self) -> QtGui.QColor: ... + def setContentsScale(self, a0: float) -> None: ... + def contentsScale(self) -> float: ... + def resetContentsSize(self) -> None: ... + def setContentsSize(self, a0: QtCore.QSize) -> None: ... + def contentsSize(self) -> QtCore.QSize: ... + def contentsBoundingRect(self) -> QtCore.QRectF: ... + def setPerformanceHints(self, hints: typing.Union['QQuickPaintedItem.PerformanceHints', 'QQuickPaintedItem.PerformanceHint']) -> None: ... + def setPerformanceHint(self, hint: 'QQuickPaintedItem.PerformanceHint', enabled: bool = ...) -> None: ... + def performanceHints(self) -> 'QQuickPaintedItem.PerformanceHints': ... + def setMipmap(self, enable: bool) -> None: ... + def mipmap(self) -> bool: ... + def setAntialiasing(self, enable: bool) -> None: ... + def antialiasing(self) -> bool: ... + def setOpaquePainting(self, opaque: bool) -> None: ... + def opaquePainting(self) -> bool: ... + def update(self, rect: QtCore.QRect = ...) -> None: ... + + +class QQuickRenderControl(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def sceneChanged(self) -> None: ... + def renderRequested(self) -> None: ... + def prepareThread(self, targetThread: QtCore.QThread) -> None: ... + def renderWindow(self, offset: QtCore.QPoint) -> QtGui.QWindow: ... + @staticmethod + def renderWindowFor(win: 'QQuickWindow', offset: typing.Optional[QtCore.QPoint] = ...) -> QtGui.QWindow: ... + def grab(self) -> QtGui.QImage: ... + def sync(self) -> bool: ... + def render(self) -> None: ... + def polishItems(self) -> None: ... + def invalidate(self) -> None: ... + def initialize(self, gl: QtGui.QOpenGLContext) -> None: ... + + +class QQuickTextDocument(QtCore.QObject): + + def __init__(self, parent: QQuickItem) -> None: ... + + def textDocument(self) -> QtGui.QTextDocument: ... + + +class QQuickWindow(QtGui.QWindow): + + class TextRenderType(int): ... + QtTextRendering = ... # type: 'QQuickWindow.TextRenderType' + NativeTextRendering = ... # type: 'QQuickWindow.TextRenderType' + + class RenderStage(int): ... + BeforeSynchronizingStage = ... # type: 'QQuickWindow.RenderStage' + AfterSynchronizingStage = ... # type: 'QQuickWindow.RenderStage' + BeforeRenderingStage = ... # type: 'QQuickWindow.RenderStage' + AfterRenderingStage = ... # type: 'QQuickWindow.RenderStage' + AfterSwapStage = ... # type: 'QQuickWindow.RenderStage' + NoStage = ... # type: 'QQuickWindow.RenderStage' + + class SceneGraphError(int): ... + ContextNotAvailable = ... # type: 'QQuickWindow.SceneGraphError' + + class CreateTextureOption(int): ... + TextureHasAlphaChannel = ... # type: 'QQuickWindow.CreateTextureOption' + TextureHasMipmaps = ... # type: 'QQuickWindow.CreateTextureOption' + TextureOwnsGLTexture = ... # type: 'QQuickWindow.CreateTextureOption' + TextureCanUseAtlas = ... # type: 'QQuickWindow.CreateTextureOption' + TextureIsOpaque = ... # type: 'QQuickWindow.CreateTextureOption' + + class CreateTextureOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QQuickWindow.CreateTextureOptions', 'QQuickWindow.CreateTextureOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuickWindow.CreateTextureOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QQuickWindow.CreateTextureOptions': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QtGui.QWindow] = ...) -> None: ... + + @staticmethod + def setTextRenderType(renderType: 'QQuickWindow.TextRenderType') -> None: ... + @staticmethod + def textRenderType() -> 'QQuickWindow.TextRenderType': ... + @staticmethod + def sceneGraphBackend() -> str: ... + def createImageNode(self) -> 'QSGImageNode': ... + def createRectangleNode(self) -> 'QSGRectangleNode': ... + @typing.overload + @staticmethod + def setSceneGraphBackend(api: 'QSGRendererInterface.GraphicsApi') -> None: ... + @typing.overload + @staticmethod + def setSceneGraphBackend(backend: str) -> None: ... + def rendererInterface(self) -> 'QSGRendererInterface': ... + def isSceneGraphInitialized(self) -> bool: ... + def effectiveDevicePixelRatio(self) -> float: ... + def scheduleRenderJob(self, job: QtCore.QRunnable, schedule: 'QQuickWindow.RenderStage') -> None: ... + def sceneGraphError(self, error: 'QQuickWindow.SceneGraphError', message: str) -> None: ... + def sceneGraphAboutToStop(self) -> None: ... + def afterAnimating(self) -> None: ... + def afterSynchronizing(self) -> None: ... + def openglContextCreated(self, context: QtGui.QOpenGLContext) -> None: ... + def resetOpenGLState(self) -> None: ... + def activeFocusItemChanged(self) -> None: ... + def closing(self, close: 'QQuickCloseEvent') -> None: ... + @staticmethod + def setDefaultAlphaBuffer(useAlpha: bool) -> None: ... + @staticmethod + def hasDefaultAlphaBuffer() -> bool: ... + def wheelEvent(self, a0: QtGui.QWheelEvent) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def keyReleaseEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def focusOutEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def hideEvent(self, a0: QtGui.QHideEvent) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def exposeEvent(self, a0: QtGui.QExposeEvent) -> None: ... + def releaseResources(self) -> None: ... + def update(self) -> None: ... + def colorChanged(self, a0: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def afterRendering(self) -> None: ... + def beforeRendering(self) -> None: ... + def beforeSynchronizing(self) -> None: ... + def sceneGraphInvalidated(self) -> None: ... + def sceneGraphInitialized(self) -> None: ... + def frameSwapped(self) -> None: ... + def openglContext(self) -> QtGui.QOpenGLContext: ... + def isPersistentSceneGraph(self) -> bool: ... + def setPersistentSceneGraph(self, persistent: bool) -> None: ... + def isPersistentOpenGLContext(self) -> bool: ... + def setPersistentOpenGLContext(self, persistent: bool) -> None: ... + def color(self) -> QtGui.QColor: ... + def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def clearBeforeRendering(self) -> bool: ... + def setClearBeforeRendering(self, enabled: bool) -> None: ... + def createTextureFromId(self, id: int, size: QtCore.QSize, options: typing.Union['QQuickWindow.CreateTextureOptions', 'QQuickWindow.CreateTextureOption'] = ...) -> 'QSGTexture': ... + @typing.overload + def createTextureFromImage(self, image: QtGui.QImage) -> 'QSGTexture': ... + @typing.overload + def createTextureFromImage(self, image: QtGui.QImage, options: typing.Union['QQuickWindow.CreateTextureOptions', 'QQuickWindow.CreateTextureOption']) -> 'QSGTexture': ... + def incubationController(self) -> QtQml.QQmlIncubationController: ... + def renderTargetSize(self) -> QtCore.QSize: ... + def renderTargetId(self) -> int: ... + def renderTarget(self) -> QtGui.QOpenGLFramebufferObject: ... + @typing.overload + def setRenderTarget(self, fbo: QtGui.QOpenGLFramebufferObject) -> None: ... + @typing.overload + def setRenderTarget(self, fboId: int, size: QtCore.QSize) -> None: ... + def grabWindow(self) -> QtGui.QImage: ... + def sendEvent(self, a0: QQuickItem, a1: QtCore.QEvent) -> bool: ... + def mouseGrabberItem(self) -> QQuickItem: ... + def focusObject(self) -> QtCore.QObject: ... + def activeFocusItem(self) -> QQuickItem: ... + def contentItem(self) -> QQuickItem: ... + + +class QQuickView(QQuickWindow): + + class Status(int): ... + Null = ... # type: 'QQuickView.Status' + Ready = ... # type: 'QQuickView.Status' + Loading = ... # type: 'QQuickView.Status' + Error = ... # type: 'QQuickView.Status' + + class ResizeMode(int): ... + SizeViewToRootObject = ... # type: 'QQuickView.ResizeMode' + SizeRootObjectToView = ... # type: 'QQuickView.ResizeMode' + + @typing.overload + def __init__(self, parent: typing.Optional[QtGui.QWindow] = ...) -> None: ... + @typing.overload + def __init__(self, engine: QtQml.QQmlEngine, parent: QtGui.QWindow) -> None: ... + @typing.overload + def __init__(self, source: QtCore.QUrl, parent: typing.Optional[QtGui.QWindow] = ...) -> None: ... + + def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def keyReleaseEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def timerEvent(self, a0: QtCore.QTimerEvent) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def statusChanged(self, a0: 'QQuickView.Status') -> None: ... + def setSource(self, a0: QtCore.QUrl) -> None: ... + def initialSize(self) -> QtCore.QSize: ... + def errors(self) -> typing.List[QtQml.QQmlError]: ... + def status(self) -> 'QQuickView.Status': ... + def setResizeMode(self, a0: 'QQuickView.ResizeMode') -> None: ... + def resizeMode(self) -> 'QQuickView.ResizeMode': ... + def rootObject(self) -> QQuickItem: ... + def rootContext(self) -> QtQml.QQmlContext: ... + def engine(self) -> QtQml.QQmlEngine: ... + def source(self) -> QtCore.QUrl: ... + + +class QQuickCloseEvent(sip.simplewrapper): ... + + +class QSGAbstractRenderer(QtCore.QObject): + + class ClearModeBit(int): ... + ClearColorBuffer = ... # type: 'QSGAbstractRenderer.ClearModeBit' + ClearDepthBuffer = ... # type: 'QSGAbstractRenderer.ClearModeBit' + ClearStencilBuffer = ... # type: 'QSGAbstractRenderer.ClearModeBit' + + class ClearMode(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGAbstractRenderer.ClearMode', 'QSGAbstractRenderer.ClearModeBit']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGAbstractRenderer.ClearMode') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGAbstractRenderer.ClearMode': ... + def __int__(self) -> int: ... + + def sceneGraphChanged(self) -> None: ... + def renderScene(self, fboId: int = ...) -> None: ... + def clearMode(self) -> 'QSGAbstractRenderer.ClearMode': ... + def setClearMode(self, mode: typing.Union['QSGAbstractRenderer.ClearMode', 'QSGAbstractRenderer.ClearModeBit']) -> None: ... + def clearColor(self) -> QtGui.QColor: ... + def setClearColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def projectionMatrix(self) -> QtGui.QMatrix4x4: ... + def setProjectionMatrix(self, matrix: QtGui.QMatrix4x4) -> None: ... + def setProjectionMatrixToRect(self, rect: QtCore.QRectF) -> None: ... + def viewportRect(self) -> QtCore.QRect: ... + @typing.overload + def setViewportRect(self, rect: QtCore.QRect) -> None: ... + @typing.overload + def setViewportRect(self, size: QtCore.QSize) -> None: ... + def deviceRect(self) -> QtCore.QRect: ... + @typing.overload + def setDeviceRect(self, rect: QtCore.QRect) -> None: ... + @typing.overload + def setDeviceRect(self, size: QtCore.QSize) -> None: ... + + +class QSGEngine(QtCore.QObject): + + class CreateTextureOption(int): ... + TextureHasAlphaChannel = ... # type: 'QSGEngine.CreateTextureOption' + TextureOwnsGLTexture = ... # type: 'QSGEngine.CreateTextureOption' + TextureCanUseAtlas = ... # type: 'QSGEngine.CreateTextureOption' + TextureIsOpaque = ... # type: 'QSGEngine.CreateTextureOption' + + class CreateTextureOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGEngine.CreateTextureOptions', 'QSGEngine.CreateTextureOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGEngine.CreateTextureOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGEngine.CreateTextureOptions': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def createImageNode(self) -> 'QSGImageNode': ... + def createRectangleNode(self) -> 'QSGRectangleNode': ... + def rendererInterface(self) -> 'QSGRendererInterface': ... + def createTextureFromId(self, id: int, size: QtCore.QSize, options: typing.Union['QSGEngine.CreateTextureOptions', 'QSGEngine.CreateTextureOption'] = ...) -> 'QSGTexture': ... + def createTextureFromImage(self, image: QtGui.QImage, options: typing.Union['QSGEngine.CreateTextureOptions', 'QSGEngine.CreateTextureOption'] = ...) -> 'QSGTexture': ... + def createRenderer(self) -> QSGAbstractRenderer: ... + def invalidate(self) -> None: ... + def initialize(self, context: QtGui.QOpenGLContext) -> None: ... + + +class QSGMaterial(sip.wrapper): + + class Flag(int): ... + Blending = ... # type: 'QSGMaterial.Flag' + RequiresDeterminant = ... # type: 'QSGMaterial.Flag' + RequiresFullMatrixExceptTranslate = ... # type: 'QSGMaterial.Flag' + RequiresFullMatrix = ... # type: 'QSGMaterial.Flag' + CustomCompileStep = ... # type: 'QSGMaterial.Flag' + + class Flags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGMaterial.Flags', 'QSGMaterial.Flag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGMaterial.Flags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGMaterial.Flags': ... + def __int__(self) -> int: ... + + def __init__(self) -> None: ... + + def setFlag(self, flags: typing.Union['QSGMaterial.Flags', 'QSGMaterial.Flag'], enabled: bool = ...) -> None: ... + def flags(self) -> 'QSGMaterial.Flags': ... + def compare(self, other: 'QSGMaterial') -> int: ... + def createShader(self) -> 'QSGMaterialShader': ... + def type(self) -> 'QSGMaterialType': ... + + +class QSGFlatColorMaterial(QSGMaterial): + + def __init__(self) -> None: ... + + def compare(self, other: QSGMaterial) -> int: ... + def color(self) -> QtGui.QColor: ... + def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def createShader(self) -> 'QSGMaterialShader': ... + def type(self) -> 'QSGMaterialType': ... + + +class QSGGeometry(sip.wrapper): + + class Type(int): ... + ByteType = ... # type: 'QSGGeometry.Type' + UnsignedByteType = ... # type: 'QSGGeometry.Type' + ShortType = ... # type: 'QSGGeometry.Type' + UnsignedShortType = ... # type: 'QSGGeometry.Type' + IntType = ... # type: 'QSGGeometry.Type' + UnsignedIntType = ... # type: 'QSGGeometry.Type' + FloatType = ... # type: 'QSGGeometry.Type' + + class DrawingMode(int): ... + DrawPoints = ... # type: 'QSGGeometry.DrawingMode' + DrawLines = ... # type: 'QSGGeometry.DrawingMode' + DrawLineLoop = ... # type: 'QSGGeometry.DrawingMode' + DrawLineStrip = ... # type: 'QSGGeometry.DrawingMode' + DrawTriangles = ... # type: 'QSGGeometry.DrawingMode' + DrawTriangleStrip = ... # type: 'QSGGeometry.DrawingMode' + DrawTriangleFan = ... # type: 'QSGGeometry.DrawingMode' + + class AttributeType(int): ... + UnknownAttribute = ... # type: 'QSGGeometry.AttributeType' + PositionAttribute = ... # type: 'QSGGeometry.AttributeType' + ColorAttribute = ... # type: 'QSGGeometry.AttributeType' + TexCoordAttribute = ... # type: 'QSGGeometry.AttributeType' + TexCoord1Attribute = ... # type: 'QSGGeometry.AttributeType' + TexCoord2Attribute = ... # type: 'QSGGeometry.AttributeType' + + class DataPattern(int): ... + AlwaysUploadPattern = ... # type: 'QSGGeometry.DataPattern' + StreamPattern = ... # type: 'QSGGeometry.DataPattern' + DynamicPattern = ... # type: 'QSGGeometry.DataPattern' + StaticPattern = ... # type: 'QSGGeometry.DataPattern' + + GL_POINTS = ... # type: int + GL_LINES = ... # type: int + GL_LINE_LOOP = ... # type: int + GL_LINE_STRIP = ... # type: int + GL_TRIANGLES = ... # type: int + GL_TRIANGLE_STRIP = ... # type: int + GL_TRIANGLE_FAN = ... # type: int + + GL_BYTE = ... # type: int + GL_DOUBLE = ... # type: int + GL_FLOAT = ... # type: int + GL_INT = ... # type: int + + class Attribute(sip.simplewrapper): + + attributeType = ... # type: 'QSGGeometry.AttributeType' + isVertexCoordinate = ... # type: int + position = ... # type: int + tupleSize = ... # type: int + type = ... # type: int + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGGeometry.Attribute') -> None: ... + + @staticmethod + def createWithAttributeType(pos: int, tupleSize: int, primitiveType: int, attributeType: 'QSGGeometry.AttributeType') -> 'QSGGeometry.Attribute': ... + @staticmethod + def create(pos: int, tupleSize: int, primitiveType: int, isPosition: bool = ...) -> 'QSGGeometry.Attribute': ... + + class AttributeSet(sip.simplewrapper): + + attributes = ... # type: sip.array[QSGGeometry.Attribute] + count = ... # type: int + stride = ... # type: int + + def __init__(self, attributes: typing.Iterable['QSGGeometry.Attribute'], stride: int = ...) -> None: ... + + class Point2D(sip.simplewrapper): + + x = ... # type: float + y = ... # type: float + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGGeometry.Point2D') -> None: ... + + def set(self, nx: float, ny: float) -> None: ... + + class TexturedPoint2D(sip.simplewrapper): + + tx = ... # type: float + ty = ... # type: float + x = ... # type: float + y = ... # type: float + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGGeometry.TexturedPoint2D') -> None: ... + + def set(self, nx: float, ny: float, ntx: float, nty: float) -> None: ... + + class ColoredPoint2D(sip.simplewrapper): + + a = ... # type: int + b = ... # type: int + g = ... # type: int + r = ... # type: int + x = ... # type: float + y = ... # type: float + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGGeometry.ColoredPoint2D') -> None: ... + + def set(self, nx: float, ny: float, nr: int, ng: int, nb: int, na: int) -> None: ... + + @typing.overload + def __init__(self, attribs: 'QSGGeometry.AttributeSet', vertexCount: int, indexCount: int = ..., indexType: int = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGGeometry') -> None: ... + + @staticmethod + def updateColoredRectGeometry(g: 'QSGGeometry', rect: QtCore.QRectF) -> None: ... + def sizeOfIndex(self) -> int: ... + def vertexDataAsColoredPoint2D(self) -> sip.array[QSGGeometry.ColoredPoint2D]: ... + def vertexDataAsTexturedPoint2D(self) -> sip.array[QSGGeometry.TexturedPoint2D]: ... + def vertexDataAsPoint2D(self) -> sip.array[QSGGeometry.Point2D]: ... + def indexDataAsUShort(self) -> sip.array[int]: ... + def indexDataAsUInt(self) -> sip.array[int]: ... + def setLineWidth(self, w: float) -> None: ... + def lineWidth(self) -> float: ... + def markVertexDataDirty(self) -> None: ... + def markIndexDataDirty(self) -> None: ... + def vertexDataPattern(self) -> 'QSGGeometry.DataPattern': ... + def setVertexDataPattern(self, p: 'QSGGeometry.DataPattern') -> None: ... + def indexDataPattern(self) -> 'QSGGeometry.DataPattern': ... + def setIndexDataPattern(self, p: 'QSGGeometry.DataPattern') -> None: ... + @staticmethod + def updateTexturedRectGeometry(g: 'QSGGeometry', rect: QtCore.QRectF, sourceRect: QtCore.QRectF) -> None: ... + @staticmethod + def updateRectGeometry(g: 'QSGGeometry', rect: QtCore.QRectF) -> None: ... + def sizeOfVertex(self) -> int: ... + def attributes(self) -> sip.array[QSGGeometry.Attribute]: ... + def attributeCount(self) -> int: ... + def indexData(self) -> sip.voidptr: ... + def indexCount(self) -> int: ... + def indexType(self) -> int: ... + def vertexData(self) -> sip.voidptr: ... + def vertexCount(self) -> int: ... + def allocate(self, vertexCount: int, indexCount: int = ...) -> None: ... + def drawingMode(self) -> int: ... + def setDrawingMode(self, mode: int) -> None: ... + @staticmethod + def defaultAttributes_ColoredPoint2D() -> 'QSGGeometry.AttributeSet': ... + @staticmethod + def defaultAttributes_TexturedPoint2D() -> 'QSGGeometry.AttributeSet': ... + @staticmethod + def defaultAttributes_Point2D() -> 'QSGGeometry.AttributeSet': ... + + +class QSGNode(sip.wrapper): + + class DirtyStateBit(int): ... + DirtyMatrix = ... # type: 'QSGNode.DirtyStateBit' + DirtyNodeAdded = ... # type: 'QSGNode.DirtyStateBit' + DirtyNodeRemoved = ... # type: 'QSGNode.DirtyStateBit' + DirtyGeometry = ... # type: 'QSGNode.DirtyStateBit' + DirtyMaterial = ... # type: 'QSGNode.DirtyStateBit' + DirtyOpacity = ... # type: 'QSGNode.DirtyStateBit' + + class Flag(int): ... + OwnedByParent = ... # type: 'QSGNode.Flag' + UsePreprocess = ... # type: 'QSGNode.Flag' + OwnsGeometry = ... # type: 'QSGNode.Flag' + OwnsMaterial = ... # type: 'QSGNode.Flag' + OwnsOpaqueMaterial = ... # type: 'QSGNode.Flag' + + class NodeType(int): ... + BasicNodeType = ... # type: 'QSGNode.NodeType' + GeometryNodeType = ... # type: 'QSGNode.NodeType' + TransformNodeType = ... # type: 'QSGNode.NodeType' + ClipNodeType = ... # type: 'QSGNode.NodeType' + OpacityNodeType = ... # type: 'QSGNode.NodeType' + + class Flags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGNode.Flags', 'QSGNode.Flag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGNode.Flags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGNode.Flags': ... + def __int__(self) -> int: ... + + class DirtyState(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGNode.DirtyState', 'QSGNode.DirtyStateBit']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGNode.DirtyState') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGNode.DirtyState': ... + def __int__(self) -> int: ... + + def __init__(self) -> None: ... + + def preprocess(self) -> None: ... + def setFlags(self, a0: typing.Union['QSGNode.Flags', 'QSGNode.Flag'], enabled: bool = ...) -> None: ... + def setFlag(self, a0: 'QSGNode.Flag', enabled: bool = ...) -> None: ... + def flags(self) -> 'QSGNode.Flags': ... + def isSubtreeBlocked(self) -> bool: ... + def markDirty(self, bits: typing.Union['QSGNode.DirtyState', 'QSGNode.DirtyStateBit']) -> None: ... + def type(self) -> 'QSGNode.NodeType': ... + def previousSibling(self) -> 'QSGNode': ... + def nextSibling(self) -> 'QSGNode': ... + def lastChild(self) -> 'QSGNode': ... + def firstChild(self) -> 'QSGNode': ... + def childAtIndex(self, i: int) -> 'QSGNode': ... + def __len__(self) -> int: ... + def childCount(self) -> int: ... + def insertChildNodeAfter(self, node: 'QSGNode', after: 'QSGNode') -> None: ... + def insertChildNodeBefore(self, node: 'QSGNode', before: 'QSGNode') -> None: ... + def appendChildNode(self, node: 'QSGNode') -> None: ... + def prependChildNode(self, node: 'QSGNode') -> None: ... + def removeAllChildNodes(self) -> None: ... + def removeChildNode(self, node: 'QSGNode') -> None: ... + def parent(self) -> 'QSGNode': ... + + +class QSGBasicGeometryNode(QSGNode): + + def geometry(self) -> QSGGeometry: ... + def setGeometry(self, geometry: QSGGeometry) -> None: ... + + +class QSGGeometryNode(QSGBasicGeometryNode): + + def __init__(self) -> None: ... + + def opaqueMaterial(self) -> QSGMaterial: ... + def setOpaqueMaterial(self, material: QSGMaterial) -> None: ... + def material(self) -> QSGMaterial: ... + def setMaterial(self, material: QSGMaterial) -> None: ... + + +class QSGImageNode(QSGGeometryNode): + + class TextureCoordinatesTransformFlag(int): ... + NoTransform = ... # type: 'QSGImageNode.TextureCoordinatesTransformFlag' + MirrorHorizontally = ... # type: 'QSGImageNode.TextureCoordinatesTransformFlag' + MirrorVertically = ... # type: 'QSGImageNode.TextureCoordinatesTransformFlag' + + class TextureCoordinatesTransformMode(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGImageNode.TextureCoordinatesTransformMode', 'QSGImageNode.TextureCoordinatesTransformFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGImageNode.TextureCoordinatesTransformMode') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGImageNode.TextureCoordinatesTransformMode': ... + def __int__(self) -> int: ... + + @staticmethod + def rebuildGeometry(g: QSGGeometry, texture: 'QSGTexture', rect: QtCore.QRectF, sourceRect: QtCore.QRectF, texCoordMode: typing.Union['QSGImageNode.TextureCoordinatesTransformMode', 'QSGImageNode.TextureCoordinatesTransformFlag']) -> None: ... + def ownsTexture(self) -> bool: ... + def setOwnsTexture(self, owns: bool) -> None: ... + def textureCoordinatesTransform(self) -> 'QSGImageNode.TextureCoordinatesTransformMode': ... + def setTextureCoordinatesTransform(self, mode: typing.Union['QSGImageNode.TextureCoordinatesTransformMode', 'QSGImageNode.TextureCoordinatesTransformFlag']) -> None: ... + def mipmapFiltering(self) -> 'QSGTexture.Filtering': ... + def setMipmapFiltering(self, filtering: 'QSGTexture.Filtering') -> None: ... + def filtering(self) -> 'QSGTexture.Filtering': ... + def setFiltering(self, filtering: 'QSGTexture.Filtering') -> None: ... + def texture(self) -> 'QSGTexture': ... + def setTexture(self, texture: 'QSGTexture') -> None: ... + def sourceRect(self) -> QtCore.QRectF: ... + @typing.overload + def setSourceRect(self, r: QtCore.QRectF) -> None: ... + @typing.overload + def setSourceRect(self, x: float, y: float, w: float, h: float) -> None: ... + def rect(self) -> QtCore.QRectF: ... + @typing.overload + def setRect(self, rect: QtCore.QRectF) -> None: ... + @typing.overload + def setRect(self, x: float, y: float, w: float, h: float) -> None: ... + + +class QSGMaterialShader(sip.wrapper): + + class RenderState(sip.simplewrapper): + + class DirtyState(int): ... + DirtyMatrix = ... # type: 'QSGMaterialShader.RenderState.DirtyState' + DirtyOpacity = ... # type: 'QSGMaterialShader.RenderState.DirtyState' + DirtyCachedMaterialData = ... # type: 'QSGMaterialShader.RenderState.DirtyState' + DirtyAll = ... # type: 'QSGMaterialShader.RenderState.DirtyState' + + class DirtyStates(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGMaterialShader.RenderState.DirtyStates', 'QSGMaterialShader.RenderState.DirtyState']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGMaterialShader.RenderState.DirtyStates') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGMaterialShader.RenderState.DirtyStates': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGMaterialShader.RenderState') -> None: ... + + def isCachedMaterialDataDirty(self) -> bool: ... + def devicePixelRatio(self) -> float: ... + def projectionMatrix(self) -> QtGui.QMatrix4x4: ... + def context(self) -> QtGui.QOpenGLContext: ... + def determinant(self) -> float: ... + def deviceRect(self) -> QtCore.QRect: ... + def viewportRect(self) -> QtCore.QRect: ... + def modelViewMatrix(self) -> QtGui.QMatrix4x4: ... + def combinedMatrix(self) -> QtGui.QMatrix4x4: ... + def opacity(self) -> float: ... + def isOpacityDirty(self) -> bool: ... + def isMatrixDirty(self) -> bool: ... + def dirtyStates(self) -> 'QSGMaterialShader.RenderState.DirtyStates': ... + + def __init__(self) -> None: ... + + def setShaderSourceFiles(self, type: typing.Union[QtGui.QOpenGLShader.ShaderType, QtGui.QOpenGLShader.ShaderTypeBit], sourceFiles: typing.Iterable[str]) -> None: ... + def setShaderSourceFile(self, type: typing.Union[QtGui.QOpenGLShader.ShaderType, QtGui.QOpenGLShader.ShaderTypeBit], sourceFile: str) -> None: ... + def fragmentShader(self) -> str: ... + def vertexShader(self) -> str: ... + def initialize(self) -> None: ... + def compile(self) -> None: ... + def program(self) -> QtGui.QOpenGLShaderProgram: ... + def attributeNames(self) -> typing.List[str]: ... + def updateState(self, state: 'QSGMaterialShader.RenderState', newMaterial: QSGMaterial, oldMaterial: QSGMaterial) -> None: ... + def deactivate(self) -> None: ... + def activate(self) -> None: ... + + +class QSGMaterialType(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGMaterialType') -> None: ... + + +class QSGClipNode(QSGBasicGeometryNode): + + def __init__(self) -> None: ... + + def clipRect(self) -> QtCore.QRectF: ... + def setClipRect(self, a0: QtCore.QRectF) -> None: ... + def isRectangular(self) -> bool: ... + def setIsRectangular(self, rectHint: bool) -> None: ... + + +class QSGTransformNode(QSGNode): + + def __init__(self) -> None: ... + + def matrix(self) -> QtGui.QMatrix4x4: ... + def setMatrix(self, matrix: QtGui.QMatrix4x4) -> None: ... + + +class QSGOpacityNode(QSGNode): + + def __init__(self) -> None: ... + + def opacity(self) -> float: ... + def setOpacity(self, opacity: float) -> None: ... + + +class QSGRectangleNode(QSGGeometryNode): + + def color(self) -> QtGui.QColor: ... + def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def rect(self) -> QtCore.QRectF: ... + @typing.overload + def setRect(self, rect: QtCore.QRectF) -> None: ... + @typing.overload + def setRect(self, x: float, y: float, w: float, h: float) -> None: ... + + +class QSGRendererInterface(sip.simplewrapper): + + class ShaderSourceType(int): ... + ShaderSourceString = ... # type: 'QSGRendererInterface.ShaderSourceType' + ShaderSourceFile = ... # type: 'QSGRendererInterface.ShaderSourceType' + ShaderByteCode = ... # type: 'QSGRendererInterface.ShaderSourceType' + + class ShaderCompilationType(int): ... + RuntimeCompilation = ... # type: 'QSGRendererInterface.ShaderCompilationType' + OfflineCompilation = ... # type: 'QSGRendererInterface.ShaderCompilationType' + + class ShaderType(int): ... + UnknownShadingLanguage = ... # type: 'QSGRendererInterface.ShaderType' + GLSL = ... # type: 'QSGRendererInterface.ShaderType' + HLSL = ... # type: 'QSGRendererInterface.ShaderType' + + class Resource(int): ... + DeviceResource = ... # type: 'QSGRendererInterface.Resource' + CommandQueueResource = ... # type: 'QSGRendererInterface.Resource' + CommandListResource = ... # type: 'QSGRendererInterface.Resource' + PainterResource = ... # type: 'QSGRendererInterface.Resource' + + class GraphicsApi(int): ... + Unknown = ... # type: 'QSGRendererInterface.GraphicsApi' + Software = ... # type: 'QSGRendererInterface.GraphicsApi' + OpenGL = ... # type: 'QSGRendererInterface.GraphicsApi' + Direct3D12 = ... # type: 'QSGRendererInterface.GraphicsApi' + OpenVG = ... # type: 'QSGRendererInterface.GraphicsApi' + + class ShaderCompilationTypes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGRendererInterface.ShaderCompilationTypes', 'QSGRendererInterface.ShaderCompilationType']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGRendererInterface.ShaderCompilationTypes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGRendererInterface.ShaderCompilationTypes': ... + def __int__(self) -> int: ... + + class ShaderSourceTypes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGRendererInterface.ShaderSourceTypes', 'QSGRendererInterface.ShaderSourceType']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGRendererInterface.ShaderSourceTypes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGRendererInterface.ShaderSourceTypes': ... + def __int__(self) -> int: ... + + def shaderSourceType(self) -> 'QSGRendererInterface.ShaderSourceTypes': ... + def shaderCompilationType(self) -> 'QSGRendererInterface.ShaderCompilationTypes': ... + def shaderType(self) -> 'QSGRendererInterface.ShaderType': ... + @typing.overload + def getResource(self, window: QQuickWindow, resource: 'QSGRendererInterface.Resource') -> sip.voidptr: ... + @typing.overload + def getResource(self, window: QQuickWindow, resource: str) -> sip.voidptr: ... + def graphicsApi(self) -> 'QSGRendererInterface.GraphicsApi': ... + + +class QSGRenderNode(QSGNode): + + class RenderingFlag(int): ... + BoundedRectRendering = ... # type: 'QSGRenderNode.RenderingFlag' + DepthAwareRendering = ... # type: 'QSGRenderNode.RenderingFlag' + OpaqueRendering = ... # type: 'QSGRenderNode.RenderingFlag' + + class StateFlag(int): ... + DepthState = ... # type: 'QSGRenderNode.StateFlag' + StencilState = ... # type: 'QSGRenderNode.StateFlag' + ScissorState = ... # type: 'QSGRenderNode.StateFlag' + ColorState = ... # type: 'QSGRenderNode.StateFlag' + BlendState = ... # type: 'QSGRenderNode.StateFlag' + CullState = ... # type: 'QSGRenderNode.StateFlag' + ViewportState = ... # type: 'QSGRenderNode.StateFlag' + RenderTargetState = ... # type: 'QSGRenderNode.StateFlag' + + class StateFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGRenderNode.StateFlags', 'QSGRenderNode.StateFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGRenderNode.StateFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGRenderNode.StateFlags': ... + def __int__(self) -> int: ... + + class RenderingFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGRenderNode.RenderingFlags', 'QSGRenderNode.RenderingFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGRenderNode.RenderingFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGRenderNode.RenderingFlags': ... + def __int__(self) -> int: ... + + class RenderState(sip.simplewrapper): + + def get(self, state: str) -> sip.voidptr: ... + def clipRegion(self) -> QtGui.QRegion: ... + def stencilEnabled(self) -> bool: ... + def stencilValue(self) -> int: ... + def scissorEnabled(self) -> bool: ... + def scissorRect(self) -> QtCore.QRect: ... + def projectionMatrix(self) -> QtGui.QMatrix4x4: ... + + def inheritedOpacity(self) -> float: ... + def clipList(self) -> QSGClipNode: ... + def matrix(self) -> QtGui.QMatrix4x4: ... + def rect(self) -> QtCore.QRectF: ... + def flags(self) -> 'QSGRenderNode.RenderingFlags': ... + def releaseResources(self) -> None: ... + def render(self, state: 'QSGRenderNode.RenderState') -> None: ... + def changedStates(self) -> 'QSGRenderNode.StateFlags': ... + + +class QSGSimpleRectNode(QSGGeometryNode): + + @typing.overload + def __init__(self, rect: QtCore.QRectF, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + @typing.overload + def __init__(self) -> None: ... + + def color(self) -> QtGui.QColor: ... + def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def rect(self) -> QtCore.QRectF: ... + @typing.overload + def setRect(self, rect: QtCore.QRectF) -> None: ... + @typing.overload + def setRect(self, x: float, y: float, w: float, h: float) -> None: ... + + +class QSGSimpleTextureNode(QSGGeometryNode): + + class TextureCoordinatesTransformFlag(int): ... + NoTransform = ... # type: 'QSGSimpleTextureNode.TextureCoordinatesTransformFlag' + MirrorHorizontally = ... # type: 'QSGSimpleTextureNode.TextureCoordinatesTransformFlag' + MirrorVertically = ... # type: 'QSGSimpleTextureNode.TextureCoordinatesTransformFlag' + + class TextureCoordinatesTransformMode(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSGSimpleTextureNode.TextureCoordinatesTransformMode', 'QSGSimpleTextureNode.TextureCoordinatesTransformFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGSimpleTextureNode.TextureCoordinatesTransformMode') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSGSimpleTextureNode.TextureCoordinatesTransformMode': ... + def __int__(self) -> int: ... + + def __init__(self) -> None: ... + + def sourceRect(self) -> QtCore.QRectF: ... + @typing.overload + def setSourceRect(self, r: QtCore.QRectF) -> None: ... + @typing.overload + def setSourceRect(self, x: float, y: float, w: float, h: float) -> None: ... + def ownsTexture(self) -> bool: ... + def setOwnsTexture(self, owns: bool) -> None: ... + def textureCoordinatesTransform(self) -> 'QSGSimpleTextureNode.TextureCoordinatesTransformMode': ... + def setTextureCoordinatesTransform(self, mode: typing.Union['QSGSimpleTextureNode.TextureCoordinatesTransformMode', 'QSGSimpleTextureNode.TextureCoordinatesTransformFlag']) -> None: ... + def filtering(self) -> 'QSGTexture.Filtering': ... + def setFiltering(self, filtering: 'QSGTexture.Filtering') -> None: ... + def texture(self) -> 'QSGTexture': ... + def setTexture(self, texture: 'QSGTexture') -> None: ... + def rect(self) -> QtCore.QRectF: ... + @typing.overload + def setRect(self, rect: QtCore.QRectF) -> None: ... + @typing.overload + def setRect(self, x: float, y: float, w: float, h: float) -> None: ... + + +class QSGTexture(QtCore.QObject): + + class AnisotropyLevel(int): ... + AnisotropyNone = ... # type: 'QSGTexture.AnisotropyLevel' + Anisotropy2x = ... # type: 'QSGTexture.AnisotropyLevel' + Anisotropy4x = ... # type: 'QSGTexture.AnisotropyLevel' + Anisotropy8x = ... # type: 'QSGTexture.AnisotropyLevel' + Anisotropy16x = ... # type: 'QSGTexture.AnisotropyLevel' + + class Filtering(int): ... + None = ... # type: 'QSGTexture.Filtering' + Nearest = ... # type: 'QSGTexture.Filtering' + Linear = ... # type: 'QSGTexture.Filtering' + + class WrapMode(int): ... + Repeat = ... # type: 'QSGTexture.WrapMode' + ClampToEdge = ... # type: 'QSGTexture.WrapMode' + MirroredRepeat = ... # type: 'QSGTexture.WrapMode' + + def __init__(self) -> None: ... + + def anisotropyLevel(self) -> 'QSGTexture.AnisotropyLevel': ... + def setAnisotropyLevel(self, level: 'QSGTexture.AnisotropyLevel') -> None: ... + def convertToNormalizedSourceRect(self, rect: QtCore.QRectF) -> QtCore.QRectF: ... + def verticalWrapMode(self) -> 'QSGTexture.WrapMode': ... + def setVerticalWrapMode(self, vwrap: 'QSGTexture.WrapMode') -> None: ... + def horizontalWrapMode(self) -> 'QSGTexture.WrapMode': ... + def setHorizontalWrapMode(self, hwrap: 'QSGTexture.WrapMode') -> None: ... + def filtering(self) -> 'QSGTexture.Filtering': ... + def setFiltering(self, filter: 'QSGTexture.Filtering') -> None: ... + def mipmapFiltering(self) -> 'QSGTexture.Filtering': ... + def setMipmapFiltering(self, filter: 'QSGTexture.Filtering') -> None: ... + def updateBindOptions(self, force: bool = ...) -> None: ... + def bind(self) -> None: ... + def removedFromAtlas(self) -> 'QSGTexture': ... + def isAtlasTexture(self) -> bool: ... + def normalizedTextureSubRect(self) -> QtCore.QRectF: ... + def hasMipmaps(self) -> bool: ... + def hasAlphaChannel(self) -> bool: ... + def textureSize(self) -> QtCore.QSize: ... + def textureId(self) -> int: ... + + +class QSGDynamicTexture(QSGTexture): + + def __init__(self) -> None: ... + + def updateTexture(self) -> bool: ... + + +class QSGOpaqueTextureMaterial(QSGMaterial): + + def __init__(self) -> None: ... + + def anisotropyLevel(self) -> QSGTexture.AnisotropyLevel: ... + def setAnisotropyLevel(self, level: QSGTexture.AnisotropyLevel) -> None: ... + def verticalWrapMode(self) -> QSGTexture.WrapMode: ... + def setVerticalWrapMode(self, mode: QSGTexture.WrapMode) -> None: ... + def horizontalWrapMode(self) -> QSGTexture.WrapMode: ... + def setHorizontalWrapMode(self, mode: QSGTexture.WrapMode) -> None: ... + def filtering(self) -> QSGTexture.Filtering: ... + def setFiltering(self, filtering: QSGTexture.Filtering) -> None: ... + def mipmapFiltering(self) -> QSGTexture.Filtering: ... + def setMipmapFiltering(self, filtering: QSGTexture.Filtering) -> None: ... + def texture(self) -> QSGTexture: ... + def setTexture(self, texture: QSGTexture) -> None: ... + def compare(self, other: QSGMaterial) -> int: ... + def createShader(self) -> QSGMaterialShader: ... + def type(self) -> QSGMaterialType: ... + + +class QSGTextureMaterial(QSGOpaqueTextureMaterial): + + def __init__(self) -> None: ... + + def createShader(self) -> QSGMaterialShader: ... + def type(self) -> QSGMaterialType: ... + + +class QSGTextureProvider(QtCore.QObject): + + def __init__(self) -> None: ... + + def textureChanged(self) -> None: ... + def texture(self) -> QSGTexture: ... + + +class QSGVertexColorMaterial(QSGMaterial): + + def __init__(self) -> None: ... + + def createShader(self) -> QSGMaterialShader: ... + def type(self) -> QSGMaterialType: ... + def compare(self, other: QSGMaterial) -> int: ... diff --git a/tools/stubs/PyQt5/QtQuickWidgets.pyi b/tools/stubs/PyQt5/QtQuickWidgets.pyi new file mode 100644 index 000000000..fec988c59 --- /dev/null +++ b/tools/stubs/PyQt5/QtQuickWidgets.pyi @@ -0,0 +1,102 @@ +# The PEP 484 type hints stub file for the QtQuickWidgets module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtWidgets +from PyQt5 import QtQuick +from PyQt5 import QtQml +from PyQt5 import QtGui +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + +# Convenient aliases for complicated OpenGL types. +PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QQuickWidget(QtWidgets.QWidget): + + class Status(int): ... + Null = ... # type: 'QQuickWidget.Status' + Ready = ... # type: 'QQuickWidget.Status' + Loading = ... # type: 'QQuickWidget.Status' + Error = ... # type: 'QQuickWidget.Status' + + class ResizeMode(int): ... + SizeViewToRootObject = ... # type: 'QQuickWidget.ResizeMode' + SizeRootObjectToView = ... # type: 'QQuickWidget.ResizeMode' + + @typing.overload + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, engine: QtQml.QQmlEngine, parent: QtWidgets.QWidget) -> None: ... + @typing.overload + def __init__(self, source: QtCore.QUrl, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + + def focusNextPrevChild(self, next: bool) -> bool: ... + def quickWindow(self) -> QtQuick.QQuickWindow: ... + def setClearColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... + def grabFramebuffer(self) -> QtGui.QImage: ... + def paintEvent(self, event: QtGui.QPaintEvent) -> None: ... + def dropEvent(self, a0: QtGui.QDropEvent) -> None: ... + def dragLeaveEvent(self, a0: QtGui.QDragLeaveEvent) -> None: ... + def dragMoveEvent(self, a0: QtGui.QDragMoveEvent) -> None: ... + def dragEnterEvent(self, a0: QtGui.QDragEnterEvent) -> None: ... + def focusOutEvent(self, event: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, event: QtGui.QFocusEvent) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def wheelEvent(self, a0: QtGui.QWheelEvent) -> None: ... + def hideEvent(self, a0: QtGui.QHideEvent) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent) -> None: ... + def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def keyReleaseEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def timerEvent(self, a0: QtCore.QTimerEvent) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def sceneGraphError(self, error: QtQuick.QQuickWindow.SceneGraphError, message: str) -> None: ... + def statusChanged(self, a0: 'QQuickWidget.Status') -> None: ... + def setSource(self, a0: QtCore.QUrl) -> None: ... + def format(self) -> QtGui.QSurfaceFormat: ... + def setFormat(self, format: QtGui.QSurfaceFormat) -> None: ... + def initialSize(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + def errors(self) -> typing.List[QtQml.QQmlError]: ... + def status(self) -> 'QQuickWidget.Status': ... + def setResizeMode(self, a0: 'QQuickWidget.ResizeMode') -> None: ... + def resizeMode(self) -> 'QQuickWidget.ResizeMode': ... + def rootObject(self) -> QtQuick.QQuickItem: ... + def rootContext(self) -> QtQml.QQmlContext: ... + def engine(self) -> QtQml.QQmlEngine: ... + def source(self) -> QtCore.QUrl: ... diff --git a/tools/stubs/PyQt5/QtRemoteObjects.pyi b/tools/stubs/PyQt5/QtRemoteObjects.pyi new file mode 100644 index 000000000..e764a9810 --- /dev/null +++ b/tools/stubs/PyQt5/QtRemoteObjects.pyi @@ -0,0 +1,191 @@ +# The PEP 484 type hints stub file for the QtRemoteObjects module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + + +class QAbstractItemModelReplica(QtCore.QAbstractItemModel): + + def initialized(self) -> None: ... + def setRootCacheSize(self, rootCacheSize: int) -> None: ... + def rootCacheSize(self) -> int: ... + def hasData(self, index: QtCore.QModelIndex, role: int) -> bool: ... + def isInitialized(self) -> bool: ... + def roleNames(self) -> typing.Dict[int, QtCore.QByteArray]: ... + def availableRoles(self) -> typing.List[int]: ... + def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlags: ... + def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int) -> typing.Any: ... + def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + def hasChildren(self, parent: QtCore.QModelIndex = ...) -> bool: ... + def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ... + def parent(self, index: QtCore.QModelIndex) -> QtCore.QModelIndex: ... + def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ... + def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ... + def selectionModel(self) -> QtCore.QItemSelectionModel: ... + + +class QRemoteObjectReplica(QtCore.QObject): + + class State(int): ... + Uninitialized = ... # type: 'QRemoteObjectReplica.State' + Default = ... # type: 'QRemoteObjectReplica.State' + Valid = ... # type: 'QRemoteObjectReplica.State' + Suspect = ... # type: 'QRemoteObjectReplica.State' + SignatureMismatch = ... # type: 'QRemoteObjectReplica.State' + + def stateChanged(self, state: 'QRemoteObjectReplica.State', oldState: 'QRemoteObjectReplica.State') -> None: ... + def initialized(self) -> None: ... + def setNode(self, node: 'QRemoteObjectNode') -> None: ... + def node(self) -> 'QRemoteObjectNode': ... + def state(self) -> 'QRemoteObjectReplica.State': ... + def isInitialized(self) -> bool: ... + def waitForSource(self, timeout: int = ...) -> bool: ... + def isReplicaValid(self) -> bool: ... + + +class QRemoteObjectDynamicReplica(QRemoteObjectReplica): ... + + +class QRemoteObjectAbstractPersistedStore(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def restoreProperties(self, repName: str, repSig: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.List[typing.Any]: ... + def saveProperties(self, repName: str, repSig: typing.Union[QtCore.QByteArray, bytes, bytearray], values: typing.Iterable[typing.Any]) -> None: ... + + +class QRemoteObjectNode(QtCore.QObject): + + class ErrorCode(int): ... + NoError = ... # type: 'QRemoteObjectNode.ErrorCode' + RegistryNotAcquired = ... # type: 'QRemoteObjectNode.ErrorCode' + RegistryAlreadyHosted = ... # type: 'QRemoteObjectNode.ErrorCode' + NodeIsNoServer = ... # type: 'QRemoteObjectNode.ErrorCode' + ServerAlreadyCreated = ... # type: 'QRemoteObjectNode.ErrorCode' + UnintendedRegistryHosting = ... # type: 'QRemoteObjectNode.ErrorCode' + OperationNotValidOnClientNode = ... # type: 'QRemoteObjectNode.ErrorCode' + SourceNotRegistered = ... # type: 'QRemoteObjectNode.ErrorCode' + MissingObjectName = ... # type: 'QRemoteObjectNode.ErrorCode' + HostUrlInvalid = ... # type: 'QRemoteObjectNode.ErrorCode' + ProtocolMismatch = ... # type: 'QRemoteObjectNode.ErrorCode' + ListenFailed = ... # type: 'QRemoteObjectNode.ErrorCode' + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, registryAddress: QtCore.QUrl, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def timerEvent(self, a0: QtCore.QTimerEvent) -> None: ... + def heartbeatIntervalChanged(self, heartbeatInterval: int) -> None: ... + def error(self, errorCode: 'QRemoteObjectNode.ErrorCode') -> None: ... + def remoteObjectRemoved(self, a0: typing.Tuple[str, 'QRemoteObjectSourceLocationInfo']) -> None: ... + def remoteObjectAdded(self, a0: typing.Tuple[str, 'QRemoteObjectSourceLocationInfo']) -> None: ... + def setHeartbeatInterval(self, interval: int) -> None: ... + def heartbeatInterval(self) -> int: ... + def lastError(self) -> 'QRemoteObjectNode.ErrorCode': ... + def setPersistedStore(self, persistedStore: QRemoteObjectAbstractPersistedStore) -> None: ... + def persistedStore(self) -> QRemoteObjectAbstractPersistedStore: ... + def registry(self) -> 'QRemoteObjectRegistry': ... + def waitForRegistry(self, timeout: int = ...) -> bool: ... + def setRegistryUrl(self, registryAddress: QtCore.QUrl) -> bool: ... + def registryUrl(self) -> QtCore.QUrl: ... + def acquireModel(self, name: str, action: 'QtRemoteObjects.InitialAction' = ..., rolesHint: typing.Iterable[int] = ...) -> QAbstractItemModelReplica: ... + def acquireDynamic(self, name: str) -> QRemoteObjectDynamicReplica: ... + def instances(self, typeName: str) -> typing.List[str]: ... + def setName(self, name: str) -> None: ... + def addClientSideConnection(self, ioDevice: QtCore.QIODevice) -> None: ... + def connectToNode(self, address: QtCore.QUrl) -> bool: ... + + +class QRemoteObjectHostBase(QRemoteObjectNode): + + class AllowedSchemas(int): ... + BuiltInSchemasOnly = ... # type: 'QRemoteObjectHostBase.AllowedSchemas' + AllowExternalRegistration = ... # type: 'QRemoteObjectHostBase.AllowedSchemas' + + def reverseProxy(self) -> bool: ... + def proxy(self, registryUrl: QtCore.QUrl, hostUrl: QtCore.QUrl = ...) -> bool: ... + def addHostSideConnection(self, ioDevice: QtCore.QIODevice) -> None: ... + def disableRemoting(self, remoteObject: QtCore.QObject) -> bool: ... + @typing.overload + def enableRemoting(self, object: QtCore.QObject, name: str = ...) -> bool: ... + @typing.overload + def enableRemoting(self, model: QtCore.QAbstractItemModel, name: str, roles: typing.Iterable[int], selectionModel: typing.Optional[QtCore.QItemSelectionModel] = ...) -> bool: ... + def setName(self, name: str) -> None: ... + + +class QRemoteObjectHost(QRemoteObjectHostBase): + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, address: QtCore.QUrl, registryAddress: QtCore.QUrl = ..., allowedSchemas: QRemoteObjectHostBase.AllowedSchemas = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, address: QtCore.QUrl, parent: QtCore.QObject) -> None: ... + + def setHostUrl(self, hostAddress: QtCore.QUrl, allowedSchemas: QRemoteObjectHostBase.AllowedSchemas = ...) -> bool: ... + def hostUrl(self) -> QtCore.QUrl: ... + + +class QRemoteObjectRegistryHost(QRemoteObjectHostBase): + + def __init__(self, registryAddress: QtCore.QUrl = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setRegistryUrl(self, registryUrl: QtCore.QUrl) -> bool: ... + + +class QRemoteObjectRegistry(QRemoteObjectReplica): + + def remoteObjectRemoved(self, entry: typing.Tuple[str, 'QRemoteObjectSourceLocationInfo']) -> None: ... + def remoteObjectAdded(self, entry: typing.Tuple[str, 'QRemoteObjectSourceLocationInfo']) -> None: ... + def sourceLocations(self) -> typing.Dict[str, 'QRemoteObjectSourceLocationInfo']: ... + + +class QRemoteObjectSourceLocationInfo(sip.simplewrapper): + + hostUrl = ... # type: QtCore.QUrl + typeName = ... # type: str + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, typeName_: str, hostUrl_: QtCore.QUrl) -> None: ... + @typing.overload + def __init__(self, a0: 'QRemoteObjectSourceLocationInfo') -> None: ... + + +class QtRemoteObjects(sip.simplewrapper): + + class InitialAction(int): ... + FetchRootSize = ... # type: 'QtRemoteObjects.InitialAction' + PrefetchData = ... # type: 'QtRemoteObjects.InitialAction' diff --git a/tools/stubs/PyQt5/QtSensors.pyi b/tools/stubs/PyQt5/QtSensors.pyi new file mode 100644 index 000000000..97e448aff --- /dev/null +++ b/tools/stubs/PyQt5/QtSensors.pyi @@ -0,0 +1,663 @@ +# The PEP 484 type hints stub file for the QtSensors module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + + +class QSensorReading(QtCore.QObject): + + def value(self, index: int) -> typing.Any: ... + def valueCount(self) -> int: ... + def setTimestamp(self, timestamp: int) -> None: ... + def timestamp(self) -> int: ... + + +class QAccelerometerReading(QSensorReading): + + def setZ(self, z: float) -> None: ... + def z(self) -> float: ... + def setY(self, y: float) -> None: ... + def y(self) -> float: ... + def setX(self, x: float) -> None: ... + def x(self) -> float: ... + + +class QSensorFilter(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSensorFilter') -> None: ... + + def filter(self, reading: QSensorReading) -> bool: ... + + +class QAccelerometerFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAccelerometerFilter') -> None: ... + + def filter(self, reading: QAccelerometerReading) -> bool: ... + + +class QSensor(QtCore.QObject): + + class AxesOrientationMode(int): ... + FixedOrientation = ... # type: 'QSensor.AxesOrientationMode' + AutomaticOrientation = ... # type: 'QSensor.AxesOrientationMode' + UserOrientation = ... # type: 'QSensor.AxesOrientationMode' + + class Feature(int): ... + Buffering = ... # type: 'QSensor.Feature' + AlwaysOn = ... # type: 'QSensor.Feature' + GeoValues = ... # type: 'QSensor.Feature' + FieldOfView = ... # type: 'QSensor.Feature' + AccelerationMode = ... # type: 'QSensor.Feature' + SkipDuplicates = ... # type: 'QSensor.Feature' + AxesOrientation = ... # type: 'QSensor.Feature' + PressureSensorTemperature = ... # type: 'QSensor.Feature' + + def __init__(self, type: typing.Union[QtCore.QByteArray, bytes, bytearray], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def bufferSizeChanged(self, bufferSize: int) -> None: ... + def efficientBufferSizeChanged(self, efficientBufferSize: int) -> None: ... + def maxBufferSizeChanged(self, maxBufferSize: int) -> None: ... + def userOrientationChanged(self, userOrientation: int) -> None: ... + def currentOrientationChanged(self, currentOrientation: int) -> None: ... + def axesOrientationModeChanged(self, axesOrientationMode: 'QSensor.AxesOrientationMode') -> None: ... + def skipDuplicatesChanged(self, skipDuplicates: bool) -> None: ... + def dataRateChanged(self) -> None: ... + def alwaysOnChanged(self) -> None: ... + def availableSensorsChanged(self) -> None: ... + def sensorError(self, error: int) -> None: ... + def readingChanged(self) -> None: ... + def activeChanged(self) -> None: ... + def busyChanged(self) -> None: ... + def stop(self) -> None: ... + def start(self) -> bool: ... + def setBufferSize(self, bufferSize: int) -> None: ... + def bufferSize(self) -> int: ... + def setEfficientBufferSize(self, efficientBufferSize: int) -> None: ... + def efficientBufferSize(self) -> int: ... + def setMaxBufferSize(self, maxBufferSize: int) -> None: ... + def maxBufferSize(self) -> int: ... + def setUserOrientation(self, userOrientation: int) -> None: ... + def userOrientation(self) -> int: ... + def setCurrentOrientation(self, currentOrientation: int) -> None: ... + def currentOrientation(self) -> int: ... + def setAxesOrientationMode(self, axesOrientationMode: 'QSensor.AxesOrientationMode') -> None: ... + def axesOrientationMode(self) -> 'QSensor.AxesOrientationMode': ... + def isFeatureSupported(self, feature: 'QSensor.Feature') -> bool: ... + @staticmethod + def defaultSensorForType(type: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> QtCore.QByteArray: ... + @staticmethod + def sensorsForType(type: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.List[QtCore.QByteArray]: ... + @staticmethod + def sensorTypes() -> typing.List[QtCore.QByteArray]: ... + def reading(self) -> QSensorReading: ... + def filters(self) -> typing.List[QSensorFilter]: ... + def removeFilter(self, filter: QSensorFilter) -> None: ... + def addFilter(self, filter: QSensorFilter) -> None: ... + def error(self) -> int: ... + def description(self) -> str: ... + def setOutputRange(self, index: int) -> None: ... + def outputRange(self) -> int: ... + def outputRanges(self) -> typing.List['qoutputrange']: ... + def setDataRate(self, rate: int) -> None: ... + def dataRate(self) -> int: ... + def availableDataRates(self) -> typing.List[typing.Tuple[int, int]]: ... + def setSkipDuplicates(self, skipDuplicates: bool) -> None: ... + def skipDuplicates(self) -> bool: ... + def setAlwaysOn(self, alwaysOn: bool) -> None: ... + def isAlwaysOn(self) -> bool: ... + def isActive(self) -> bool: ... + def setActive(self, active: bool) -> None: ... + def isBusy(self) -> bool: ... + def isConnectedToBackend(self) -> bool: ... + def connectToBackend(self) -> bool: ... + def type(self) -> QtCore.QByteArray: ... + def setIdentifier(self, identifier: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def identifier(self) -> QtCore.QByteArray: ... + + +class QAccelerometer(QSensor): + + class AccelerationMode(int): ... + Combined = ... # type: 'QAccelerometer.AccelerationMode' + Gravity = ... # type: 'QAccelerometer.AccelerationMode' + User = ... # type: 'QAccelerometer.AccelerationMode' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def accelerationModeChanged(self, accelerationMode: 'QAccelerometer.AccelerationMode') -> None: ... + def reading(self) -> QAccelerometerReading: ... + def setAccelerationMode(self, accelerationMode: 'QAccelerometer.AccelerationMode') -> None: ... + def accelerationMode(self) -> 'QAccelerometer.AccelerationMode': ... + + +class QAltimeterReading(QSensorReading): + + def setAltitude(self, altitude: float) -> None: ... + def altitude(self) -> float: ... + + +class QAltimeterFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAltimeterFilter') -> None: ... + + def filter(self, reading: QAltimeterReading) -> bool: ... + + +class QAltimeter(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QAltimeterReading: ... + + +class QAmbientLightReading(QSensorReading): + + class LightLevel(int): ... + Undefined = ... # type: 'QAmbientLightReading.LightLevel' + Dark = ... # type: 'QAmbientLightReading.LightLevel' + Twilight = ... # type: 'QAmbientLightReading.LightLevel' + Light = ... # type: 'QAmbientLightReading.LightLevel' + Bright = ... # type: 'QAmbientLightReading.LightLevel' + Sunny = ... # type: 'QAmbientLightReading.LightLevel' + + def setLightLevel(self, lightLevel: 'QAmbientLightReading.LightLevel') -> None: ... + def lightLevel(self) -> 'QAmbientLightReading.LightLevel': ... + + +class QAmbientLightFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAmbientLightFilter') -> None: ... + + def filter(self, reading: QAmbientLightReading) -> bool: ... + + +class QAmbientLightSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QAmbientLightReading: ... + + +class QAmbientTemperatureReading(QSensorReading): + + def setTemperature(self, temperature: float) -> None: ... + def temperature(self) -> float: ... + + +class QAmbientTemperatureFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAmbientTemperatureFilter') -> None: ... + + def filter(self, reading: QAmbientTemperatureReading) -> bool: ... + + +class QAmbientTemperatureSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QAmbientTemperatureReading: ... + + +class QCompassReading(QSensorReading): + + def setCalibrationLevel(self, calibrationLevel: float) -> None: ... + def calibrationLevel(self) -> float: ... + def setAzimuth(self, azimuth: float) -> None: ... + def azimuth(self) -> float: ... + + +class QCompassFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QCompassFilter') -> None: ... + + def filter(self, reading: QCompassReading) -> bool: ... + + +class QCompass(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QCompassReading: ... + + +class QDistanceReading(QSensorReading): + + def setDistance(self, distance: float) -> None: ... + def distance(self) -> float: ... + + +class QDistanceFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDistanceFilter') -> None: ... + + def filter(self, reading: QDistanceReading) -> bool: ... + + +class QDistanceSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QDistanceReading: ... + + +class QGyroscopeReading(QSensorReading): + + def setZ(self, z: float) -> None: ... + def z(self) -> float: ... + def setY(self, y: float) -> None: ... + def y(self) -> float: ... + def setX(self, x: float) -> None: ... + def x(self) -> float: ... + + +class QGyroscopeFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QGyroscopeFilter') -> None: ... + + def filter(self, reading: QGyroscopeReading) -> bool: ... + + +class QGyroscope(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QGyroscopeReading: ... + + +class QHolsterReading(QSensorReading): + + def setHolstered(self, holstered: bool) -> None: ... + def holstered(self) -> bool: ... + + +class QHolsterFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QHolsterFilter') -> None: ... + + def filter(self, reading: QHolsterReading) -> bool: ... + + +class QHolsterSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QHolsterReading: ... + + +class QHumidityReading(QSensorReading): + + def setAbsoluteHumidity(self, value: float) -> None: ... + def absoluteHumidity(self) -> float: ... + def setRelativeHumidity(self, percent: float) -> None: ... + def relativeHumidity(self) -> float: ... + + +class QHumidityFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QHumidityFilter') -> None: ... + + def filter(self, reading: QHumidityReading) -> bool: ... + + +class QHumiditySensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QHumidityReading: ... + + +class QIRProximityReading(QSensorReading): + + def setReflectance(self, reflectance: float) -> None: ... + def reflectance(self) -> float: ... + + +class QIRProximityFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QIRProximityFilter') -> None: ... + + def filter(self, reading: QIRProximityReading) -> bool: ... + + +class QIRProximitySensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QIRProximityReading: ... + + +class QLidReading(QSensorReading): + + def frontLidChanged(self, closed: bool) -> None: ... + def backLidChanged(self, closed: bool) -> None: ... + def setFrontLidClosed(self, closed: bool) -> None: ... + def frontLidClosed(self) -> bool: ... + def setBackLidClosed(self, closed: bool) -> None: ... + def backLidClosed(self) -> bool: ... + + +class QLidFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QLidFilter') -> None: ... + + def filter(self, reading: QLidReading) -> bool: ... + + +class QLidSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QLidReading: ... + + +class QLightReading(QSensorReading): + + def setLux(self, lux: float) -> None: ... + def lux(self) -> float: ... + + +class QLightFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QLightFilter') -> None: ... + + def filter(self, reading: QLightReading) -> bool: ... + + +class QLightSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def fieldOfViewChanged(self, fieldOfView: float) -> None: ... + def setFieldOfView(self, fieldOfView: float) -> None: ... + def fieldOfView(self) -> float: ... + def reading(self) -> QLightReading: ... + + +class QMagnetometerReading(QSensorReading): + + def setCalibrationLevel(self, calibrationLevel: float) -> None: ... + def calibrationLevel(self) -> float: ... + def setZ(self, z: float) -> None: ... + def z(self) -> float: ... + def setY(self, y: float) -> None: ... + def y(self) -> float: ... + def setX(self, x: float) -> None: ... + def x(self) -> float: ... + + +class QMagnetometerFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QMagnetometerFilter') -> None: ... + + def filter(self, reading: QMagnetometerReading) -> bool: ... + + +class QMagnetometer(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def returnGeoValuesChanged(self, returnGeoValues: bool) -> None: ... + def setReturnGeoValues(self, returnGeoValues: bool) -> None: ... + def returnGeoValues(self) -> bool: ... + def reading(self) -> QMagnetometerReading: ... + + +class QOrientationReading(QSensorReading): + + class Orientation(int): ... + Undefined = ... # type: 'QOrientationReading.Orientation' + TopUp = ... # type: 'QOrientationReading.Orientation' + TopDown = ... # type: 'QOrientationReading.Orientation' + LeftUp = ... # type: 'QOrientationReading.Orientation' + RightUp = ... # type: 'QOrientationReading.Orientation' + FaceUp = ... # type: 'QOrientationReading.Orientation' + FaceDown = ... # type: 'QOrientationReading.Orientation' + + def setOrientation(self, orientation: 'QOrientationReading.Orientation') -> None: ... + def orientation(self) -> 'QOrientationReading.Orientation': ... + + +class QOrientationFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QOrientationFilter') -> None: ... + + def filter(self, reading: QOrientationReading) -> bool: ... + + +class QOrientationSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QOrientationReading: ... + + +class QPressureReading(QSensorReading): + + def setTemperature(self, temperature: float) -> None: ... + def temperature(self) -> float: ... + def setPressure(self, pressure: float) -> None: ... + def pressure(self) -> float: ... + + +class QPressureFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QPressureFilter') -> None: ... + + def filter(self, reading: QPressureReading) -> bool: ... + + +class QPressureSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QPressureReading: ... + + +class QProximityReading(QSensorReading): + + def setClose(self, close: bool) -> None: ... + def close(self) -> bool: ... + + +class QProximityFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QProximityFilter') -> None: ... + + def filter(self, reading: QProximityReading) -> bool: ... + + +class QProximitySensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def reading(self) -> QProximityReading: ... + + +class qoutputrange(sip.simplewrapper): + + accuracy = ... # type: float + maximum = ... # type: float + minimum = ... # type: float + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'qoutputrange') -> None: ... + + +class QTapReading(QSensorReading): + + class TapDirection(int): ... + Undefined = ... # type: 'QTapReading.TapDirection' + X = ... # type: 'QTapReading.TapDirection' + Y = ... # type: 'QTapReading.TapDirection' + Z = ... # type: 'QTapReading.TapDirection' + X_Pos = ... # type: 'QTapReading.TapDirection' + Y_Pos = ... # type: 'QTapReading.TapDirection' + Z_Pos = ... # type: 'QTapReading.TapDirection' + X_Neg = ... # type: 'QTapReading.TapDirection' + Y_Neg = ... # type: 'QTapReading.TapDirection' + Z_Neg = ... # type: 'QTapReading.TapDirection' + X_Both = ... # type: 'QTapReading.TapDirection' + Y_Both = ... # type: 'QTapReading.TapDirection' + Z_Both = ... # type: 'QTapReading.TapDirection' + + def setDoubleTap(self, doubleTap: bool) -> None: ... + def isDoubleTap(self) -> bool: ... + def setTapDirection(self, tapDirection: 'QTapReading.TapDirection') -> None: ... + def tapDirection(self) -> 'QTapReading.TapDirection': ... + + +class QTapFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTapFilter') -> None: ... + + def filter(self, reading: QTapReading) -> bool: ... + + +class QTapSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def returnDoubleTapEventsChanged(self, returnDoubleTapEvents: bool) -> None: ... + def setReturnDoubleTapEvents(self, returnDoubleTapEvents: bool) -> None: ... + def returnDoubleTapEvents(self) -> bool: ... + def reading(self) -> QTapReading: ... + + +class QTiltReading(QSensorReading): + + def setXRotation(self, x: float) -> None: ... + def xRotation(self) -> float: ... + def setYRotation(self, y: float) -> None: ... + def yRotation(self) -> float: ... + + +class QTiltFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTiltFilter') -> None: ... + + def filter(self, reading: QTiltReading) -> bool: ... + + +class QTiltSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def calibrate(self) -> None: ... + def reading(self) -> QTiltReading: ... + + +class QRotationReading(QSensorReading): + + def setFromEuler(self, x: float, y: float, z: float) -> None: ... + def z(self) -> float: ... + def y(self) -> float: ... + def x(self) -> float: ... + + +class QRotationFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QRotationFilter') -> None: ... + + def filter(self, reading: QRotationReading) -> bool: ... + + +class QRotationSensor(QSensor): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def hasZChanged(self, hasZ: bool) -> None: ... + def setHasZ(self, hasZ: bool) -> None: ... + def hasZ(self) -> bool: ... + def reading(self) -> QRotationReading: ... diff --git a/tools/stubs/PyQt5/QtSerialPort.pyi b/tools/stubs/PyQt5/QtSerialPort.pyi new file mode 100644 index 000000000..b7d32c4a3 --- /dev/null +++ b/tools/stubs/PyQt5/QtSerialPort.pyi @@ -0,0 +1,239 @@ +# The PEP 484 type hints stub file for the QtSerialPort module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + + +class QSerialPort(QtCore.QIODevice): + + class SerialPortError(int): ... + NoError = ... # type: 'QSerialPort.SerialPortError' + DeviceNotFoundError = ... # type: 'QSerialPort.SerialPortError' + PermissionError = ... # type: 'QSerialPort.SerialPortError' + OpenError = ... # type: 'QSerialPort.SerialPortError' + ParityError = ... # type: 'QSerialPort.SerialPortError' + FramingError = ... # type: 'QSerialPort.SerialPortError' + BreakConditionError = ... # type: 'QSerialPort.SerialPortError' + WriteError = ... # type: 'QSerialPort.SerialPortError' + ReadError = ... # type: 'QSerialPort.SerialPortError' + ResourceError = ... # type: 'QSerialPort.SerialPortError' + UnsupportedOperationError = ... # type: 'QSerialPort.SerialPortError' + TimeoutError = ... # type: 'QSerialPort.SerialPortError' + NotOpenError = ... # type: 'QSerialPort.SerialPortError' + UnknownError = ... # type: 'QSerialPort.SerialPortError' + + class DataErrorPolicy(int): ... + SkipPolicy = ... # type: 'QSerialPort.DataErrorPolicy' + PassZeroPolicy = ... # type: 'QSerialPort.DataErrorPolicy' + IgnorePolicy = ... # type: 'QSerialPort.DataErrorPolicy' + StopReceivingPolicy = ... # type: 'QSerialPort.DataErrorPolicy' + UnknownPolicy = ... # type: 'QSerialPort.DataErrorPolicy' + + class PinoutSignal(int): ... + NoSignal = ... # type: 'QSerialPort.PinoutSignal' + TransmittedDataSignal = ... # type: 'QSerialPort.PinoutSignal' + ReceivedDataSignal = ... # type: 'QSerialPort.PinoutSignal' + DataTerminalReadySignal = ... # type: 'QSerialPort.PinoutSignal' + DataCarrierDetectSignal = ... # type: 'QSerialPort.PinoutSignal' + DataSetReadySignal = ... # type: 'QSerialPort.PinoutSignal' + RingIndicatorSignal = ... # type: 'QSerialPort.PinoutSignal' + RequestToSendSignal = ... # type: 'QSerialPort.PinoutSignal' + ClearToSendSignal = ... # type: 'QSerialPort.PinoutSignal' + SecondaryTransmittedDataSignal = ... # type: 'QSerialPort.PinoutSignal' + SecondaryReceivedDataSignal = ... # type: 'QSerialPort.PinoutSignal' + + class FlowControl(int): ... + NoFlowControl = ... # type: 'QSerialPort.FlowControl' + HardwareControl = ... # type: 'QSerialPort.FlowControl' + SoftwareControl = ... # type: 'QSerialPort.FlowControl' + UnknownFlowControl = ... # type: 'QSerialPort.FlowControl' + + class StopBits(int): ... + OneStop = ... # type: 'QSerialPort.StopBits' + OneAndHalfStop = ... # type: 'QSerialPort.StopBits' + TwoStop = ... # type: 'QSerialPort.StopBits' + UnknownStopBits = ... # type: 'QSerialPort.StopBits' + + class Parity(int): ... + NoParity = ... # type: 'QSerialPort.Parity' + EvenParity = ... # type: 'QSerialPort.Parity' + OddParity = ... # type: 'QSerialPort.Parity' + SpaceParity = ... # type: 'QSerialPort.Parity' + MarkParity = ... # type: 'QSerialPort.Parity' + UnknownParity = ... # type: 'QSerialPort.Parity' + + class DataBits(int): ... + Data5 = ... # type: 'QSerialPort.DataBits' + Data6 = ... # type: 'QSerialPort.DataBits' + Data7 = ... # type: 'QSerialPort.DataBits' + Data8 = ... # type: 'QSerialPort.DataBits' + UnknownDataBits = ... # type: 'QSerialPort.DataBits' + + class BaudRate(int): ... + Baud1200 = ... # type: 'QSerialPort.BaudRate' + Baud2400 = ... # type: 'QSerialPort.BaudRate' + Baud4800 = ... # type: 'QSerialPort.BaudRate' + Baud9600 = ... # type: 'QSerialPort.BaudRate' + Baud19200 = ... # type: 'QSerialPort.BaudRate' + Baud38400 = ... # type: 'QSerialPort.BaudRate' + Baud57600 = ... # type: 'QSerialPort.BaudRate' + Baud115200 = ... # type: 'QSerialPort.BaudRate' + UnknownBaud = ... # type: 'QSerialPort.BaudRate' + + class Direction(int): ... + Input = ... # type: 'QSerialPort.Direction' + Output = ... # type: 'QSerialPort.Direction' + AllDirections = ... # type: 'QSerialPort.Direction' + + class Directions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSerialPort.Directions', 'QSerialPort.Direction']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSerialPort.Directions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSerialPort.Directions': ... + def __int__(self) -> int: ... + + class PinoutSignals(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSerialPort.PinoutSignals', 'QSerialPort.PinoutSignal']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSerialPort.PinoutSignals') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSerialPort.PinoutSignals': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, name: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, info: 'QSerialPortInfo', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def errorOccurred(self, error: 'QSerialPort.SerialPortError') -> None: ... + def breakEnabledChanged(self, set: bool) -> None: ... + def isBreakEnabled(self) -> bool: ... + def handle(self) -> int: ... + def writeData(self, data: bytes) -> int: ... + def readLineData(self, maxlen: int) -> bytes: ... + def readData(self, maxlen: int) -> bytes: ... + def settingsRestoredOnCloseChanged(self, restore: bool) -> None: ... + def requestToSendChanged(self, set: bool) -> None: ... + def dataTerminalReadyChanged(self, set: bool) -> None: ... + def dataErrorPolicyChanged(self, policy: 'QSerialPort.DataErrorPolicy') -> None: ... + def flowControlChanged(self, flow: 'QSerialPort.FlowControl') -> None: ... + def stopBitsChanged(self, stopBits: 'QSerialPort.StopBits') -> None: ... + def parityChanged(self, parity: 'QSerialPort.Parity') -> None: ... + def dataBitsChanged(self, dataBits: 'QSerialPort.DataBits') -> None: ... + def baudRateChanged(self, baudRate: int, directions: typing.Union['QSerialPort.Directions', 'QSerialPort.Direction']) -> None: ... + def setBreakEnabled(self, enabled: bool = ...) -> bool: ... + def sendBreak(self, duration: int = ...) -> bool: ... + def waitForBytesWritten(self, msecs: int = ...) -> bool: ... + def waitForReadyRead(self, msecs: int = ...) -> bool: ... + def canReadLine(self) -> bool: ... + def bytesToWrite(self) -> int: ... + def bytesAvailable(self) -> int: ... + def isSequential(self) -> bool: ... + def setReadBufferSize(self, size: int) -> None: ... + def readBufferSize(self) -> int: ... + def clearError(self) -> None: ... + @typing.overload + def error(self) -> 'QSerialPort.SerialPortError': ... + @typing.overload + def error(self, serialPortError: 'QSerialPort.SerialPortError') -> None: ... + def dataErrorPolicy(self) -> 'QSerialPort.DataErrorPolicy': ... + def setDataErrorPolicy(self, policy: 'QSerialPort.DataErrorPolicy' = ...) -> bool: ... + def atEnd(self) -> bool: ... + def clear(self, dir: typing.Union['QSerialPort.Directions', 'QSerialPort.Direction'] = ...) -> bool: ... + def flush(self) -> bool: ... + def pinoutSignals(self) -> 'QSerialPort.PinoutSignals': ... + def isRequestToSend(self) -> bool: ... + def setRequestToSend(self, set: bool) -> bool: ... + def isDataTerminalReady(self) -> bool: ... + def setDataTerminalReady(self, set: bool) -> bool: ... + def flowControl(self) -> 'QSerialPort.FlowControl': ... + def setFlowControl(self, flow: 'QSerialPort.FlowControl') -> bool: ... + def stopBits(self) -> 'QSerialPort.StopBits': ... + def setStopBits(self, stopBits: 'QSerialPort.StopBits') -> bool: ... + def parity(self) -> 'QSerialPort.Parity': ... + def setParity(self, parity: 'QSerialPort.Parity') -> bool: ... + def dataBits(self) -> 'QSerialPort.DataBits': ... + def setDataBits(self, dataBits: 'QSerialPort.DataBits') -> bool: ... + def baudRate(self, dir: typing.Union['QSerialPort.Directions', 'QSerialPort.Direction'] = ...) -> int: ... + def setBaudRate(self, baudRate: int, dir: typing.Union['QSerialPort.Directions', 'QSerialPort.Direction'] = ...) -> bool: ... + def settingsRestoredOnClose(self) -> bool: ... + def setSettingsRestoredOnClose(self, restore: bool) -> None: ... + def close(self) -> None: ... + def open(self, mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag]) -> bool: ... + def setPort(self, info: 'QSerialPortInfo') -> None: ... + def portName(self) -> str: ... + def setPortName(self, name: str) -> None: ... + + +class QSerialPortInfo(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, port: QSerialPort) -> None: ... + @typing.overload + def __init__(self, name: str) -> None: ... + @typing.overload + def __init__(self, other: 'QSerialPortInfo') -> None: ... + + def serialNumber(self) -> str: ... + def isNull(self) -> bool: ... + @staticmethod + def availablePorts() -> typing.List['QSerialPortInfo']: ... + @staticmethod + def standardBaudRates() -> typing.List[int]: ... + def isValid(self) -> bool: ... + def isBusy(self) -> bool: ... + def hasProductIdentifier(self) -> bool: ... + def hasVendorIdentifier(self) -> bool: ... + def productIdentifier(self) -> int: ... + def vendorIdentifier(self) -> int: ... + def manufacturer(self) -> str: ... + def description(self) -> str: ... + def systemLocation(self) -> str: ... + def portName(self) -> str: ... + def swap(self, other: 'QSerialPortInfo') -> None: ... diff --git a/tools/stubs/PyQt5/QtSql.pyi b/tools/stubs/PyQt5/QtSql.pyi new file mode 100644 index 000000000..59ce32a50 --- /dev/null +++ b/tools/stubs/PyQt5/QtSql.pyi @@ -0,0 +1,668 @@ +# The PEP 484 type hints stub file for the QtSql module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtWidgets +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + +# Convenient aliases for complicated OpenGL types. +PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QSqlDriverCreatorBase(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSqlDriverCreatorBase') -> None: ... + + def createObject(self) -> 'QSqlDriver': ... + + +class QSqlDatabase(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QSqlDatabase') -> None: ... + @typing.overload + def __init__(self, type: str) -> None: ... + @typing.overload + def __init__(self, driver: 'QSqlDriver') -> None: ... + + def numericalPrecisionPolicy(self) -> 'QSql.NumericalPrecisionPolicy': ... + def setNumericalPrecisionPolicy(self, precisionPolicy: 'QSql.NumericalPrecisionPolicy') -> None: ... + @staticmethod + def isDriverAvailable(name: str) -> bool: ... + @staticmethod + def registerSqlDriver(name: str, creator: QSqlDriverCreatorBase) -> None: ... + @staticmethod + def connectionNames() -> typing.List[str]: ... + @staticmethod + def drivers() -> typing.List[str]: ... + @staticmethod + def contains(connectionName: str = ...) -> bool: ... + @staticmethod + def removeDatabase(connectionName: str) -> None: ... + @staticmethod + def database(connectionName: str = ..., open: bool = ...) -> 'QSqlDatabase': ... + @typing.overload + @staticmethod + def cloneDatabase(other: 'QSqlDatabase', connectionName: str) -> 'QSqlDatabase': ... + @typing.overload + @staticmethod + def cloneDatabase(other: str, connectionName: str) -> 'QSqlDatabase': ... + @typing.overload + @staticmethod + def addDatabase(type: str, connectionName: str = ...) -> 'QSqlDatabase': ... + @typing.overload + @staticmethod + def addDatabase(driver: 'QSqlDriver', connectionName: str = ...) -> 'QSqlDatabase': ... + def driver(self) -> 'QSqlDriver': ... + def connectionName(self) -> str: ... + def connectOptions(self) -> str: ... + def port(self) -> int: ... + def driverName(self) -> str: ... + def hostName(self) -> str: ... + def password(self) -> str: ... + def userName(self) -> str: ... + def databaseName(self) -> str: ... + def setConnectOptions(self, options: str = ...) -> None: ... + def setPort(self, p: int) -> None: ... + def setHostName(self, host: str) -> None: ... + def setPassword(self, password: str) -> None: ... + def setUserName(self, name: str) -> None: ... + def setDatabaseName(self, name: str) -> None: ... + def rollback(self) -> bool: ... + def commit(self) -> bool: ... + def transaction(self) -> bool: ... + def isValid(self) -> bool: ... + def lastError(self) -> 'QSqlError': ... + def exec(self, query: str = ...) -> 'QSqlQuery': ... + def exec_(self, query: str = ...) -> 'QSqlQuery': ... + def record(self, tablename: str) -> 'QSqlRecord': ... + def primaryIndex(self, tablename: str) -> 'QSqlIndex': ... + def tables(self, type: 'QSql.TableType' = ...) -> typing.List[str]: ... + def isOpenError(self) -> bool: ... + def isOpen(self) -> bool: ... + def close(self) -> None: ... + @typing.overload + def open(self) -> bool: ... + @typing.overload + def open(self, user: str, password: str) -> bool: ... + + +class QSqlDriver(QtCore.QObject): + + class DbmsType(int): ... + UnknownDbms = ... # type: 'QSqlDriver.DbmsType' + MSSqlServer = ... # type: 'QSqlDriver.DbmsType' + MySqlServer = ... # type: 'QSqlDriver.DbmsType' + PostgreSQL = ... # type: 'QSqlDriver.DbmsType' + Oracle = ... # type: 'QSqlDriver.DbmsType' + Sybase = ... # type: 'QSqlDriver.DbmsType' + SQLite = ... # type: 'QSqlDriver.DbmsType' + Interbase = ... # type: 'QSqlDriver.DbmsType' + DB2 = ... # type: 'QSqlDriver.DbmsType' + + class NotificationSource(int): ... + UnknownSource = ... # type: 'QSqlDriver.NotificationSource' + SelfSource = ... # type: 'QSqlDriver.NotificationSource' + OtherSource = ... # type: 'QSqlDriver.NotificationSource' + + class IdentifierType(int): ... + FieldName = ... # type: 'QSqlDriver.IdentifierType' + TableName = ... # type: 'QSqlDriver.IdentifierType' + + class StatementType(int): ... + WhereStatement = ... # type: 'QSqlDriver.StatementType' + SelectStatement = ... # type: 'QSqlDriver.StatementType' + UpdateStatement = ... # type: 'QSqlDriver.StatementType' + InsertStatement = ... # type: 'QSqlDriver.StatementType' + DeleteStatement = ... # type: 'QSqlDriver.StatementType' + + class DriverFeature(int): ... + Transactions = ... # type: 'QSqlDriver.DriverFeature' + QuerySize = ... # type: 'QSqlDriver.DriverFeature' + BLOB = ... # type: 'QSqlDriver.DriverFeature' + Unicode = ... # type: 'QSqlDriver.DriverFeature' + PreparedQueries = ... # type: 'QSqlDriver.DriverFeature' + NamedPlaceholders = ... # type: 'QSqlDriver.DriverFeature' + PositionalPlaceholders = ... # type: 'QSqlDriver.DriverFeature' + LastInsertId = ... # type: 'QSqlDriver.DriverFeature' + BatchOperations = ... # type: 'QSqlDriver.DriverFeature' + SimpleLocking = ... # type: 'QSqlDriver.DriverFeature' + LowPrecisionNumbers = ... # type: 'QSqlDriver.DriverFeature' + EventNotifications = ... # type: 'QSqlDriver.DriverFeature' + FinishQuery = ... # type: 'QSqlDriver.DriverFeature' + MultipleResultSets = ... # type: 'QSqlDriver.DriverFeature' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def dbmsType(self) -> 'QSqlDriver.DbmsType': ... + def numericalPrecisionPolicy(self) -> 'QSql.NumericalPrecisionPolicy': ... + def setNumericalPrecisionPolicy(self, precisionPolicy: 'QSql.NumericalPrecisionPolicy') -> None: ... + def stripDelimiters(self, identifier: str, type: 'QSqlDriver.IdentifierType') -> str: ... + def isIdentifierEscaped(self, identifier: str, type: 'QSqlDriver.IdentifierType') -> bool: ... + @typing.overload + def notification(self, name: str) -> None: ... + @typing.overload + def notification(self, name: str, source: 'QSqlDriver.NotificationSource', payload: typing.Any) -> None: ... + def subscribedToNotifications(self) -> typing.List[str]: ... + def unsubscribeFromNotification(self, name: str) -> bool: ... + def subscribeToNotification(self, name: str) -> bool: ... + def setLastError(self, e: 'QSqlError') -> None: ... + def setOpenError(self, e: bool) -> None: ... + def setOpen(self, o: bool) -> None: ... + def open(self, db: str, user: str = ..., password: str = ..., host: str = ..., port: int = ..., options: str = ...) -> bool: ... + def createResult(self) -> 'QSqlResult': ... + def close(self) -> None: ... + def hasFeature(self, f: 'QSqlDriver.DriverFeature') -> bool: ... + def handle(self) -> typing.Any: ... + def lastError(self) -> 'QSqlError': ... + def sqlStatement(self, type: 'QSqlDriver.StatementType', tableName: str, rec: 'QSqlRecord', preparedStatement: bool) -> str: ... + def escapeIdentifier(self, identifier: str, type: 'QSqlDriver.IdentifierType') -> str: ... + def formatValue(self, field: 'QSqlField', trimStrings: bool = ...) -> str: ... + def record(self, tableName: str) -> 'QSqlRecord': ... + def primaryIndex(self, tableName: str) -> 'QSqlIndex': ... + def tables(self, tableType: 'QSql.TableType') -> typing.List[str]: ... + def rollbackTransaction(self) -> bool: ... + def commitTransaction(self) -> bool: ... + def beginTransaction(self) -> bool: ... + def isOpenError(self) -> bool: ... + def isOpen(self) -> bool: ... + + +class QSqlError(sip.simplewrapper): + + class ErrorType(int): ... + NoError = ... # type: 'QSqlError.ErrorType' + ConnectionError = ... # type: 'QSqlError.ErrorType' + StatementError = ... # type: 'QSqlError.ErrorType' + TransactionError = ... # type: 'QSqlError.ErrorType' + UnknownError = ... # type: 'QSqlError.ErrorType' + + @typing.overload + def __init__(self, driverText: str = ..., databaseText: str = ..., type: 'QSqlError.ErrorType' = ..., errorCode: str = ...) -> None: ... + @typing.overload + def __init__(self, driverText: str, databaseText: str, type: 'QSqlError.ErrorType', number: int) -> None: ... + @typing.overload + def __init__(self, other: 'QSqlError') -> None: ... + + def swap(self, other: 'QSqlError') -> None: ... + def nativeErrorCode(self) -> str: ... + def isValid(self) -> bool: ... + def text(self) -> str: ... + def setNumber(self, number: int) -> None: ... + def number(self) -> int: ... + def setType(self, type: 'QSqlError.ErrorType') -> None: ... + def type(self) -> 'QSqlError.ErrorType': ... + def setDatabaseText(self, databaseText: str) -> None: ... + def databaseText(self) -> str: ... + def setDriverText(self, driverText: str) -> None: ... + def driverText(self) -> str: ... + + +class QSqlField(sip.simplewrapper): + + class RequiredStatus(int): ... + Unknown = ... # type: 'QSqlField.RequiredStatus' + Optional = ... # type: 'QSqlField.RequiredStatus' + Required = ... # type: 'QSqlField.RequiredStatus' + + @typing.overload + def __init__(self, fieldName: str = ..., type: QtCore.QVariant.Type = ...) -> None: ... + @typing.overload + def __init__(self, fieldName: str, type: QtCore.QVariant.Type, tableName: str) -> None: ... + @typing.overload + def __init__(self, other: 'QSqlField') -> None: ... + + def tableName(self) -> str: ... + def setTableName(self, tableName: str) -> None: ... + def isValid(self) -> bool: ... + def isGenerated(self) -> bool: ... + def typeID(self) -> int: ... + def defaultValue(self) -> typing.Any: ... + def precision(self) -> int: ... + def length(self) -> int: ... + def requiredStatus(self) -> 'QSqlField.RequiredStatus': ... + def setAutoValue(self, autoVal: bool) -> None: ... + def setGenerated(self, gen: bool) -> None: ... + def setSqlType(self, type: int) -> None: ... + def setDefaultValue(self, value: typing.Any) -> None: ... + def setPrecision(self, precision: int) -> None: ... + def setLength(self, fieldLength: int) -> None: ... + def setRequired(self, required: bool) -> None: ... + def setRequiredStatus(self, status: 'QSqlField.RequiredStatus') -> None: ... + def setType(self, type: QtCore.QVariant.Type) -> None: ... + def isAutoValue(self) -> bool: ... + def type(self) -> QtCore.QVariant.Type: ... + def clear(self) -> None: ... + def isReadOnly(self) -> bool: ... + def setReadOnly(self, readOnly: bool) -> None: ... + def isNull(self) -> bool: ... + def name(self) -> str: ... + def setName(self, name: str) -> None: ... + def value(self) -> typing.Any: ... + def setValue(self, value: typing.Any) -> None: ... + + +class QSqlRecord(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QSqlRecord') -> None: ... + + def keyValues(self, keyFields: 'QSqlRecord') -> 'QSqlRecord': ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def clearValues(self) -> None: ... + def clear(self) -> None: ... + def contains(self, name: str) -> bool: ... + def isEmpty(self) -> bool: ... + def remove(self, pos: int) -> None: ... + def insert(self, pos: int, field: QSqlField) -> None: ... + def replace(self, pos: int, field: QSqlField) -> None: ... + def append(self, field: QSqlField) -> None: ... + @typing.overload + def setGenerated(self, name: str, generated: bool) -> None: ... + @typing.overload + def setGenerated(self, i: int, generated: bool) -> None: ... + @typing.overload + def isGenerated(self, i: int) -> bool: ... + @typing.overload + def isGenerated(self, name: str) -> bool: ... + @typing.overload + def field(self, i: int) -> QSqlField: ... + @typing.overload + def field(self, name: str) -> QSqlField: ... + def fieldName(self, i: int) -> str: ... + def indexOf(self, name: str) -> int: ... + @typing.overload + def isNull(self, i: int) -> bool: ... + @typing.overload + def isNull(self, name: str) -> bool: ... + @typing.overload + def setNull(self, i: int) -> None: ... + @typing.overload + def setNull(self, name: str) -> None: ... + @typing.overload + def setValue(self, i: int, val: typing.Any) -> None: ... + @typing.overload + def setValue(self, name: str, val: typing.Any) -> None: ... + @typing.overload + def value(self, i: int) -> typing.Any: ... + @typing.overload + def value(self, name: str) -> typing.Any: ... + + +class QSqlIndex(QSqlRecord): + + @typing.overload + def __init__(self, cursorName: str = ..., name: str = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QSqlIndex') -> None: ... + + def setDescending(self, i: int, desc: bool) -> None: ... + def isDescending(self, i: int) -> bool: ... + @typing.overload + def append(self, field: QSqlField) -> None: ... + @typing.overload + def append(self, field: QSqlField, desc: bool) -> None: ... + def name(self) -> str: ... + def setName(self, name: str) -> None: ... + def cursorName(self) -> str: ... + def setCursorName(self, cursorName: str) -> None: ... + + +class QSqlQuery(sip.simplewrapper): + + class BatchExecutionMode(int): ... + ValuesAsRows = ... # type: 'QSqlQuery.BatchExecutionMode' + ValuesAsColumns = ... # type: 'QSqlQuery.BatchExecutionMode' + + @typing.overload + def __init__(self, r: 'QSqlResult') -> None: ... + @typing.overload + def __init__(self, query: str = ..., db: QSqlDatabase = ...) -> None: ... + @typing.overload + def __init__(self, db: QSqlDatabase) -> None: ... + @typing.overload + def __init__(self, other: 'QSqlQuery') -> None: ... + + def nextResult(self) -> bool: ... + def finish(self) -> None: ... + def numericalPrecisionPolicy(self) -> 'QSql.NumericalPrecisionPolicy': ... + def setNumericalPrecisionPolicy(self, precisionPolicy: 'QSql.NumericalPrecisionPolicy') -> None: ... + def lastInsertId(self) -> typing.Any: ... + def executedQuery(self) -> str: ... + def boundValues(self) -> typing.Dict[str, typing.Any]: ... + @typing.overload + def boundValue(self, placeholder: str) -> typing.Any: ... + @typing.overload + def boundValue(self, pos: int) -> typing.Any: ... + def addBindValue(self, val: typing.Any, type: typing.Union['QSql.ParamType', 'QSql.ParamTypeFlag'] = ...) -> None: ... + @typing.overload + def bindValue(self, placeholder: str, val: typing.Any, type: typing.Union['QSql.ParamType', 'QSql.ParamTypeFlag'] = ...) -> None: ... + @typing.overload + def bindValue(self, pos: int, val: typing.Any, type: typing.Union['QSql.ParamType', 'QSql.ParamTypeFlag'] = ...) -> None: ... + def prepare(self, query: str) -> bool: ... + def execBatch(self, mode: 'QSqlQuery.BatchExecutionMode' = ...) -> bool: ... + def clear(self) -> None: ... + def last(self) -> bool: ... + def first(self) -> bool: ... + def previous(self) -> bool: ... + def next(self) -> bool: ... + def seek(self, index: int, relative: bool = ...) -> bool: ... + @typing.overload + def value(self, i: int) -> typing.Any: ... + @typing.overload + def value(self, name: str) -> typing.Any: ... + @typing.overload + def exec(self, query: str) -> bool: ... + @typing.overload + def exec(self) -> bool: ... + @typing.overload + def exec_(self, query: str) -> bool: ... + @typing.overload + def exec_(self) -> bool: ... + def setForwardOnly(self, forward: bool) -> None: ... + def record(self) -> QSqlRecord: ... + def isForwardOnly(self) -> bool: ... + def result(self) -> 'QSqlResult': ... + def driver(self) -> QSqlDriver: ... + def size(self) -> int: ... + def isSelect(self) -> bool: ... + def lastError(self) -> QSqlError: ... + def numRowsAffected(self) -> int: ... + def lastQuery(self) -> str: ... + def at(self) -> int: ... + @typing.overload + def isNull(self, field: int) -> bool: ... + @typing.overload + def isNull(self, name: str) -> bool: ... + def isActive(self) -> bool: ... + def isValid(self) -> bool: ... + + +class QSqlQueryModel(QtCore.QAbstractTableModel): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def roleNames(self) -> typing.Dict[int, QtCore.QByteArray]: ... + def endRemoveColumns(self) -> None: ... + def beginRemoveColumns(self, parent: QtCore.QModelIndex, first: int, last: int) -> None: ... + def endInsertColumns(self) -> None: ... + def beginInsertColumns(self, parent: QtCore.QModelIndex, first: int, last: int) -> None: ... + def endRemoveRows(self) -> None: ... + def beginRemoveRows(self, parent: QtCore.QModelIndex, first: int, last: int) -> None: ... + def endInsertRows(self) -> None: ... + def beginInsertRows(self, parent: QtCore.QModelIndex, first: int, last: int) -> None: ... + def endResetModel(self) -> None: ... + def beginResetModel(self) -> None: ... + def setLastError(self, error: QSqlError) -> None: ... + def indexInQuery(self, item: QtCore.QModelIndex) -> QtCore.QModelIndex: ... + def queryChange(self) -> None: ... + def canFetchMore(self, parent: QtCore.QModelIndex = ...) -> bool: ... + def fetchMore(self, parent: QtCore.QModelIndex = ...) -> None: ... + def lastError(self) -> QSqlError: ... + def clear(self) -> None: ... + def query(self) -> QSqlQuery: ... + @typing.overload + def setQuery(self, query: QSqlQuery) -> None: ... + @typing.overload + def setQuery(self, query: str, db: QSqlDatabase = ...) -> None: ... + def removeColumns(self, column: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ... + def insertColumns(self, column: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ... + def setHeaderData(self, section: int, orientation: QtCore.Qt.Orientation, value: typing.Any, role: int = ...) -> bool: ... + def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int = ...) -> typing.Any: ... + def data(self, item: QtCore.QModelIndex, role: int = ...) -> typing.Any: ... + @typing.overload + def record(self, row: int) -> QSqlRecord: ... + @typing.overload + def record(self) -> QSqlRecord: ... + def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + + +class QSqlRelationalDelegate(QtWidgets.QItemDelegate): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setEditorData(self, editor: QtWidgets.QWidget, index: QtCore.QModelIndex) -> None: ... + def setModelData(self, editor: QtWidgets.QWidget, model: QtCore.QAbstractItemModel, index: QtCore.QModelIndex) -> None: ... + def createEditor(self, parent: QtWidgets.QWidget, option: QtWidgets.QStyleOptionViewItem, index: QtCore.QModelIndex) -> QtWidgets.QWidget: ... + + +class QSqlRelation(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, aTableName: str, indexCol: str, displayCol: str) -> None: ... + @typing.overload + def __init__(self, a0: 'QSqlRelation') -> None: ... + + def swap(self, other: 'QSqlRelation') -> None: ... + def isValid(self) -> bool: ... + def displayColumn(self) -> str: ... + def indexColumn(self) -> str: ... + def tableName(self) -> str: ... + + +class QSqlTableModel(QSqlQueryModel): + + class EditStrategy(int): ... + OnFieldChange = ... # type: 'QSqlTableModel.EditStrategy' + OnRowChange = ... # type: 'QSqlTableModel.EditStrategy' + OnManualSubmit = ... # type: 'QSqlTableModel.EditStrategy' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ..., db: QSqlDatabase = ...) -> None: ... + + def primaryValues(self, row: int) -> QSqlRecord: ... + @typing.overload + def record(self) -> QSqlRecord: ... + @typing.overload + def record(self, row: int) -> QSqlRecord: ... + def selectRow(self, row: int) -> bool: ... + def indexInQuery(self, item: QtCore.QModelIndex) -> QtCore.QModelIndex: ... + def setQuery(self, query: QSqlQuery) -> None: ... + def setPrimaryKey(self, key: QSqlIndex) -> None: ... + def selectStatement(self) -> str: ... + def orderByClause(self) -> str: ... + def deleteRowFromTable(self, row: int) -> bool: ... + def insertRowIntoTable(self, values: QSqlRecord) -> bool: ... + def updateRowInTable(self, row: int, values: QSqlRecord) -> bool: ... + def beforeDelete(self, row: int) -> None: ... + def beforeUpdate(self, row: int, record: QSqlRecord) -> None: ... + def beforeInsert(self, record: QSqlRecord) -> None: ... + def primeInsert(self, row: int, record: QSqlRecord) -> None: ... + def revertAll(self) -> None: ... + def submitAll(self) -> bool: ... + def revert(self) -> None: ... + def submit(self) -> bool: ... + def revertRow(self, row: int) -> None: ... + def setRecord(self, row: int, record: QSqlRecord) -> bool: ... + def insertRecord(self, row: int, record: QSqlRecord) -> bool: ... + def insertRows(self, row: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ... + def removeRows(self, row: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ... + def removeColumns(self, column: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ... + def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + def setFilter(self, filter: str) -> None: ... + def filter(self) -> str: ... + def setSort(self, column: int, order: QtCore.Qt.SortOrder) -> None: ... + def sort(self, column: int, order: QtCore.Qt.SortOrder) -> None: ... + def fieldIndex(self, fieldName: str) -> int: ... + def database(self) -> QSqlDatabase: ... + def primaryKey(self) -> QSqlIndex: ... + def editStrategy(self) -> 'QSqlTableModel.EditStrategy': ... + def setEditStrategy(self, strategy: 'QSqlTableModel.EditStrategy') -> None: ... + def clear(self) -> None: ... + @typing.overload + def isDirty(self, index: QtCore.QModelIndex) -> bool: ... + @typing.overload + def isDirty(self) -> bool: ... + def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int = ...) -> typing.Any: ... + def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ... + def data(self, idx: QtCore.QModelIndex, role: int = ...) -> typing.Any: ... + def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlags: ... + def tableName(self) -> str: ... + def setTable(self, tableName: str) -> None: ... + def select(self) -> bool: ... + + +class QSqlRelationalTableModel(QSqlTableModel): + + class JoinMode(int): ... + InnerJoin = ... # type: 'QSqlRelationalTableModel.JoinMode' + LeftJoin = ... # type: 'QSqlRelationalTableModel.JoinMode' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ..., db: QSqlDatabase = ...) -> None: ... + + def setJoinMode(self, joinMode: 'QSqlRelationalTableModel.JoinMode') -> None: ... + def insertRowIntoTable(self, values: QSqlRecord) -> bool: ... + def orderByClause(self) -> str: ... + def updateRowInTable(self, row: int, values: QSqlRecord) -> bool: ... + def selectStatement(self) -> str: ... + def removeColumns(self, column: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ... + def revertRow(self, row: int) -> None: ... + def relationModel(self, column: int) -> QSqlTableModel: ... + def relation(self, column: int) -> QSqlRelation: ... + def setRelation(self, column: int, relation: QSqlRelation) -> None: ... + def setTable(self, tableName: str) -> None: ... + def select(self) -> bool: ... + def clear(self) -> None: ... + def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ... + def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ... + + +class QSqlResult(sip.wrapper): + + class BindingSyntax(int): ... + PositionalBinding = ... # type: 'QSqlResult.BindingSyntax' + NamedBinding = ... # type: 'QSqlResult.BindingSyntax' + + def __init__(self, db: QSqlDriver) -> None: ... + + def lastInsertId(self) -> typing.Any: ... + def record(self) -> QSqlRecord: ... + def numRowsAffected(self) -> int: ... + def size(self) -> int: ... + def fetchLast(self) -> bool: ... + def fetchFirst(self) -> bool: ... + def fetchPrevious(self) -> bool: ... + def fetchNext(self) -> bool: ... + def fetch(self, i: int) -> bool: ... + def reset(self, sqlquery: str) -> bool: ... + def isNull(self, i: int) -> bool: ... + def data(self, i: int) -> typing.Any: ... + def bindingSyntax(self) -> 'QSqlResult.BindingSyntax': ... + def hasOutValues(self) -> bool: ... + def clear(self) -> None: ... + def boundValueName(self, pos: int) -> str: ... + def executedQuery(self) -> str: ... + def boundValues(self) -> typing.List[typing.Any]: ... + def boundValueCount(self) -> int: ... + @typing.overload + def bindValueType(self, placeholder: str) -> 'QSql.ParamType': ... + @typing.overload + def bindValueType(self, pos: int) -> 'QSql.ParamType': ... + @typing.overload + def boundValue(self, placeholder: str) -> typing.Any: ... + @typing.overload + def boundValue(self, pos: int) -> typing.Any: ... + def addBindValue(self, val: typing.Any, type: typing.Union['QSql.ParamType', 'QSql.ParamTypeFlag']) -> None: ... + @typing.overload + def bindValue(self, pos: int, val: typing.Any, type: typing.Union['QSql.ParamType', 'QSql.ParamTypeFlag']) -> None: ... + @typing.overload + def bindValue(self, placeholder: str, val: typing.Any, type: typing.Union['QSql.ParamType', 'QSql.ParamTypeFlag']) -> None: ... + def savePrepare(self, sqlquery: str) -> bool: ... + def prepare(self, query: str) -> bool: ... + def exec(self) -> bool: ... + def exec_(self) -> bool: ... + def setForwardOnly(self, forward: bool) -> None: ... + def setSelect(self, s: bool) -> None: ... + def setQuery(self, query: str) -> None: ... + def setLastError(self, e: QSqlError) -> None: ... + def setActive(self, a: bool) -> None: ... + def setAt(self, at: int) -> None: ... + def driver(self) -> QSqlDriver: ... + def isForwardOnly(self) -> bool: ... + def isSelect(self) -> bool: ... + def isActive(self) -> bool: ... + def isValid(self) -> bool: ... + def lastError(self) -> QSqlError: ... + def lastQuery(self) -> str: ... + def at(self) -> int: ... + def handle(self) -> typing.Any: ... + + +class QSql(sip.simplewrapper): + + class NumericalPrecisionPolicy(int): ... + LowPrecisionInt32 = ... # type: 'QSql.NumericalPrecisionPolicy' + LowPrecisionInt64 = ... # type: 'QSql.NumericalPrecisionPolicy' + LowPrecisionDouble = ... # type: 'QSql.NumericalPrecisionPolicy' + HighPrecision = ... # type: 'QSql.NumericalPrecisionPolicy' + + class TableType(int): ... + Tables = ... # type: 'QSql.TableType' + SystemTables = ... # type: 'QSql.TableType' + Views = ... # type: 'QSql.TableType' + AllTables = ... # type: 'QSql.TableType' + + class ParamTypeFlag(int): ... + In = ... # type: 'QSql.ParamTypeFlag' + Out = ... # type: 'QSql.ParamTypeFlag' + InOut = ... # type: 'QSql.ParamTypeFlag' + Binary = ... # type: 'QSql.ParamTypeFlag' + + class Location(int): ... + BeforeFirstRow = ... # type: 'QSql.Location' + AfterLastRow = ... # type: 'QSql.Location' + + class ParamType(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSql.ParamType', 'QSql.ParamTypeFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSql.ParamType') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSql.ParamType': ... + def __int__(self) -> int: ... diff --git a/tools/stubs/PyQt5/QtSvg.pyi b/tools/stubs/PyQt5/QtSvg.pyi new file mode 100644 index 000000000..96acc803a --- /dev/null +++ b/tools/stubs/PyQt5/QtSvg.pyi @@ -0,0 +1,143 @@ +# The PEP 484 type hints stub file for the QtSvg module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtWidgets +from PyQt5 import QtGui +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + +# Convenient aliases for complicated OpenGL types. +PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QGraphicsSvgItem(QtWidgets.QGraphicsObject): + + @typing.overload + def __init__(self, parent: typing.Optional[QtWidgets.QGraphicsItem] = ...) -> None: ... + @typing.overload + def __init__(self, fileName: str, parent: typing.Optional[QtWidgets.QGraphicsItem] = ...) -> None: ... + + def type(self) -> int: ... + def paint(self, painter: QtGui.QPainter, option: QtWidgets.QStyleOptionGraphicsItem, widget: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + def boundingRect(self) -> QtCore.QRectF: ... + def maximumCacheSize(self) -> QtCore.QSize: ... + def setMaximumCacheSize(self, size: QtCore.QSize) -> None: ... + def elementId(self) -> str: ... + def setElementId(self, id: str) -> None: ... + def renderer(self) -> 'QSvgRenderer': ... + def setSharedRenderer(self, renderer: 'QSvgRenderer') -> None: ... + + +class QSvgGenerator(QtGui.QPaintDevice): + + def __init__(self) -> None: ... + + def metric(self, metric: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ... + def paintEngine(self) -> QtGui.QPaintEngine: ... + @typing.overload + def setViewBox(self, viewBox: QtCore.QRect) -> None: ... + @typing.overload + def setViewBox(self, viewBox: QtCore.QRectF) -> None: ... + def viewBoxF(self) -> QtCore.QRectF: ... + def viewBox(self) -> QtCore.QRect: ... + def setDescription(self, description: str) -> None: ... + def description(self) -> str: ... + def setTitle(self, title: str) -> None: ... + def title(self) -> str: ... + def setResolution(self, resolution: int) -> None: ... + def resolution(self) -> int: ... + def setOutputDevice(self, outputDevice: QtCore.QIODevice) -> None: ... + def outputDevice(self) -> QtCore.QIODevice: ... + def setFileName(self, fileName: str) -> None: ... + def fileName(self) -> str: ... + def setSize(self, size: QtCore.QSize) -> None: ... + def size(self) -> QtCore.QSize: ... + + +class QSvgRenderer(QtCore.QObject): + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, filename: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, contents: typing.Union[QtCore.QByteArray, bytes, bytearray], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, contents: QtCore.QXmlStreamReader, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def repaintNeeded(self) -> None: ... + @typing.overload + def render(self, p: QtGui.QPainter) -> None: ... + @typing.overload + def render(self, p: QtGui.QPainter, bounds: QtCore.QRectF) -> None: ... + @typing.overload + def render(self, painter: QtGui.QPainter, elementId: str, bounds: QtCore.QRectF = ...) -> None: ... + @typing.overload + def load(self, filename: str) -> bool: ... + @typing.overload + def load(self, contents: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + @typing.overload + def load(self, contents: QtCore.QXmlStreamReader) -> bool: ... + def animationDuration(self) -> int: ... + def setCurrentFrame(self, a0: int) -> None: ... + def currentFrame(self) -> int: ... + def setFramesPerSecond(self, num: int) -> None: ... + def framesPerSecond(self) -> int: ... + def boundsOnElement(self, id: str) -> QtCore.QRectF: ... + def animated(self) -> bool: ... + @typing.overload + def setViewBox(self, viewbox: QtCore.QRect) -> None: ... + @typing.overload + def setViewBox(self, viewbox: QtCore.QRectF) -> None: ... + def viewBoxF(self) -> QtCore.QRectF: ... + def viewBox(self) -> QtCore.QRect: ... + def elementExists(self, id: str) -> bool: ... + def defaultSize(self) -> QtCore.QSize: ... + def isValid(self) -> bool: ... + + +class QSvgWidget(QtWidgets.QWidget): + + @typing.overload + def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, file: str, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... + + def paintEvent(self, event: QtGui.QPaintEvent) -> None: ... + @typing.overload + def load(self, file: str) -> None: ... + @typing.overload + def load(self, contents: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + def renderer(self) -> QSvgRenderer: ... diff --git a/tools/stubs/PyQt5/QtTest.pyi b/tools/stubs/PyQt5/QtTest.pyi new file mode 100644 index 000000000..3f394b47f --- /dev/null +++ b/tools/stubs/PyQt5/QtTest.pyi @@ -0,0 +1,169 @@ +# The PEP 484 type hints stub file for the QtTest module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtWidgets +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + +# Convenient aliases for complicated OpenGL types. +PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QAbstractItemModelTester(QtCore.QObject): + + class FailureReportingMode(int): ... + QtTest = ... # type: 'QAbstractItemModelTester.FailureReportingMode' + Warning = ... # type: 'QAbstractItemModelTester.FailureReportingMode' + Fatal = ... # type: 'QAbstractItemModelTester.FailureReportingMode' + + @typing.overload + def __init__(self, model: QtCore.QAbstractItemModel, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, model: QtCore.QAbstractItemModel, mode: 'QAbstractItemModelTester.FailureReportingMode', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def failureReportingMode(self) -> 'QAbstractItemModelTester.FailureReportingMode': ... + def model(self) -> QtCore.QAbstractItemModel: ... + + +class QSignalSpy(QtCore.QObject): + + def __init__(self, signal: pyqtBoundSignal) -> None: ... + + def __delitem__(self, i: int) -> None: ... + def __setitem__(self, i: int, value: typing.Iterable[typing.Any]) -> None: ... + def __getitem__(self, i: int) -> typing.List[typing.Any]: ... + def __len__(self) -> int: ... + def wait(self, timeout: int = ...) -> bool: ... + def signal(self) -> QtCore.QByteArray: ... + def isValid(self) -> bool: ... + + +class QTest(sip.simplewrapper): + + class KeyAction(int): ... + Press = ... # type: 'QTest.KeyAction' + Release = ... # type: 'QTest.KeyAction' + Click = ... # type: 'QTest.KeyAction' + Shortcut = ... # type: 'QTest.KeyAction' + + class QTouchEventSequence(sip.simplewrapper): + + def __init__(self, a0: 'QTest.QTouchEventSequence') -> None: ... + + def commit(self, processEvents: bool = ...) -> None: ... + def stationary(self, touchId: int) -> 'QTest.QTouchEventSequence': ... + @typing.overload + def release(self, touchId: int, pt: QtCore.QPoint, window: typing.Optional[QtGui.QWindow] = ...) -> 'QTest.QTouchEventSequence': ... + @typing.overload + def release(self, touchId: int, pt: QtCore.QPoint, widget: QtWidgets.QWidget) -> 'QTest.QTouchEventSequence': ... + @typing.overload + def move(self, touchId: int, pt: QtCore.QPoint, window: typing.Optional[QtGui.QWindow] = ...) -> 'QTest.QTouchEventSequence': ... + @typing.overload + def move(self, touchId: int, pt: QtCore.QPoint, widget: QtWidgets.QWidget) -> 'QTest.QTouchEventSequence': ... + @typing.overload + def press(self, touchId: int, pt: QtCore.QPoint, window: typing.Optional[QtGui.QWindow] = ...) -> 'QTest.QTouchEventSequence': ... + @typing.overload + def press(self, touchId: int, pt: QtCore.QPoint, widget: QtWidgets.QWidget) -> 'QTest.QTouchEventSequence': ... + + @typing.overload + def touchEvent(self, widget: QtWidgets.QWidget, device: QtGui.QTouchDevice) -> 'QTest.QTouchEventSequence': ... + @typing.overload + def touchEvent(self, window: QtGui.QWindow, device: QtGui.QTouchDevice) -> 'QTest.QTouchEventSequence': ... + @typing.overload + def qWaitForWindowExposed(self, window: QtGui.QWindow, timeout: int = ...) -> bool: ... + @typing.overload + def qWaitForWindowExposed(self, widget: QtWidgets.QWidget, timeout: int = ...) -> bool: ... + @typing.overload + def qWaitForWindowActive(self, window: QtGui.QWindow, timeout: int = ...) -> bool: ... + @typing.overload + def qWaitForWindowActive(self, widget: QtWidgets.QWidget, timeout: int = ...) -> bool: ... + def qWait(self, ms: int) -> None: ... + @typing.overload + def mouseRelease(self, widget: QtWidgets.QWidget, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def mouseRelease(self, window: QtGui.QWindow, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def mousePress(self, widget: QtWidgets.QWidget, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def mousePress(self, window: QtGui.QWindow, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def mouseMove(self, widget: QtWidgets.QWidget, pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def mouseMove(self, window: QtGui.QWindow, pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def mouseDClick(self, widget: QtWidgets.QWidget, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def mouseDClick(self, window: QtGui.QWindow, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def mouseClick(self, widget: QtWidgets.QWidget, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def mouseClick(self, window: QtGui.QWindow, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def keySequence(self, widget: QtWidgets.QWidget, keySequence: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]) -> None: ... + @typing.overload + def keySequence(self, window: QtGui.QWindow, keySequence: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]) -> None: ... + @typing.overload + def keyRelease(self, widget: QtWidgets.QWidget, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + @typing.overload + def keyRelease(self, widget: QtWidgets.QWidget, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + @typing.overload + def keyRelease(self, window: QtGui.QWindow, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + @typing.overload + def keyRelease(self, window: QtGui.QWindow, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + @typing.overload + def keyPress(self, widget: QtWidgets.QWidget, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + @typing.overload + def keyPress(self, widget: QtWidgets.QWidget, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + @typing.overload + def keyPress(self, window: QtGui.QWindow, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + @typing.overload + def keyPress(self, window: QtGui.QWindow, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + @typing.overload + def keyEvent(self, action: 'QTest.KeyAction', widget: QtWidgets.QWidget, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + @typing.overload + def keyEvent(self, action: 'QTest.KeyAction', widget: QtWidgets.QWidget, ascii: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + @typing.overload + def keyEvent(self, action: 'QTest.KeyAction', window: QtGui.QWindow, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + @typing.overload + def keyEvent(self, action: 'QTest.KeyAction', window: QtGui.QWindow, ascii: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + def keyClicks(self, widget: QtWidgets.QWidget, sequence: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + @typing.overload + def keyClick(self, widget: QtWidgets.QWidget, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + @typing.overload + def keyClick(self, widget: QtWidgets.QWidget, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + @typing.overload + def keyClick(self, window: QtGui.QWindow, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + @typing.overload + def keyClick(self, window: QtGui.QWindow, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + def qSleep(self, ms: int) -> None: ... diff --git a/tools/stubs/PyQt5/QtWebChannel.pyi b/tools/stubs/PyQt5/QtWebChannel.pyi new file mode 100644 index 000000000..adb3c5f02 --- /dev/null +++ b/tools/stubs/PyQt5/QtWebChannel.pyi @@ -0,0 +1,56 @@ +# The PEP 484 type hints stub file for the QtWebChannel module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + + +class QWebChannel(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def disconnectFrom(self, transport: 'QWebChannelAbstractTransport') -> None: ... + def connectTo(self, transport: 'QWebChannelAbstractTransport') -> None: ... + def blockUpdatesChanged(self, block: bool) -> None: ... + def setBlockUpdates(self, block: bool) -> None: ... + def blockUpdates(self) -> bool: ... + def deregisterObject(self, object: QtCore.QObject) -> None: ... + def registerObject(self, id: str, object: QtCore.QObject) -> None: ... + def registeredObjects(self) -> typing.Dict[str, QtCore.QObject]: ... + def registerObjects(self, objects: typing.Dict[str, QtCore.QObject]) -> None: ... + + +class QWebChannelAbstractTransport(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def messageReceived(self, message: typing.Dict[str, typing.Union[QtCore.QJsonValue, QtCore.QJsonValue.Type, typing.Iterable[QtCore.QJsonValue], bool, int, float, str]], transport: 'QWebChannelAbstractTransport') -> None: ... + def sendMessage(self, message: typing.Dict[str, typing.Union[QtCore.QJsonValue, QtCore.QJsonValue.Type, typing.Iterable[QtCore.QJsonValue], bool, int, float, str]]) -> None: ... diff --git a/tools/stubs/PyQt5/QtWebSockets.pyi b/tools/stubs/PyQt5/QtWebSockets.pyi new file mode 100644 index 000000000..69e070988 --- /dev/null +++ b/tools/stubs/PyQt5/QtWebSockets.pyi @@ -0,0 +1,194 @@ +# The PEP 484 type hints stub file for the QtWebSockets module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtNetwork +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + + +class QMaskGenerator(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def nextMask(self) -> int: ... + def seed(self) -> bool: ... + + +class QWebSocket(QtCore.QObject): + + def __init__(self, origin: str = ..., version: 'QWebSocketProtocol.Version' = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def bytesToWrite(self) -> int: ... + def preSharedKeyAuthenticationRequired(self, authenticator: QtNetwork.QSslPreSharedKeyAuthenticator) -> None: ... + def sslErrors(self, errors: typing.Iterable[QtNetwork.QSslError]) -> None: ... + def bytesWritten(self, bytes: int) -> None: ... + def pong(self, elapsedTime: int, payload: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def binaryMessageReceived(self, message: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def textMessageReceived(self, message: str) -> None: ... + def binaryFrameReceived(self, frame: typing.Union[QtCore.QByteArray, bytes, bytearray], isLastFrame: bool) -> None: ... + def textFrameReceived(self, frame: str, isLastFrame: bool) -> None: ... + def readChannelFinished(self) -> None: ... + def proxyAuthenticationRequired(self, proxy: QtNetwork.QNetworkProxy, pAuthenticator: QtNetwork.QAuthenticator) -> None: ... + def stateChanged(self, state: QtNetwork.QAbstractSocket.SocketState) -> None: ... + def disconnected(self) -> None: ... + def connected(self) -> None: ... + def aboutToClose(self) -> None: ... + def ping(self, payload: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... + @typing.overload + def open(self, url: QtCore.QUrl) -> None: ... + @typing.overload + def open(self, request: QtNetwork.QNetworkRequest) -> None: ... + def close(self, closeCode: 'QWebSocketProtocol.CloseCode' = ..., reason: str = ...) -> None: ... + def request(self) -> QtNetwork.QNetworkRequest: ... + def sslConfiguration(self) -> QtNetwork.QSslConfiguration: ... + def setSslConfiguration(self, sslConfiguration: QtNetwork.QSslConfiguration) -> None: ... + @typing.overload + def ignoreSslErrors(self, errors: typing.Iterable[QtNetwork.QSslError]) -> None: ... + @typing.overload + def ignoreSslErrors(self) -> None: ... + def sendBinaryMessage(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> int: ... + def sendTextMessage(self, message: str) -> int: ... + def closeReason(self) -> str: ... + def closeCode(self) -> 'QWebSocketProtocol.CloseCode': ... + def origin(self) -> str: ... + def requestUrl(self) -> QtCore.QUrl: ... + def resourceName(self) -> str: ... + def version(self) -> 'QWebSocketProtocol.Version': ... + def state(self) -> QtNetwork.QAbstractSocket.SocketState: ... + def setPauseMode(self, pauseMode: typing.Union[QtNetwork.QAbstractSocket.PauseModes, QtNetwork.QAbstractSocket.PauseMode]) -> None: ... + def resume(self) -> None: ... + def setReadBufferSize(self, size: int) -> None: ... + def readBufferSize(self) -> int: ... + def maskGenerator(self) -> QMaskGenerator: ... + def setMaskGenerator(self, maskGenerator: QMaskGenerator) -> None: ... + def setProxy(self, networkProxy: QtNetwork.QNetworkProxy) -> None: ... + def proxy(self) -> QtNetwork.QNetworkProxy: ... + def peerPort(self) -> int: ... + def peerName(self) -> str: ... + def peerAddress(self) -> QtNetwork.QHostAddress: ... + def pauseMode(self) -> QtNetwork.QAbstractSocket.PauseModes: ... + def localPort(self) -> int: ... + def localAddress(self) -> QtNetwork.QHostAddress: ... + def isValid(self) -> bool: ... + def flush(self) -> bool: ... + def errorString(self) -> str: ... + @typing.overload + def error(self) -> QtNetwork.QAbstractSocket.SocketError: ... + @typing.overload + def error(self, error: QtNetwork.QAbstractSocket.SocketError) -> None: ... + def abort(self) -> None: ... + + +class QWebSocketCorsAuthenticator(sip.simplewrapper): + + @typing.overload + def __init__(self, origin: str) -> None: ... + @typing.overload + def __init__(self, other: 'QWebSocketCorsAuthenticator') -> None: ... + + def allowed(self) -> bool: ... + def setAllowed(self, allowed: bool) -> None: ... + def origin(self) -> str: ... + def swap(self, other: 'QWebSocketCorsAuthenticator') -> None: ... + + +class QWebSocketProtocol(sip.simplewrapper): + + class CloseCode(int): ... + CloseCodeNormal = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeGoingAway = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeProtocolError = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeDatatypeNotSupported = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeReserved1004 = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeMissingStatusCode = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeAbnormalDisconnection = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeWrongDatatype = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodePolicyViolated = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeTooMuchData = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeMissingExtension = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeBadOperation = ... # type: 'QWebSocketProtocol.CloseCode' + CloseCodeTlsHandshakeFailed = ... # type: 'QWebSocketProtocol.CloseCode' + + class Version(int): ... + VersionUnknown = ... # type: 'QWebSocketProtocol.Version' + Version0 = ... # type: 'QWebSocketProtocol.Version' + Version4 = ... # type: 'QWebSocketProtocol.Version' + Version5 = ... # type: 'QWebSocketProtocol.Version' + Version6 = ... # type: 'QWebSocketProtocol.Version' + Version7 = ... # type: 'QWebSocketProtocol.Version' + Version8 = ... # type: 'QWebSocketProtocol.Version' + Version13 = ... # type: 'QWebSocketProtocol.Version' + VersionLatest = ... # type: 'QWebSocketProtocol.Version' + + +class QWebSocketServer(QtCore.QObject): + + class SslMode(int): ... + SecureMode = ... # type: 'QWebSocketServer.SslMode' + NonSecureMode = ... # type: 'QWebSocketServer.SslMode' + + def __init__(self, serverName: str, secureMode: 'QWebSocketServer.SslMode', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def nativeDescriptor(self) -> sip.voidptr: ... + def setNativeDescriptor(self, descriptor: sip.voidptr) -> bool: ... + def preSharedKeyAuthenticationRequired(self, authenticator: QtNetwork.QSslPreSharedKeyAuthenticator) -> None: ... + def closed(self) -> None: ... + def sslErrors(self, errors: typing.Iterable[QtNetwork.QSslError]) -> None: ... + def peerVerifyError(self, error: QtNetwork.QSslError) -> None: ... + def newConnection(self) -> None: ... + def originAuthenticationRequired(self, pAuthenticator: QWebSocketCorsAuthenticator) -> None: ... + def serverError(self, closeCode: QWebSocketProtocol.CloseCode) -> None: ... + def acceptError(self, socketError: QtNetwork.QAbstractSocket.SocketError) -> None: ... + def handleConnection(self, socket: QtNetwork.QTcpSocket) -> None: ... + def serverUrl(self) -> QtCore.QUrl: ... + def supportedVersions(self) -> typing.List[QWebSocketProtocol.Version]: ... + def sslConfiguration(self) -> QtNetwork.QSslConfiguration: ... + def setSslConfiguration(self, sslConfiguration: QtNetwork.QSslConfiguration) -> None: ... + def proxy(self) -> QtNetwork.QNetworkProxy: ... + def setProxy(self, networkProxy: QtNetwork.QNetworkProxy) -> None: ... + def serverName(self) -> str: ... + def setServerName(self, serverName: str) -> None: ... + def resumeAccepting(self) -> None: ... + def pauseAccepting(self) -> None: ... + def errorString(self) -> str: ... + def error(self) -> QWebSocketProtocol.CloseCode: ... + def nextPendingConnection(self) -> QWebSocket: ... + def hasPendingConnections(self) -> bool: ... + def socketDescriptor(self) -> int: ... + def setSocketDescriptor(self, socketDescriptor: int) -> bool: ... + def secureMode(self) -> 'QWebSocketServer.SslMode': ... + def serverAddress(self) -> QtNetwork.QHostAddress: ... + def serverPort(self) -> int: ... + def maxPendingConnections(self) -> int: ... + def setMaxPendingConnections(self, numConnections: int) -> None: ... + def isListening(self) -> bool: ... + def close(self) -> None: ... + def listen(self, address: typing.Union[QtNetwork.QHostAddress, QtNetwork.QHostAddress.SpecialAddress] = ..., port: int = ...) -> bool: ... diff --git a/tools/stubs/PyQt5/QtWidgets.pyi b/tools/stubs/PyQt5/QtWidgets.pyi new file mode 100644 index 000000000..47f97ce8d --- /dev/null +++ b/tools/stubs/PyQt5/QtWidgets.pyi @@ -0,0 +1,9796 @@ +# The PEP 484 type hints stub file for the QtWidgets module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtGui +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + +# Convenient aliases for complicated OpenGL types. +PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float], + sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], sip.Buffer, int, None] + + +class QWidget(QtCore.QObject, QtGui.QPaintDevice): + + class RenderFlag(int): ... + DrawWindowBackground = ... # type: 'QWidget.RenderFlag' + DrawChildren = ... # type: 'QWidget.RenderFlag' + IgnoreMask = ... # type: 'QWidget.RenderFlag' + + class RenderFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QWidget.RenderFlags', 'QWidget.RenderFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QWidget.RenderFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QWidget.RenderFlags': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional['QWidget'] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def setWindowFlag(self, a0: QtCore.Qt.WindowType, on: bool = ...) -> None: ... + def hasTabletTracking(self) -> bool: ... + def setTabletTracking(self, enable: bool) -> None: ... + def windowIconTextChanged(self, iconText: str) -> None: ... + def windowIconChanged(self, icon: QtGui.QIcon) -> None: ... + def windowTitleChanged(self, title: str) -> None: ... + def toolTipDuration(self) -> int: ... + def setToolTipDuration(self, msec: int) -> None: ... + def initPainter(self, painter: QtGui.QPainter) -> None: ... + def sharedPainter(self) -> QtGui.QPainter: ... + def nativeEvent(self, eventType: typing.Union[QtCore.QByteArray, bytes, bytearray], message: sip.voidptr) -> typing.Tuple[bool, int]: ... + def windowHandle(self) -> QtGui.QWindow: ... + @staticmethod + def createWindowContainer(window: QtGui.QWindow, parent: typing.Optional['QWidget'] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> 'QWidget': ... + def grab(self, rectangle: QtCore.QRect = ...) -> QtGui.QPixmap: ... + def hasHeightForWidth(self) -> bool: ... + def setInputMethodHints(self, hints: typing.Union[QtCore.Qt.InputMethodHints, QtCore.Qt.InputMethodHint]) -> None: ... + def inputMethodHints(self) -> QtCore.Qt.InputMethodHints: ... + def previousInFocusChain(self) -> 'QWidget': ... + def contentsMargins(self) -> QtCore.QMargins: ... + def ungrabGesture(self, type: QtCore.Qt.GestureType) -> None: ... + def grabGesture(self, type: QtCore.Qt.GestureType, flags: typing.Union[QtCore.Qt.GestureFlags, QtCore.Qt.GestureFlag] = ...) -> None: ... + def setGraphicsEffect(self, effect: 'QGraphicsEffect') -> None: ... + def graphicsEffect(self) -> 'QGraphicsEffect': ... + def graphicsProxyWidget(self) -> 'QGraphicsProxyWidget': ... + def windowFilePath(self) -> str: ... + def setWindowFilePath(self, filePath: str) -> None: ... + def nativeParentWidget(self) -> 'QWidget': ... + def effectiveWinId(self) -> sip.voidptr: ... + def unsetLocale(self) -> None: ... + def locale(self) -> QtCore.QLocale: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + @typing.overload + def render(self, target: QtGui.QPaintDevice, targetOffset: QtCore.QPoint = ..., sourceRegion: QtGui.QRegion = ..., flags: typing.Union['QWidget.RenderFlags', 'QWidget.RenderFlag'] = ...) -> None: ... + @typing.overload + def render(self, painter: QtGui.QPainter, targetOffset: QtCore.QPoint = ..., sourceRegion: QtGui.QRegion = ..., flags: typing.Union['QWidget.RenderFlags', 'QWidget.RenderFlag'] = ...) -> None: ... + def restoreGeometry(self, geometry: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + def saveGeometry(self) -> QtCore.QByteArray: ... + def setShortcutAutoRepeat(self, id: int, enabled: bool = ...) -> None: ... + def styleSheet(self) -> str: ... + def setStyleSheet(self, styleSheet: str) -> None: ... + def setAutoFillBackground(self, enabled: bool) -> None: ... + def autoFillBackground(self) -> bool: ... + def setWindowModality(self, windowModality: QtCore.Qt.WindowModality) -> None: ... + def windowModality(self) -> QtCore.Qt.WindowModality: ... + def testAttribute(self, attribute: QtCore.Qt.WidgetAttribute) -> bool: ... + def parentWidget(self) -> 'QWidget': ... + def height(self) -> int: ... + def width(self) -> int: ... + def size(self) -> QtCore.QSize: ... + def geometry(self) -> QtCore.QRect: ... + def rect(self) -> QtCore.QRect: ... + def isHidden(self) -> bool: ... + def isVisible(self) -> bool: ... + def updatesEnabled(self) -> bool: ... + def underMouse(self) -> bool: ... + def hasMouseTracking(self) -> bool: ... + def setMouseTracking(self, enable: bool) -> None: ... + def fontInfo(self) -> QtGui.QFontInfo: ... + def fontMetrics(self) -> QtGui.QFontMetrics: ... + def font(self) -> QtGui.QFont: ... + def maximumHeight(self) -> int: ... + def maximumWidth(self) -> int: ... + def minimumHeight(self) -> int: ... + def minimumWidth(self) -> int: ... + def isModal(self) -> bool: ... + def isEnabled(self) -> bool: ... + def isWindow(self) -> bool: ... + def winId(self) -> sip.voidptr: ... + def windowFlags(self) -> QtCore.Qt.WindowFlags: ... + def windowType(self) -> QtCore.Qt.WindowType: ... + def focusPreviousChild(self) -> bool: ... + def focusNextChild(self) -> bool: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def destroy(self, destroyWindow: bool = ..., destroySubWindows: bool = ...) -> None: ... + def create(self, window: sip.voidptr = ..., initializeWindow: bool = ..., destroyOldWindow: bool = ...) -> None: ... + def updateMicroFocus(self) -> None: ... + def inputMethodQuery(self, a0: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + def inputMethodEvent(self, a0: QtGui.QInputMethodEvent) -> None: ... + def metric(self, a0: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ... + def changeEvent(self, a0: QtCore.QEvent) -> None: ... + def hideEvent(self, a0: QtGui.QHideEvent) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent) -> None: ... + def dropEvent(self, a0: QtGui.QDropEvent) -> None: ... + def dragLeaveEvent(self, a0: QtGui.QDragLeaveEvent) -> None: ... + def dragMoveEvent(self, a0: QtGui.QDragMoveEvent) -> None: ... + def dragEnterEvent(self, a0: QtGui.QDragEnterEvent) -> None: ... + def actionEvent(self, a0: QtGui.QActionEvent) -> None: ... + def tabletEvent(self, a0: QtGui.QTabletEvent) -> None: ... + def contextMenuEvent(self, a0: QtGui.QContextMenuEvent) -> None: ... + def closeEvent(self, a0: QtGui.QCloseEvent) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def moveEvent(self, a0: QtGui.QMoveEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def leaveEvent(self, a0: QtCore.QEvent) -> None: ... + def enterEvent(self, a0: QtCore.QEvent) -> None: ... + def focusOutEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def keyReleaseEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def wheelEvent(self, a0: QtGui.QWheelEvent) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def customContextMenuRequested(self, pos: QtCore.QPoint) -> None: ... + def isAncestorOf(self, child: 'QWidget') -> bool: ... + def ensurePolished(self) -> None: ... + def paintEngine(self) -> QtGui.QPaintEngine: ... + def setAttribute(self, attribute: QtCore.Qt.WidgetAttribute, on: bool = ...) -> None: ... + @typing.overload + def childAt(self, p: QtCore.QPoint) -> 'QWidget': ... + @typing.overload + def childAt(self, ax: int, ay: int) -> 'QWidget': ... + @staticmethod + def find(a0: sip.voidptr) -> 'QWidget': ... + def overrideWindowFlags(self, type: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType]) -> None: ... + def setWindowFlags(self, type: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType]) -> None: ... + def actions(self) -> typing.List['QAction']: ... + def removeAction(self, action: 'QAction') -> None: ... + def insertActions(self, before: 'QAction', actions: typing.Iterable['QAction']) -> None: ... + def insertAction(self, before: 'QAction', action: 'QAction') -> None: ... + def addActions(self, actions: typing.Iterable['QAction']) -> None: ... + def addAction(self, action: 'QAction') -> None: ... + def setAcceptDrops(self, on: bool) -> None: ... + def acceptDrops(self) -> bool: ... + def nextInFocusChain(self) -> 'QWidget': ... + def focusWidget(self) -> 'QWidget': ... + @typing.overload + def scroll(self, dx: int, dy: int) -> None: ... + @typing.overload + def scroll(self, dx: int, dy: int, a2: QtCore.QRect) -> None: ... + @typing.overload + def setParent(self, parent: 'QWidget') -> None: ... + @typing.overload + def setParent(self, parent: 'QWidget', f: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType]) -> None: ... + def updateGeometry(self) -> None: ... + def setLayout(self, a0: 'QLayout') -> None: ... + def layout(self) -> 'QLayout': ... + def contentsRect(self) -> QtCore.QRect: ... + def getContentsMargins(self) -> typing.Tuple[int, int, int, int]: ... + @typing.overload + def setContentsMargins(self, left: int, top: int, right: int, bottom: int) -> None: ... + @typing.overload + def setContentsMargins(self, margins: QtCore.QMargins) -> None: ... + def visibleRegion(self) -> QtGui.QRegion: ... + def heightForWidth(self, a0: int) -> int: ... + @typing.overload + def setSizePolicy(self, a0: 'QSizePolicy') -> None: ... + @typing.overload + def setSizePolicy(self, hor: 'QSizePolicy.Policy', ver: 'QSizePolicy.Policy') -> None: ... + def sizePolicy(self) -> 'QSizePolicy': ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + def overrideWindowState(self, state: typing.Union[QtCore.Qt.WindowStates, QtCore.Qt.WindowState]) -> None: ... + def setWindowState(self, state: typing.Union[QtCore.Qt.WindowStates, QtCore.Qt.WindowState]) -> None: ... + def windowState(self) -> QtCore.Qt.WindowStates: ... + def isFullScreen(self) -> bool: ... + def isMaximized(self) -> bool: ... + def isMinimized(self) -> bool: ... + def isVisibleTo(self, a0: 'QWidget') -> bool: ... + def adjustSize(self) -> None: ... + @typing.overload + def setGeometry(self, a0: QtCore.QRect) -> None: ... + @typing.overload + def setGeometry(self, ax: int, ay: int, aw: int, ah: int) -> None: ... + @typing.overload + def resize(self, a0: QtCore.QSize) -> None: ... + @typing.overload + def resize(self, w: int, h: int) -> None: ... + @typing.overload + def move(self, a0: QtCore.QPoint) -> None: ... + @typing.overload + def move(self, ax: int, ay: int) -> None: ... + def stackUnder(self, a0: 'QWidget') -> None: ... + def lower(self) -> None: ... + def raise_(self) -> None: ... + def close(self) -> bool: ... + def showNormal(self) -> None: ... + def showFullScreen(self) -> None: ... + def showMaximized(self) -> None: ... + def showMinimized(self) -> None: ... + def hide(self) -> None: ... + def show(self) -> None: ... + def setHidden(self, hidden: bool) -> None: ... + def setVisible(self, visible: bool) -> None: ... + @typing.overload + def repaint(self) -> None: ... + @typing.overload + def repaint(self, x: int, y: int, w: int, h: int) -> None: ... + @typing.overload + def repaint(self, a0: QtCore.QRect) -> None: ... + @typing.overload + def repaint(self, a0: QtGui.QRegion) -> None: ... + @typing.overload + def update(self) -> None: ... + @typing.overload + def update(self, a0: QtCore.QRect) -> None: ... + @typing.overload + def update(self, a0: QtGui.QRegion) -> None: ... + @typing.overload + def update(self, ax: int, ay: int, aw: int, ah: int) -> None: ... + def setUpdatesEnabled(self, enable: bool) -> None: ... + @staticmethod + def keyboardGrabber() -> 'QWidget': ... + @staticmethod + def mouseGrabber() -> 'QWidget': ... + def setShortcutEnabled(self, id: int, enabled: bool = ...) -> None: ... + def releaseShortcut(self, id: int) -> None: ... + def grabShortcut(self, key: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int], context: QtCore.Qt.ShortcutContext = ...) -> int: ... + def releaseKeyboard(self) -> None: ... + def grabKeyboard(self) -> None: ... + def releaseMouse(self) -> None: ... + @typing.overload + def grabMouse(self) -> None: ... + @typing.overload + def grabMouse(self, a0: typing.Union[QtGui.QCursor, QtCore.Qt.CursorShape]) -> None: ... + def setContextMenuPolicy(self, policy: QtCore.Qt.ContextMenuPolicy) -> None: ... + def contextMenuPolicy(self) -> QtCore.Qt.ContextMenuPolicy: ... + def focusProxy(self) -> 'QWidget': ... + def setFocusProxy(self, a0: 'QWidget') -> None: ... + @staticmethod + def setTabOrder(a0: 'QWidget', a1: 'QWidget') -> None: ... + def hasFocus(self) -> bool: ... + def setFocusPolicy(self, policy: QtCore.Qt.FocusPolicy) -> None: ... + def focusPolicy(self) -> QtCore.Qt.FocusPolicy: ... + def clearFocus(self) -> None: ... + def activateWindow(self) -> None: ... + def isActiveWindow(self) -> bool: ... + @typing.overload + def setFocus(self) -> None: ... + @typing.overload + def setFocus(self, reason: QtCore.Qt.FocusReason) -> None: ... + def isLeftToRight(self) -> bool: ... + def isRightToLeft(self) -> bool: ... + def unsetLayoutDirection(self) -> None: ... + def layoutDirection(self) -> QtCore.Qt.LayoutDirection: ... + def setLayoutDirection(self, direction: QtCore.Qt.LayoutDirection) -> None: ... + def setAccessibleDescription(self, description: str) -> None: ... + def accessibleDescription(self) -> str: ... + def setAccessibleName(self, name: str) -> None: ... + def accessibleName(self) -> str: ... + def whatsThis(self) -> str: ... + def setWhatsThis(self, a0: str) -> None: ... + def statusTip(self) -> str: ... + def setStatusTip(self, a0: str) -> None: ... + def toolTip(self) -> str: ... + def setToolTip(self, a0: str) -> None: ... + def isWindowModified(self) -> bool: ... + def windowOpacity(self) -> float: ... + def setWindowOpacity(self, level: float) -> None: ... + def windowRole(self) -> str: ... + def setWindowRole(self, a0: str) -> None: ... + def windowIconText(self) -> str: ... + def setWindowIconText(self, a0: str) -> None: ... + def windowIcon(self) -> QtGui.QIcon: ... + def setWindowIcon(self, icon: QtGui.QIcon) -> None: ... + def windowTitle(self) -> str: ... + def setWindowTitle(self, a0: str) -> None: ... + def clearMask(self) -> None: ... + def mask(self) -> QtGui.QRegion: ... + @typing.overload + def setMask(self, a0: QtGui.QBitmap) -> None: ... + @typing.overload + def setMask(self, a0: QtGui.QRegion) -> None: ... + def unsetCursor(self) -> None: ... + def setCursor(self, a0: typing.Union[QtGui.QCursor, QtCore.Qt.CursorShape]) -> None: ... + def cursor(self) -> QtGui.QCursor: ... + def setFont(self, a0: QtGui.QFont) -> None: ... + def foregroundRole(self) -> QtGui.QPalette.ColorRole: ... + def setForegroundRole(self, a0: QtGui.QPalette.ColorRole) -> None: ... + def backgroundRole(self) -> QtGui.QPalette.ColorRole: ... + def setBackgroundRole(self, a0: QtGui.QPalette.ColorRole) -> None: ... + def setPalette(self, a0: QtGui.QPalette) -> None: ... + def palette(self) -> QtGui.QPalette: ... + def window(self) -> 'QWidget': ... + def mapFrom(self, a0: 'QWidget', a1: QtCore.QPoint) -> QtCore.QPoint: ... + def mapTo(self, a0: 'QWidget', a1: QtCore.QPoint) -> QtCore.QPoint: ... + def mapFromParent(self, a0: QtCore.QPoint) -> QtCore.QPoint: ... + def mapToParent(self, a0: QtCore.QPoint) -> QtCore.QPoint: ... + def mapFromGlobal(self, a0: QtCore.QPoint) -> QtCore.QPoint: ... + def mapToGlobal(self, a0: QtCore.QPoint) -> QtCore.QPoint: ... + def setFixedHeight(self, h: int) -> None: ... + def setFixedWidth(self, w: int) -> None: ... + @typing.overload + def setFixedSize(self, a0: QtCore.QSize) -> None: ... + @typing.overload + def setFixedSize(self, w: int, h: int) -> None: ... + @typing.overload + def setBaseSize(self, basew: int, baseh: int) -> None: ... + @typing.overload + def setBaseSize(self, s: QtCore.QSize) -> None: ... + def baseSize(self) -> QtCore.QSize: ... + @typing.overload + def setSizeIncrement(self, w: int, h: int) -> None: ... + @typing.overload + def setSizeIncrement(self, s: QtCore.QSize) -> None: ... + def sizeIncrement(self) -> QtCore.QSize: ... + def setMaximumHeight(self, maxh: int) -> None: ... + def setMaximumWidth(self, maxw: int) -> None: ... + def setMinimumHeight(self, minh: int) -> None: ... + def setMinimumWidth(self, minw: int) -> None: ... + @typing.overload + def setMaximumSize(self, maxw: int, maxh: int) -> None: ... + @typing.overload + def setMaximumSize(self, s: QtCore.QSize) -> None: ... + @typing.overload + def setMinimumSize(self, minw: int, minh: int) -> None: ... + @typing.overload + def setMinimumSize(self, s: QtCore.QSize) -> None: ... + def maximumSize(self) -> QtCore.QSize: ... + def minimumSize(self) -> QtCore.QSize: ... + def childrenRegion(self) -> QtGui.QRegion: ... + def childrenRect(self) -> QtCore.QRect: ... + def frameSize(self) -> QtCore.QSize: ... + def pos(self) -> QtCore.QPoint: ... + def y(self) -> int: ... + def x(self) -> int: ... + def normalGeometry(self) -> QtCore.QRect: ... + def frameGeometry(self) -> QtCore.QRect: ... + def setWindowModified(self, a0: bool) -> None: ... + def setDisabled(self, a0: bool) -> None: ... + def setEnabled(self, a0: bool) -> None: ... + def isEnabledTo(self, a0: 'QWidget') -> bool: ... + def setStyle(self, a0: 'QStyle') -> None: ... + def style(self) -> 'QStyle': ... + def devType(self) -> int: ... + + +class QAbstractButton(QWidget): + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def timerEvent(self, e: QtCore.QTimerEvent) -> None: ... + def changeEvent(self, e: QtCore.QEvent) -> None: ... + def focusOutEvent(self, e: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, e: QtGui.QFocusEvent) -> None: ... + def mouseMoveEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, e: QtGui.QMouseEvent) -> None: ... + def keyReleaseEvent(self, e: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, e: QtGui.QKeyEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def nextCheckState(self) -> None: ... + def checkStateSet(self) -> None: ... + def hitButton(self, pos: QtCore.QPoint) -> bool: ... + def paintEvent(self, e: QtGui.QPaintEvent) -> None: ... + def toggled(self, checked: bool) -> None: ... + def clicked(self, checked: bool = ...) -> None: ... + def released(self) -> None: ... + def pressed(self) -> None: ... + def setChecked(self, a0: bool) -> None: ... + def toggle(self) -> None: ... + def click(self) -> None: ... + def animateClick(self, msecs: int = ...) -> None: ... + def setIconSize(self, size: QtCore.QSize) -> None: ... + def group(self) -> 'QButtonGroup': ... + def autoExclusive(self) -> bool: ... + def setAutoExclusive(self, a0: bool) -> None: ... + def autoRepeat(self) -> bool: ... + def setAutoRepeat(self, a0: bool) -> None: ... + def isDown(self) -> bool: ... + def setDown(self, a0: bool) -> None: ... + def isChecked(self) -> bool: ... + def isCheckable(self) -> bool: ... + def setCheckable(self, a0: bool) -> None: ... + def shortcut(self) -> QtGui.QKeySequence: ... + def setShortcut(self, key: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]) -> None: ... + def iconSize(self) -> QtCore.QSize: ... + def icon(self) -> QtGui.QIcon: ... + def setIcon(self, icon: QtGui.QIcon) -> None: ... + def text(self) -> str: ... + def setText(self, text: str) -> None: ... + def autoRepeatInterval(self) -> int: ... + def setAutoRepeatInterval(self, a0: int) -> None: ... + def autoRepeatDelay(self) -> int: ... + def setAutoRepeatDelay(self, a0: int) -> None: ... + + +class QAbstractItemDelegate(QtCore.QObject): + + class EndEditHint(int): ... + NoHint = ... # type: 'QAbstractItemDelegate.EndEditHint' + EditNextItem = ... # type: 'QAbstractItemDelegate.EndEditHint' + EditPreviousItem = ... # type: 'QAbstractItemDelegate.EndEditHint' + SubmitModelCache = ... # type: 'QAbstractItemDelegate.EndEditHint' + RevertModelCache = ... # type: 'QAbstractItemDelegate.EndEditHint' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def sizeHintChanged(self, a0: QtCore.QModelIndex) -> None: ... + def closeEditor(self, editor: QWidget, hint: 'QAbstractItemDelegate.EndEditHint' = ...) -> None: ... + def commitData(self, editor: QWidget) -> None: ... + def helpEvent(self, event: QtGui.QHelpEvent, view: 'QAbstractItemView', option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> bool: ... + def editorEvent(self, event: QtCore.QEvent, model: QtCore.QAbstractItemModel, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> bool: ... + def destroyEditor(self, editor: QWidget, index: QtCore.QModelIndex) -> None: ... + def updateEditorGeometry(self, editor: QWidget, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> None: ... + def setModelData(self, editor: QWidget, model: QtCore.QAbstractItemModel, index: QtCore.QModelIndex) -> None: ... + def setEditorData(self, editor: QWidget, index: QtCore.QModelIndex) -> None: ... + def createEditor(self, parent: QWidget, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> QWidget: ... + def sizeHint(self, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> QtCore.QSize: ... + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> None: ... + + +class QFrame(QWidget): + + class StyleMask(int): ... + Shadow_Mask = ... # type: 'QFrame.StyleMask' + Shape_Mask = ... # type: 'QFrame.StyleMask' + + class Shape(int): ... + NoFrame = ... # type: 'QFrame.Shape' + Box = ... # type: 'QFrame.Shape' + Panel = ... # type: 'QFrame.Shape' + WinPanel = ... # type: 'QFrame.Shape' + HLine = ... # type: 'QFrame.Shape' + VLine = ... # type: 'QFrame.Shape' + StyledPanel = ... # type: 'QFrame.Shape' + + class Shadow(int): ... + Plain = ... # type: 'QFrame.Shadow' + Raised = ... # type: 'QFrame.Shadow' + Sunken = ... # type: 'QFrame.Shadow' + + def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def initStyleOption(self, option: 'QStyleOptionFrame') -> None: ... + def drawFrame(self, a0: QtGui.QPainter) -> None: ... + def changeEvent(self, a0: QtCore.QEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def setFrameRect(self, a0: QtCore.QRect) -> None: ... + def frameRect(self) -> QtCore.QRect: ... + def setMidLineWidth(self, a0: int) -> None: ... + def midLineWidth(self) -> int: ... + def setLineWidth(self, a0: int) -> None: ... + def lineWidth(self) -> int: ... + def setFrameShadow(self, a0: 'QFrame.Shadow') -> None: ... + def frameShadow(self) -> 'QFrame.Shadow': ... + def setFrameShape(self, a0: 'QFrame.Shape') -> None: ... + def frameShape(self) -> 'QFrame.Shape': ... + def sizeHint(self) -> QtCore.QSize: ... + def frameWidth(self) -> int: ... + def setFrameStyle(self, a0: int) -> None: ... + def frameStyle(self) -> int: ... + + +class QAbstractScrollArea(QFrame): + + class SizeAdjustPolicy(int): ... + AdjustIgnored = ... # type: 'QAbstractScrollArea.SizeAdjustPolicy' + AdjustToContentsOnFirstShow = ... # type: 'QAbstractScrollArea.SizeAdjustPolicy' + AdjustToContents = ... # type: 'QAbstractScrollArea.SizeAdjustPolicy' + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def setSizeAdjustPolicy(self, policy: 'QAbstractScrollArea.SizeAdjustPolicy') -> None: ... + def sizeAdjustPolicy(self) -> 'QAbstractScrollArea.SizeAdjustPolicy': ... + def setupViewport(self, viewport: QWidget) -> None: ... + def setViewport(self, widget: QWidget) -> None: ... + def scrollBarWidgets(self, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> typing.List[QWidget]: ... + def addScrollBarWidget(self, widget: QWidget, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def setCornerWidget(self, widget: QWidget) -> None: ... + def cornerWidget(self) -> QWidget: ... + def setHorizontalScrollBar(self, scrollbar: 'QScrollBar') -> None: ... + def setVerticalScrollBar(self, scrollbar: 'QScrollBar') -> None: ... + def scrollContentsBy(self, dx: int, dy: int) -> None: ... + def eventFilter(self, a0: QtCore.QObject, a1: QtCore.QEvent) -> bool: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def dropEvent(self, a0: QtGui.QDropEvent) -> None: ... + def dragLeaveEvent(self, a0: QtGui.QDragLeaveEvent) -> None: ... + def dragMoveEvent(self, a0: QtGui.QDragMoveEvent) -> None: ... + def dragEnterEvent(self, a0: QtGui.QDragEnterEvent) -> None: ... + def contextMenuEvent(self, a0: QtGui.QContextMenuEvent) -> None: ... + def wheelEvent(self, a0: QtGui.QWheelEvent) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def viewportEvent(self, a0: QtCore.QEvent) -> bool: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def viewportSizeHint(self) -> QtCore.QSize: ... + def viewportMargins(self) -> QtCore.QMargins: ... + @typing.overload + def setViewportMargins(self, left: int, top: int, right: int, bottom: int) -> None: ... + @typing.overload + def setViewportMargins(self, margins: QtCore.QMargins) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def maximumViewportSize(self) -> QtCore.QSize: ... + def viewport(self) -> QWidget: ... + def horizontalScrollBar(self) -> 'QScrollBar': ... + def setHorizontalScrollBarPolicy(self, a0: QtCore.Qt.ScrollBarPolicy) -> None: ... + def horizontalScrollBarPolicy(self) -> QtCore.Qt.ScrollBarPolicy: ... + def verticalScrollBar(self) -> 'QScrollBar': ... + def setVerticalScrollBarPolicy(self, a0: QtCore.Qt.ScrollBarPolicy) -> None: ... + def verticalScrollBarPolicy(self) -> QtCore.Qt.ScrollBarPolicy: ... + + +class QAbstractItemView(QAbstractScrollArea): + + class DropIndicatorPosition(int): ... + OnItem = ... # type: 'QAbstractItemView.DropIndicatorPosition' + AboveItem = ... # type: 'QAbstractItemView.DropIndicatorPosition' + BelowItem = ... # type: 'QAbstractItemView.DropIndicatorPosition' + OnViewport = ... # type: 'QAbstractItemView.DropIndicatorPosition' + + class State(int): ... + NoState = ... # type: 'QAbstractItemView.State' + DraggingState = ... # type: 'QAbstractItemView.State' + DragSelectingState = ... # type: 'QAbstractItemView.State' + EditingState = ... # type: 'QAbstractItemView.State' + ExpandingState = ... # type: 'QAbstractItemView.State' + CollapsingState = ... # type: 'QAbstractItemView.State' + AnimatingState = ... # type: 'QAbstractItemView.State' + + class CursorAction(int): ... + MoveUp = ... # type: 'QAbstractItemView.CursorAction' + MoveDown = ... # type: 'QAbstractItemView.CursorAction' + MoveLeft = ... # type: 'QAbstractItemView.CursorAction' + MoveRight = ... # type: 'QAbstractItemView.CursorAction' + MoveHome = ... # type: 'QAbstractItemView.CursorAction' + MoveEnd = ... # type: 'QAbstractItemView.CursorAction' + MovePageUp = ... # type: 'QAbstractItemView.CursorAction' + MovePageDown = ... # type: 'QAbstractItemView.CursorAction' + MoveNext = ... # type: 'QAbstractItemView.CursorAction' + MovePrevious = ... # type: 'QAbstractItemView.CursorAction' + + class SelectionMode(int): ... + NoSelection = ... # type: 'QAbstractItemView.SelectionMode' + SingleSelection = ... # type: 'QAbstractItemView.SelectionMode' + MultiSelection = ... # type: 'QAbstractItemView.SelectionMode' + ExtendedSelection = ... # type: 'QAbstractItemView.SelectionMode' + ContiguousSelection = ... # type: 'QAbstractItemView.SelectionMode' + + class SelectionBehavior(int): ... + SelectItems = ... # type: 'QAbstractItemView.SelectionBehavior' + SelectRows = ... # type: 'QAbstractItemView.SelectionBehavior' + SelectColumns = ... # type: 'QAbstractItemView.SelectionBehavior' + + class ScrollMode(int): ... + ScrollPerItem = ... # type: 'QAbstractItemView.ScrollMode' + ScrollPerPixel = ... # type: 'QAbstractItemView.ScrollMode' + + class ScrollHint(int): ... + EnsureVisible = ... # type: 'QAbstractItemView.ScrollHint' + PositionAtTop = ... # type: 'QAbstractItemView.ScrollHint' + PositionAtBottom = ... # type: 'QAbstractItemView.ScrollHint' + PositionAtCenter = ... # type: 'QAbstractItemView.ScrollHint' + + class EditTrigger(int): ... + NoEditTriggers = ... # type: 'QAbstractItemView.EditTrigger' + CurrentChanged = ... # type: 'QAbstractItemView.EditTrigger' + DoubleClicked = ... # type: 'QAbstractItemView.EditTrigger' + SelectedClicked = ... # type: 'QAbstractItemView.EditTrigger' + EditKeyPressed = ... # type: 'QAbstractItemView.EditTrigger' + AnyKeyPressed = ... # type: 'QAbstractItemView.EditTrigger' + AllEditTriggers = ... # type: 'QAbstractItemView.EditTrigger' + + class DragDropMode(int): ... + NoDragDrop = ... # type: 'QAbstractItemView.DragDropMode' + DragOnly = ... # type: 'QAbstractItemView.DragDropMode' + DropOnly = ... # type: 'QAbstractItemView.DragDropMode' + DragDrop = ... # type: 'QAbstractItemView.DragDropMode' + InternalMove = ... # type: 'QAbstractItemView.DragDropMode' + + class EditTriggers(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QAbstractItemView.EditTriggers', 'QAbstractItemView.EditTrigger']) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstractItemView.EditTriggers') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QAbstractItemView.EditTriggers': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def isPersistentEditorOpen(self, index: QtCore.QModelIndex) -> bool: ... + def resetHorizontalScrollMode(self) -> None: ... + def resetVerticalScrollMode(self) -> None: ... + def defaultDropAction(self) -> QtCore.Qt.DropAction: ... + def setDefaultDropAction(self, dropAction: QtCore.Qt.DropAction) -> None: ... + def eventFilter(self, object: QtCore.QObject, event: QtCore.QEvent) -> bool: ... + def viewportSizeHint(self) -> QtCore.QSize: ... + def inputMethodEvent(self, event: QtGui.QInputMethodEvent) -> None: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def autoScrollMargin(self) -> int: ... + def setAutoScrollMargin(self, margin: int) -> None: ... + def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + def itemDelegateForColumn(self, column: int) -> QAbstractItemDelegate: ... + def setItemDelegateForColumn(self, column: int, delegate: QAbstractItemDelegate) -> None: ... + def itemDelegateForRow(self, row: int) -> QAbstractItemDelegate: ... + def setItemDelegateForRow(self, row: int, delegate: QAbstractItemDelegate) -> None: ... + def dragDropMode(self) -> 'QAbstractItemView.DragDropMode': ... + def setDragDropMode(self, behavior: 'QAbstractItemView.DragDropMode') -> None: ... + def dragDropOverwriteMode(self) -> bool: ... + def setDragDropOverwriteMode(self, overwrite: bool) -> None: ... + def horizontalScrollMode(self) -> 'QAbstractItemView.ScrollMode': ... + def setHorizontalScrollMode(self, mode: 'QAbstractItemView.ScrollMode') -> None: ... + def verticalScrollMode(self) -> 'QAbstractItemView.ScrollMode': ... + def setVerticalScrollMode(self, mode: 'QAbstractItemView.ScrollMode') -> None: ... + def dropIndicatorPosition(self) -> 'QAbstractItemView.DropIndicatorPosition': ... + def timerEvent(self, e: QtCore.QTimerEvent) -> None: ... + def resizeEvent(self, e: QtGui.QResizeEvent) -> None: ... + def keyPressEvent(self, e: QtGui.QKeyEvent) -> None: ... + def focusOutEvent(self, e: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, e: QtGui.QFocusEvent) -> None: ... + def dropEvent(self, e: QtGui.QDropEvent) -> None: ... + def dragLeaveEvent(self, e: QtGui.QDragLeaveEvent) -> None: ... + def dragMoveEvent(self, e: QtGui.QDragMoveEvent) -> None: ... + def dragEnterEvent(self, e: QtGui.QDragEnterEvent) -> None: ... + def mouseDoubleClickEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mouseMoveEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, e: QtGui.QMouseEvent) -> None: ... + def viewportEvent(self, e: QtCore.QEvent) -> bool: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def dirtyRegionOffset(self) -> QtCore.QPoint: ... + def setDirtyRegion(self, region: QtGui.QRegion) -> None: ... + def scrollDirtyRegion(self, dx: int, dy: int) -> None: ... + def executeDelayedItemsLayout(self) -> None: ... + def scheduleDelayedItemsLayout(self) -> None: ... + def setState(self, state: 'QAbstractItemView.State') -> None: ... + def state(self) -> 'QAbstractItemView.State': ... + def viewOptions(self) -> 'QStyleOptionViewItem': ... + def startDrag(self, supportedActions: typing.Union[QtCore.Qt.DropActions, QtCore.Qt.DropAction]) -> None: ... + def selectionCommand(self, index: QtCore.QModelIndex, event: typing.Optional[QtCore.QEvent] = ...) -> QtCore.QItemSelectionModel.SelectionFlags: ... + def selectedIndexes(self) -> typing.List[QtCore.QModelIndex]: ... + def visualRegionForSelection(self, selection: QtCore.QItemSelection) -> QtGui.QRegion: ... + def setSelection(self, rect: QtCore.QRect, command: typing.Union[QtCore.QItemSelectionModel.SelectionFlags, QtCore.QItemSelectionModel.SelectionFlag]) -> None: ... + def isIndexHidden(self, index: QtCore.QModelIndex) -> bool: ... + def verticalOffset(self) -> int: ... + def horizontalOffset(self) -> int: ... + def moveCursor(self, cursorAction: 'QAbstractItemView.CursorAction', modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier]) -> QtCore.QModelIndex: ... + def iconSizeChanged(self, size: QtCore.QSize) -> None: ... + def viewportEntered(self) -> None: ... + def entered(self, index: QtCore.QModelIndex) -> None: ... + def activated(self, index: QtCore.QModelIndex) -> None: ... + def doubleClicked(self, index: QtCore.QModelIndex) -> None: ... + def clicked(self, index: QtCore.QModelIndex) -> None: ... + def pressed(self, index: QtCore.QModelIndex) -> None: ... + def editorDestroyed(self, editor: QtCore.QObject) -> None: ... + def commitData(self, editor: QWidget) -> None: ... + def closeEditor(self, editor: QWidget, hint: QAbstractItemDelegate.EndEditHint) -> None: ... + def horizontalScrollbarValueChanged(self, value: int) -> None: ... + def verticalScrollbarValueChanged(self, value: int) -> None: ... + def horizontalScrollbarAction(self, action: int) -> None: ... + def verticalScrollbarAction(self, action: int) -> None: ... + def updateGeometries(self) -> None: ... + def updateEditorGeometries(self) -> None: ... + def updateEditorData(self) -> None: ... + def currentChanged(self, current: QtCore.QModelIndex, previous: QtCore.QModelIndex) -> None: ... + def selectionChanged(self, selected: QtCore.QItemSelection, deselected: QtCore.QItemSelection) -> None: ... + def rowsAboutToBeRemoved(self, parent: QtCore.QModelIndex, start: int, end: int) -> None: ... + def rowsInserted(self, parent: QtCore.QModelIndex, start: int, end: int) -> None: ... + def dataChanged(self, topLeft: QtCore.QModelIndex, bottomRight: QtCore.QModelIndex, roles: typing.Iterable[int] = ...) -> None: ... + @typing.overload + def update(self) -> None: ... + @typing.overload + def update(self, index: QtCore.QModelIndex) -> None: ... + def scrollToBottom(self) -> None: ... + def scrollToTop(self) -> None: ... + def setCurrentIndex(self, index: QtCore.QModelIndex) -> None: ... + def clearSelection(self) -> None: ... + @typing.overload + def edit(self, index: QtCore.QModelIndex) -> None: ... + @typing.overload + def edit(self, index: QtCore.QModelIndex, trigger: 'QAbstractItemView.EditTrigger', event: QtCore.QEvent) -> bool: ... + def selectAll(self) -> None: ... + def setRootIndex(self, index: QtCore.QModelIndex) -> None: ... + def reset(self) -> None: ... + def indexWidget(self, index: QtCore.QModelIndex) -> QWidget: ... + def setIndexWidget(self, index: QtCore.QModelIndex, widget: QWidget) -> None: ... + def closePersistentEditor(self, index: QtCore.QModelIndex) -> None: ... + def openPersistentEditor(self, index: QtCore.QModelIndex) -> None: ... + def sizeHintForColumn(self, column: int) -> int: ... + def sizeHintForRow(self, row: int) -> int: ... + def sizeHintForIndex(self, index: QtCore.QModelIndex) -> QtCore.QSize: ... + def indexAt(self, p: QtCore.QPoint) -> QtCore.QModelIndex: ... + def scrollTo(self, index: QtCore.QModelIndex, hint: 'QAbstractItemView.ScrollHint' = ...) -> None: ... + def visualRect(self, index: QtCore.QModelIndex) -> QtCore.QRect: ... + def keyboardSearch(self, search: str) -> None: ... + def textElideMode(self) -> QtCore.Qt.TextElideMode: ... + def setTextElideMode(self, mode: QtCore.Qt.TextElideMode) -> None: ... + def iconSize(self) -> QtCore.QSize: ... + def setIconSize(self, size: QtCore.QSize) -> None: ... + def alternatingRowColors(self) -> bool: ... + def setAlternatingRowColors(self, enable: bool) -> None: ... + def dragEnabled(self) -> bool: ... + def setDragEnabled(self, enable: bool) -> None: ... + def showDropIndicator(self) -> bool: ... + def setDropIndicatorShown(self, enable: bool) -> None: ... + def tabKeyNavigation(self) -> bool: ... + def setTabKeyNavigation(self, enable: bool) -> None: ... + def hasAutoScroll(self) -> bool: ... + def setAutoScroll(self, enable: bool) -> None: ... + def editTriggers(self) -> 'QAbstractItemView.EditTriggers': ... + def setEditTriggers(self, triggers: typing.Union['QAbstractItemView.EditTriggers', 'QAbstractItemView.EditTrigger']) -> None: ... + def rootIndex(self) -> QtCore.QModelIndex: ... + def currentIndex(self) -> QtCore.QModelIndex: ... + def selectionBehavior(self) -> 'QAbstractItemView.SelectionBehavior': ... + def setSelectionBehavior(self, behavior: 'QAbstractItemView.SelectionBehavior') -> None: ... + def selectionMode(self) -> 'QAbstractItemView.SelectionMode': ... + def setSelectionMode(self, mode: 'QAbstractItemView.SelectionMode') -> None: ... + @typing.overload + def itemDelegate(self) -> QAbstractItemDelegate: ... + @typing.overload + def itemDelegate(self, index: QtCore.QModelIndex) -> QAbstractItemDelegate: ... + def setItemDelegate(self, delegate: QAbstractItemDelegate) -> None: ... + def selectionModel(self) -> QtCore.QItemSelectionModel: ... + def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel) -> None: ... + def model(self) -> QtCore.QAbstractItemModel: ... + def setModel(self, model: QtCore.QAbstractItemModel) -> None: ... + + +class QAbstractSlider(QWidget): + + class SliderChange(int): ... + SliderRangeChange = ... # type: 'QAbstractSlider.SliderChange' + SliderOrientationChange = ... # type: 'QAbstractSlider.SliderChange' + SliderStepsChange = ... # type: 'QAbstractSlider.SliderChange' + SliderValueChange = ... # type: 'QAbstractSlider.SliderChange' + + class SliderAction(int): ... + SliderNoAction = ... # type: 'QAbstractSlider.SliderAction' + SliderSingleStepAdd = ... # type: 'QAbstractSlider.SliderAction' + SliderSingleStepSub = ... # type: 'QAbstractSlider.SliderAction' + SliderPageStepAdd = ... # type: 'QAbstractSlider.SliderAction' + SliderPageStepSub = ... # type: 'QAbstractSlider.SliderAction' + SliderToMinimum = ... # type: 'QAbstractSlider.SliderAction' + SliderToMaximum = ... # type: 'QAbstractSlider.SliderAction' + SliderMove = ... # type: 'QAbstractSlider.SliderAction' + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def changeEvent(self, e: QtCore.QEvent) -> None: ... + def wheelEvent(self, e: QtGui.QWheelEvent) -> None: ... + def timerEvent(self, a0: QtCore.QTimerEvent) -> None: ... + def keyPressEvent(self, ev: QtGui.QKeyEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def sliderChange(self, change: 'QAbstractSlider.SliderChange') -> None: ... + def repeatAction(self) -> 'QAbstractSlider.SliderAction': ... + def setRepeatAction(self, action: 'QAbstractSlider.SliderAction', thresholdTime: int = ..., repeatTime: int = ...) -> None: ... + def actionTriggered(self, action: int) -> None: ... + def rangeChanged(self, min: int, max: int) -> None: ... + def sliderReleased(self) -> None: ... + def sliderMoved(self, position: int) -> None: ... + def sliderPressed(self) -> None: ... + def valueChanged(self, value: int) -> None: ... + def setOrientation(self, a0: QtCore.Qt.Orientation) -> None: ... + def setValue(self, a0: int) -> None: ... + def triggerAction(self, action: 'QAbstractSlider.SliderAction') -> None: ... + def value(self) -> int: ... + def invertedControls(self) -> bool: ... + def setInvertedControls(self, a0: bool) -> None: ... + def invertedAppearance(self) -> bool: ... + def setInvertedAppearance(self, a0: bool) -> None: ... + def sliderPosition(self) -> int: ... + def setSliderPosition(self, a0: int) -> None: ... + def isSliderDown(self) -> bool: ... + def setSliderDown(self, a0: bool) -> None: ... + def hasTracking(self) -> bool: ... + def setTracking(self, enable: bool) -> None: ... + def pageStep(self) -> int: ... + def setPageStep(self, a0: int) -> None: ... + def singleStep(self) -> int: ... + def setSingleStep(self, a0: int) -> None: ... + def setRange(self, min: int, max: int) -> None: ... + def maximum(self) -> int: ... + def setMaximum(self, a0: int) -> None: ... + def minimum(self) -> int: ... + def setMinimum(self, a0: int) -> None: ... + def orientation(self) -> QtCore.Qt.Orientation: ... + + +class QAbstractSpinBox(QWidget): + + class StepType(int): ... + DefaultStepType = ... # type: 'QAbstractSpinBox.StepType' + AdaptiveDecimalStepType = ... # type: 'QAbstractSpinBox.StepType' + + class CorrectionMode(int): ... + CorrectToPreviousValue = ... # type: 'QAbstractSpinBox.CorrectionMode' + CorrectToNearestValue = ... # type: 'QAbstractSpinBox.CorrectionMode' + + class ButtonSymbols(int): ... + UpDownArrows = ... # type: 'QAbstractSpinBox.ButtonSymbols' + PlusMinus = ... # type: 'QAbstractSpinBox.ButtonSymbols' + NoButtons = ... # type: 'QAbstractSpinBox.ButtonSymbols' + + class StepEnabledFlag(int): ... + StepNone = ... # type: 'QAbstractSpinBox.StepEnabledFlag' + StepUpEnabled = ... # type: 'QAbstractSpinBox.StepEnabledFlag' + StepDownEnabled = ... # type: 'QAbstractSpinBox.StepEnabledFlag' + + class StepEnabled(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QAbstractSpinBox.StepEnabled', 'QAbstractSpinBox.StepEnabledFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstractSpinBox.StepEnabled') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QAbstractSpinBox.StepEnabled': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def isGroupSeparatorShown(self) -> bool: ... + def setGroupSeparatorShown(self, shown: bool) -> None: ... + def inputMethodQuery(self, a0: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + def keyboardTracking(self) -> bool: ... + def setKeyboardTracking(self, kt: bool) -> None: ... + def isAccelerated(self) -> bool: ... + def setAccelerated(self, on: bool) -> None: ... + def hasAcceptableInput(self) -> bool: ... + def correctionMode(self) -> 'QAbstractSpinBox.CorrectionMode': ... + def setCorrectionMode(self, cm: 'QAbstractSpinBox.CorrectionMode') -> None: ... + def initStyleOption(self, option: 'QStyleOptionSpinBox') -> None: ... + def stepEnabled(self) -> 'QAbstractSpinBox.StepEnabled': ... + def setLineEdit(self, e: 'QLineEdit') -> None: ... + def lineEdit(self) -> 'QLineEdit': ... + def showEvent(self, e: QtGui.QShowEvent) -> None: ... + def paintEvent(self, e: QtGui.QPaintEvent) -> None: ... + def timerEvent(self, e: QtCore.QTimerEvent) -> None: ... + def mouseMoveEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, e: QtGui.QMouseEvent) -> None: ... + def hideEvent(self, e: QtGui.QHideEvent) -> None: ... + def closeEvent(self, e: QtGui.QCloseEvent) -> None: ... + def changeEvent(self, e: QtCore.QEvent) -> None: ... + def contextMenuEvent(self, e: QtGui.QContextMenuEvent) -> None: ... + def focusOutEvent(self, e: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, e: QtGui.QFocusEvent) -> None: ... + def wheelEvent(self, e: QtGui.QWheelEvent) -> None: ... + def keyReleaseEvent(self, e: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, e: QtGui.QKeyEvent) -> None: ... + def resizeEvent(self, e: QtGui.QResizeEvent) -> None: ... + def editingFinished(self) -> None: ... + def clear(self) -> None: ... + def selectAll(self) -> None: ... + def stepDown(self) -> None: ... + def stepUp(self) -> None: ... + def stepBy(self, steps: int) -> None: ... + def fixup(self, input: str) -> str: ... + def validate(self, input: str, pos: int) -> typing.Tuple[QtGui.QValidator.State, str, int]: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def interpretText(self) -> None: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + def hasFrame(self) -> bool: ... + def setFrame(self, a0: bool) -> None: ... + def alignment(self) -> QtCore.Qt.Alignment: ... + def setAlignment(self, flag: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def isReadOnly(self) -> bool: ... + def setReadOnly(self, r: bool) -> None: ... + def setWrapping(self, w: bool) -> None: ... + def wrapping(self) -> bool: ... + def setSpecialValueText(self, s: str) -> None: ... + def specialValueText(self) -> str: ... + def text(self) -> str: ... + def setButtonSymbols(self, bs: 'QAbstractSpinBox.ButtonSymbols') -> None: ... + def buttonSymbols(self) -> 'QAbstractSpinBox.ButtonSymbols': ... + + +class QAction(QtCore.QObject): + + class Priority(int): ... + LowPriority = ... # type: 'QAction.Priority' + NormalPriority = ... # type: 'QAction.Priority' + HighPriority = ... # type: 'QAction.Priority' + + class MenuRole(int): ... + NoRole = ... # type: 'QAction.MenuRole' + TextHeuristicRole = ... # type: 'QAction.MenuRole' + ApplicationSpecificRole = ... # type: 'QAction.MenuRole' + AboutQtRole = ... # type: 'QAction.MenuRole' + AboutRole = ... # type: 'QAction.MenuRole' + PreferencesRole = ... # type: 'QAction.MenuRole' + QuitRole = ... # type: 'QAction.MenuRole' + + class ActionEvent(int): ... + Trigger = ... # type: 'QAction.ActionEvent' + Hover = ... # type: 'QAction.ActionEvent' + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, text: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, icon: QtGui.QIcon, text: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def isShortcutVisibleInContextMenu(self) -> bool: ... + def setShortcutVisibleInContextMenu(self, show: bool) -> None: ... + def priority(self) -> 'QAction.Priority': ... + def setPriority(self, priority: 'QAction.Priority') -> None: ... + def isIconVisibleInMenu(self) -> bool: ... + def setIconVisibleInMenu(self, visible: bool) -> None: ... + def associatedGraphicsWidgets(self) -> typing.List['QGraphicsWidget']: ... + def associatedWidgets(self) -> typing.List[QWidget]: ... + def menuRole(self) -> 'QAction.MenuRole': ... + def setMenuRole(self, menuRole: 'QAction.MenuRole') -> None: ... + def autoRepeat(self) -> bool: ... + def setAutoRepeat(self, a0: bool) -> None: ... + def shortcuts(self) -> typing.List[QtGui.QKeySequence]: ... + @typing.overload + def setShortcuts(self, shortcuts: typing.Iterable[typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]]) -> None: ... + @typing.overload + def setShortcuts(self, a0: QtGui.QKeySequence.StandardKey) -> None: ... + def toggled(self, a0: bool) -> None: ... + def hovered(self) -> None: ... + def triggered(self, checked: bool = ...) -> None: ... + def changed(self) -> None: ... + def setVisible(self, a0: bool) -> None: ... + def setDisabled(self, b: bool) -> None: ... + def setEnabled(self, a0: bool) -> None: ... + def toggle(self) -> None: ... + def setChecked(self, a0: bool) -> None: ... + def hover(self) -> None: ... + def trigger(self) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def parentWidget(self) -> QWidget: ... + def showStatusText(self, widget: typing.Optional[QWidget] = ...) -> bool: ... + def activate(self, event: 'QAction.ActionEvent') -> None: ... + def isVisible(self) -> bool: ... + def isEnabled(self) -> bool: ... + def isChecked(self) -> bool: ... + def setData(self, var: typing.Any) -> None: ... + def data(self) -> typing.Any: ... + def isCheckable(self) -> bool: ... + def setCheckable(self, a0: bool) -> None: ... + def font(self) -> QtGui.QFont: ... + def setFont(self, font: QtGui.QFont) -> None: ... + def shortcutContext(self) -> QtCore.Qt.ShortcutContext: ... + def setShortcutContext(self, context: QtCore.Qt.ShortcutContext) -> None: ... + def shortcut(self) -> QtGui.QKeySequence: ... + def setShortcut(self, shortcut: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]) -> None: ... + def isSeparator(self) -> bool: ... + def setSeparator(self, b: bool) -> None: ... + def setMenu(self, menu: 'QMenu') -> None: ... + def menu(self) -> 'QMenu': ... + def whatsThis(self) -> str: ... + def setWhatsThis(self, what: str) -> None: ... + def statusTip(self) -> str: ... + def setStatusTip(self, statusTip: str) -> None: ... + def toolTip(self) -> str: ... + def setToolTip(self, tip: str) -> None: ... + def iconText(self) -> str: ... + def setIconText(self, text: str) -> None: ... + def text(self) -> str: ... + def setText(self, text: str) -> None: ... + def icon(self) -> QtGui.QIcon: ... + def setIcon(self, icon: QtGui.QIcon) -> None: ... + def actionGroup(self) -> 'QActionGroup': ... + def setActionGroup(self, group: 'QActionGroup') -> None: ... + + +class QActionGroup(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject) -> None: ... + + def hovered(self, a0: QAction) -> None: ... + def triggered(self, a0: QAction) -> None: ... + def setExclusive(self, a0: bool) -> None: ... + def setVisible(self, a0: bool) -> None: ... + def setDisabled(self, b: bool) -> None: ... + def setEnabled(self, a0: bool) -> None: ... + def isVisible(self) -> bool: ... + def isEnabled(self) -> bool: ... + def isExclusive(self) -> bool: ... + def checkedAction(self) -> QAction: ... + def actions(self) -> typing.List[QAction]: ... + def removeAction(self, a: QAction) -> None: ... + @typing.overload + def addAction(self, a: QAction) -> QAction: ... + @typing.overload + def addAction(self, text: str) -> QAction: ... + @typing.overload + def addAction(self, icon: QtGui.QIcon, text: str) -> QAction: ... + + +class QApplication(QtGui.QGuiApplication): + + class ColorSpec(int): ... + NormalColor = ... # type: 'QApplication.ColorSpec' + CustomColor = ... # type: 'QApplication.ColorSpec' + ManyColor = ... # type: 'QApplication.ColorSpec' + + def __init__(self, argv: typing.List[str]) -> None: ... + + def event(self, a0: QtCore.QEvent) -> bool: ... + def setStyleSheet(self, sheet: str) -> None: ... + def setAutoSipEnabled(self, enabled: bool) -> None: ... + @staticmethod + def closeAllWindows() -> None: ... + @staticmethod + def aboutQt() -> None: ... + def focusChanged(self, old: QWidget, now: QWidget) -> None: ... + def styleSheet(self) -> str: ... + def autoSipEnabled(self) -> bool: ... + def notify(self, a0: QtCore.QObject, a1: QtCore.QEvent) -> bool: ... + @staticmethod + def exec() -> int: ... + @staticmethod + def exec_() -> int: ... + @staticmethod + def setEffectEnabled(a0: QtCore.Qt.UIEffect, enabled: bool = ...) -> None: ... + @staticmethod + def isEffectEnabled(a0: QtCore.Qt.UIEffect) -> bool: ... + @staticmethod + def startDragDistance() -> int: ... + @staticmethod + def setStartDragDistance(l: int) -> None: ... + @staticmethod + def startDragTime() -> int: ... + @staticmethod + def setStartDragTime(ms: int) -> None: ... + @staticmethod + def globalStrut() -> QtCore.QSize: ... + @staticmethod + def setGlobalStrut(a0: QtCore.QSize) -> None: ... + @staticmethod + def wheelScrollLines() -> int: ... + @staticmethod + def setWheelScrollLines(a0: int) -> None: ... + @staticmethod + def keyboardInputInterval() -> int: ... + @staticmethod + def setKeyboardInputInterval(a0: int) -> None: ... + @staticmethod + def doubleClickInterval() -> int: ... + @staticmethod + def setDoubleClickInterval(a0: int) -> None: ... + @staticmethod + def cursorFlashTime() -> int: ... + @staticmethod + def setCursorFlashTime(a0: int) -> None: ... + @staticmethod + def alert(widget: QWidget, msecs: int = ...) -> None: ... + @staticmethod + def beep() -> None: ... + @typing.overload + @staticmethod + def topLevelAt(p: QtCore.QPoint) -> QWidget: ... + @typing.overload + @staticmethod + def topLevelAt(x: int, y: int) -> QWidget: ... + @typing.overload + @staticmethod + def widgetAt(p: QtCore.QPoint) -> QWidget: ... + @typing.overload + @staticmethod + def widgetAt(x: int, y: int) -> QWidget: ... + @staticmethod + def setActiveWindow(act: QWidget) -> None: ... + @staticmethod + def activeWindow() -> QWidget: ... + @staticmethod + def focusWidget() -> QWidget: ... + @staticmethod + def activeModalWidget() -> QWidget: ... + @staticmethod + def activePopupWidget() -> QWidget: ... + @staticmethod + def desktop() -> 'QDesktopWidget': ... + @staticmethod + def topLevelWidgets() -> typing.List[QWidget]: ... + @staticmethod + def allWidgets() -> typing.List[QWidget]: ... + @staticmethod + def windowIcon() -> QtGui.QIcon: ... + @staticmethod + def setWindowIcon(icon: QtGui.QIcon) -> None: ... + @staticmethod + def fontMetrics() -> QtGui.QFontMetrics: ... + @staticmethod + def setFont(a0: QtGui.QFont, className: typing.Optional[str] = ...) -> None: ... + @typing.overload + @staticmethod + def font() -> QtGui.QFont: ... + @typing.overload + @staticmethod + def font(a0: QWidget) -> QtGui.QFont: ... + @typing.overload + @staticmethod + def font(className: str) -> QtGui.QFont: ... + @staticmethod + def setPalette(a0: QtGui.QPalette, className: typing.Optional[str] = ...) -> None: ... + @typing.overload + @staticmethod + def palette() -> QtGui.QPalette: ... + @typing.overload + @staticmethod + def palette(a0: QWidget) -> QtGui.QPalette: ... + @typing.overload + @staticmethod + def palette(className: str) -> QtGui.QPalette: ... + @staticmethod + def setColorSpec(a0: int) -> None: ... + @staticmethod + def colorSpec() -> int: ... + @typing.overload + @staticmethod + def setStyle(a0: 'QStyle') -> None: ... + @typing.overload + @staticmethod + def setStyle(a0: str) -> 'QStyle': ... + @staticmethod + def style() -> 'QStyle': ... + + +class QLayoutItem(sip.wrapper): + + @typing.overload + def __init__(self, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag] = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QLayoutItem') -> None: ... + + def controlTypes(self) -> 'QSizePolicy.ControlTypes': ... + def setAlignment(self, a: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def alignment(self) -> QtCore.Qt.Alignment: ... + def spacerItem(self) -> 'QSpacerItem': ... + def layout(self) -> 'QLayout': ... + def widget(self) -> QWidget: ... + def invalidate(self) -> None: ... + def minimumHeightForWidth(self, a0: int) -> int: ... + def heightForWidth(self, a0: int) -> int: ... + def hasHeightForWidth(self) -> bool: ... + def isEmpty(self) -> bool: ... + def geometry(self) -> QtCore.QRect: ... + def setGeometry(self, a0: QtCore.QRect) -> None: ... + def expandingDirections(self) -> QtCore.Qt.Orientations: ... + def maximumSize(self) -> QtCore.QSize: ... + def minimumSize(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QLayout(QtCore.QObject, QLayoutItem): + + class SizeConstraint(int): ... + SetDefaultConstraint = ... # type: 'QLayout.SizeConstraint' + SetNoConstraint = ... # type: 'QLayout.SizeConstraint' + SetMinimumSize = ... # type: 'QLayout.SizeConstraint' + SetFixedSize = ... # type: 'QLayout.SizeConstraint' + SetMaximumSize = ... # type: 'QLayout.SizeConstraint' + SetMinAndMaxSize = ... # type: 'QLayout.SizeConstraint' + + @typing.overload + def __init__(self, parent: QWidget) -> None: ... + @typing.overload + def __init__(self) -> None: ... + + def replaceWidget(self, from_: QWidget, to: QWidget, options: typing.Union[QtCore.Qt.FindChildOptions, QtCore.Qt.FindChildOption] = ...) -> QLayoutItem: ... + def controlTypes(self) -> 'QSizePolicy.ControlTypes': ... + def contentsMargins(self) -> QtCore.QMargins: ... + def contentsRect(self) -> QtCore.QRect: ... + def getContentsMargins(self) -> typing.Tuple[int, int, int, int]: ... + @typing.overload + def setContentsMargins(self, left: int, top: int, right: int, bottom: int) -> None: ... + @typing.overload + def setContentsMargins(self, margins: QtCore.QMargins) -> None: ... + def alignmentRect(self, a0: QtCore.QRect) -> QtCore.QRect: ... + def addChildWidget(self, w: QWidget) -> None: ... + def addChildLayout(self, l: 'QLayout') -> None: ... + def childEvent(self, e: QtCore.QChildEvent) -> None: ... + def widgetEvent(self, a0: QtCore.QEvent) -> None: ... + @staticmethod + def closestAcceptableSize(w: QWidget, s: QtCore.QSize) -> QtCore.QSize: ... + def isEnabled(self) -> bool: ... + def setEnabled(self, a0: bool) -> None: ... + def layout(self) -> 'QLayout': ... + def totalSizeHint(self) -> QtCore.QSize: ... + def totalMaximumSize(self) -> QtCore.QSize: ... + def totalMinimumSize(self) -> QtCore.QSize: ... + def totalHeightForWidth(self, w: int) -> int: ... + def isEmpty(self) -> bool: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + @typing.overload + def indexOf(self, a0: QWidget) -> int: ... + @typing.overload + def indexOf(self, a0: QLayoutItem) -> int: ... + def takeAt(self, index: int) -> QLayoutItem: ... + def itemAt(self, index: int) -> QLayoutItem: ... + def setGeometry(self, a0: QtCore.QRect) -> None: ... + def maximumSize(self) -> QtCore.QSize: ... + def minimumSize(self) -> QtCore.QSize: ... + def expandingDirections(self) -> QtCore.Qt.Orientations: ... + def removeItem(self, a0: QLayoutItem) -> None: ... + def removeWidget(self, w: QWidget) -> None: ... + def addItem(self, a0: QLayoutItem) -> None: ... + def addWidget(self, w: QWidget) -> None: ... + def update(self) -> None: ... + def activate(self) -> bool: ... + def geometry(self) -> QtCore.QRect: ... + def invalidate(self) -> None: ... + def parentWidget(self) -> QWidget: ... + def menuBar(self) -> QWidget: ... + def setMenuBar(self, w: QWidget) -> None: ... + def sizeConstraint(self) -> 'QLayout.SizeConstraint': ... + def setSizeConstraint(self, a0: 'QLayout.SizeConstraint') -> None: ... + @typing.overload + def setAlignment(self, w: QWidget, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> bool: ... + @typing.overload + def setAlignment(self, l: 'QLayout', alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> bool: ... + @typing.overload + def setAlignment(self, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def setSpacing(self, a0: int) -> None: ... + def spacing(self) -> int: ... + + +class QBoxLayout(QLayout): + + class Direction(int): ... + LeftToRight = ... # type: 'QBoxLayout.Direction' + RightToLeft = ... # type: 'QBoxLayout.Direction' + TopToBottom = ... # type: 'QBoxLayout.Direction' + BottomToTop = ... # type: 'QBoxLayout.Direction' + Down = ... # type: 'QBoxLayout.Direction' + Up = ... # type: 'QBoxLayout.Direction' + + def __init__(self, direction: 'QBoxLayout.Direction', parent: typing.Optional[QWidget] = ...) -> None: ... + + def insertItem(self, index: int, a1: QLayoutItem) -> None: ... + def stretch(self, index: int) -> int: ... + def setStretch(self, index: int, stretch: int) -> None: ... + def insertSpacerItem(self, index: int, spacerItem: 'QSpacerItem') -> None: ... + def addSpacerItem(self, spacerItem: 'QSpacerItem') -> None: ... + def setSpacing(self, spacing: int) -> None: ... + def spacing(self) -> int: ... + def setGeometry(self, a0: QtCore.QRect) -> None: ... + def count(self) -> int: ... + def takeAt(self, a0: int) -> QLayoutItem: ... + def itemAt(self, a0: int) -> QLayoutItem: ... + def invalidate(self) -> None: ... + def expandingDirections(self) -> QtCore.Qt.Orientations: ... + def minimumHeightForWidth(self, a0: int) -> int: ... + def heightForWidth(self, a0: int) -> int: ... + def hasHeightForWidth(self) -> bool: ... + def maximumSize(self) -> QtCore.QSize: ... + def minimumSize(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + @typing.overload + def setStretchFactor(self, w: QWidget, stretch: int) -> bool: ... + @typing.overload + def setStretchFactor(self, l: QLayout, stretch: int) -> bool: ... + def insertLayout(self, index: int, layout: QLayout, stretch: int = ...) -> None: ... + def insertWidget(self, index: int, widget: QWidget, stretch: int = ..., alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag] = ...) -> None: ... + def insertStretch(self, index: int, stretch: int = ...) -> None: ... + def insertSpacing(self, index: int, size: int) -> None: ... + def addItem(self, a0: QLayoutItem) -> None: ... + def addStrut(self, a0: int) -> None: ... + def addLayout(self, layout: QLayout, stretch: int = ...) -> None: ... + def addWidget(self, a0: QWidget, stretch: int = ..., alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag] = ...) -> None: ... + def addStretch(self, stretch: int = ...) -> None: ... + def addSpacing(self, size: int) -> None: ... + def setDirection(self, a0: 'QBoxLayout.Direction') -> None: ... + def direction(self) -> 'QBoxLayout.Direction': ... + + +class QHBoxLayout(QBoxLayout): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, parent: QWidget) -> None: ... + + +class QVBoxLayout(QBoxLayout): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, parent: QWidget) -> None: ... + + +class QButtonGroup(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + @typing.overload + def buttonToggled(self, a0: QAbstractButton, a1: bool) -> None: ... + @typing.overload + def buttonToggled(self, a0: int, a1: bool) -> None: ... + @typing.overload + def buttonReleased(self, a0: QAbstractButton) -> None: ... + @typing.overload + def buttonReleased(self, a0: int) -> None: ... + @typing.overload + def buttonPressed(self, a0: QAbstractButton) -> None: ... + @typing.overload + def buttonPressed(self, a0: int) -> None: ... + @typing.overload + def buttonClicked(self, a0: QAbstractButton) -> None: ... + @typing.overload + def buttonClicked(self, a0: int) -> None: ... + def checkedId(self) -> int: ... + def id(self, button: QAbstractButton) -> int: ... + def setId(self, button: QAbstractButton, id: int) -> None: ... + def checkedButton(self) -> QAbstractButton: ... + def button(self, id: int) -> QAbstractButton: ... + def buttons(self) -> typing.List[QAbstractButton]: ... + def removeButton(self, a0: QAbstractButton) -> None: ... + def addButton(self, a0: QAbstractButton, id: int = ...) -> None: ... + def exclusive(self) -> bool: ... + def setExclusive(self, a0: bool) -> None: ... + + +class QCalendarWidget(QWidget): + + class SelectionMode(int): ... + NoSelection = ... # type: 'QCalendarWidget.SelectionMode' + SingleSelection = ... # type: 'QCalendarWidget.SelectionMode' + + class VerticalHeaderFormat(int): ... + NoVerticalHeader = ... # type: 'QCalendarWidget.VerticalHeaderFormat' + ISOWeekNumbers = ... # type: 'QCalendarWidget.VerticalHeaderFormat' + + class HorizontalHeaderFormat(int): ... + NoHorizontalHeader = ... # type: 'QCalendarWidget.HorizontalHeaderFormat' + SingleLetterDayNames = ... # type: 'QCalendarWidget.HorizontalHeaderFormat' + ShortDayNames = ... # type: 'QCalendarWidget.HorizontalHeaderFormat' + LongDayNames = ... # type: 'QCalendarWidget.HorizontalHeaderFormat' + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def setNavigationBarVisible(self, visible: bool) -> None: ... + def setDateEditAcceptDelay(self, delay: int) -> None: ... + def dateEditAcceptDelay(self) -> int: ... + def setDateEditEnabled(self, enable: bool) -> None: ... + def isDateEditEnabled(self) -> bool: ... + def isNavigationBarVisible(self) -> bool: ... + def selectionChanged(self) -> None: ... + def currentPageChanged(self, year: int, month: int) -> None: ... + def clicked(self, date: typing.Union[QtCore.QDate, datetime.date]) -> None: ... + def activated(self, date: typing.Union[QtCore.QDate, datetime.date]) -> None: ... + def showToday(self) -> None: ... + def showSelectedDate(self) -> None: ... + def showPreviousYear(self) -> None: ... + def showPreviousMonth(self) -> None: ... + def showNextYear(self) -> None: ... + def showNextMonth(self) -> None: ... + def setSelectedDate(self, date: typing.Union[QtCore.QDate, datetime.date]) -> None: ... + def setDateRange(self, min: typing.Union[QtCore.QDate, datetime.date], max: typing.Union[QtCore.QDate, datetime.date]) -> None: ... + def setCurrentPage(self, year: int, month: int) -> None: ... + def paintCell(self, painter: QtGui.QPainter, rect: QtCore.QRect, date: typing.Union[QtCore.QDate, datetime.date]) -> None: ... + def keyPressEvent(self, event: QtGui.QKeyEvent) -> None: ... + def resizeEvent(self, event: QtGui.QResizeEvent) -> None: ... + def mousePressEvent(self, event: QtGui.QMouseEvent) -> None: ... + def eventFilter(self, watched: QtCore.QObject, event: QtCore.QEvent) -> bool: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def updateCells(self) -> None: ... + def updateCell(self, date: typing.Union[QtCore.QDate, datetime.date]) -> None: ... + def setDateTextFormat(self, date: typing.Union[QtCore.QDate, datetime.date], color: QtGui.QTextCharFormat) -> None: ... + @typing.overload + def dateTextFormat(self) -> typing.Dict[QtCore.QDate, QtGui.QTextCharFormat]: ... + @typing.overload + def dateTextFormat(self, date: typing.Union[QtCore.QDate, datetime.date]) -> QtGui.QTextCharFormat: ... + def setWeekdayTextFormat(self, dayOfWeek: QtCore.Qt.DayOfWeek, format: QtGui.QTextCharFormat) -> None: ... + def weekdayTextFormat(self, dayOfWeek: QtCore.Qt.DayOfWeek) -> QtGui.QTextCharFormat: ... + def setHeaderTextFormat(self, format: QtGui.QTextCharFormat) -> None: ... + def headerTextFormat(self) -> QtGui.QTextCharFormat: ... + def setVerticalHeaderFormat(self, format: 'QCalendarWidget.VerticalHeaderFormat') -> None: ... + def verticalHeaderFormat(self) -> 'QCalendarWidget.VerticalHeaderFormat': ... + def setHorizontalHeaderFormat(self, format: 'QCalendarWidget.HorizontalHeaderFormat') -> None: ... + def horizontalHeaderFormat(self) -> 'QCalendarWidget.HorizontalHeaderFormat': ... + def setSelectionMode(self, mode: 'QCalendarWidget.SelectionMode') -> None: ... + def selectionMode(self) -> 'QCalendarWidget.SelectionMode': ... + def setGridVisible(self, show: bool) -> None: ... + def isGridVisible(self) -> bool: ... + def setFirstDayOfWeek(self, dayOfWeek: QtCore.Qt.DayOfWeek) -> None: ... + def firstDayOfWeek(self) -> QtCore.Qt.DayOfWeek: ... + def setMaximumDate(self, date: typing.Union[QtCore.QDate, datetime.date]) -> None: ... + def maximumDate(self) -> QtCore.QDate: ... + def setMinimumDate(self, date: typing.Union[QtCore.QDate, datetime.date]) -> None: ... + def minimumDate(self) -> QtCore.QDate: ... + def monthShown(self) -> int: ... + def yearShown(self) -> int: ... + def selectedDate(self) -> QtCore.QDate: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QCheckBox(QAbstractButton): + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, text: str, parent: typing.Optional[QWidget] = ...) -> None: ... + + def initStyleOption(self, option: 'QStyleOptionButton') -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def nextCheckState(self) -> None: ... + def checkStateSet(self) -> None: ... + def hitButton(self, pos: QtCore.QPoint) -> bool: ... + def stateChanged(self, a0: int) -> None: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def setCheckState(self, state: QtCore.Qt.CheckState) -> None: ... + def checkState(self) -> QtCore.Qt.CheckState: ... + def isTristate(self) -> bool: ... + def setTristate(self, on: bool = ...) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QDialog(QWidget): + + class DialogCode(int): ... + Rejected = ... # type: 'QDialog.DialogCode' + Accepted = ... # type: 'QDialog.DialogCode' + + def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def eventFilter(self, a0: QtCore.QObject, a1: QtCore.QEvent) -> bool: ... + def contextMenuEvent(self, a0: QtGui.QContextMenuEvent) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent) -> None: ... + def closeEvent(self, a0: QtGui.QCloseEvent) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def rejected(self) -> None: ... + def finished(self, result: int) -> None: ... + def accepted(self) -> None: ... + def open(self) -> None: ... + def reject(self) -> None: ... + def accept(self) -> None: ... + def done(self, a0: int) -> None: ... + def exec(self) -> int: ... + def exec_(self) -> int: ... + def setResult(self, r: int) -> None: ... + def setModal(self, modal: bool) -> None: ... + def isSizeGripEnabled(self) -> bool: ... + def setSizeGripEnabled(self, a0: bool) -> None: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + def setVisible(self, visible: bool) -> None: ... + def result(self) -> int: ... + + +class QColorDialog(QDialog): + + class ColorDialogOption(int): ... + ShowAlphaChannel = ... # type: 'QColorDialog.ColorDialogOption' + NoButtons = ... # type: 'QColorDialog.ColorDialogOption' + DontUseNativeDialog = ... # type: 'QColorDialog.ColorDialogOption' + + class ColorDialogOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QColorDialog.ColorDialogOptions', 'QColorDialog.ColorDialogOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QColorDialog.ColorDialogOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QColorDialog.ColorDialogOptions': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, initial: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient], parent: typing.Optional[QWidget] = ...) -> None: ... + + def setVisible(self, visible: bool) -> None: ... + @typing.overload + def open(self) -> None: ... + @typing.overload + def open(self, slot: PYQT_SLOT) -> None: ... + def options(self) -> 'QColorDialog.ColorDialogOptions': ... + def setOptions(self, options: typing.Union['QColorDialog.ColorDialogOptions', 'QColorDialog.ColorDialogOption']) -> None: ... + def testOption(self, option: 'QColorDialog.ColorDialogOption') -> bool: ... + def setOption(self, option: 'QColorDialog.ColorDialogOption', on: bool = ...) -> None: ... + def selectedColor(self) -> QtGui.QColor: ... + def currentColor(self) -> QtGui.QColor: ... + def setCurrentColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def done(self, result: int) -> None: ... + def changeEvent(self, e: QtCore.QEvent) -> None: ... + def currentColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def colorSelected(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + @staticmethod + def setStandardColor(index: int, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + @staticmethod + def standardColor(index: int) -> QtGui.QColor: ... + @staticmethod + def setCustomColor(index: int, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + @staticmethod + def customColor(index: int) -> QtGui.QColor: ... + @staticmethod + def customCount() -> int: ... + @staticmethod + def getColor(initial: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ..., parent: typing.Optional[QWidget] = ..., title: str = ..., options: typing.Union['QColorDialog.ColorDialogOptions', 'QColorDialog.ColorDialogOption'] = ...) -> QtGui.QColor: ... + + +class QColumnView(QAbstractItemView): + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def currentChanged(self, current: QtCore.QModelIndex, previous: QtCore.QModelIndex) -> None: ... + def rowsInserted(self, parent: QtCore.QModelIndex, start: int, end: int) -> None: ... + def scrollContentsBy(self, dx: int, dy: int) -> None: ... + def verticalOffset(self) -> int: ... + def horizontalOffset(self) -> int: ... + def visualRegionForSelection(self, selection: QtCore.QItemSelection) -> QtGui.QRegion: ... + def setSelection(self, rect: QtCore.QRect, command: typing.Union[QtCore.QItemSelectionModel.SelectionFlags, QtCore.QItemSelectionModel.SelectionFlag]) -> None: ... + def resizeEvent(self, event: QtGui.QResizeEvent) -> None: ... + def moveCursor(self, cursorAction: QAbstractItemView.CursorAction, modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier]) -> QtCore.QModelIndex: ... + def isIndexHidden(self, index: QtCore.QModelIndex) -> bool: ... + def initializeColumn(self, column: QAbstractItemView) -> None: ... + def createColumn(self, rootIndex: QtCore.QModelIndex) -> QAbstractItemView: ... + def updatePreviewWidget(self, index: QtCore.QModelIndex) -> None: ... + def selectAll(self) -> None: ... + def setRootIndex(self, index: QtCore.QModelIndex) -> None: ... + def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel) -> None: ... + def setModel(self, model: QtCore.QAbstractItemModel) -> None: ... + def visualRect(self, index: QtCore.QModelIndex) -> QtCore.QRect: ... + def sizeHint(self) -> QtCore.QSize: ... + def scrollTo(self, index: QtCore.QModelIndex, hint: QAbstractItemView.ScrollHint = ...) -> None: ... + def indexAt(self, point: QtCore.QPoint) -> QtCore.QModelIndex: ... + def setResizeGripsVisible(self, visible: bool) -> None: ... + def setPreviewWidget(self, widget: QWidget) -> None: ... + def setColumnWidths(self, list: typing.Iterable[int]) -> None: ... + def resizeGripsVisible(self) -> bool: ... + def previewWidget(self) -> QWidget: ... + def columnWidths(self) -> typing.List[int]: ... + + +class QComboBox(QWidget): + + class SizeAdjustPolicy(int): ... + AdjustToContents = ... # type: 'QComboBox.SizeAdjustPolicy' + AdjustToContentsOnFirstShow = ... # type: 'QComboBox.SizeAdjustPolicy' + AdjustToMinimumContentsLength = ... # type: 'QComboBox.SizeAdjustPolicy' + AdjustToMinimumContentsLengthWithIcon = ... # type: 'QComboBox.SizeAdjustPolicy' + + class InsertPolicy(int): ... + NoInsert = ... # type: 'QComboBox.InsertPolicy' + InsertAtTop = ... # type: 'QComboBox.InsertPolicy' + InsertAtCurrent = ... # type: 'QComboBox.InsertPolicy' + InsertAtBottom = ... # type: 'QComboBox.InsertPolicy' + InsertAfterCurrent = ... # type: 'QComboBox.InsertPolicy' + InsertBeforeCurrent = ... # type: 'QComboBox.InsertPolicy' + InsertAlphabetically = ... # type: 'QComboBox.InsertPolicy' + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def currentData(self, role: int = ...) -> typing.Any: ... + @typing.overload + def inputMethodQuery(self, a0: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + @typing.overload + def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery, argument: typing.Any) -> typing.Any: ... + def inputMethodEvent(self, a0: QtGui.QInputMethodEvent) -> None: ... + def contextMenuEvent(self, e: QtGui.QContextMenuEvent) -> None: ... + def wheelEvent(self, e: QtGui.QWheelEvent) -> None: ... + def keyReleaseEvent(self, e: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, e: QtGui.QKeyEvent) -> None: ... + def mouseReleaseEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, e: QtGui.QMouseEvent) -> None: ... + def hideEvent(self, e: QtGui.QHideEvent) -> None: ... + def showEvent(self, e: QtGui.QShowEvent) -> None: ... + def paintEvent(self, e: QtGui.QPaintEvent) -> None: ... + def resizeEvent(self, e: QtGui.QResizeEvent) -> None: ... + def changeEvent(self, e: QtCore.QEvent) -> None: ... + def focusOutEvent(self, e: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, e: QtGui.QFocusEvent) -> None: ... + def initStyleOption(self, option: 'QStyleOptionComboBox') -> None: ... + @typing.overload + def highlighted(self, index: int) -> None: ... + @typing.overload + def highlighted(self, a0: str) -> None: ... + def currentTextChanged(self, a0: str) -> None: ... + @typing.overload + def currentIndexChanged(self, index: int) -> None: ... + @typing.overload + def currentIndexChanged(self, a0: str) -> None: ... + @typing.overload + def activated(self, index: int) -> None: ... + @typing.overload + def activated(self, a0: str) -> None: ... + def editTextChanged(self, a0: str) -> None: ... + def setCurrentText(self, text: str) -> None: ... + def setEditText(self, text: str) -> None: ... + def clearEditText(self) -> None: ... + def clear(self) -> None: ... + def insertSeparator(self, index: int) -> None: ... + def completer(self) -> 'QCompleter': ... + def setCompleter(self, c: 'QCompleter') -> None: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def hidePopup(self) -> None: ... + def showPopup(self) -> None: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + def setView(self, itemView: QAbstractItemView) -> None: ... + def view(self) -> QAbstractItemView: ... + def setItemData(self, index: int, value: typing.Any, role: int = ...) -> None: ... + def setItemIcon(self, index: int, icon: QtGui.QIcon) -> None: ... + def setItemText(self, index: int, text: str) -> None: ... + def removeItem(self, index: int) -> None: ... + def insertItems(self, index: int, texts: typing.Iterable[str]) -> None: ... + @typing.overload + def insertItem(self, index: int, text: str, userData: typing.Any = ...) -> None: ... + @typing.overload + def insertItem(self, index: int, icon: QtGui.QIcon, text: str, userData: typing.Any = ...) -> None: ... + @typing.overload + def addItem(self, text: str, userData: typing.Any = ...) -> None: ... + @typing.overload + def addItem(self, icon: QtGui.QIcon, text: str, userData: typing.Any = ...) -> None: ... + def addItems(self, texts: typing.Iterable[str]) -> None: ... + def itemData(self, index: int, role: int = ...) -> typing.Any: ... + def itemIcon(self, index: int) -> QtGui.QIcon: ... + def itemText(self, index: int) -> str: ... + def currentText(self) -> str: ... + def setCurrentIndex(self, index: int) -> None: ... + def currentIndex(self) -> int: ... + def setModelColumn(self, visibleColumn: int) -> None: ... + def modelColumn(self) -> int: ... + def setRootModelIndex(self, index: QtCore.QModelIndex) -> None: ... + def rootModelIndex(self) -> QtCore.QModelIndex: ... + def setModel(self, model: QtCore.QAbstractItemModel) -> None: ... + def model(self) -> QtCore.QAbstractItemModel: ... + def setItemDelegate(self, delegate: QAbstractItemDelegate) -> None: ... + def itemDelegate(self) -> QAbstractItemDelegate: ... + def validator(self) -> QtGui.QValidator: ... + def setValidator(self, v: QtGui.QValidator) -> None: ... + def lineEdit(self) -> 'QLineEdit': ... + def setLineEdit(self, edit: 'QLineEdit') -> None: ... + def setEditable(self, editable: bool) -> None: ... + def isEditable(self) -> bool: ... + def setIconSize(self, size: QtCore.QSize) -> None: ... + def iconSize(self) -> QtCore.QSize: ... + def setMinimumContentsLength(self, characters: int) -> None: ... + def minimumContentsLength(self) -> int: ... + def setSizeAdjustPolicy(self, policy: 'QComboBox.SizeAdjustPolicy') -> None: ... + def sizeAdjustPolicy(self) -> 'QComboBox.SizeAdjustPolicy': ... + def setInsertPolicy(self, policy: 'QComboBox.InsertPolicy') -> None: ... + def insertPolicy(self) -> 'QComboBox.InsertPolicy': ... + def findData(self, data: typing.Any, role: int = ..., flags: typing.Union[QtCore.Qt.MatchFlags, QtCore.Qt.MatchFlag] = ...) -> int: ... + def findText(self, text: str, flags: typing.Union[QtCore.Qt.MatchFlags, QtCore.Qt.MatchFlag] = ...) -> int: ... + def hasFrame(self) -> bool: ... + def setFrame(self, a0: bool) -> None: ... + def setDuplicatesEnabled(self, enable: bool) -> None: ... + def duplicatesEnabled(self) -> bool: ... + def maxCount(self) -> int: ... + def setMaxCount(self, max: int) -> None: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def setMaxVisibleItems(self, maxItems: int) -> None: ... + def maxVisibleItems(self) -> int: ... + + +class QPushButton(QAbstractButton): + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, text: str, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, icon: QtGui.QIcon, text: str, parent: typing.Optional[QWidget] = ...) -> None: ... + + def hitButton(self, pos: QtCore.QPoint) -> bool: ... + def focusOutEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def initStyleOption(self, option: 'QStyleOptionButton') -> None: ... + def showMenu(self) -> None: ... + def isFlat(self) -> bool: ... + def setFlat(self, a0: bool) -> None: ... + def menu(self) -> 'QMenu': ... + def setMenu(self, menu: 'QMenu') -> None: ... + def setDefault(self, a0: bool) -> None: ... + def isDefault(self) -> bool: ... + def setAutoDefault(self, a0: bool) -> None: ... + def autoDefault(self) -> bool: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QCommandLinkButton(QPushButton): + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, text: str, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, text: str, description: str, parent: typing.Optional[QWidget] = ...) -> None: ... + + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def heightForWidth(self, a0: int) -> int: ... + def sizeHint(self) -> QtCore.QSize: ... + def setDescription(self, description: str) -> None: ... + def description(self) -> str: ... + + +class QStyle(QtCore.QObject): + + class RequestSoftwareInputPanel(int): ... + RSIP_OnMouseClickAndAlreadyFocused = ... # type: 'QStyle.RequestSoftwareInputPanel' + RSIP_OnMouseClick = ... # type: 'QStyle.RequestSoftwareInputPanel' + + class StandardPixmap(int): ... + SP_TitleBarMenuButton = ... # type: 'QStyle.StandardPixmap' + SP_TitleBarMinButton = ... # type: 'QStyle.StandardPixmap' + SP_TitleBarMaxButton = ... # type: 'QStyle.StandardPixmap' + SP_TitleBarCloseButton = ... # type: 'QStyle.StandardPixmap' + SP_TitleBarNormalButton = ... # type: 'QStyle.StandardPixmap' + SP_TitleBarShadeButton = ... # type: 'QStyle.StandardPixmap' + SP_TitleBarUnshadeButton = ... # type: 'QStyle.StandardPixmap' + SP_TitleBarContextHelpButton = ... # type: 'QStyle.StandardPixmap' + SP_DockWidgetCloseButton = ... # type: 'QStyle.StandardPixmap' + SP_MessageBoxInformation = ... # type: 'QStyle.StandardPixmap' + SP_MessageBoxWarning = ... # type: 'QStyle.StandardPixmap' + SP_MessageBoxCritical = ... # type: 'QStyle.StandardPixmap' + SP_MessageBoxQuestion = ... # type: 'QStyle.StandardPixmap' + SP_DesktopIcon = ... # type: 'QStyle.StandardPixmap' + SP_TrashIcon = ... # type: 'QStyle.StandardPixmap' + SP_ComputerIcon = ... # type: 'QStyle.StandardPixmap' + SP_DriveFDIcon = ... # type: 'QStyle.StandardPixmap' + SP_DriveHDIcon = ... # type: 'QStyle.StandardPixmap' + SP_DriveCDIcon = ... # type: 'QStyle.StandardPixmap' + SP_DriveDVDIcon = ... # type: 'QStyle.StandardPixmap' + SP_DriveNetIcon = ... # type: 'QStyle.StandardPixmap' + SP_DirOpenIcon = ... # type: 'QStyle.StandardPixmap' + SP_DirClosedIcon = ... # type: 'QStyle.StandardPixmap' + SP_DirLinkIcon = ... # type: 'QStyle.StandardPixmap' + SP_FileIcon = ... # type: 'QStyle.StandardPixmap' + SP_FileLinkIcon = ... # type: 'QStyle.StandardPixmap' + SP_ToolBarHorizontalExtensionButton = ... # type: 'QStyle.StandardPixmap' + SP_ToolBarVerticalExtensionButton = ... # type: 'QStyle.StandardPixmap' + SP_FileDialogStart = ... # type: 'QStyle.StandardPixmap' + SP_FileDialogEnd = ... # type: 'QStyle.StandardPixmap' + SP_FileDialogToParent = ... # type: 'QStyle.StandardPixmap' + SP_FileDialogNewFolder = ... # type: 'QStyle.StandardPixmap' + SP_FileDialogDetailedView = ... # type: 'QStyle.StandardPixmap' + SP_FileDialogInfoView = ... # type: 'QStyle.StandardPixmap' + SP_FileDialogContentsView = ... # type: 'QStyle.StandardPixmap' + SP_FileDialogListView = ... # type: 'QStyle.StandardPixmap' + SP_FileDialogBack = ... # type: 'QStyle.StandardPixmap' + SP_DirIcon = ... # type: 'QStyle.StandardPixmap' + SP_DialogOkButton = ... # type: 'QStyle.StandardPixmap' + SP_DialogCancelButton = ... # type: 'QStyle.StandardPixmap' + SP_DialogHelpButton = ... # type: 'QStyle.StandardPixmap' + SP_DialogOpenButton = ... # type: 'QStyle.StandardPixmap' + SP_DialogSaveButton = ... # type: 'QStyle.StandardPixmap' + SP_DialogCloseButton = ... # type: 'QStyle.StandardPixmap' + SP_DialogApplyButton = ... # type: 'QStyle.StandardPixmap' + SP_DialogResetButton = ... # type: 'QStyle.StandardPixmap' + SP_DialogDiscardButton = ... # type: 'QStyle.StandardPixmap' + SP_DialogYesButton = ... # type: 'QStyle.StandardPixmap' + SP_DialogNoButton = ... # type: 'QStyle.StandardPixmap' + SP_ArrowUp = ... # type: 'QStyle.StandardPixmap' + SP_ArrowDown = ... # type: 'QStyle.StandardPixmap' + SP_ArrowLeft = ... # type: 'QStyle.StandardPixmap' + SP_ArrowRight = ... # type: 'QStyle.StandardPixmap' + SP_ArrowBack = ... # type: 'QStyle.StandardPixmap' + SP_ArrowForward = ... # type: 'QStyle.StandardPixmap' + SP_DirHomeIcon = ... # type: 'QStyle.StandardPixmap' + SP_CommandLink = ... # type: 'QStyle.StandardPixmap' + SP_VistaShield = ... # type: 'QStyle.StandardPixmap' + SP_BrowserReload = ... # type: 'QStyle.StandardPixmap' + SP_BrowserStop = ... # type: 'QStyle.StandardPixmap' + SP_MediaPlay = ... # type: 'QStyle.StandardPixmap' + SP_MediaStop = ... # type: 'QStyle.StandardPixmap' + SP_MediaPause = ... # type: 'QStyle.StandardPixmap' + SP_MediaSkipForward = ... # type: 'QStyle.StandardPixmap' + SP_MediaSkipBackward = ... # type: 'QStyle.StandardPixmap' + SP_MediaSeekForward = ... # type: 'QStyle.StandardPixmap' + SP_MediaSeekBackward = ... # type: 'QStyle.StandardPixmap' + SP_MediaVolume = ... # type: 'QStyle.StandardPixmap' + SP_MediaVolumeMuted = ... # type: 'QStyle.StandardPixmap' + SP_DirLinkOpenIcon = ... # type: 'QStyle.StandardPixmap' + SP_LineEditClearButton = ... # type: 'QStyle.StandardPixmap' + SP_CustomBase = ... # type: 'QStyle.StandardPixmap' + + class StyleHint(int): ... + SH_EtchDisabledText = ... # type: 'QStyle.StyleHint' + SH_DitherDisabledText = ... # type: 'QStyle.StyleHint' + SH_ScrollBar_MiddleClickAbsolutePosition = ... # type: 'QStyle.StyleHint' + SH_ScrollBar_ScrollWhenPointerLeavesControl = ... # type: 'QStyle.StyleHint' + SH_TabBar_SelectMouseType = ... # type: 'QStyle.StyleHint' + SH_TabBar_Alignment = ... # type: 'QStyle.StyleHint' + SH_Header_ArrowAlignment = ... # type: 'QStyle.StyleHint' + SH_Slider_SnapToValue = ... # type: 'QStyle.StyleHint' + SH_Slider_SloppyKeyEvents = ... # type: 'QStyle.StyleHint' + SH_ProgressDialog_CenterCancelButton = ... # type: 'QStyle.StyleHint' + SH_ProgressDialog_TextLabelAlignment = ... # type: 'QStyle.StyleHint' + SH_PrintDialog_RightAlignButtons = ... # type: 'QStyle.StyleHint' + SH_MainWindow_SpaceBelowMenuBar = ... # type: 'QStyle.StyleHint' + SH_FontDialog_SelectAssociatedText = ... # type: 'QStyle.StyleHint' + SH_Menu_AllowActiveAndDisabled = ... # type: 'QStyle.StyleHint' + SH_Menu_SpaceActivatesItem = ... # type: 'QStyle.StyleHint' + SH_Menu_SubMenuPopupDelay = ... # type: 'QStyle.StyleHint' + SH_ScrollView_FrameOnlyAroundContents = ... # type: 'QStyle.StyleHint' + SH_MenuBar_AltKeyNavigation = ... # type: 'QStyle.StyleHint' + SH_ComboBox_ListMouseTracking = ... # type: 'QStyle.StyleHint' + SH_Menu_MouseTracking = ... # type: 'QStyle.StyleHint' + SH_MenuBar_MouseTracking = ... # type: 'QStyle.StyleHint' + SH_ItemView_ChangeHighlightOnFocus = ... # type: 'QStyle.StyleHint' + SH_Widget_ShareActivation = ... # type: 'QStyle.StyleHint' + SH_Workspace_FillSpaceOnMaximize = ... # type: 'QStyle.StyleHint' + SH_ComboBox_Popup = ... # type: 'QStyle.StyleHint' + SH_TitleBar_NoBorder = ... # type: 'QStyle.StyleHint' + SH_ScrollBar_StopMouseOverSlider = ... # type: 'QStyle.StyleHint' + SH_BlinkCursorWhenTextSelected = ... # type: 'QStyle.StyleHint' + SH_RichText_FullWidthSelection = ... # type: 'QStyle.StyleHint' + SH_Menu_Scrollable = ... # type: 'QStyle.StyleHint' + SH_GroupBox_TextLabelVerticalAlignment = ... # type: 'QStyle.StyleHint' + SH_GroupBox_TextLabelColor = ... # type: 'QStyle.StyleHint' + SH_Menu_SloppySubMenus = ... # type: 'QStyle.StyleHint' + SH_Table_GridLineColor = ... # type: 'QStyle.StyleHint' + SH_LineEdit_PasswordCharacter = ... # type: 'QStyle.StyleHint' + SH_DialogButtons_DefaultButton = ... # type: 'QStyle.StyleHint' + SH_ToolBox_SelectedPageTitleBold = ... # type: 'QStyle.StyleHint' + SH_TabBar_PreferNoArrows = ... # type: 'QStyle.StyleHint' + SH_ScrollBar_LeftClickAbsolutePosition = ... # type: 'QStyle.StyleHint' + SH_UnderlineShortcut = ... # type: 'QStyle.StyleHint' + SH_SpinBox_AnimateButton = ... # type: 'QStyle.StyleHint' + SH_SpinBox_KeyPressAutoRepeatRate = ... # type: 'QStyle.StyleHint' + SH_SpinBox_ClickAutoRepeatRate = ... # type: 'QStyle.StyleHint' + SH_Menu_FillScreenWithScroll = ... # type: 'QStyle.StyleHint' + SH_ToolTipLabel_Opacity = ... # type: 'QStyle.StyleHint' + SH_DrawMenuBarSeparator = ... # type: 'QStyle.StyleHint' + SH_TitleBar_ModifyNotification = ... # type: 'QStyle.StyleHint' + SH_Button_FocusPolicy = ... # type: 'QStyle.StyleHint' + SH_MessageBox_UseBorderForButtonSpacing = ... # type: 'QStyle.StyleHint' + SH_TitleBar_AutoRaise = ... # type: 'QStyle.StyleHint' + SH_ToolButton_PopupDelay = ... # type: 'QStyle.StyleHint' + SH_FocusFrame_Mask = ... # type: 'QStyle.StyleHint' + SH_RubberBand_Mask = ... # type: 'QStyle.StyleHint' + SH_WindowFrame_Mask = ... # type: 'QStyle.StyleHint' + SH_SpinControls_DisableOnBounds = ... # type: 'QStyle.StyleHint' + SH_Dial_BackgroundRole = ... # type: 'QStyle.StyleHint' + SH_ComboBox_LayoutDirection = ... # type: 'QStyle.StyleHint' + SH_ItemView_EllipsisLocation = ... # type: 'QStyle.StyleHint' + SH_ItemView_ShowDecorationSelected = ... # type: 'QStyle.StyleHint' + SH_ItemView_ActivateItemOnSingleClick = ... # type: 'QStyle.StyleHint' + SH_ScrollBar_ContextMenu = ... # type: 'QStyle.StyleHint' + SH_ScrollBar_RollBetweenButtons = ... # type: 'QStyle.StyleHint' + SH_Slider_StopMouseOverSlider = ... # type: 'QStyle.StyleHint' + SH_Slider_AbsoluteSetButtons = ... # type: 'QStyle.StyleHint' + SH_Slider_PageSetButtons = ... # type: 'QStyle.StyleHint' + SH_Menu_KeyboardSearch = ... # type: 'QStyle.StyleHint' + SH_TabBar_ElideMode = ... # type: 'QStyle.StyleHint' + SH_DialogButtonLayout = ... # type: 'QStyle.StyleHint' + SH_ComboBox_PopupFrameStyle = ... # type: 'QStyle.StyleHint' + SH_MessageBox_TextInteractionFlags = ... # type: 'QStyle.StyleHint' + SH_DialogButtonBox_ButtonsHaveIcons = ... # type: 'QStyle.StyleHint' + SH_SpellCheckUnderlineStyle = ... # type: 'QStyle.StyleHint' + SH_MessageBox_CenterButtons = ... # type: 'QStyle.StyleHint' + SH_Menu_SelectionWrap = ... # type: 'QStyle.StyleHint' + SH_ItemView_MovementWithoutUpdatingSelection = ... # type: 'QStyle.StyleHint' + SH_ToolTip_Mask = ... # type: 'QStyle.StyleHint' + SH_FocusFrame_AboveWidget = ... # type: 'QStyle.StyleHint' + SH_TextControl_FocusIndicatorTextCharFormat = ... # type: 'QStyle.StyleHint' + SH_WizardStyle = ... # type: 'QStyle.StyleHint' + SH_ItemView_ArrowKeysNavigateIntoChildren = ... # type: 'QStyle.StyleHint' + SH_Menu_Mask = ... # type: 'QStyle.StyleHint' + SH_Menu_FlashTriggeredItem = ... # type: 'QStyle.StyleHint' + SH_Menu_FadeOutOnHide = ... # type: 'QStyle.StyleHint' + SH_SpinBox_ClickAutoRepeatThreshold = ... # type: 'QStyle.StyleHint' + SH_ItemView_PaintAlternatingRowColorsForEmptyArea = ... # type: 'QStyle.StyleHint' + SH_FormLayoutWrapPolicy = ... # type: 'QStyle.StyleHint' + SH_TabWidget_DefaultTabPosition = ... # type: 'QStyle.StyleHint' + SH_ToolBar_Movable = ... # type: 'QStyle.StyleHint' + SH_FormLayoutFieldGrowthPolicy = ... # type: 'QStyle.StyleHint' + SH_FormLayoutFormAlignment = ... # type: 'QStyle.StyleHint' + SH_FormLayoutLabelAlignment = ... # type: 'QStyle.StyleHint' + SH_ItemView_DrawDelegateFrame = ... # type: 'QStyle.StyleHint' + SH_TabBar_CloseButtonPosition = ... # type: 'QStyle.StyleHint' + SH_DockWidget_ButtonsHaveFrame = ... # type: 'QStyle.StyleHint' + SH_ToolButtonStyle = ... # type: 'QStyle.StyleHint' + SH_RequestSoftwareInputPanel = ... # type: 'QStyle.StyleHint' + SH_ListViewExpand_SelectMouseType = ... # type: 'QStyle.StyleHint' + SH_ScrollBar_Transient = ... # type: 'QStyle.StyleHint' + SH_Menu_SupportsSections = ... # type: 'QStyle.StyleHint' + SH_ToolTip_WakeUpDelay = ... # type: 'QStyle.StyleHint' + SH_ToolTip_FallAsleepDelay = ... # type: 'QStyle.StyleHint' + SH_Widget_Animate = ... # type: 'QStyle.StyleHint' + SH_Splitter_OpaqueResize = ... # type: 'QStyle.StyleHint' + SH_LineEdit_PasswordMaskDelay = ... # type: 'QStyle.StyleHint' + SH_TabBar_ChangeCurrentDelay = ... # type: 'QStyle.StyleHint' + SH_Menu_SubMenuUniDirection = ... # type: 'QStyle.StyleHint' + SH_Menu_SubMenuUniDirectionFailCount = ... # type: 'QStyle.StyleHint' + SH_Menu_SubMenuSloppySelectOtherActions = ... # type: 'QStyle.StyleHint' + SH_Menu_SubMenuSloppyCloseTimeout = ... # type: 'QStyle.StyleHint' + SH_Menu_SubMenuResetWhenReenteringParent = ... # type: 'QStyle.StyleHint' + SH_Menu_SubMenuDontStartSloppyOnLeave = ... # type: 'QStyle.StyleHint' + SH_ItemView_ScrollMode = ... # type: 'QStyle.StyleHint' + SH_TitleBar_ShowToolTipsOnButtons = ... # type: 'QStyle.StyleHint' + SH_Widget_Animation_Duration = ... # type: 'QStyle.StyleHint' + SH_ComboBox_AllowWheelScrolling = ... # type: 'QStyle.StyleHint' + SH_SpinBox_ButtonsInsideFrame = ... # type: 'QStyle.StyleHint' + SH_SpinBox_StepModifier = ... # type: 'QStyle.StyleHint' + SH_CustomBase = ... # type: 'QStyle.StyleHint' + + class ContentsType(int): ... + CT_PushButton = ... # type: 'QStyle.ContentsType' + CT_CheckBox = ... # type: 'QStyle.ContentsType' + CT_RadioButton = ... # type: 'QStyle.ContentsType' + CT_ToolButton = ... # type: 'QStyle.ContentsType' + CT_ComboBox = ... # type: 'QStyle.ContentsType' + CT_Splitter = ... # type: 'QStyle.ContentsType' + CT_ProgressBar = ... # type: 'QStyle.ContentsType' + CT_MenuItem = ... # type: 'QStyle.ContentsType' + CT_MenuBarItem = ... # type: 'QStyle.ContentsType' + CT_MenuBar = ... # type: 'QStyle.ContentsType' + CT_Menu = ... # type: 'QStyle.ContentsType' + CT_TabBarTab = ... # type: 'QStyle.ContentsType' + CT_Slider = ... # type: 'QStyle.ContentsType' + CT_ScrollBar = ... # type: 'QStyle.ContentsType' + CT_LineEdit = ... # type: 'QStyle.ContentsType' + CT_SpinBox = ... # type: 'QStyle.ContentsType' + CT_SizeGrip = ... # type: 'QStyle.ContentsType' + CT_TabWidget = ... # type: 'QStyle.ContentsType' + CT_DialogButtons = ... # type: 'QStyle.ContentsType' + CT_HeaderSection = ... # type: 'QStyle.ContentsType' + CT_GroupBox = ... # type: 'QStyle.ContentsType' + CT_MdiControls = ... # type: 'QStyle.ContentsType' + CT_ItemViewItem = ... # type: 'QStyle.ContentsType' + CT_CustomBase = ... # type: 'QStyle.ContentsType' + + class PixelMetric(int): ... + PM_ButtonMargin = ... # type: 'QStyle.PixelMetric' + PM_ButtonDefaultIndicator = ... # type: 'QStyle.PixelMetric' + PM_MenuButtonIndicator = ... # type: 'QStyle.PixelMetric' + PM_ButtonShiftHorizontal = ... # type: 'QStyle.PixelMetric' + PM_ButtonShiftVertical = ... # type: 'QStyle.PixelMetric' + PM_DefaultFrameWidth = ... # type: 'QStyle.PixelMetric' + PM_SpinBoxFrameWidth = ... # type: 'QStyle.PixelMetric' + PM_ComboBoxFrameWidth = ... # type: 'QStyle.PixelMetric' + PM_MaximumDragDistance = ... # type: 'QStyle.PixelMetric' + PM_ScrollBarExtent = ... # type: 'QStyle.PixelMetric' + PM_ScrollBarSliderMin = ... # type: 'QStyle.PixelMetric' + PM_SliderThickness = ... # type: 'QStyle.PixelMetric' + PM_SliderControlThickness = ... # type: 'QStyle.PixelMetric' + PM_SliderLength = ... # type: 'QStyle.PixelMetric' + PM_SliderTickmarkOffset = ... # type: 'QStyle.PixelMetric' + PM_SliderSpaceAvailable = ... # type: 'QStyle.PixelMetric' + PM_DockWidgetSeparatorExtent = ... # type: 'QStyle.PixelMetric' + PM_DockWidgetHandleExtent = ... # type: 'QStyle.PixelMetric' + PM_DockWidgetFrameWidth = ... # type: 'QStyle.PixelMetric' + PM_TabBarTabOverlap = ... # type: 'QStyle.PixelMetric' + PM_TabBarTabHSpace = ... # type: 'QStyle.PixelMetric' + PM_TabBarTabVSpace = ... # type: 'QStyle.PixelMetric' + PM_TabBarBaseHeight = ... # type: 'QStyle.PixelMetric' + PM_TabBarBaseOverlap = ... # type: 'QStyle.PixelMetric' + PM_ProgressBarChunkWidth = ... # type: 'QStyle.PixelMetric' + PM_SplitterWidth = ... # type: 'QStyle.PixelMetric' + PM_TitleBarHeight = ... # type: 'QStyle.PixelMetric' + PM_MenuScrollerHeight = ... # type: 'QStyle.PixelMetric' + PM_MenuHMargin = ... # type: 'QStyle.PixelMetric' + PM_MenuVMargin = ... # type: 'QStyle.PixelMetric' + PM_MenuPanelWidth = ... # type: 'QStyle.PixelMetric' + PM_MenuTearoffHeight = ... # type: 'QStyle.PixelMetric' + PM_MenuDesktopFrameWidth = ... # type: 'QStyle.PixelMetric' + PM_MenuBarPanelWidth = ... # type: 'QStyle.PixelMetric' + PM_MenuBarItemSpacing = ... # type: 'QStyle.PixelMetric' + PM_MenuBarVMargin = ... # type: 'QStyle.PixelMetric' + PM_MenuBarHMargin = ... # type: 'QStyle.PixelMetric' + PM_IndicatorWidth = ... # type: 'QStyle.PixelMetric' + PM_IndicatorHeight = ... # type: 'QStyle.PixelMetric' + PM_ExclusiveIndicatorWidth = ... # type: 'QStyle.PixelMetric' + PM_ExclusiveIndicatorHeight = ... # type: 'QStyle.PixelMetric' + PM_DialogButtonsSeparator = ... # type: 'QStyle.PixelMetric' + PM_DialogButtonsButtonWidth = ... # type: 'QStyle.PixelMetric' + PM_DialogButtonsButtonHeight = ... # type: 'QStyle.PixelMetric' + PM_MdiSubWindowFrameWidth = ... # type: 'QStyle.PixelMetric' + PM_MDIFrameWidth = ... # type: 'QStyle.PixelMetric' + PM_MdiSubWindowMinimizedWidth = ... # type: 'QStyle.PixelMetric' + PM_MDIMinimizedWidth = ... # type: 'QStyle.PixelMetric' + PM_HeaderMargin = ... # type: 'QStyle.PixelMetric' + PM_HeaderMarkSize = ... # type: 'QStyle.PixelMetric' + PM_HeaderGripMargin = ... # type: 'QStyle.PixelMetric' + PM_TabBarTabShiftHorizontal = ... # type: 'QStyle.PixelMetric' + PM_TabBarTabShiftVertical = ... # type: 'QStyle.PixelMetric' + PM_TabBarScrollButtonWidth = ... # type: 'QStyle.PixelMetric' + PM_ToolBarFrameWidth = ... # type: 'QStyle.PixelMetric' + PM_ToolBarHandleExtent = ... # type: 'QStyle.PixelMetric' + PM_ToolBarItemSpacing = ... # type: 'QStyle.PixelMetric' + PM_ToolBarItemMargin = ... # type: 'QStyle.PixelMetric' + PM_ToolBarSeparatorExtent = ... # type: 'QStyle.PixelMetric' + PM_ToolBarExtensionExtent = ... # type: 'QStyle.PixelMetric' + PM_SpinBoxSliderHeight = ... # type: 'QStyle.PixelMetric' + PM_DefaultTopLevelMargin = ... # type: 'QStyle.PixelMetric' + PM_DefaultChildMargin = ... # type: 'QStyle.PixelMetric' + PM_DefaultLayoutSpacing = ... # type: 'QStyle.PixelMetric' + PM_ToolBarIconSize = ... # type: 'QStyle.PixelMetric' + PM_ListViewIconSize = ... # type: 'QStyle.PixelMetric' + PM_IconViewIconSize = ... # type: 'QStyle.PixelMetric' + PM_SmallIconSize = ... # type: 'QStyle.PixelMetric' + PM_LargeIconSize = ... # type: 'QStyle.PixelMetric' + PM_FocusFrameVMargin = ... # type: 'QStyle.PixelMetric' + PM_FocusFrameHMargin = ... # type: 'QStyle.PixelMetric' + PM_ToolTipLabelFrameWidth = ... # type: 'QStyle.PixelMetric' + PM_CheckBoxLabelSpacing = ... # type: 'QStyle.PixelMetric' + PM_TabBarIconSize = ... # type: 'QStyle.PixelMetric' + PM_SizeGripSize = ... # type: 'QStyle.PixelMetric' + PM_DockWidgetTitleMargin = ... # type: 'QStyle.PixelMetric' + PM_MessageBoxIconSize = ... # type: 'QStyle.PixelMetric' + PM_ButtonIconSize = ... # type: 'QStyle.PixelMetric' + PM_DockWidgetTitleBarButtonMargin = ... # type: 'QStyle.PixelMetric' + PM_RadioButtonLabelSpacing = ... # type: 'QStyle.PixelMetric' + PM_LayoutLeftMargin = ... # type: 'QStyle.PixelMetric' + PM_LayoutTopMargin = ... # type: 'QStyle.PixelMetric' + PM_LayoutRightMargin = ... # type: 'QStyle.PixelMetric' + PM_LayoutBottomMargin = ... # type: 'QStyle.PixelMetric' + PM_LayoutHorizontalSpacing = ... # type: 'QStyle.PixelMetric' + PM_LayoutVerticalSpacing = ... # type: 'QStyle.PixelMetric' + PM_TabBar_ScrollButtonOverlap = ... # type: 'QStyle.PixelMetric' + PM_TextCursorWidth = ... # type: 'QStyle.PixelMetric' + PM_TabCloseIndicatorWidth = ... # type: 'QStyle.PixelMetric' + PM_TabCloseIndicatorHeight = ... # type: 'QStyle.PixelMetric' + PM_ScrollView_ScrollBarSpacing = ... # type: 'QStyle.PixelMetric' + PM_SubMenuOverlap = ... # type: 'QStyle.PixelMetric' + PM_ScrollView_ScrollBarOverlap = ... # type: 'QStyle.PixelMetric' + PM_TreeViewIndentation = ... # type: 'QStyle.PixelMetric' + PM_HeaderDefaultSectionSizeHorizontal = ... # type: 'QStyle.PixelMetric' + PM_HeaderDefaultSectionSizeVertical = ... # type: 'QStyle.PixelMetric' + PM_TitleBarButtonIconSize = ... # type: 'QStyle.PixelMetric' + PM_TitleBarButtonSize = ... # type: 'QStyle.PixelMetric' + PM_CustomBase = ... # type: 'QStyle.PixelMetric' + + class SubControl(int): ... + SC_None = ... # type: 'QStyle.SubControl' + SC_ScrollBarAddLine = ... # type: 'QStyle.SubControl' + SC_ScrollBarSubLine = ... # type: 'QStyle.SubControl' + SC_ScrollBarAddPage = ... # type: 'QStyle.SubControl' + SC_ScrollBarSubPage = ... # type: 'QStyle.SubControl' + SC_ScrollBarFirst = ... # type: 'QStyle.SubControl' + SC_ScrollBarLast = ... # type: 'QStyle.SubControl' + SC_ScrollBarSlider = ... # type: 'QStyle.SubControl' + SC_ScrollBarGroove = ... # type: 'QStyle.SubControl' + SC_SpinBoxUp = ... # type: 'QStyle.SubControl' + SC_SpinBoxDown = ... # type: 'QStyle.SubControl' + SC_SpinBoxFrame = ... # type: 'QStyle.SubControl' + SC_SpinBoxEditField = ... # type: 'QStyle.SubControl' + SC_ComboBoxFrame = ... # type: 'QStyle.SubControl' + SC_ComboBoxEditField = ... # type: 'QStyle.SubControl' + SC_ComboBoxArrow = ... # type: 'QStyle.SubControl' + SC_ComboBoxListBoxPopup = ... # type: 'QStyle.SubControl' + SC_SliderGroove = ... # type: 'QStyle.SubControl' + SC_SliderHandle = ... # type: 'QStyle.SubControl' + SC_SliderTickmarks = ... # type: 'QStyle.SubControl' + SC_ToolButton = ... # type: 'QStyle.SubControl' + SC_ToolButtonMenu = ... # type: 'QStyle.SubControl' + SC_TitleBarSysMenu = ... # type: 'QStyle.SubControl' + SC_TitleBarMinButton = ... # type: 'QStyle.SubControl' + SC_TitleBarMaxButton = ... # type: 'QStyle.SubControl' + SC_TitleBarCloseButton = ... # type: 'QStyle.SubControl' + SC_TitleBarNormalButton = ... # type: 'QStyle.SubControl' + SC_TitleBarShadeButton = ... # type: 'QStyle.SubControl' + SC_TitleBarUnshadeButton = ... # type: 'QStyle.SubControl' + SC_TitleBarContextHelpButton = ... # type: 'QStyle.SubControl' + SC_TitleBarLabel = ... # type: 'QStyle.SubControl' + SC_DialGroove = ... # type: 'QStyle.SubControl' + SC_DialHandle = ... # type: 'QStyle.SubControl' + SC_DialTickmarks = ... # type: 'QStyle.SubControl' + SC_GroupBoxCheckBox = ... # type: 'QStyle.SubControl' + SC_GroupBoxLabel = ... # type: 'QStyle.SubControl' + SC_GroupBoxContents = ... # type: 'QStyle.SubControl' + SC_GroupBoxFrame = ... # type: 'QStyle.SubControl' + SC_MdiMinButton = ... # type: 'QStyle.SubControl' + SC_MdiNormalButton = ... # type: 'QStyle.SubControl' + SC_MdiCloseButton = ... # type: 'QStyle.SubControl' + SC_CustomBase = ... # type: 'QStyle.SubControl' + SC_All = ... # type: 'QStyle.SubControl' + + class ComplexControl(int): ... + CC_SpinBox = ... # type: 'QStyle.ComplexControl' + CC_ComboBox = ... # type: 'QStyle.ComplexControl' + CC_ScrollBar = ... # type: 'QStyle.ComplexControl' + CC_Slider = ... # type: 'QStyle.ComplexControl' + CC_ToolButton = ... # type: 'QStyle.ComplexControl' + CC_TitleBar = ... # type: 'QStyle.ComplexControl' + CC_Dial = ... # type: 'QStyle.ComplexControl' + CC_GroupBox = ... # type: 'QStyle.ComplexControl' + CC_MdiControls = ... # type: 'QStyle.ComplexControl' + CC_CustomBase = ... # type: 'QStyle.ComplexControl' + + class SubElement(int): ... + SE_PushButtonContents = ... # type: 'QStyle.SubElement' + SE_PushButtonFocusRect = ... # type: 'QStyle.SubElement' + SE_CheckBoxIndicator = ... # type: 'QStyle.SubElement' + SE_CheckBoxContents = ... # type: 'QStyle.SubElement' + SE_CheckBoxFocusRect = ... # type: 'QStyle.SubElement' + SE_CheckBoxClickRect = ... # type: 'QStyle.SubElement' + SE_RadioButtonIndicator = ... # type: 'QStyle.SubElement' + SE_RadioButtonContents = ... # type: 'QStyle.SubElement' + SE_RadioButtonFocusRect = ... # type: 'QStyle.SubElement' + SE_RadioButtonClickRect = ... # type: 'QStyle.SubElement' + SE_ComboBoxFocusRect = ... # type: 'QStyle.SubElement' + SE_SliderFocusRect = ... # type: 'QStyle.SubElement' + SE_ProgressBarGroove = ... # type: 'QStyle.SubElement' + SE_ProgressBarContents = ... # type: 'QStyle.SubElement' + SE_ProgressBarLabel = ... # type: 'QStyle.SubElement' + SE_ToolBoxTabContents = ... # type: 'QStyle.SubElement' + SE_HeaderLabel = ... # type: 'QStyle.SubElement' + SE_HeaderArrow = ... # type: 'QStyle.SubElement' + SE_TabWidgetTabBar = ... # type: 'QStyle.SubElement' + SE_TabWidgetTabPane = ... # type: 'QStyle.SubElement' + SE_TabWidgetTabContents = ... # type: 'QStyle.SubElement' + SE_TabWidgetLeftCorner = ... # type: 'QStyle.SubElement' + SE_TabWidgetRightCorner = ... # type: 'QStyle.SubElement' + SE_ViewItemCheckIndicator = ... # type: 'QStyle.SubElement' + SE_TabBarTearIndicator = ... # type: 'QStyle.SubElement' + SE_TreeViewDisclosureItem = ... # type: 'QStyle.SubElement' + SE_LineEditContents = ... # type: 'QStyle.SubElement' + SE_FrameContents = ... # type: 'QStyle.SubElement' + SE_DockWidgetCloseButton = ... # type: 'QStyle.SubElement' + SE_DockWidgetFloatButton = ... # type: 'QStyle.SubElement' + SE_DockWidgetTitleBarText = ... # type: 'QStyle.SubElement' + SE_DockWidgetIcon = ... # type: 'QStyle.SubElement' + SE_CheckBoxLayoutItem = ... # type: 'QStyle.SubElement' + SE_ComboBoxLayoutItem = ... # type: 'QStyle.SubElement' + SE_DateTimeEditLayoutItem = ... # type: 'QStyle.SubElement' + SE_DialogButtonBoxLayoutItem = ... # type: 'QStyle.SubElement' + SE_LabelLayoutItem = ... # type: 'QStyle.SubElement' + SE_ProgressBarLayoutItem = ... # type: 'QStyle.SubElement' + SE_PushButtonLayoutItem = ... # type: 'QStyle.SubElement' + SE_RadioButtonLayoutItem = ... # type: 'QStyle.SubElement' + SE_SliderLayoutItem = ... # type: 'QStyle.SubElement' + SE_SpinBoxLayoutItem = ... # type: 'QStyle.SubElement' + SE_ToolButtonLayoutItem = ... # type: 'QStyle.SubElement' + SE_FrameLayoutItem = ... # type: 'QStyle.SubElement' + SE_GroupBoxLayoutItem = ... # type: 'QStyle.SubElement' + SE_TabWidgetLayoutItem = ... # type: 'QStyle.SubElement' + SE_ItemViewItemCheckIndicator = ... # type: 'QStyle.SubElement' + SE_ItemViewItemDecoration = ... # type: 'QStyle.SubElement' + SE_ItemViewItemText = ... # type: 'QStyle.SubElement' + SE_ItemViewItemFocusRect = ... # type: 'QStyle.SubElement' + SE_TabBarTabLeftButton = ... # type: 'QStyle.SubElement' + SE_TabBarTabRightButton = ... # type: 'QStyle.SubElement' + SE_TabBarTabText = ... # type: 'QStyle.SubElement' + SE_ShapedFrameContents = ... # type: 'QStyle.SubElement' + SE_ToolBarHandle = ... # type: 'QStyle.SubElement' + SE_TabBarTearIndicatorLeft = ... # type: 'QStyle.SubElement' + SE_TabBarScrollLeftButton = ... # type: 'QStyle.SubElement' + SE_TabBarScrollRightButton = ... # type: 'QStyle.SubElement' + SE_TabBarTearIndicatorRight = ... # type: 'QStyle.SubElement' + SE_CustomBase = ... # type: 'QStyle.SubElement' + + class ControlElement(int): ... + CE_PushButton = ... # type: 'QStyle.ControlElement' + CE_PushButtonBevel = ... # type: 'QStyle.ControlElement' + CE_PushButtonLabel = ... # type: 'QStyle.ControlElement' + CE_CheckBox = ... # type: 'QStyle.ControlElement' + CE_CheckBoxLabel = ... # type: 'QStyle.ControlElement' + CE_RadioButton = ... # type: 'QStyle.ControlElement' + CE_RadioButtonLabel = ... # type: 'QStyle.ControlElement' + CE_TabBarTab = ... # type: 'QStyle.ControlElement' + CE_TabBarTabShape = ... # type: 'QStyle.ControlElement' + CE_TabBarTabLabel = ... # type: 'QStyle.ControlElement' + CE_ProgressBar = ... # type: 'QStyle.ControlElement' + CE_ProgressBarGroove = ... # type: 'QStyle.ControlElement' + CE_ProgressBarContents = ... # type: 'QStyle.ControlElement' + CE_ProgressBarLabel = ... # type: 'QStyle.ControlElement' + CE_MenuItem = ... # type: 'QStyle.ControlElement' + CE_MenuScroller = ... # type: 'QStyle.ControlElement' + CE_MenuVMargin = ... # type: 'QStyle.ControlElement' + CE_MenuHMargin = ... # type: 'QStyle.ControlElement' + CE_MenuTearoff = ... # type: 'QStyle.ControlElement' + CE_MenuEmptyArea = ... # type: 'QStyle.ControlElement' + CE_MenuBarItem = ... # type: 'QStyle.ControlElement' + CE_MenuBarEmptyArea = ... # type: 'QStyle.ControlElement' + CE_ToolButtonLabel = ... # type: 'QStyle.ControlElement' + CE_Header = ... # type: 'QStyle.ControlElement' + CE_HeaderSection = ... # type: 'QStyle.ControlElement' + CE_HeaderLabel = ... # type: 'QStyle.ControlElement' + CE_ToolBoxTab = ... # type: 'QStyle.ControlElement' + CE_SizeGrip = ... # type: 'QStyle.ControlElement' + CE_Splitter = ... # type: 'QStyle.ControlElement' + CE_RubberBand = ... # type: 'QStyle.ControlElement' + CE_DockWidgetTitle = ... # type: 'QStyle.ControlElement' + CE_ScrollBarAddLine = ... # type: 'QStyle.ControlElement' + CE_ScrollBarSubLine = ... # type: 'QStyle.ControlElement' + CE_ScrollBarAddPage = ... # type: 'QStyle.ControlElement' + CE_ScrollBarSubPage = ... # type: 'QStyle.ControlElement' + CE_ScrollBarSlider = ... # type: 'QStyle.ControlElement' + CE_ScrollBarFirst = ... # type: 'QStyle.ControlElement' + CE_ScrollBarLast = ... # type: 'QStyle.ControlElement' + CE_FocusFrame = ... # type: 'QStyle.ControlElement' + CE_ComboBoxLabel = ... # type: 'QStyle.ControlElement' + CE_ToolBar = ... # type: 'QStyle.ControlElement' + CE_ToolBoxTabShape = ... # type: 'QStyle.ControlElement' + CE_ToolBoxTabLabel = ... # type: 'QStyle.ControlElement' + CE_HeaderEmptyArea = ... # type: 'QStyle.ControlElement' + CE_ColumnViewGrip = ... # type: 'QStyle.ControlElement' + CE_ItemViewItem = ... # type: 'QStyle.ControlElement' + CE_ShapedFrame = ... # type: 'QStyle.ControlElement' + CE_CustomBase = ... # type: 'QStyle.ControlElement' + + class PrimitiveElement(int): ... + PE_Frame = ... # type: 'QStyle.PrimitiveElement' + PE_FrameDefaultButton = ... # type: 'QStyle.PrimitiveElement' + PE_FrameDockWidget = ... # type: 'QStyle.PrimitiveElement' + PE_FrameFocusRect = ... # type: 'QStyle.PrimitiveElement' + PE_FrameGroupBox = ... # type: 'QStyle.PrimitiveElement' + PE_FrameLineEdit = ... # type: 'QStyle.PrimitiveElement' + PE_FrameMenu = ... # type: 'QStyle.PrimitiveElement' + PE_FrameStatusBar = ... # type: 'QStyle.PrimitiveElement' + PE_FrameTabWidget = ... # type: 'QStyle.PrimitiveElement' + PE_FrameWindow = ... # type: 'QStyle.PrimitiveElement' + PE_FrameButtonBevel = ... # type: 'QStyle.PrimitiveElement' + PE_FrameButtonTool = ... # type: 'QStyle.PrimitiveElement' + PE_FrameTabBarBase = ... # type: 'QStyle.PrimitiveElement' + PE_PanelButtonCommand = ... # type: 'QStyle.PrimitiveElement' + PE_PanelButtonBevel = ... # type: 'QStyle.PrimitiveElement' + PE_PanelButtonTool = ... # type: 'QStyle.PrimitiveElement' + PE_PanelMenuBar = ... # type: 'QStyle.PrimitiveElement' + PE_PanelToolBar = ... # type: 'QStyle.PrimitiveElement' + PE_PanelLineEdit = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorArrowDown = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorArrowLeft = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorArrowRight = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorArrowUp = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorBranch = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorButtonDropDown = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorViewItemCheck = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorCheckBox = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorDockWidgetResizeHandle = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorHeaderArrow = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorMenuCheckMark = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorProgressChunk = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorRadioButton = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorSpinDown = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorSpinMinus = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorSpinPlus = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorSpinUp = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorToolBarHandle = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorToolBarSeparator = ... # type: 'QStyle.PrimitiveElement' + PE_PanelTipLabel = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorTabTear = ... # type: 'QStyle.PrimitiveElement' + PE_PanelScrollAreaCorner = ... # type: 'QStyle.PrimitiveElement' + PE_Widget = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorColumnViewArrow = ... # type: 'QStyle.PrimitiveElement' + PE_FrameStatusBarItem = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorItemViewItemCheck = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorItemViewItemDrop = ... # type: 'QStyle.PrimitiveElement' + PE_PanelItemViewItem = ... # type: 'QStyle.PrimitiveElement' + PE_PanelItemViewRow = ... # type: 'QStyle.PrimitiveElement' + PE_PanelStatusBar = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorTabClose = ... # type: 'QStyle.PrimitiveElement' + PE_PanelMenu = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorTabTearLeft = ... # type: 'QStyle.PrimitiveElement' + PE_IndicatorTabTearRight = ... # type: 'QStyle.PrimitiveElement' + PE_CustomBase = ... # type: 'QStyle.PrimitiveElement' + + class StateFlag(int): ... + State_None = ... # type: 'QStyle.StateFlag' + State_Enabled = ... # type: 'QStyle.StateFlag' + State_Raised = ... # type: 'QStyle.StateFlag' + State_Sunken = ... # type: 'QStyle.StateFlag' + State_Off = ... # type: 'QStyle.StateFlag' + State_NoChange = ... # type: 'QStyle.StateFlag' + State_On = ... # type: 'QStyle.StateFlag' + State_DownArrow = ... # type: 'QStyle.StateFlag' + State_Horizontal = ... # type: 'QStyle.StateFlag' + State_HasFocus = ... # type: 'QStyle.StateFlag' + State_Top = ... # type: 'QStyle.StateFlag' + State_Bottom = ... # type: 'QStyle.StateFlag' + State_FocusAtBorder = ... # type: 'QStyle.StateFlag' + State_AutoRaise = ... # type: 'QStyle.StateFlag' + State_MouseOver = ... # type: 'QStyle.StateFlag' + State_UpArrow = ... # type: 'QStyle.StateFlag' + State_Selected = ... # type: 'QStyle.StateFlag' + State_Active = ... # type: 'QStyle.StateFlag' + State_Open = ... # type: 'QStyle.StateFlag' + State_Children = ... # type: 'QStyle.StateFlag' + State_Item = ... # type: 'QStyle.StateFlag' + State_Sibling = ... # type: 'QStyle.StateFlag' + State_Editing = ... # type: 'QStyle.StateFlag' + State_KeyboardFocusChange = ... # type: 'QStyle.StateFlag' + State_ReadOnly = ... # type: 'QStyle.StateFlag' + State_Window = ... # type: 'QStyle.StateFlag' + State_Small = ... # type: 'QStyle.StateFlag' + State_Mini = ... # type: 'QStyle.StateFlag' + + class State(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QStyle.State', 'QStyle.StateFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QStyle.State') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QStyle.State': ... + def __int__(self) -> int: ... + + class SubControls(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QStyle.SubControls', 'QStyle.SubControl']) -> None: ... + @typing.overload + def __init__(self, a0: 'QStyle.SubControls') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QStyle.SubControls': ... + def __int__(self) -> int: ... + + def __init__(self) -> None: ... + + def proxy(self) -> 'QStyle': ... + def combinedLayoutSpacing(self, controls1: typing.Union['QSizePolicy.ControlTypes', 'QSizePolicy.ControlType'], controls2: typing.Union['QSizePolicy.ControlTypes', 'QSizePolicy.ControlType'], orientation: QtCore.Qt.Orientation, option: typing.Optional['QStyleOption'] = ..., widget: typing.Optional[QWidget] = ...) -> int: ... + def layoutSpacing(self, control1: 'QSizePolicy.ControlType', control2: 'QSizePolicy.ControlType', orientation: QtCore.Qt.Orientation, option: typing.Optional['QStyleOption'] = ..., widget: typing.Optional[QWidget] = ...) -> int: ... + @staticmethod + def alignedRect(direction: QtCore.Qt.LayoutDirection, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag], size: QtCore.QSize, rectangle: QtCore.QRect) -> QtCore.QRect: ... + @staticmethod + def visualAlignment(direction: QtCore.Qt.LayoutDirection, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> QtCore.Qt.Alignment: ... + @staticmethod + def sliderValueFromPosition(min: int, max: int, position: int, span: int, upsideDown: bool = ...) -> int: ... + @staticmethod + def sliderPositionFromValue(min: int, max: int, logicalValue: int, span: int, upsideDown: bool = ...) -> int: ... + @staticmethod + def visualPos(direction: QtCore.Qt.LayoutDirection, boundingRect: QtCore.QRect, logicalPos: QtCore.QPoint) -> QtCore.QPoint: ... + @staticmethod + def visualRect(direction: QtCore.Qt.LayoutDirection, boundingRect: QtCore.QRect, logicalRect: QtCore.QRect) -> QtCore.QRect: ... + def generatedIconPixmap(self, iconMode: QtGui.QIcon.Mode, pixmap: QtGui.QPixmap, opt: 'QStyleOption') -> QtGui.QPixmap: ... + def standardIcon(self, standardIcon: 'QStyle.StandardPixmap', option: typing.Optional['QStyleOption'] = ..., widget: typing.Optional[QWidget] = ...) -> QtGui.QIcon: ... + def standardPixmap(self, standardPixmap: 'QStyle.StandardPixmap', option: typing.Optional['QStyleOption'] = ..., widget: typing.Optional[QWidget] = ...) -> QtGui.QPixmap: ... + def styleHint(self, stylehint: 'QStyle.StyleHint', option: typing.Optional['QStyleOption'] = ..., widget: typing.Optional[QWidget] = ..., returnData: typing.Optional['QStyleHintReturn'] = ...) -> int: ... + def sizeFromContents(self, ct: 'QStyle.ContentsType', opt: 'QStyleOption', contentsSize: QtCore.QSize, widget: typing.Optional[QWidget] = ...) -> QtCore.QSize: ... + def pixelMetric(self, metric: 'QStyle.PixelMetric', option: typing.Optional['QStyleOption'] = ..., widget: typing.Optional[QWidget] = ...) -> int: ... + def subControlRect(self, cc: 'QStyle.ComplexControl', opt: 'QStyleOptionComplex', sc: 'QStyle.SubControl', widget: typing.Optional[QWidget] = ...) -> QtCore.QRect: ... + def hitTestComplexControl(self, cc: 'QStyle.ComplexControl', opt: 'QStyleOptionComplex', pt: QtCore.QPoint, widget: typing.Optional[QWidget] = ...) -> 'QStyle.SubControl': ... + def drawComplexControl(self, cc: 'QStyle.ComplexControl', opt: 'QStyleOptionComplex', p: QtGui.QPainter, widget: typing.Optional[QWidget] = ...) -> None: ... + def subElementRect(self, subElement: 'QStyle.SubElement', option: 'QStyleOption', widget: typing.Optional[QWidget] = ...) -> QtCore.QRect: ... + def drawControl(self, element: 'QStyle.ControlElement', opt: 'QStyleOption', p: QtGui.QPainter, widget: typing.Optional[QWidget] = ...) -> None: ... + def drawPrimitive(self, pe: 'QStyle.PrimitiveElement', opt: 'QStyleOption', p: QtGui.QPainter, widget: typing.Optional[QWidget] = ...) -> None: ... + def standardPalette(self) -> QtGui.QPalette: ... + def drawItemPixmap(self, painter: QtGui.QPainter, rect: QtCore.QRect, alignment: int, pixmap: QtGui.QPixmap) -> None: ... + def drawItemText(self, painter: QtGui.QPainter, rectangle: QtCore.QRect, alignment: int, palette: QtGui.QPalette, enabled: bool, text: str, textRole: QtGui.QPalette.ColorRole = ...) -> None: ... + def itemPixmapRect(self, r: QtCore.QRect, flags: int, pixmap: QtGui.QPixmap) -> QtCore.QRect: ... + def itemTextRect(self, fm: QtGui.QFontMetrics, r: QtCore.QRect, flags: int, enabled: bool, text: str) -> QtCore.QRect: ... + @typing.overload + def unpolish(self, a0: QWidget) -> None: ... + @typing.overload + def unpolish(self, a0: QApplication) -> None: ... + @typing.overload + def polish(self, a0: QWidget) -> None: ... + @typing.overload + def polish(self, a0: QApplication) -> None: ... + @typing.overload + def polish(self, a0: QtGui.QPalette) -> QtGui.QPalette: ... + + +class QCommonStyle(QStyle): + + def __init__(self) -> None: ... + + def layoutSpacing(self, control1: 'QSizePolicy.ControlType', control2: 'QSizePolicy.ControlType', orientation: QtCore.Qt.Orientation, option: typing.Optional['QStyleOption'] = ..., widget: typing.Optional[QWidget] = ...) -> int: ... + def standardIcon(self, standardIcon: QStyle.StandardPixmap, option: typing.Optional['QStyleOption'] = ..., widget: typing.Optional[QWidget] = ...) -> QtGui.QIcon: ... + def generatedIconPixmap(self, iconMode: QtGui.QIcon.Mode, pixmap: QtGui.QPixmap, opt: 'QStyleOption') -> QtGui.QPixmap: ... + def standardPixmap(self, sp: QStyle.StandardPixmap, option: typing.Optional['QStyleOption'] = ..., widget: typing.Optional[QWidget] = ...) -> QtGui.QPixmap: ... + def styleHint(self, sh: QStyle.StyleHint, option: typing.Optional['QStyleOption'] = ..., widget: typing.Optional[QWidget] = ..., returnData: typing.Optional['QStyleHintReturn'] = ...) -> int: ... + def pixelMetric(self, m: QStyle.PixelMetric, option: typing.Optional['QStyleOption'] = ..., widget: typing.Optional[QWidget] = ...) -> int: ... + def sizeFromContents(self, ct: QStyle.ContentsType, opt: 'QStyleOption', contentsSize: QtCore.QSize, widget: typing.Optional[QWidget] = ...) -> QtCore.QSize: ... + def subControlRect(self, cc: QStyle.ComplexControl, opt: 'QStyleOptionComplex', sc: QStyle.SubControl, widget: typing.Optional[QWidget] = ...) -> QtCore.QRect: ... + def hitTestComplexControl(self, cc: QStyle.ComplexControl, opt: 'QStyleOptionComplex', pt: QtCore.QPoint, widget: typing.Optional[QWidget] = ...) -> QStyle.SubControl: ... + def drawComplexControl(self, cc: QStyle.ComplexControl, opt: 'QStyleOptionComplex', p: QtGui.QPainter, widget: typing.Optional[QWidget] = ...) -> None: ... + def subElementRect(self, r: QStyle.SubElement, opt: 'QStyleOption', widget: typing.Optional[QWidget] = ...) -> QtCore.QRect: ... + def drawControl(self, element: QStyle.ControlElement, opt: 'QStyleOption', p: QtGui.QPainter, widget: typing.Optional[QWidget] = ...) -> None: ... + def drawPrimitive(self, pe: QStyle.PrimitiveElement, opt: 'QStyleOption', p: QtGui.QPainter, widget: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def unpolish(self, widget: QWidget) -> None: ... + @typing.overload + def unpolish(self, application: QApplication) -> None: ... + @typing.overload + def polish(self, widget: QWidget) -> None: ... + @typing.overload + def polish(self, app: QApplication) -> None: ... + @typing.overload + def polish(self, a0: QtGui.QPalette) -> QtGui.QPalette: ... + + +class QCompleter(QtCore.QObject): + + class ModelSorting(int): ... + UnsortedModel = ... # type: 'QCompleter.ModelSorting' + CaseSensitivelySortedModel = ... # type: 'QCompleter.ModelSorting' + CaseInsensitivelySortedModel = ... # type: 'QCompleter.ModelSorting' + + class CompletionMode(int): ... + PopupCompletion = ... # type: 'QCompleter.CompletionMode' + UnfilteredPopupCompletion = ... # type: 'QCompleter.CompletionMode' + InlineCompletion = ... # type: 'QCompleter.CompletionMode' + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, model: QtCore.QAbstractItemModel, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, list: typing.Iterable[str], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def filterMode(self) -> QtCore.Qt.MatchFlags: ... + def setFilterMode(self, filterMode: typing.Union[QtCore.Qt.MatchFlags, QtCore.Qt.MatchFlag]) -> None: ... + def setMaxVisibleItems(self, maxItems: int) -> None: ... + def maxVisibleItems(self) -> int: ... + @typing.overload + def highlighted(self, text: str) -> None: ... + @typing.overload + def highlighted(self, index: QtCore.QModelIndex) -> None: ... + @typing.overload + def activated(self, text: str) -> None: ... + @typing.overload + def activated(self, index: QtCore.QModelIndex) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def eventFilter(self, o: QtCore.QObject, e: QtCore.QEvent) -> bool: ... + def setWrapAround(self, wrap: bool) -> None: ... + def setCompletionPrefix(self, prefix: str) -> None: ... + def complete(self, rect: QtCore.QRect = ...) -> None: ... + def wrapAround(self) -> bool: ... + def splitPath(self, path: str) -> typing.List[str]: ... + def pathFromIndex(self, index: QtCore.QModelIndex) -> str: ... + def completionPrefix(self) -> str: ... + def completionModel(self) -> QtCore.QAbstractItemModel: ... + def currentCompletion(self) -> str: ... + def currentIndex(self) -> QtCore.QModelIndex: ... + def currentRow(self) -> int: ... + def setCurrentRow(self, row: int) -> bool: ... + def completionCount(self) -> int: ... + def completionRole(self) -> int: ... + def setCompletionRole(self, role: int) -> None: ... + def completionColumn(self) -> int: ... + def setCompletionColumn(self, column: int) -> None: ... + def modelSorting(self) -> 'QCompleter.ModelSorting': ... + def setModelSorting(self, sorting: 'QCompleter.ModelSorting') -> None: ... + def caseSensitivity(self) -> QtCore.Qt.CaseSensitivity: ... + def setCaseSensitivity(self, caseSensitivity: QtCore.Qt.CaseSensitivity) -> None: ... + def setPopup(self, popup: QAbstractItemView) -> None: ... + def popup(self) -> QAbstractItemView: ... + def completionMode(self) -> 'QCompleter.CompletionMode': ... + def setCompletionMode(self, mode: 'QCompleter.CompletionMode') -> None: ... + def model(self) -> QtCore.QAbstractItemModel: ... + def setModel(self, c: QtCore.QAbstractItemModel) -> None: ... + def widget(self) -> QWidget: ... + def setWidget(self, widget: QWidget) -> None: ... + + +class QDataWidgetMapper(QtCore.QObject): + + class SubmitPolicy(int): ... + AutoSubmit = ... # type: 'QDataWidgetMapper.SubmitPolicy' + ManualSubmit = ... # type: 'QDataWidgetMapper.SubmitPolicy' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def currentIndexChanged(self, index: int) -> None: ... + def toPrevious(self) -> None: ... + def toNext(self) -> None: ... + def toLast(self) -> None: ... + def toFirst(self) -> None: ... + def submit(self) -> bool: ... + def setCurrentModelIndex(self, index: QtCore.QModelIndex) -> None: ... + def setCurrentIndex(self, index: int) -> None: ... + def revert(self) -> None: ... + def currentIndex(self) -> int: ... + def clearMapping(self) -> None: ... + def mappedWidgetAt(self, section: int) -> QWidget: ... + def mappedSection(self, widget: QWidget) -> int: ... + def mappedPropertyName(self, widget: QWidget) -> QtCore.QByteArray: ... + def removeMapping(self, widget: QWidget) -> None: ... + @typing.overload + def addMapping(self, widget: QWidget, section: int) -> None: ... + @typing.overload + def addMapping(self, widget: QWidget, section: int, propertyName: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + def submitPolicy(self) -> 'QDataWidgetMapper.SubmitPolicy': ... + def setSubmitPolicy(self, policy: 'QDataWidgetMapper.SubmitPolicy') -> None: ... + def orientation(self) -> QtCore.Qt.Orientation: ... + def setOrientation(self, aOrientation: QtCore.Qt.Orientation) -> None: ... + def rootIndex(self) -> QtCore.QModelIndex: ... + def setRootIndex(self, index: QtCore.QModelIndex) -> None: ... + def itemDelegate(self) -> QAbstractItemDelegate: ... + def setItemDelegate(self, delegate: QAbstractItemDelegate) -> None: ... + def model(self) -> QtCore.QAbstractItemModel: ... + def setModel(self, model: QtCore.QAbstractItemModel) -> None: ... + + +class QDateTimeEdit(QAbstractSpinBox): + + class Section(int): ... + NoSection = ... # type: 'QDateTimeEdit.Section' + AmPmSection = ... # type: 'QDateTimeEdit.Section' + MSecSection = ... # type: 'QDateTimeEdit.Section' + SecondSection = ... # type: 'QDateTimeEdit.Section' + MinuteSection = ... # type: 'QDateTimeEdit.Section' + HourSection = ... # type: 'QDateTimeEdit.Section' + DaySection = ... # type: 'QDateTimeEdit.Section' + MonthSection = ... # type: 'QDateTimeEdit.Section' + YearSection = ... # type: 'QDateTimeEdit.Section' + TimeSections_Mask = ... # type: 'QDateTimeEdit.Section' + DateSections_Mask = ... # type: 'QDateTimeEdit.Section' + + class Sections(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QDateTimeEdit.Sections', 'QDateTimeEdit.Section']) -> None: ... + @typing.overload + def __init__(self, a0: 'QDateTimeEdit.Sections') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QDateTimeEdit.Sections': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, datetime: typing.Union[QtCore.QDateTime, datetime.datetime], parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, date: typing.Union[QtCore.QDate, datetime.date], parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, time: typing.Union[QtCore.QTime, datetime.time], parent: typing.Optional[QWidget] = ...) -> None: ... + + def setTimeSpec(self, spec: QtCore.Qt.TimeSpec) -> None: ... + def timeSpec(self) -> QtCore.Qt.TimeSpec: ... + def setCalendarWidget(self, calendarWidget: QCalendarWidget) -> None: ... + def calendarWidget(self) -> QCalendarWidget: ... + def setDateTimeRange(self, min: typing.Union[QtCore.QDateTime, datetime.datetime], max: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + def setMaximumDateTime(self, dt: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + def clearMaximumDateTime(self) -> None: ... + def maximumDateTime(self) -> QtCore.QDateTime: ... + def setMinimumDateTime(self, dt: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + def clearMinimumDateTime(self) -> None: ... + def minimumDateTime(self) -> QtCore.QDateTime: ... + def stepEnabled(self) -> QAbstractSpinBox.StepEnabled: ... + def textFromDateTime(self, dt: typing.Union[QtCore.QDateTime, datetime.datetime]) -> str: ... + def dateTimeFromText(self, text: str) -> QtCore.QDateTime: ... + def fixup(self, input: str) -> str: ... + def validate(self, input: str, pos: int) -> typing.Tuple[QtGui.QValidator.State, str, int]: ... + def paintEvent(self, event: QtGui.QPaintEvent) -> None: ... + def mousePressEvent(self, event: QtGui.QMouseEvent) -> None: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def focusInEvent(self, e: QtGui.QFocusEvent) -> None: ... + def wheelEvent(self, e: QtGui.QWheelEvent) -> None: ... + def keyPressEvent(self, e: QtGui.QKeyEvent) -> None: ... + def initStyleOption(self, option: 'QStyleOptionSpinBox') -> None: ... + def setTime(self, time: typing.Union[QtCore.QTime, datetime.time]) -> None: ... + def setDate(self, date: typing.Union[QtCore.QDate, datetime.date]) -> None: ... + def setDateTime(self, dateTime: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + def dateChanged(self, date: typing.Union[QtCore.QDate, datetime.date]) -> None: ... + def timeChanged(self, date: typing.Union[QtCore.QTime, datetime.time]) -> None: ... + def dateTimeChanged(self, date: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + def sectionCount(self) -> int: ... + def setCurrentSectionIndex(self, index: int) -> None: ... + def currentSectionIndex(self) -> int: ... + def sectionAt(self, index: int) -> 'QDateTimeEdit.Section': ... + def event(self, e: QtCore.QEvent) -> bool: ... + def stepBy(self, steps: int) -> None: ... + def clear(self) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + def setSelectedSection(self, section: 'QDateTimeEdit.Section') -> None: ... + def setCalendarPopup(self, enable: bool) -> None: ... + def calendarPopup(self) -> bool: ... + def setDisplayFormat(self, format: str) -> None: ... + def displayFormat(self) -> str: ... + def sectionText(self, s: 'QDateTimeEdit.Section') -> str: ... + def setCurrentSection(self, section: 'QDateTimeEdit.Section') -> None: ... + def currentSection(self) -> 'QDateTimeEdit.Section': ... + def displayedSections(self) -> 'QDateTimeEdit.Sections': ... + def setTimeRange(self, min: typing.Union[QtCore.QTime, datetime.time], max: typing.Union[QtCore.QTime, datetime.time]) -> None: ... + def clearMaximumTime(self) -> None: ... + def setMaximumTime(self, max: typing.Union[QtCore.QTime, datetime.time]) -> None: ... + def maximumTime(self) -> QtCore.QTime: ... + def clearMinimumTime(self) -> None: ... + def setMinimumTime(self, min: typing.Union[QtCore.QTime, datetime.time]) -> None: ... + def minimumTime(self) -> QtCore.QTime: ... + def setDateRange(self, min: typing.Union[QtCore.QDate, datetime.date], max: typing.Union[QtCore.QDate, datetime.date]) -> None: ... + def clearMaximumDate(self) -> None: ... + def setMaximumDate(self, max: typing.Union[QtCore.QDate, datetime.date]) -> None: ... + def maximumDate(self) -> QtCore.QDate: ... + def clearMinimumDate(self) -> None: ... + def setMinimumDate(self, min: typing.Union[QtCore.QDate, datetime.date]) -> None: ... + def minimumDate(self) -> QtCore.QDate: ... + def time(self) -> QtCore.QTime: ... + def date(self) -> QtCore.QDate: ... + def dateTime(self) -> QtCore.QDateTime: ... + + +class QTimeEdit(QDateTimeEdit): + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, time: typing.Union[QtCore.QTime, datetime.time], parent: typing.Optional[QWidget] = ...) -> None: ... + + +class QDateEdit(QDateTimeEdit): + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, date: typing.Union[QtCore.QDate, datetime.date], parent: typing.Optional[QWidget] = ...) -> None: ... + + +class QDesktopWidget(QWidget): + + def __init__(self) -> None: ... + + def resizeEvent(self, e: QtGui.QResizeEvent) -> None: ... + def primaryScreenChanged(self) -> None: ... + def screenCountChanged(self, a0: int) -> None: ... + def workAreaResized(self, a0: int) -> None: ... + def resized(self, a0: int) -> None: ... + @typing.overload + def availableGeometry(self, screen: int = ...) -> QtCore.QRect: ... + @typing.overload + def availableGeometry(self, widget: QWidget) -> QtCore.QRect: ... + @typing.overload + def availableGeometry(self, point: QtCore.QPoint) -> QtCore.QRect: ... + @typing.overload + def screenGeometry(self, screen: int = ...) -> QtCore.QRect: ... + @typing.overload + def screenGeometry(self, widget: QWidget) -> QtCore.QRect: ... + @typing.overload + def screenGeometry(self, point: QtCore.QPoint) -> QtCore.QRect: ... + def screenCount(self) -> int: ... + def screen(self, screen: int = ...) -> QWidget: ... + @typing.overload + def screenNumber(self, widget: typing.Optional[QWidget] = ...) -> int: ... + @typing.overload + def screenNumber(self, a0: QtCore.QPoint) -> int: ... + def primaryScreen(self) -> int: ... + def isVirtualDesktop(self) -> bool: ... + + +class QDial(QAbstractSlider): + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def sliderChange(self, change: QAbstractSlider.SliderChange) -> None: ... + def mouseMoveEvent(self, me: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, me: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, me: QtGui.QMouseEvent) -> None: ... + def paintEvent(self, pe: QtGui.QPaintEvent) -> None: ... + def resizeEvent(self, re: QtGui.QResizeEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def initStyleOption(self, option: 'QStyleOptionSlider') -> None: ... + def setWrapping(self, on: bool) -> None: ... + def setNotchesVisible(self, visible: bool) -> None: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + def notchesVisible(self) -> bool: ... + def notchTarget(self) -> float: ... + def setNotchTarget(self, target: float) -> None: ... + def notchSize(self) -> int: ... + def wrapping(self) -> bool: ... + + +class QDialogButtonBox(QWidget): + + class StandardButton(int): ... + NoButton = ... # type: 'QDialogButtonBox.StandardButton' + Ok = ... # type: 'QDialogButtonBox.StandardButton' + Save = ... # type: 'QDialogButtonBox.StandardButton' + SaveAll = ... # type: 'QDialogButtonBox.StandardButton' + Open = ... # type: 'QDialogButtonBox.StandardButton' + Yes = ... # type: 'QDialogButtonBox.StandardButton' + YesToAll = ... # type: 'QDialogButtonBox.StandardButton' + No = ... # type: 'QDialogButtonBox.StandardButton' + NoToAll = ... # type: 'QDialogButtonBox.StandardButton' + Abort = ... # type: 'QDialogButtonBox.StandardButton' + Retry = ... # type: 'QDialogButtonBox.StandardButton' + Ignore = ... # type: 'QDialogButtonBox.StandardButton' + Close = ... # type: 'QDialogButtonBox.StandardButton' + Cancel = ... # type: 'QDialogButtonBox.StandardButton' + Discard = ... # type: 'QDialogButtonBox.StandardButton' + Help = ... # type: 'QDialogButtonBox.StandardButton' + Apply = ... # type: 'QDialogButtonBox.StandardButton' + Reset = ... # type: 'QDialogButtonBox.StandardButton' + RestoreDefaults = ... # type: 'QDialogButtonBox.StandardButton' + + class ButtonRole(int): ... + InvalidRole = ... # type: 'QDialogButtonBox.ButtonRole' + AcceptRole = ... # type: 'QDialogButtonBox.ButtonRole' + RejectRole = ... # type: 'QDialogButtonBox.ButtonRole' + DestructiveRole = ... # type: 'QDialogButtonBox.ButtonRole' + ActionRole = ... # type: 'QDialogButtonBox.ButtonRole' + HelpRole = ... # type: 'QDialogButtonBox.ButtonRole' + YesRole = ... # type: 'QDialogButtonBox.ButtonRole' + NoRole = ... # type: 'QDialogButtonBox.ButtonRole' + ResetRole = ... # type: 'QDialogButtonBox.ButtonRole' + ApplyRole = ... # type: 'QDialogButtonBox.ButtonRole' + + class ButtonLayout(int): ... + WinLayout = ... # type: 'QDialogButtonBox.ButtonLayout' + MacLayout = ... # type: 'QDialogButtonBox.ButtonLayout' + KdeLayout = ... # type: 'QDialogButtonBox.ButtonLayout' + GnomeLayout = ... # type: 'QDialogButtonBox.ButtonLayout' + AndroidLayout = ... # type: 'QDialogButtonBox.ButtonLayout' + + class StandardButtons(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QDialogButtonBox.StandardButtons', 'QDialogButtonBox.StandardButton']) -> None: ... + @typing.overload + def __init__(self, a0: 'QDialogButtonBox.StandardButtons') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QDialogButtonBox.StandardButtons': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, orientation: QtCore.Qt.Orientation, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, buttons: typing.Union['QDialogButtonBox.StandardButtons', 'QDialogButtonBox.StandardButton'], parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, buttons: typing.Union['QDialogButtonBox.StandardButtons', 'QDialogButtonBox.StandardButton'], orientation: QtCore.Qt.Orientation, parent: typing.Optional[QWidget] = ...) -> None: ... + + def event(self, event: QtCore.QEvent) -> bool: ... + def changeEvent(self, event: QtCore.QEvent) -> None: ... + def rejected(self) -> None: ... + def helpRequested(self) -> None: ... + def clicked(self, button: QAbstractButton) -> None: ... + def accepted(self) -> None: ... + def centerButtons(self) -> bool: ... + def setCenterButtons(self, center: bool) -> None: ... + def button(self, which: 'QDialogButtonBox.StandardButton') -> QPushButton: ... + def standardButton(self, button: QAbstractButton) -> 'QDialogButtonBox.StandardButton': ... + def standardButtons(self) -> 'QDialogButtonBox.StandardButtons': ... + def setStandardButtons(self, buttons: typing.Union['QDialogButtonBox.StandardButtons', 'QDialogButtonBox.StandardButton']) -> None: ... + def buttonRole(self, button: QAbstractButton) -> 'QDialogButtonBox.ButtonRole': ... + def buttons(self) -> typing.List[QAbstractButton]: ... + def clear(self) -> None: ... + def removeButton(self, button: QAbstractButton) -> None: ... + @typing.overload + def addButton(self, button: QAbstractButton, role: 'QDialogButtonBox.ButtonRole') -> None: ... + @typing.overload + def addButton(self, text: str, role: 'QDialogButtonBox.ButtonRole') -> QPushButton: ... + @typing.overload + def addButton(self, button: 'QDialogButtonBox.StandardButton') -> QPushButton: ... + def orientation(self) -> QtCore.Qt.Orientation: ... + def setOrientation(self, orientation: QtCore.Qt.Orientation) -> None: ... + + +class QDirModel(QtCore.QAbstractItemModel): + + class Roles(int): ... + FileIconRole = ... # type: 'QDirModel.Roles' + FilePathRole = ... # type: 'QDirModel.Roles' + FileNameRole = ... # type: 'QDirModel.Roles' + + @typing.overload + def __init__(self, nameFilters: typing.Iterable[str], filters: typing.Union[QtCore.QDir.Filters, QtCore.QDir.Filter], sort: typing.Union[QtCore.QDir.SortFlags, QtCore.QDir.SortFlag], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def fileInfo(self, index: QtCore.QModelIndex) -> QtCore.QFileInfo: ... + def fileIcon(self, index: QtCore.QModelIndex) -> QtGui.QIcon: ... + def fileName(self, index: QtCore.QModelIndex) -> str: ... + def filePath(self, index: QtCore.QModelIndex) -> str: ... + def remove(self, index: QtCore.QModelIndex) -> bool: ... + def rmdir(self, index: QtCore.QModelIndex) -> bool: ... + def mkdir(self, parent: QtCore.QModelIndex, name: str) -> QtCore.QModelIndex: ... + def isDir(self, index: QtCore.QModelIndex) -> bool: ... + def refresh(self, parent: QtCore.QModelIndex = ...) -> None: ... + def lazyChildCount(self) -> bool: ... + def setLazyChildCount(self, enable: bool) -> None: ... + def isReadOnly(self) -> bool: ... + def setReadOnly(self, enable: bool) -> None: ... + def resolveSymlinks(self) -> bool: ... + def setResolveSymlinks(self, enable: bool) -> None: ... + def sorting(self) -> QtCore.QDir.SortFlags: ... + def setSorting(self, sort: typing.Union[QtCore.QDir.SortFlags, QtCore.QDir.SortFlag]) -> None: ... + def filter(self) -> QtCore.QDir.Filters: ... + def setFilter(self, filters: typing.Union[QtCore.QDir.Filters, QtCore.QDir.Filter]) -> None: ... + def nameFilters(self) -> typing.List[str]: ... + def setNameFilters(self, filters: typing.Iterable[str]) -> None: ... + def iconProvider(self) -> 'QFileIconProvider': ... + def setIconProvider(self, provider: 'QFileIconProvider') -> None: ... + def supportedDropActions(self) -> QtCore.Qt.DropActions: ... + def dropMimeData(self, data: QtCore.QMimeData, action: QtCore.Qt.DropAction, row: int, column: int, parent: QtCore.QModelIndex) -> bool: ... + def mimeData(self, indexes: typing.Iterable[QtCore.QModelIndex]) -> QtCore.QMimeData: ... + def mimeTypes(self) -> typing.List[str]: ... + def sort(self, column: int, order: QtCore.Qt.SortOrder = ...) -> None: ... + def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlags: ... + def hasChildren(self, parent: QtCore.QModelIndex = ...) -> bool: ... + def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int = ...) -> typing.Any: ... + def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ... + def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ... + def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + @typing.overload + def parent(self, child: QtCore.QModelIndex) -> QtCore.QModelIndex: ... + @typing.overload + def parent(self) -> QtCore.QObject: ... + @typing.overload + def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ... + @typing.overload + def index(self, path: str, column: int = ...) -> QtCore.QModelIndex: ... + + +class QDockWidget(QWidget): + + class DockWidgetFeature(int): ... + DockWidgetClosable = ... # type: 'QDockWidget.DockWidgetFeature' + DockWidgetMovable = ... # type: 'QDockWidget.DockWidgetFeature' + DockWidgetFloatable = ... # type: 'QDockWidget.DockWidgetFeature' + DockWidgetVerticalTitleBar = ... # type: 'QDockWidget.DockWidgetFeature' + AllDockWidgetFeatures = ... # type: 'QDockWidget.DockWidgetFeature' + NoDockWidgetFeatures = ... # type: 'QDockWidget.DockWidgetFeature' + + class DockWidgetFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QDockWidget.DockWidgetFeatures', 'QDockWidget.DockWidgetFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QDockWidget.DockWidgetFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QDockWidget.DockWidgetFeatures': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, title: str, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def event(self, event: QtCore.QEvent) -> bool: ... + def paintEvent(self, event: QtGui.QPaintEvent) -> None: ... + def closeEvent(self, event: QtGui.QCloseEvent) -> None: ... + def changeEvent(self, event: QtCore.QEvent) -> None: ... + def initStyleOption(self, option: 'QStyleOptionDockWidget') -> None: ... + def visibilityChanged(self, visible: bool) -> None: ... + def dockLocationChanged(self, area: QtCore.Qt.DockWidgetArea) -> None: ... + def allowedAreasChanged(self, allowedAreas: typing.Union[QtCore.Qt.DockWidgetAreas, QtCore.Qt.DockWidgetArea]) -> None: ... + def topLevelChanged(self, topLevel: bool) -> None: ... + def featuresChanged(self, features: typing.Union['QDockWidget.DockWidgetFeatures', 'QDockWidget.DockWidgetFeature']) -> None: ... + def titleBarWidget(self) -> QWidget: ... + def setTitleBarWidget(self, widget: QWidget) -> None: ... + def toggleViewAction(self) -> QAction: ... + def isAreaAllowed(self, area: QtCore.Qt.DockWidgetArea) -> bool: ... + def allowedAreas(self) -> QtCore.Qt.DockWidgetAreas: ... + def setAllowedAreas(self, areas: typing.Union[QtCore.Qt.DockWidgetAreas, QtCore.Qt.DockWidgetArea]) -> None: ... + def isFloating(self) -> bool: ... + def setFloating(self, floating: bool) -> None: ... + def features(self) -> 'QDockWidget.DockWidgetFeatures': ... + def setFeatures(self, features: typing.Union['QDockWidget.DockWidgetFeatures', 'QDockWidget.DockWidgetFeature']) -> None: ... + def setWidget(self, widget: QWidget) -> None: ... + def widget(self) -> QWidget: ... + + +class QErrorMessage(QDialog): + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def done(self, a0: int) -> None: ... + def changeEvent(self, e: QtCore.QEvent) -> None: ... + @typing.overload + def showMessage(self, message: str) -> None: ... + @typing.overload + def showMessage(self, message: str, type: str) -> None: ... + @staticmethod + def qtHandler() -> 'QErrorMessage': ... + + +class QFileDialog(QDialog): + + class Option(int): ... + ShowDirsOnly = ... # type: 'QFileDialog.Option' + DontResolveSymlinks = ... # type: 'QFileDialog.Option' + DontConfirmOverwrite = ... # type: 'QFileDialog.Option' + DontUseSheet = ... # type: 'QFileDialog.Option' + DontUseNativeDialog = ... # type: 'QFileDialog.Option' + ReadOnly = ... # type: 'QFileDialog.Option' + HideNameFilterDetails = ... # type: 'QFileDialog.Option' + DontUseCustomDirectoryIcons = ... # type: 'QFileDialog.Option' + + class DialogLabel(int): ... + LookIn = ... # type: 'QFileDialog.DialogLabel' + FileName = ... # type: 'QFileDialog.DialogLabel' + FileType = ... # type: 'QFileDialog.DialogLabel' + Accept = ... # type: 'QFileDialog.DialogLabel' + Reject = ... # type: 'QFileDialog.DialogLabel' + + class AcceptMode(int): ... + AcceptOpen = ... # type: 'QFileDialog.AcceptMode' + AcceptSave = ... # type: 'QFileDialog.AcceptMode' + + class FileMode(int): ... + AnyFile = ... # type: 'QFileDialog.FileMode' + ExistingFile = ... # type: 'QFileDialog.FileMode' + Directory = ... # type: 'QFileDialog.FileMode' + ExistingFiles = ... # type: 'QFileDialog.FileMode' + DirectoryOnly = ... # type: 'QFileDialog.FileMode' + + class ViewMode(int): ... + Detail = ... # type: 'QFileDialog.ViewMode' + List = ... # type: 'QFileDialog.ViewMode' + + class Options(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QFileDialog.Options', 'QFileDialog.Option']) -> None: ... + @typing.overload + def __init__(self, a0: 'QFileDialog.Options') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QFileDialog.Options': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, parent: QWidget, f: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType]) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: str = ..., filter: str = ...) -> None: ... + + def selectedMimeTypeFilter(self) -> str: ... + def supportedSchemes(self) -> typing.List[str]: ... + def setSupportedSchemes(self, schemes: typing.Iterable[str]) -> None: ... + @staticmethod + def getSaveFileUrl(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: QtCore.QUrl = ..., filter: str = ..., initialFilter: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ..., supportedSchemes: typing.Iterable[str] = ...) -> typing.Tuple[QtCore.QUrl, str]: ... + @staticmethod + def getOpenFileUrls(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: QtCore.QUrl = ..., filter: str = ..., initialFilter: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ..., supportedSchemes: typing.Iterable[str] = ...) -> typing.Tuple[typing.List[QtCore.QUrl], str]: ... + @staticmethod + def getOpenFileUrl(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: QtCore.QUrl = ..., filter: str = ..., initialFilter: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ..., supportedSchemes: typing.Iterable[str] = ...) -> typing.Tuple[QtCore.QUrl, str]: ... + def directoryUrlEntered(self, directory: QtCore.QUrl) -> None: ... + def currentUrlChanged(self, url: QtCore.QUrl) -> None: ... + def urlsSelected(self, urls: typing.Iterable[QtCore.QUrl]) -> None: ... + def urlSelected(self, url: QtCore.QUrl) -> None: ... + def selectMimeTypeFilter(self, filter: str) -> None: ... + def mimeTypeFilters(self) -> typing.List[str]: ... + def setMimeTypeFilters(self, filters: typing.Iterable[str]) -> None: ... + def selectedUrls(self) -> typing.List[QtCore.QUrl]: ... + def selectUrl(self, url: QtCore.QUrl) -> None: ... + def directoryUrl(self) -> QtCore.QUrl: ... + def setDirectoryUrl(self, directory: QtCore.QUrl) -> None: ... + def setVisible(self, visible: bool) -> None: ... + @typing.overload + def open(self) -> None: ... + @typing.overload + def open(self, slot: PYQT_SLOT) -> None: ... + def options(self) -> 'QFileDialog.Options': ... + def setOptions(self, options: typing.Union['QFileDialog.Options', 'QFileDialog.Option']) -> None: ... + def testOption(self, option: 'QFileDialog.Option') -> bool: ... + def setOption(self, option: 'QFileDialog.Option', on: bool = ...) -> None: ... + def setFilter(self, filters: typing.Union[QtCore.QDir.Filters, QtCore.QDir.Filter]) -> None: ... + def filter(self) -> QtCore.QDir.Filters: ... + def selectedNameFilter(self) -> str: ... + def selectNameFilter(self, filter: str) -> None: ... + def nameFilters(self) -> typing.List[str]: ... + def setNameFilters(self, filters: typing.Iterable[str]) -> None: ... + def setNameFilter(self, filter: str) -> None: ... + def proxyModel(self) -> QtCore.QAbstractProxyModel: ... + def setProxyModel(self, model: QtCore.QAbstractProxyModel) -> None: ... + def restoreState(self, state: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + def saveState(self) -> QtCore.QByteArray: ... + def sidebarUrls(self) -> typing.List[QtCore.QUrl]: ... + def setSidebarUrls(self, urls: typing.Iterable[QtCore.QUrl]) -> None: ... + def changeEvent(self, e: QtCore.QEvent) -> None: ... + def accept(self) -> None: ... + def done(self, result: int) -> None: ... + @staticmethod + def getSaveFileName(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: str = ..., filter: str = ..., initialFilter: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ...) -> typing.Tuple[str, str]: ... + @staticmethod + def getOpenFileNames(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: str = ..., filter: str = ..., initialFilter: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ...) -> typing.Tuple[typing.List[str], str]: ... + @staticmethod + def getOpenFileName(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: str = ..., filter: str = ..., initialFilter: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ...) -> typing.Tuple[str, str]: ... + @staticmethod + def getExistingDirectoryUrl(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: QtCore.QUrl = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ..., supportedSchemes: typing.Iterable[str] = ...) -> QtCore.QUrl: ... + @staticmethod + def getExistingDirectory(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ...) -> str: ... + def fileSelected(self, file: str) -> None: ... + def filterSelected(self, filter: str) -> None: ... + def filesSelected(self, files: typing.Iterable[str]) -> None: ... + def directoryEntered(self, directory: str) -> None: ... + def currentChanged(self, path: str) -> None: ... + def labelText(self, label: 'QFileDialog.DialogLabel') -> str: ... + def setLabelText(self, label: 'QFileDialog.DialogLabel', text: str) -> None: ... + def iconProvider(self) -> 'QFileIconProvider': ... + def setIconProvider(self, provider: 'QFileIconProvider') -> None: ... + def itemDelegate(self) -> QAbstractItemDelegate: ... + def setItemDelegate(self, delegate: QAbstractItemDelegate) -> None: ... + def history(self) -> typing.List[str]: ... + def setHistory(self, paths: typing.Iterable[str]) -> None: ... + def defaultSuffix(self) -> str: ... + def setDefaultSuffix(self, suffix: str) -> None: ... + def acceptMode(self) -> 'QFileDialog.AcceptMode': ... + def setAcceptMode(self, mode: 'QFileDialog.AcceptMode') -> None: ... + def fileMode(self) -> 'QFileDialog.FileMode': ... + def setFileMode(self, mode: 'QFileDialog.FileMode') -> None: ... + def viewMode(self) -> 'QFileDialog.ViewMode': ... + def setViewMode(self, mode: 'QFileDialog.ViewMode') -> None: ... + def selectedFiles(self) -> typing.List[str]: ... + def selectFile(self, filename: str) -> None: ... + def directory(self) -> QtCore.QDir: ... + @typing.overload + def setDirectory(self, directory: str) -> None: ... + @typing.overload + def setDirectory(self, adirectory: QtCore.QDir) -> None: ... + + +class QFileIconProvider(sip.simplewrapper): + + class Option(int): ... + DontUseCustomDirectoryIcons = ... # type: 'QFileIconProvider.Option' + + class IconType(int): ... + Computer = ... # type: 'QFileIconProvider.IconType' + Desktop = ... # type: 'QFileIconProvider.IconType' + Trashcan = ... # type: 'QFileIconProvider.IconType' + Network = ... # type: 'QFileIconProvider.IconType' + Drive = ... # type: 'QFileIconProvider.IconType' + Folder = ... # type: 'QFileIconProvider.IconType' + File = ... # type: 'QFileIconProvider.IconType' + + class Options(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QFileIconProvider.Options', 'QFileIconProvider.Option']) -> None: ... + @typing.overload + def __init__(self, a0: 'QFileIconProvider.Options') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QFileIconProvider.Options': ... + def __int__(self) -> int: ... + + def __init__(self) -> None: ... + + def options(self) -> 'QFileIconProvider.Options': ... + def setOptions(self, options: typing.Union['QFileIconProvider.Options', 'QFileIconProvider.Option']) -> None: ... + def type(self, info: QtCore.QFileInfo) -> str: ... + @typing.overload + def icon(self, type: 'QFileIconProvider.IconType') -> QtGui.QIcon: ... + @typing.overload + def icon(self, info: QtCore.QFileInfo) -> QtGui.QIcon: ... + + +class QFileSystemModel(QtCore.QAbstractItemModel): + + class Roles(int): ... + FileIconRole = ... # type: 'QFileSystemModel.Roles' + FilePathRole = ... # type: 'QFileSystemModel.Roles' + FileNameRole = ... # type: 'QFileSystemModel.Roles' + FilePermissions = ... # type: 'QFileSystemModel.Roles' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def sibling(self, row: int, column: int, idx: QtCore.QModelIndex) -> QtCore.QModelIndex: ... + def timerEvent(self, event: QtCore.QTimerEvent) -> None: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def directoryLoaded(self, path: str) -> None: ... + def rootPathChanged(self, newPath: str) -> None: ... + def fileRenamed(self, path: str, oldName: str, newName: str) -> None: ... + def remove(self, index: QtCore.QModelIndex) -> bool: ... + def fileInfo(self, aindex: QtCore.QModelIndex) -> QtCore.QFileInfo: ... + def fileIcon(self, aindex: QtCore.QModelIndex) -> QtGui.QIcon: ... + def fileName(self, aindex: QtCore.QModelIndex) -> str: ... + def rmdir(self, index: QtCore.QModelIndex) -> bool: ... + def permissions(self, index: QtCore.QModelIndex) -> QtCore.QFileDevice.Permissions: ... + def mkdir(self, parent: QtCore.QModelIndex, name: str) -> QtCore.QModelIndex: ... + def lastModified(self, index: QtCore.QModelIndex) -> QtCore.QDateTime: ... + def type(self, index: QtCore.QModelIndex) -> str: ... + def size(self, index: QtCore.QModelIndex) -> int: ... + def isDir(self, index: QtCore.QModelIndex) -> bool: ... + def filePath(self, index: QtCore.QModelIndex) -> str: ... + def nameFilters(self) -> typing.List[str]: ... + def setNameFilters(self, filters: typing.Iterable[str]) -> None: ... + def nameFilterDisables(self) -> bool: ... + def setNameFilterDisables(self, enable: bool) -> None: ... + def isReadOnly(self) -> bool: ... + def setReadOnly(self, enable: bool) -> None: ... + def resolveSymlinks(self) -> bool: ... + def setResolveSymlinks(self, enable: bool) -> None: ... + def filter(self) -> QtCore.QDir.Filters: ... + def setFilter(self, filters: typing.Union[QtCore.QDir.Filters, QtCore.QDir.Filter]) -> None: ... + def iconProvider(self) -> QFileIconProvider: ... + def setIconProvider(self, provider: QFileIconProvider) -> None: ... + def rootDirectory(self) -> QtCore.QDir: ... + def rootPath(self) -> str: ... + def setRootPath(self, path: str) -> QtCore.QModelIndex: ... + def supportedDropActions(self) -> QtCore.Qt.DropActions: ... + def dropMimeData(self, data: QtCore.QMimeData, action: QtCore.Qt.DropAction, row: int, column: int, parent: QtCore.QModelIndex) -> bool: ... + def mimeData(self, indexes: typing.Iterable[QtCore.QModelIndex]) -> QtCore.QMimeData: ... + def mimeTypes(self) -> typing.List[str]: ... + def sort(self, column: int, order: QtCore.Qt.SortOrder = ...) -> None: ... + def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlags: ... + def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int = ...) -> typing.Any: ... + def setData(self, idx: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ... + def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ... + def myComputer(self, role: int = ...) -> typing.Any: ... + def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + def fetchMore(self, parent: QtCore.QModelIndex) -> None: ... + def canFetchMore(self, parent: QtCore.QModelIndex) -> bool: ... + def hasChildren(self, parent: QtCore.QModelIndex = ...) -> bool: ... + def parent(self, child: QtCore.QModelIndex) -> QtCore.QModelIndex: ... + @typing.overload + def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ... + @typing.overload + def index(self, path: str, column: int = ...) -> QtCore.QModelIndex: ... + + +class QFocusFrame(QWidget): + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def eventFilter(self, a0: QtCore.QObject, a1: QtCore.QEvent) -> bool: ... + def initStyleOption(self, option: 'QStyleOption') -> None: ... + def widget(self) -> QWidget: ... + def setWidget(self, widget: QWidget) -> None: ... + + +class QFontComboBox(QComboBox): + + class FontFilter(int): ... + AllFonts = ... # type: 'QFontComboBox.FontFilter' + ScalableFonts = ... # type: 'QFontComboBox.FontFilter' + NonScalableFonts = ... # type: 'QFontComboBox.FontFilter' + MonospacedFonts = ... # type: 'QFontComboBox.FontFilter' + ProportionalFonts = ... # type: 'QFontComboBox.FontFilter' + + class FontFilters(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QFontComboBox.FontFilters', 'QFontComboBox.FontFilter']) -> None: ... + @typing.overload + def __init__(self, a0: 'QFontComboBox.FontFilters') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QFontComboBox.FontFilters': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def event(self, e: QtCore.QEvent) -> bool: ... + def currentFontChanged(self, f: QtGui.QFont) -> None: ... + def setCurrentFont(self, f: QtGui.QFont) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + def currentFont(self) -> QtGui.QFont: ... + def setFontFilters(self, filters: typing.Union['QFontComboBox.FontFilters', 'QFontComboBox.FontFilter']) -> None: ... + def writingSystem(self) -> QtGui.QFontDatabase.WritingSystem: ... + def setWritingSystem(self, a0: QtGui.QFontDatabase.WritingSystem) -> None: ... + def fontFilters(self) -> 'QFontComboBox.FontFilters': ... + + +class QFontDialog(QDialog): + + class FontDialogOption(int): ... + NoButtons = ... # type: 'QFontDialog.FontDialogOption' + DontUseNativeDialog = ... # type: 'QFontDialog.FontDialogOption' + ScalableFonts = ... # type: 'QFontDialog.FontDialogOption' + NonScalableFonts = ... # type: 'QFontDialog.FontDialogOption' + MonospacedFonts = ... # type: 'QFontDialog.FontDialogOption' + ProportionalFonts = ... # type: 'QFontDialog.FontDialogOption' + + class FontDialogOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QFontDialog.FontDialogOptions', 'QFontDialog.FontDialogOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QFontDialog.FontDialogOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QFontDialog.FontDialogOptions': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, initial: QtGui.QFont, parent: typing.Optional[QWidget] = ...) -> None: ... + + def fontSelected(self, font: QtGui.QFont) -> None: ... + def currentFontChanged(self, font: QtGui.QFont) -> None: ... + def setVisible(self, visible: bool) -> None: ... + @typing.overload + def open(self) -> None: ... + @typing.overload + def open(self, slot: PYQT_SLOT) -> None: ... + def options(self) -> 'QFontDialog.FontDialogOptions': ... + def setOptions(self, options: typing.Union['QFontDialog.FontDialogOptions', 'QFontDialog.FontDialogOption']) -> None: ... + def testOption(self, option: 'QFontDialog.FontDialogOption') -> bool: ... + def setOption(self, option: 'QFontDialog.FontDialogOption', on: bool = ...) -> None: ... + def selectedFont(self) -> QtGui.QFont: ... + def currentFont(self) -> QtGui.QFont: ... + def setCurrentFont(self, font: QtGui.QFont) -> None: ... + def eventFilter(self, object: QtCore.QObject, event: QtCore.QEvent) -> bool: ... + def done(self, result: int) -> None: ... + def changeEvent(self, e: QtCore.QEvent) -> None: ... + @typing.overload + @staticmethod + def getFont(initial: QtGui.QFont, parent: typing.Optional[QWidget] = ..., caption: str = ..., options: typing.Union['QFontDialog.FontDialogOptions', 'QFontDialog.FontDialogOption'] = ...) -> typing.Tuple[QtGui.QFont, bool]: ... + @typing.overload + @staticmethod + def getFont(parent: typing.Optional[QWidget] = ...) -> typing.Tuple[QtGui.QFont, bool]: ... + + +class QFormLayout(QLayout): + + class ItemRole(int): ... + LabelRole = ... # type: 'QFormLayout.ItemRole' + FieldRole = ... # type: 'QFormLayout.ItemRole' + SpanningRole = ... # type: 'QFormLayout.ItemRole' + + class RowWrapPolicy(int): ... + DontWrapRows = ... # type: 'QFormLayout.RowWrapPolicy' + WrapLongRows = ... # type: 'QFormLayout.RowWrapPolicy' + WrapAllRows = ... # type: 'QFormLayout.RowWrapPolicy' + + class FieldGrowthPolicy(int): ... + FieldsStayAtSizeHint = ... # type: 'QFormLayout.FieldGrowthPolicy' + ExpandingFieldsGrow = ... # type: 'QFormLayout.FieldGrowthPolicy' + AllNonFixedFieldsGrow = ... # type: 'QFormLayout.FieldGrowthPolicy' + + class TakeRowResult(sip.simplewrapper): + + fieldItem = ... # type: QLayoutItem + labelItem = ... # type: QLayoutItem + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QFormLayout.TakeRowResult') -> None: ... + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + @typing.overload + def takeRow(self, row: int) -> 'QFormLayout.TakeRowResult': ... + @typing.overload + def takeRow(self, widget: QWidget) -> 'QFormLayout.TakeRowResult': ... + @typing.overload + def takeRow(self, layout: QLayout) -> 'QFormLayout.TakeRowResult': ... + @typing.overload + def removeRow(self, row: int) -> None: ... + @typing.overload + def removeRow(self, widget: QWidget) -> None: ... + @typing.overload + def removeRow(self, layout: QLayout) -> None: ... + def rowCount(self) -> int: ... + def count(self) -> int: ... + def expandingDirections(self) -> QtCore.Qt.Orientations: ... + def heightForWidth(self, width: int) -> int: ... + def hasHeightForWidth(self) -> bool: ... + def invalidate(self) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + def minimumSize(self) -> QtCore.QSize: ... + def setGeometry(self, rect: QtCore.QRect) -> None: ... + def takeAt(self, index: int) -> QLayoutItem: ... + def addItem(self, item: QLayoutItem) -> None: ... + @typing.overload + def labelForField(self, field: QWidget) -> QWidget: ... + @typing.overload + def labelForField(self, field: QLayout) -> QWidget: ... + def getLayoutPosition(self, layout: QLayout) -> typing.Tuple[int, 'QFormLayout.ItemRole']: ... + def getWidgetPosition(self, widget: QWidget) -> typing.Tuple[int, 'QFormLayout.ItemRole']: ... + def getItemPosition(self, index: int) -> typing.Tuple[int, 'QFormLayout.ItemRole']: ... + @typing.overload + def itemAt(self, row: int, role: 'QFormLayout.ItemRole') -> QLayoutItem: ... + @typing.overload + def itemAt(self, index: int) -> QLayoutItem: ... + def setLayout(self, row: int, role: 'QFormLayout.ItemRole', layout: QLayout) -> None: ... + def setWidget(self, row: int, role: 'QFormLayout.ItemRole', widget: QWidget) -> None: ... + def setItem(self, row: int, role: 'QFormLayout.ItemRole', item: QLayoutItem) -> None: ... + @typing.overload + def insertRow(self, row: int, label: QWidget, field: QWidget) -> None: ... + @typing.overload + def insertRow(self, row: int, label: QWidget, field: QLayout) -> None: ... + @typing.overload + def insertRow(self, row: int, labelText: str, field: QWidget) -> None: ... + @typing.overload + def insertRow(self, row: int, labelText: str, field: QLayout) -> None: ... + @typing.overload + def insertRow(self, row: int, widget: QWidget) -> None: ... + @typing.overload + def insertRow(self, row: int, layout: QLayout) -> None: ... + @typing.overload + def addRow(self, label: QWidget, field: QWidget) -> None: ... + @typing.overload + def addRow(self, label: QWidget, field: QLayout) -> None: ... + @typing.overload + def addRow(self, labelText: str, field: QWidget) -> None: ... + @typing.overload + def addRow(self, labelText: str, field: QLayout) -> None: ... + @typing.overload + def addRow(self, widget: QWidget) -> None: ... + @typing.overload + def addRow(self, layout: QLayout) -> None: ... + def setSpacing(self, a0: int) -> None: ... + def spacing(self) -> int: ... + def verticalSpacing(self) -> int: ... + def setVerticalSpacing(self, spacing: int) -> None: ... + def horizontalSpacing(self) -> int: ... + def setHorizontalSpacing(self, spacing: int) -> None: ... + def formAlignment(self) -> QtCore.Qt.Alignment: ... + def setFormAlignment(self, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def labelAlignment(self) -> QtCore.Qt.Alignment: ... + def setLabelAlignment(self, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def rowWrapPolicy(self) -> 'QFormLayout.RowWrapPolicy': ... + def setRowWrapPolicy(self, policy: 'QFormLayout.RowWrapPolicy') -> None: ... + def fieldGrowthPolicy(self) -> 'QFormLayout.FieldGrowthPolicy': ... + def setFieldGrowthPolicy(self, policy: 'QFormLayout.FieldGrowthPolicy') -> None: ... + + +class QGesture(QtCore.QObject): + + class GestureCancelPolicy(int): ... + CancelNone = ... # type: 'QGesture.GestureCancelPolicy' + CancelAllInContext = ... # type: 'QGesture.GestureCancelPolicy' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def gestureCancelPolicy(self) -> 'QGesture.GestureCancelPolicy': ... + def setGestureCancelPolicy(self, policy: 'QGesture.GestureCancelPolicy') -> None: ... + def unsetHotSpot(self) -> None: ... + def hasHotSpot(self) -> bool: ... + def setHotSpot(self, value: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def hotSpot(self) -> QtCore.QPointF: ... + def state(self) -> QtCore.Qt.GestureState: ... + def gestureType(self) -> QtCore.Qt.GestureType: ... + + +class QPanGesture(QGesture): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setAcceleration(self, value: float) -> None: ... + def setOffset(self, value: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def setLastOffset(self, value: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def acceleration(self) -> float: ... + def delta(self) -> QtCore.QPointF: ... + def offset(self) -> QtCore.QPointF: ... + def lastOffset(self) -> QtCore.QPointF: ... + + +class QPinchGesture(QGesture): + + class ChangeFlag(int): ... + ScaleFactorChanged = ... # type: 'QPinchGesture.ChangeFlag' + RotationAngleChanged = ... # type: 'QPinchGesture.ChangeFlag' + CenterPointChanged = ... # type: 'QPinchGesture.ChangeFlag' + + class ChangeFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QPinchGesture.ChangeFlags', 'QPinchGesture.ChangeFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QPinchGesture.ChangeFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QPinchGesture.ChangeFlags': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setRotationAngle(self, value: float) -> None: ... + def setLastRotationAngle(self, value: float) -> None: ... + def setTotalRotationAngle(self, value: float) -> None: ... + def rotationAngle(self) -> float: ... + def lastRotationAngle(self) -> float: ... + def totalRotationAngle(self) -> float: ... + def setScaleFactor(self, value: float) -> None: ... + def setLastScaleFactor(self, value: float) -> None: ... + def setTotalScaleFactor(self, value: float) -> None: ... + def scaleFactor(self) -> float: ... + def lastScaleFactor(self) -> float: ... + def totalScaleFactor(self) -> float: ... + def setCenterPoint(self, value: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def setLastCenterPoint(self, value: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def setStartCenterPoint(self, value: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def centerPoint(self) -> QtCore.QPointF: ... + def lastCenterPoint(self) -> QtCore.QPointF: ... + def startCenterPoint(self) -> QtCore.QPointF: ... + def setChangeFlags(self, value: typing.Union['QPinchGesture.ChangeFlags', 'QPinchGesture.ChangeFlag']) -> None: ... + def changeFlags(self) -> 'QPinchGesture.ChangeFlags': ... + def setTotalChangeFlags(self, value: typing.Union['QPinchGesture.ChangeFlags', 'QPinchGesture.ChangeFlag']) -> None: ... + def totalChangeFlags(self) -> 'QPinchGesture.ChangeFlags': ... + + +class QSwipeGesture(QGesture): + + class SwipeDirection(int): ... + NoDirection = ... # type: 'QSwipeGesture.SwipeDirection' + Left = ... # type: 'QSwipeGesture.SwipeDirection' + Right = ... # type: 'QSwipeGesture.SwipeDirection' + Up = ... # type: 'QSwipeGesture.SwipeDirection' + Down = ... # type: 'QSwipeGesture.SwipeDirection' + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setSwipeAngle(self, value: float) -> None: ... + def swipeAngle(self) -> float: ... + def verticalDirection(self) -> 'QSwipeGesture.SwipeDirection': ... + def horizontalDirection(self) -> 'QSwipeGesture.SwipeDirection': ... + + +class QTapGesture(QGesture): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setPosition(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def position(self) -> QtCore.QPointF: ... + + +class QTapAndHoldGesture(QGesture): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + @staticmethod + def timeout() -> int: ... + @staticmethod + def setTimeout(msecs: int) -> None: ... + def setPosition(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def position(self) -> QtCore.QPointF: ... + + +class QGestureEvent(QtCore.QEvent): + + @typing.overload + def __init__(self, gestures: typing.Iterable[QGesture]) -> None: ... + @typing.overload + def __init__(self, a0: 'QGestureEvent') -> None: ... + + def mapToGraphicsScene(self, gesturePoint: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + def widget(self) -> QWidget: ... + @typing.overload + def ignore(self) -> None: ... + @typing.overload + def ignore(self, a0: QGesture) -> None: ... + @typing.overload + def ignore(self, a0: QtCore.Qt.GestureType) -> None: ... + @typing.overload + def accept(self) -> None: ... + @typing.overload + def accept(self, a0: QGesture) -> None: ... + @typing.overload + def accept(self, a0: QtCore.Qt.GestureType) -> None: ... + @typing.overload + def isAccepted(self) -> bool: ... + @typing.overload + def isAccepted(self, a0: QGesture) -> bool: ... + @typing.overload + def isAccepted(self, a0: QtCore.Qt.GestureType) -> bool: ... + @typing.overload + def setAccepted(self, accepted: bool) -> None: ... + @typing.overload + def setAccepted(self, a0: QGesture, a1: bool) -> None: ... + @typing.overload + def setAccepted(self, a0: QtCore.Qt.GestureType, a1: bool) -> None: ... + def canceledGestures(self) -> typing.List[QGesture]: ... + def activeGestures(self) -> typing.List[QGesture]: ... + def gesture(self, type: QtCore.Qt.GestureType) -> QGesture: ... + def gestures(self) -> typing.List[QGesture]: ... + + +class QGestureRecognizer(sip.wrapper): + + class ResultFlag(int): ... + Ignore = ... # type: 'QGestureRecognizer.ResultFlag' + MayBeGesture = ... # type: 'QGestureRecognizer.ResultFlag' + TriggerGesture = ... # type: 'QGestureRecognizer.ResultFlag' + FinishGesture = ... # type: 'QGestureRecognizer.ResultFlag' + CancelGesture = ... # type: 'QGestureRecognizer.ResultFlag' + ConsumeEventHint = ... # type: 'QGestureRecognizer.ResultFlag' + + class Result(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGestureRecognizer.Result', 'QGestureRecognizer.ResultFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGestureRecognizer.Result') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGestureRecognizer.Result': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QGestureRecognizer') -> None: ... + + @staticmethod + def unregisterRecognizer(type: QtCore.Qt.GestureType) -> None: ... + @staticmethod + def registerRecognizer(recognizer: 'QGestureRecognizer') -> QtCore.Qt.GestureType: ... + def reset(self, state: QGesture) -> None: ... + def recognize(self, state: QGesture, watched: QtCore.QObject, event: QtCore.QEvent) -> 'QGestureRecognizer.Result': ... + def create(self, target: QtCore.QObject) -> QGesture: ... + + +class QGraphicsAnchor(QtCore.QObject): + + def sizePolicy(self) -> 'QSizePolicy.Policy': ... + def setSizePolicy(self, policy: 'QSizePolicy.Policy') -> None: ... + def spacing(self) -> float: ... + def unsetSpacing(self) -> None: ... + def setSpacing(self, spacing: float) -> None: ... + + +class QGraphicsLayoutItem(sip.wrapper): + + def __init__(self, parent: typing.Optional['QGraphicsLayoutItem'] = ..., isLayout: bool = ...) -> None: ... + + def setOwnedByLayout(self, ownedByLayout: bool) -> None: ... + def setGraphicsItem(self, item: 'QGraphicsItem') -> None: ... + def sizeHint(self, which: QtCore.Qt.SizeHint, constraint: QtCore.QSizeF = ...) -> QtCore.QSizeF: ... + def ownedByLayout(self) -> bool: ... + def graphicsItem(self) -> 'QGraphicsItem': ... + def maximumHeight(self) -> float: ... + def maximumWidth(self) -> float: ... + def preferredHeight(self) -> float: ... + def preferredWidth(self) -> float: ... + def minimumHeight(self) -> float: ... + def minimumWidth(self) -> float: ... + def isLayout(self) -> bool: ... + def setParentLayoutItem(self, parent: 'QGraphicsLayoutItem') -> None: ... + def parentLayoutItem(self) -> 'QGraphicsLayoutItem': ... + def updateGeometry(self) -> None: ... + def effectiveSizeHint(self, which: QtCore.Qt.SizeHint, constraint: QtCore.QSizeF = ...) -> QtCore.QSizeF: ... + def contentsRect(self) -> QtCore.QRectF: ... + def getContentsMargins(self) -> typing.Tuple[float, float, float, float]: ... + def geometry(self) -> QtCore.QRectF: ... + def setGeometry(self, rect: QtCore.QRectF) -> None: ... + def setMaximumHeight(self, height: float) -> None: ... + def setMaximumWidth(self, width: float) -> None: ... + def maximumSize(self) -> QtCore.QSizeF: ... + @typing.overload + def setMaximumSize(self, size: QtCore.QSizeF) -> None: ... + @typing.overload + def setMaximumSize(self, aw: float, ah: float) -> None: ... + def setPreferredHeight(self, height: float) -> None: ... + def setPreferredWidth(self, width: float) -> None: ... + def preferredSize(self) -> QtCore.QSizeF: ... + @typing.overload + def setPreferredSize(self, size: QtCore.QSizeF) -> None: ... + @typing.overload + def setPreferredSize(self, aw: float, ah: float) -> None: ... + def setMinimumHeight(self, height: float) -> None: ... + def setMinimumWidth(self, width: float) -> None: ... + def minimumSize(self) -> QtCore.QSizeF: ... + @typing.overload + def setMinimumSize(self, size: QtCore.QSizeF) -> None: ... + @typing.overload + def setMinimumSize(self, aw: float, ah: float) -> None: ... + def sizePolicy(self) -> 'QSizePolicy': ... + @typing.overload + def setSizePolicy(self, policy: 'QSizePolicy') -> None: ... + @typing.overload + def setSizePolicy(self, hPolicy: 'QSizePolicy.Policy', vPolicy: 'QSizePolicy.Policy', controlType: 'QSizePolicy.ControlType' = ...) -> None: ... + + +class QGraphicsLayout(QGraphicsLayoutItem): + + def __init__(self, parent: typing.Optional[QGraphicsLayoutItem] = ...) -> None: ... + + def addChildLayoutItem(self, layoutItem: QGraphicsLayoutItem) -> None: ... + def updateGeometry(self) -> None: ... + def removeAt(self, index: int) -> None: ... + def itemAt(self, i: int) -> QGraphicsLayoutItem: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def widgetEvent(self, e: QtCore.QEvent) -> None: ... + def invalidate(self) -> None: ... + def isActivated(self) -> bool: ... + def activate(self) -> None: ... + def getContentsMargins(self) -> typing.Tuple[float, float, float, float]: ... + def setContentsMargins(self, left: float, top: float, right: float, bottom: float) -> None: ... + + +class QGraphicsAnchorLayout(QGraphicsLayout): + + def __init__(self, parent: typing.Optional[QGraphicsLayoutItem] = ...) -> None: ... + + def sizeHint(self, which: QtCore.Qt.SizeHint, constraint: QtCore.QSizeF = ...) -> QtCore.QSizeF: ... + def invalidate(self) -> None: ... + def itemAt(self, index: int) -> QGraphicsLayoutItem: ... + def count(self) -> int: ... + def setGeometry(self, rect: QtCore.QRectF) -> None: ... + def removeAt(self, index: int) -> None: ... + def verticalSpacing(self) -> float: ... + def horizontalSpacing(self) -> float: ... + def setSpacing(self, spacing: float) -> None: ... + def setVerticalSpacing(self, spacing: float) -> None: ... + def setHorizontalSpacing(self, spacing: float) -> None: ... + def addAnchors(self, firstItem: QGraphicsLayoutItem, secondItem: QGraphicsLayoutItem, orientations: typing.Union[QtCore.Qt.Orientations, QtCore.Qt.Orientation] = ...) -> None: ... + def addCornerAnchors(self, firstItem: QGraphicsLayoutItem, firstCorner: QtCore.Qt.Corner, secondItem: QGraphicsLayoutItem, secondCorner: QtCore.Qt.Corner) -> None: ... + def anchor(self, firstItem: QGraphicsLayoutItem, firstEdge: QtCore.Qt.AnchorPoint, secondItem: QGraphicsLayoutItem, secondEdge: QtCore.Qt.AnchorPoint) -> QGraphicsAnchor: ... + def addAnchor(self, firstItem: QGraphicsLayoutItem, firstEdge: QtCore.Qt.AnchorPoint, secondItem: QGraphicsLayoutItem, secondEdge: QtCore.Qt.AnchorPoint) -> QGraphicsAnchor: ... + + +class QGraphicsEffect(QtCore.QObject): + + class PixmapPadMode(int): ... + NoPad = ... # type: 'QGraphicsEffect.PixmapPadMode' + PadToTransparentBorder = ... # type: 'QGraphicsEffect.PixmapPadMode' + PadToEffectiveBoundingRect = ... # type: 'QGraphicsEffect.PixmapPadMode' + + class ChangeFlag(int): ... + SourceAttached = ... # type: 'QGraphicsEffect.ChangeFlag' + SourceDetached = ... # type: 'QGraphicsEffect.ChangeFlag' + SourceBoundingRectChanged = ... # type: 'QGraphicsEffect.ChangeFlag' + SourceInvalidated = ... # type: 'QGraphicsEffect.ChangeFlag' + + class ChangeFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGraphicsEffect.ChangeFlags', 'QGraphicsEffect.ChangeFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGraphicsEffect.ChangeFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGraphicsEffect.ChangeFlags': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def sourcePixmap(self, system: QtCore.Qt.CoordinateSystem = ..., mode: 'QGraphicsEffect.PixmapPadMode' = ...) -> typing.Tuple[QtGui.QPixmap, QtCore.QPoint]: ... + def drawSource(self, painter: QtGui.QPainter) -> None: ... + def sourceBoundingRect(self, system: QtCore.Qt.CoordinateSystem = ...) -> QtCore.QRectF: ... + def sourceIsPixmap(self) -> bool: ... + def updateBoundingRect(self) -> None: ... + def sourceChanged(self, flags: typing.Union['QGraphicsEffect.ChangeFlags', 'QGraphicsEffect.ChangeFlag']) -> None: ... + def draw(self, painter: QtGui.QPainter) -> None: ... + def enabledChanged(self, enabled: bool) -> None: ... + def update(self) -> None: ... + def setEnabled(self, enable: bool) -> None: ... + def isEnabled(self) -> bool: ... + def boundingRect(self) -> QtCore.QRectF: ... + def boundingRectFor(self, sourceRect: QtCore.QRectF) -> QtCore.QRectF: ... + + +class QGraphicsColorizeEffect(QGraphicsEffect): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def draw(self, painter: QtGui.QPainter) -> None: ... + def strengthChanged(self, strength: float) -> None: ... + def colorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def setStrength(self, strength: float) -> None: ... + def setColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def strength(self) -> float: ... + def color(self) -> QtGui.QColor: ... + + +class QGraphicsBlurEffect(QGraphicsEffect): + + class BlurHint(int): ... + PerformanceHint = ... # type: 'QGraphicsBlurEffect.BlurHint' + QualityHint = ... # type: 'QGraphicsBlurEffect.BlurHint' + AnimationHint = ... # type: 'QGraphicsBlurEffect.BlurHint' + + class BlurHints(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGraphicsBlurEffect.BlurHints', 'QGraphicsBlurEffect.BlurHint']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGraphicsBlurEffect.BlurHints') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGraphicsBlurEffect.BlurHints': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def draw(self, painter: QtGui.QPainter) -> None: ... + def blurHintsChanged(self, hints: typing.Union['QGraphicsBlurEffect.BlurHints', 'QGraphicsBlurEffect.BlurHint']) -> None: ... + def blurRadiusChanged(self, blurRadius: float) -> None: ... + def setBlurHints(self, hints: typing.Union['QGraphicsBlurEffect.BlurHints', 'QGraphicsBlurEffect.BlurHint']) -> None: ... + def setBlurRadius(self, blurRadius: float) -> None: ... + def blurHints(self) -> 'QGraphicsBlurEffect.BlurHints': ... + def blurRadius(self) -> float: ... + def boundingRectFor(self, rect: QtCore.QRectF) -> QtCore.QRectF: ... + + +class QGraphicsDropShadowEffect(QGraphicsEffect): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def draw(self, painter: QtGui.QPainter) -> None: ... + def colorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def blurRadiusChanged(self, blurRadius: float) -> None: ... + def offsetChanged(self, offset: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def setBlurRadius(self, blurRadius: float) -> None: ... + def setYOffset(self, dy: float) -> None: ... + def setXOffset(self, dx: float) -> None: ... + @typing.overload + def setOffset(self, ofs: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def setOffset(self, dx: float, dy: float) -> None: ... + @typing.overload + def setOffset(self, d: float) -> None: ... + def color(self) -> QtGui.QColor: ... + def blurRadius(self) -> float: ... + def yOffset(self) -> float: ... + def xOffset(self) -> float: ... + def offset(self) -> QtCore.QPointF: ... + def boundingRectFor(self, rect: QtCore.QRectF) -> QtCore.QRectF: ... + + +class QGraphicsOpacityEffect(QGraphicsEffect): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def draw(self, painter: QtGui.QPainter) -> None: ... + def opacityMaskChanged(self, mask: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def opacityChanged(self, opacity: float) -> None: ... + def setOpacityMask(self, mask: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def setOpacity(self, opacity: float) -> None: ... + def opacityMask(self) -> QtGui.QBrush: ... + def opacity(self) -> float: ... + + +class QGraphicsGridLayout(QGraphicsLayout): + + def __init__(self, parent: typing.Optional[QGraphicsLayoutItem] = ...) -> None: ... + + def removeItem(self, item: QGraphicsLayoutItem) -> None: ... + def sizeHint(self, which: QtCore.Qt.SizeHint, constraint: QtCore.QSizeF = ...) -> QtCore.QSizeF: ... + def setGeometry(self, rect: QtCore.QRectF) -> None: ... + def invalidate(self) -> None: ... + def removeAt(self, index: int) -> None: ... + def count(self) -> int: ... + @typing.overload + def itemAt(self, row: int, column: int) -> QGraphicsLayoutItem: ... + @typing.overload + def itemAt(self, index: int) -> QGraphicsLayoutItem: ... + def columnCount(self) -> int: ... + def rowCount(self) -> int: ... + def alignment(self, item: QGraphicsLayoutItem) -> QtCore.Qt.Alignment: ... + def setAlignment(self, item: QGraphicsLayoutItem, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def columnAlignment(self, column: int) -> QtCore.Qt.Alignment: ... + def setColumnAlignment(self, column: int, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def rowAlignment(self, row: int) -> QtCore.Qt.Alignment: ... + def setRowAlignment(self, row: int, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def setColumnFixedWidth(self, column: int, width: float) -> None: ... + def columnMaximumWidth(self, column: int) -> float: ... + def setColumnMaximumWidth(self, column: int, width: float) -> None: ... + def columnPreferredWidth(self, column: int) -> float: ... + def setColumnPreferredWidth(self, column: int, width: float) -> None: ... + def columnMinimumWidth(self, column: int) -> float: ... + def setColumnMinimumWidth(self, column: int, width: float) -> None: ... + def setRowFixedHeight(self, row: int, height: float) -> None: ... + def rowMaximumHeight(self, row: int) -> float: ... + def setRowMaximumHeight(self, row: int, height: float) -> None: ... + def rowPreferredHeight(self, row: int) -> float: ... + def setRowPreferredHeight(self, row: int, height: float) -> None: ... + def rowMinimumHeight(self, row: int) -> float: ... + def setRowMinimumHeight(self, row: int, height: float) -> None: ... + def columnStretchFactor(self, column: int) -> int: ... + def setColumnStretchFactor(self, column: int, stretch: int) -> None: ... + def rowStretchFactor(self, row: int) -> int: ... + def setRowStretchFactor(self, row: int, stretch: int) -> None: ... + def columnSpacing(self, column: int) -> float: ... + def setColumnSpacing(self, column: int, spacing: float) -> None: ... + def rowSpacing(self, row: int) -> float: ... + def setRowSpacing(self, row: int, spacing: float) -> None: ... + def setSpacing(self, spacing: float) -> None: ... + def verticalSpacing(self) -> float: ... + def setVerticalSpacing(self, spacing: float) -> None: ... + def horizontalSpacing(self) -> float: ... + def setHorizontalSpacing(self, spacing: float) -> None: ... + @typing.overload + def addItem(self, item: QGraphicsLayoutItem, row: int, column: int, rowSpan: int, columnSpan: int, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag] = ...) -> None: ... + @typing.overload + def addItem(self, item: QGraphicsLayoutItem, row: int, column: int, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag] = ...) -> None: ... + + +class QGraphicsItem(sip.wrapper): + + class PanelModality(int): ... + NonModal = ... # type: 'QGraphicsItem.PanelModality' + PanelModal = ... # type: 'QGraphicsItem.PanelModality' + SceneModal = ... # type: 'QGraphicsItem.PanelModality' + + class GraphicsItemFlag(int): ... + ItemIsMovable = ... # type: 'QGraphicsItem.GraphicsItemFlag' + ItemIsSelectable = ... # type: 'QGraphicsItem.GraphicsItemFlag' + ItemIsFocusable = ... # type: 'QGraphicsItem.GraphicsItemFlag' + ItemClipsToShape = ... # type: 'QGraphicsItem.GraphicsItemFlag' + ItemClipsChildrenToShape = ... # type: 'QGraphicsItem.GraphicsItemFlag' + ItemIgnoresTransformations = ... # type: 'QGraphicsItem.GraphicsItemFlag' + ItemIgnoresParentOpacity = ... # type: 'QGraphicsItem.GraphicsItemFlag' + ItemDoesntPropagateOpacityToChildren = ... # type: 'QGraphicsItem.GraphicsItemFlag' + ItemStacksBehindParent = ... # type: 'QGraphicsItem.GraphicsItemFlag' + ItemUsesExtendedStyleOption = ... # type: 'QGraphicsItem.GraphicsItemFlag' + ItemHasNoContents = ... # type: 'QGraphicsItem.GraphicsItemFlag' + ItemSendsGeometryChanges = ... # type: 'QGraphicsItem.GraphicsItemFlag' + ItemAcceptsInputMethod = ... # type: 'QGraphicsItem.GraphicsItemFlag' + ItemNegativeZStacksBehindParent = ... # type: 'QGraphicsItem.GraphicsItemFlag' + ItemIsPanel = ... # type: 'QGraphicsItem.GraphicsItemFlag' + ItemSendsScenePositionChanges = ... # type: 'QGraphicsItem.GraphicsItemFlag' + ItemContainsChildrenInShape = ... # type: 'QGraphicsItem.GraphicsItemFlag' + + class GraphicsItemChange(int): ... + ItemPositionChange = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemMatrixChange = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemVisibleChange = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemEnabledChange = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemSelectedChange = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemParentChange = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemChildAddedChange = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemChildRemovedChange = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemTransformChange = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemPositionHasChanged = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemTransformHasChanged = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemSceneChange = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemVisibleHasChanged = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemEnabledHasChanged = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemSelectedHasChanged = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemParentHasChanged = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemSceneHasChanged = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemCursorChange = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemCursorHasChanged = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemToolTipChange = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemToolTipHasChanged = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemFlagsChange = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemFlagsHaveChanged = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemZValueChange = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemZValueHasChanged = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemOpacityChange = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemOpacityHasChanged = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemScenePositionHasChanged = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemRotationChange = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemRotationHasChanged = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemScaleChange = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemScaleHasChanged = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemTransformOriginPointChange = ... # type: 'QGraphicsItem.GraphicsItemChange' + ItemTransformOriginPointHasChanged = ... # type: 'QGraphicsItem.GraphicsItemChange' + + class CacheMode(int): ... + NoCache = ... # type: 'QGraphicsItem.CacheMode' + ItemCoordinateCache = ... # type: 'QGraphicsItem.CacheMode' + DeviceCoordinateCache = ... # type: 'QGraphicsItem.CacheMode' + + class GraphicsItemFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGraphicsItem.GraphicsItemFlags', 'QGraphicsItem.GraphicsItemFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGraphicsItem.GraphicsItemFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGraphicsItem.GraphicsItemFlags': ... + def __int__(self) -> int: ... + + Type = ... # type: int + UserType = ... # type: int + + def __init__(self, parent: typing.Optional['QGraphicsItem'] = ...) -> None: ... + + def updateMicroFocus(self) -> None: ... + def setInputMethodHints(self, hints: typing.Union[QtCore.Qt.InputMethodHints, QtCore.Qt.InputMethodHint]) -> None: ... + def inputMethodHints(self) -> QtCore.Qt.InputMethodHints: ... + def stackBefore(self, sibling: 'QGraphicsItem') -> None: ... + @typing.overload + def setTransformOriginPoint(self, origin: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def setTransformOriginPoint(self, ax: float, ay: float) -> None: ... + def transformOriginPoint(self) -> QtCore.QPointF: ... + def setTransformations(self, transformations: typing.Iterable['QGraphicsTransform']) -> None: ... + def transformations(self) -> typing.List['QGraphicsTransform']: ... + def scale(self) -> float: ... + def setScale(self, scale: float) -> None: ... + def rotation(self) -> float: ... + def setRotation(self, angle: float) -> None: ... + def setY(self, y: float) -> None: ... + def setX(self, x: float) -> None: ... + def focusItem(self) -> 'QGraphicsItem': ... + def setFocusProxy(self, item: 'QGraphicsItem') -> None: ... + def focusProxy(self) -> 'QGraphicsItem': ... + def setActive(self, active: bool) -> None: ... + def isActive(self) -> bool: ... + def setFiltersChildEvents(self, enabled: bool) -> None: ... + def filtersChildEvents(self) -> bool: ... + def setAcceptTouchEvents(self, enabled: bool) -> None: ... + def acceptTouchEvents(self) -> bool: ... + def setGraphicsEffect(self, effect: QGraphicsEffect) -> None: ... + def graphicsEffect(self) -> QGraphicsEffect: ... + def isBlockedByModalPanel(self) -> typing.Tuple[bool, 'QGraphicsItem']: ... + def setPanelModality(self, panelModality: 'QGraphicsItem.PanelModality') -> None: ... + def panelModality(self) -> 'QGraphicsItem.PanelModality': ... + def toGraphicsObject(self) -> 'QGraphicsObject': ... + def isPanel(self) -> bool: ... + def panel(self) -> 'QGraphicsItem': ... + def parentObject(self) -> 'QGraphicsObject': ... + @typing.overload + def mapRectFromScene(self, rect: QtCore.QRectF) -> QtCore.QRectF: ... + @typing.overload + def mapRectFromScene(self, ax: float, ay: float, w: float, h: float) -> QtCore.QRectF: ... + @typing.overload + def mapRectFromParent(self, rect: QtCore.QRectF) -> QtCore.QRectF: ... + @typing.overload + def mapRectFromParent(self, ax: float, ay: float, w: float, h: float) -> QtCore.QRectF: ... + @typing.overload + def mapRectFromItem(self, item: 'QGraphicsItem', rect: QtCore.QRectF) -> QtCore.QRectF: ... + @typing.overload + def mapRectFromItem(self, item: 'QGraphicsItem', ax: float, ay: float, w: float, h: float) -> QtCore.QRectF: ... + @typing.overload + def mapRectToScene(self, rect: QtCore.QRectF) -> QtCore.QRectF: ... + @typing.overload + def mapRectToScene(self, ax: float, ay: float, w: float, h: float) -> QtCore.QRectF: ... + @typing.overload + def mapRectToParent(self, rect: QtCore.QRectF) -> QtCore.QRectF: ... + @typing.overload + def mapRectToParent(self, ax: float, ay: float, w: float, h: float) -> QtCore.QRectF: ... + @typing.overload + def mapRectToItem(self, item: 'QGraphicsItem', rect: QtCore.QRectF) -> QtCore.QRectF: ... + @typing.overload + def mapRectToItem(self, item: 'QGraphicsItem', ax: float, ay: float, w: float, h: float) -> QtCore.QRectF: ... + def clipPath(self) -> QtGui.QPainterPath: ... + def isClipped(self) -> bool: ... + def itemTransform(self, other: 'QGraphicsItem') -> typing.Tuple[QtGui.QTransform, bool]: ... + def setOpacity(self, opacity: float) -> None: ... + def effectiveOpacity(self) -> float: ... + def opacity(self) -> float: ... + def isUnderMouse(self) -> bool: ... + def commonAncestorItem(self, other: 'QGraphicsItem') -> 'QGraphicsItem': ... + def scroll(self, dx: float, dy: float, rect: QtCore.QRectF = ...) -> None: ... + def setBoundingRegionGranularity(self, granularity: float) -> None: ... + def boundingRegionGranularity(self) -> float: ... + def boundingRegion(self, itemToDeviceTransform: QtGui.QTransform) -> QtGui.QRegion: ... + def ungrabKeyboard(self) -> None: ... + def grabKeyboard(self) -> None: ... + def ungrabMouse(self) -> None: ... + def grabMouse(self) -> None: ... + def setAcceptHoverEvents(self, enabled: bool) -> None: ... + def acceptHoverEvents(self) -> bool: ... + def isVisibleTo(self, parent: 'QGraphicsItem') -> bool: ... + def setCacheMode(self, mode: 'QGraphicsItem.CacheMode', logicalCacheSize: QtCore.QSize = ...) -> None: ... + def cacheMode(self) -> 'QGraphicsItem.CacheMode': ... + def isWindow(self) -> bool: ... + def isWidget(self) -> bool: ... + def childItems(self) -> typing.List['QGraphicsItem']: ... + def window(self) -> 'QGraphicsWidget': ... + def topLevelWidget(self) -> 'QGraphicsWidget': ... + def parentWidget(self) -> 'QGraphicsWidget': ... + @typing.overload + def isObscured(self, rect: QtCore.QRectF = ...) -> bool: ... + @typing.overload + def isObscured(self, ax: float, ay: float, w: float, h: float) -> bool: ... + def resetTransform(self) -> None: ... + def setTransform(self, matrix: QtGui.QTransform, combine: bool = ...) -> None: ... + def deviceTransform(self, viewportTransform: QtGui.QTransform) -> QtGui.QTransform: ... + def sceneTransform(self) -> QtGui.QTransform: ... + def transform(self) -> QtGui.QTransform: ... + def wheelEvent(self, event: 'QGraphicsSceneWheelEvent') -> None: ... + def sceneEventFilter(self, watched: 'QGraphicsItem', event: QtCore.QEvent) -> bool: ... + def sceneEvent(self, event: QtCore.QEvent) -> bool: ... + def prepareGeometryChange(self) -> None: ... + def mouseReleaseEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... + def mousePressEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... + def mouseMoveEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... + def mouseDoubleClickEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... + def keyReleaseEvent(self, event: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, event: QtGui.QKeyEvent) -> None: ... + def itemChange(self, change: 'QGraphicsItem.GraphicsItemChange', value: typing.Any) -> typing.Any: ... + def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + def inputMethodEvent(self, event: QtGui.QInputMethodEvent) -> None: ... + def hoverMoveEvent(self, event: 'QGraphicsSceneHoverEvent') -> None: ... + def hoverLeaveEvent(self, event: 'QGraphicsSceneHoverEvent') -> None: ... + def hoverEnterEvent(self, event: 'QGraphicsSceneHoverEvent') -> None: ... + def focusOutEvent(self, event: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, event: QtGui.QFocusEvent) -> None: ... + def dropEvent(self, event: 'QGraphicsSceneDragDropEvent') -> None: ... + def dragMoveEvent(self, event: 'QGraphicsSceneDragDropEvent') -> None: ... + def dragLeaveEvent(self, event: 'QGraphicsSceneDragDropEvent') -> None: ... + def dragEnterEvent(self, event: 'QGraphicsSceneDragDropEvent') -> None: ... + def contextMenuEvent(self, event: 'QGraphicsSceneContextMenuEvent') -> None: ... + def removeSceneEventFilter(self, filterItem: 'QGraphicsItem') -> None: ... + def installSceneEventFilter(self, filterItem: 'QGraphicsItem') -> None: ... + def type(self) -> int: ... + def setData(self, key: int, value: typing.Any) -> None: ... + def data(self, key: int) -> typing.Any: ... + def isAncestorOf(self, child: 'QGraphicsItem') -> bool: ... + @typing.overload + def mapFromScene(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + @typing.overload + def mapFromScene(self, rect: QtCore.QRectF) -> QtGui.QPolygonF: ... + @typing.overload + def mapFromScene(self, polygon: QtGui.QPolygonF) -> QtGui.QPolygonF: ... + @typing.overload + def mapFromScene(self, path: QtGui.QPainterPath) -> QtGui.QPainterPath: ... + @typing.overload + def mapFromScene(self, ax: float, ay: float) -> QtCore.QPointF: ... + @typing.overload + def mapFromScene(self, ax: float, ay: float, w: float, h: float) -> QtGui.QPolygonF: ... + @typing.overload + def mapFromParent(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + @typing.overload + def mapFromParent(self, rect: QtCore.QRectF) -> QtGui.QPolygonF: ... + @typing.overload + def mapFromParent(self, polygon: QtGui.QPolygonF) -> QtGui.QPolygonF: ... + @typing.overload + def mapFromParent(self, path: QtGui.QPainterPath) -> QtGui.QPainterPath: ... + @typing.overload + def mapFromParent(self, ax: float, ay: float) -> QtCore.QPointF: ... + @typing.overload + def mapFromParent(self, ax: float, ay: float, w: float, h: float) -> QtGui.QPolygonF: ... + @typing.overload + def mapFromItem(self, item: 'QGraphicsItem', point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + @typing.overload + def mapFromItem(self, item: 'QGraphicsItem', rect: QtCore.QRectF) -> QtGui.QPolygonF: ... + @typing.overload + def mapFromItem(self, item: 'QGraphicsItem', polygon: QtGui.QPolygonF) -> QtGui.QPolygonF: ... + @typing.overload + def mapFromItem(self, item: 'QGraphicsItem', path: QtGui.QPainterPath) -> QtGui.QPainterPath: ... + @typing.overload + def mapFromItem(self, item: 'QGraphicsItem', ax: float, ay: float) -> QtCore.QPointF: ... + @typing.overload + def mapFromItem(self, item: 'QGraphicsItem', ax: float, ay: float, w: float, h: float) -> QtGui.QPolygonF: ... + @typing.overload + def mapToScene(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + @typing.overload + def mapToScene(self, rect: QtCore.QRectF) -> QtGui.QPolygonF: ... + @typing.overload + def mapToScene(self, polygon: QtGui.QPolygonF) -> QtGui.QPolygonF: ... + @typing.overload + def mapToScene(self, path: QtGui.QPainterPath) -> QtGui.QPainterPath: ... + @typing.overload + def mapToScene(self, ax: float, ay: float) -> QtCore.QPointF: ... + @typing.overload + def mapToScene(self, ax: float, ay: float, w: float, h: float) -> QtGui.QPolygonF: ... + @typing.overload + def mapToParent(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + @typing.overload + def mapToParent(self, rect: QtCore.QRectF) -> QtGui.QPolygonF: ... + @typing.overload + def mapToParent(self, polygon: QtGui.QPolygonF) -> QtGui.QPolygonF: ... + @typing.overload + def mapToParent(self, path: QtGui.QPainterPath) -> QtGui.QPainterPath: ... + @typing.overload + def mapToParent(self, ax: float, ay: float) -> QtCore.QPointF: ... + @typing.overload + def mapToParent(self, ax: float, ay: float, w: float, h: float) -> QtGui.QPolygonF: ... + @typing.overload + def mapToItem(self, item: 'QGraphicsItem', point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPointF: ... + @typing.overload + def mapToItem(self, item: 'QGraphicsItem', rect: QtCore.QRectF) -> QtGui.QPolygonF: ... + @typing.overload + def mapToItem(self, item: 'QGraphicsItem', polygon: QtGui.QPolygonF) -> QtGui.QPolygonF: ... + @typing.overload + def mapToItem(self, item: 'QGraphicsItem', path: QtGui.QPainterPath) -> QtGui.QPainterPath: ... + @typing.overload + def mapToItem(self, item: 'QGraphicsItem', ax: float, ay: float) -> QtCore.QPointF: ... + @typing.overload + def mapToItem(self, item: 'QGraphicsItem', ax: float, ay: float, w: float, h: float) -> QtGui.QPolygonF: ... + @typing.overload + def update(self, rect: QtCore.QRectF = ...) -> None: ... + @typing.overload + def update(self, ax: float, ay: float, width: float, height: float) -> None: ... + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: typing.Optional[QWidget] = ...) -> None: ... + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: 'QGraphicsItem') -> bool: ... + def collidingItems(self, mode: QtCore.Qt.ItemSelectionMode = ...) -> typing.List['QGraphicsItem']: ... + def collidesWithPath(self, path: QtGui.QPainterPath, mode: QtCore.Qt.ItemSelectionMode = ...) -> bool: ... + def collidesWithItem(self, other: 'QGraphicsItem', mode: QtCore.Qt.ItemSelectionMode = ...) -> bool: ... + def contains(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> bool: ... + def shape(self) -> QtGui.QPainterPath: ... + def sceneBoundingRect(self) -> QtCore.QRectF: ... + def childrenBoundingRect(self) -> QtCore.QRectF: ... + def boundingRect(self) -> QtCore.QRectF: ... + def setZValue(self, z: float) -> None: ... + def zValue(self) -> float: ... + def advance(self, phase: int) -> None: ... + @typing.overload + def ensureVisible(self, rect: QtCore.QRectF = ..., xMargin: int = ..., yMargin: int = ...) -> None: ... + @typing.overload + def ensureVisible(self, x: float, y: float, w: float, h: float, xMargin: int = ..., yMargin: int = ...) -> None: ... + def moveBy(self, dx: float, dy: float) -> None: ... + @typing.overload + def setPos(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def setPos(self, ax: float, ay: float) -> None: ... + def scenePos(self) -> QtCore.QPointF: ... + def y(self) -> float: ... + def x(self) -> float: ... + def pos(self) -> QtCore.QPointF: ... + def clearFocus(self) -> None: ... + def setFocus(self, focusReason: QtCore.Qt.FocusReason = ...) -> None: ... + def hasFocus(self) -> bool: ... + def setAcceptedMouseButtons(self, buttons: typing.Union[QtCore.Qt.MouseButtons, QtCore.Qt.MouseButton]) -> None: ... + def acceptedMouseButtons(self) -> QtCore.Qt.MouseButtons: ... + def setAcceptDrops(self, on: bool) -> None: ... + def acceptDrops(self) -> bool: ... + def setSelected(self, selected: bool) -> None: ... + def isSelected(self) -> bool: ... + def setEnabled(self, enabled: bool) -> None: ... + def isEnabled(self) -> bool: ... + def show(self) -> None: ... + def hide(self) -> None: ... + def setVisible(self, visible: bool) -> None: ... + def isVisible(self) -> bool: ... + def unsetCursor(self) -> None: ... + def hasCursor(self) -> bool: ... + def setCursor(self, cursor: typing.Union[QtGui.QCursor, QtCore.Qt.CursorShape]) -> None: ... + def cursor(self) -> QtGui.QCursor: ... + def setToolTip(self, toolTip: str) -> None: ... + def toolTip(self) -> str: ... + def setFlags(self, flags: typing.Union['QGraphicsItem.GraphicsItemFlags', 'QGraphicsItem.GraphicsItemFlag']) -> None: ... + def setFlag(self, flag: 'QGraphicsItem.GraphicsItemFlag', enabled: bool = ...) -> None: ... + def flags(self) -> 'QGraphicsItem.GraphicsItemFlags': ... + def setGroup(self, group: 'QGraphicsItemGroup') -> None: ... + def group(self) -> 'QGraphicsItemGroup': ... + def setParentItem(self, parent: 'QGraphicsItem') -> None: ... + def topLevelItem(self) -> 'QGraphicsItem': ... + def parentItem(self) -> 'QGraphicsItem': ... + def scene(self) -> 'QGraphicsScene': ... + + +class QAbstractGraphicsShapeItem(QGraphicsItem): + + def __init__(self, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: QGraphicsItem) -> bool: ... + def setBrush(self, brush: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def brush(self) -> QtGui.QBrush: ... + def setPen(self, pen: typing.Union[QtGui.QPen, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def pen(self) -> QtGui.QPen: ... + + +class QGraphicsPathItem(QAbstractGraphicsShapeItem): + + @typing.overload + def __init__(self, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + @typing.overload + def __init__(self, path: QtGui.QPainterPath, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + + def type(self) -> int: ... + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: QGraphicsItem) -> bool: ... + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: typing.Optional[QWidget] = ...) -> None: ... + def contains(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> bool: ... + def shape(self) -> QtGui.QPainterPath: ... + def boundingRect(self) -> QtCore.QRectF: ... + def setPath(self, path: QtGui.QPainterPath) -> None: ... + def path(self) -> QtGui.QPainterPath: ... + + +class QGraphicsRectItem(QAbstractGraphicsShapeItem): + + @typing.overload + def __init__(self, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + @typing.overload + def __init__(self, rect: QtCore.QRectF, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + @typing.overload + def __init__(self, x: float, y: float, w: float, h: float, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + + def type(self) -> int: ... + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: QGraphicsItem) -> bool: ... + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: typing.Optional[QWidget] = ...) -> None: ... + def contains(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> bool: ... + def shape(self) -> QtGui.QPainterPath: ... + def boundingRect(self) -> QtCore.QRectF: ... + @typing.overload + def setRect(self, rect: QtCore.QRectF) -> None: ... + @typing.overload + def setRect(self, ax: float, ay: float, w: float, h: float) -> None: ... + def rect(self) -> QtCore.QRectF: ... + + +class QGraphicsEllipseItem(QAbstractGraphicsShapeItem): + + @typing.overload + def __init__(self, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + @typing.overload + def __init__(self, rect: QtCore.QRectF, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + @typing.overload + def __init__(self, x: float, y: float, w: float, h: float, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + + def type(self) -> int: ... + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: QGraphicsItem) -> bool: ... + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: typing.Optional[QWidget] = ...) -> None: ... + def contains(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> bool: ... + def shape(self) -> QtGui.QPainterPath: ... + def boundingRect(self) -> QtCore.QRectF: ... + def setSpanAngle(self, angle: int) -> None: ... + def spanAngle(self) -> int: ... + def setStartAngle(self, angle: int) -> None: ... + def startAngle(self) -> int: ... + @typing.overload + def setRect(self, rect: QtCore.QRectF) -> None: ... + @typing.overload + def setRect(self, ax: float, ay: float, w: float, h: float) -> None: ... + def rect(self) -> QtCore.QRectF: ... + + +class QGraphicsPolygonItem(QAbstractGraphicsShapeItem): + + @typing.overload + def __init__(self, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + @typing.overload + def __init__(self, polygon: QtGui.QPolygonF, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + + def type(self) -> int: ... + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: QGraphicsItem) -> bool: ... + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: typing.Optional[QWidget] = ...) -> None: ... + def contains(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> bool: ... + def shape(self) -> QtGui.QPainterPath: ... + def boundingRect(self) -> QtCore.QRectF: ... + def setFillRule(self, rule: QtCore.Qt.FillRule) -> None: ... + def fillRule(self) -> QtCore.Qt.FillRule: ... + def setPolygon(self, polygon: QtGui.QPolygonF) -> None: ... + def polygon(self) -> QtGui.QPolygonF: ... + + +class QGraphicsLineItem(QGraphicsItem): + + @typing.overload + def __init__(self, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + @typing.overload + def __init__(self, line: QtCore.QLineF, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + @typing.overload + def __init__(self, x1: float, y1: float, x2: float, y2: float, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + + def type(self) -> int: ... + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: QGraphicsItem) -> bool: ... + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: typing.Optional[QWidget] = ...) -> None: ... + def contains(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> bool: ... + def shape(self) -> QtGui.QPainterPath: ... + def boundingRect(self) -> QtCore.QRectF: ... + @typing.overload + def setLine(self, line: QtCore.QLineF) -> None: ... + @typing.overload + def setLine(self, x1: float, y1: float, x2: float, y2: float) -> None: ... + def line(self) -> QtCore.QLineF: ... + def setPen(self, pen: typing.Union[QtGui.QPen, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def pen(self) -> QtGui.QPen: ... + + +class QGraphicsPixmapItem(QGraphicsItem): + + class ShapeMode(int): ... + MaskShape = ... # type: 'QGraphicsPixmapItem.ShapeMode' + BoundingRectShape = ... # type: 'QGraphicsPixmapItem.ShapeMode' + HeuristicMaskShape = ... # type: 'QGraphicsPixmapItem.ShapeMode' + + @typing.overload + def __init__(self, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + @typing.overload + def __init__(self, pixmap: QtGui.QPixmap, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + + def setShapeMode(self, mode: 'QGraphicsPixmapItem.ShapeMode') -> None: ... + def shapeMode(self) -> 'QGraphicsPixmapItem.ShapeMode': ... + def type(self) -> int: ... + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: QGraphicsItem) -> bool: ... + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: QWidget) -> None: ... + def contains(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> bool: ... + def shape(self) -> QtGui.QPainterPath: ... + def boundingRect(self) -> QtCore.QRectF: ... + @typing.overload + def setOffset(self, offset: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def setOffset(self, ax: float, ay: float) -> None: ... + def offset(self) -> QtCore.QPointF: ... + def setTransformationMode(self, mode: QtCore.Qt.TransformationMode) -> None: ... + def transformationMode(self) -> QtCore.Qt.TransformationMode: ... + def setPixmap(self, pixmap: QtGui.QPixmap) -> None: ... + def pixmap(self) -> QtGui.QPixmap: ... + + +class QGraphicsSimpleTextItem(QAbstractGraphicsShapeItem): + + @typing.overload + def __init__(self, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + @typing.overload + def __init__(self, text: str, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + + def type(self) -> int: ... + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: QGraphicsItem) -> bool: ... + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: QWidget) -> None: ... + def contains(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> bool: ... + def shape(self) -> QtGui.QPainterPath: ... + def boundingRect(self) -> QtCore.QRectF: ... + def font(self) -> QtGui.QFont: ... + def setFont(self, font: QtGui.QFont) -> None: ... + def text(self) -> str: ... + def setText(self, text: str) -> None: ... + + +class QGraphicsItemGroup(QGraphicsItem): + + def __init__(self, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + + def type(self) -> int: ... + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: QGraphicsItem) -> bool: ... + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: typing.Optional[QWidget] = ...) -> None: ... + def boundingRect(self) -> QtCore.QRectF: ... + def removeFromGroup(self, item: QGraphicsItem) -> None: ... + def addToGroup(self, item: QGraphicsItem) -> None: ... + + +class QGraphicsObject(QtCore.QObject, QGraphicsItem): + + def __init__(self, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + + def event(self, ev: QtCore.QEvent) -> bool: ... + def updateMicroFocus(self) -> None: ... + def scaleChanged(self) -> None: ... + def rotationChanged(self) -> None: ... + def zChanged(self) -> None: ... + def yChanged(self) -> None: ... + def xChanged(self) -> None: ... + def enabledChanged(self) -> None: ... + def visibleChanged(self) -> None: ... + def opacityChanged(self) -> None: ... + def parentChanged(self) -> None: ... + def ungrabGesture(self, type: QtCore.Qt.GestureType) -> None: ... + def grabGesture(self, type: QtCore.Qt.GestureType, flags: typing.Union[QtCore.Qt.GestureFlags, QtCore.Qt.GestureFlag] = ...) -> None: ... + + +class QGraphicsTextItem(QGraphicsObject): + + @typing.overload + def __init__(self, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + @typing.overload + def __init__(self, text: str, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + + def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + def hoverLeaveEvent(self, event: 'QGraphicsSceneHoverEvent') -> None: ... + def hoverMoveEvent(self, event: 'QGraphicsSceneHoverEvent') -> None: ... + def hoverEnterEvent(self, event: 'QGraphicsSceneHoverEvent') -> None: ... + def inputMethodEvent(self, event: QtGui.QInputMethodEvent) -> None: ... + def dropEvent(self, event: 'QGraphicsSceneDragDropEvent') -> None: ... + def dragMoveEvent(self, event: 'QGraphicsSceneDragDropEvent') -> None: ... + def dragLeaveEvent(self, event: 'QGraphicsSceneDragDropEvent') -> None: ... + def dragEnterEvent(self, event: 'QGraphicsSceneDragDropEvent') -> None: ... + def focusOutEvent(self, event: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, event: QtGui.QFocusEvent) -> None: ... + def keyReleaseEvent(self, event: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, event: QtGui.QKeyEvent) -> None: ... + def contextMenuEvent(self, event: 'QGraphicsSceneContextMenuEvent') -> None: ... + def mouseDoubleClickEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... + def mouseReleaseEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... + def mouseMoveEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... + def mousePressEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... + def sceneEvent(self, event: QtCore.QEvent) -> bool: ... + def linkHovered(self, a0: str) -> None: ... + def linkActivated(self, a0: str) -> None: ... + def textCursor(self) -> QtGui.QTextCursor: ... + def setTextCursor(self, cursor: QtGui.QTextCursor) -> None: ... + def openExternalLinks(self) -> bool: ... + def setOpenExternalLinks(self, open: bool) -> None: ... + def tabChangesFocus(self) -> bool: ... + def setTabChangesFocus(self, b: bool) -> None: ... + def textInteractionFlags(self) -> QtCore.Qt.TextInteractionFlags: ... + def setTextInteractionFlags(self, flags: typing.Union[QtCore.Qt.TextInteractionFlags, QtCore.Qt.TextInteractionFlag]) -> None: ... + def document(self) -> QtGui.QTextDocument: ... + def setDocument(self, document: QtGui.QTextDocument) -> None: ... + def adjustSize(self) -> None: ... + def textWidth(self) -> float: ... + def setTextWidth(self, width: float) -> None: ... + def type(self) -> int: ... + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: QGraphicsItem) -> bool: ... + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: QWidget) -> None: ... + def contains(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> bool: ... + def shape(self) -> QtGui.QPainterPath: ... + def boundingRect(self) -> QtCore.QRectF: ... + def defaultTextColor(self) -> QtGui.QColor: ... + def setDefaultTextColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def setFont(self, font: QtGui.QFont) -> None: ... + def font(self) -> QtGui.QFont: ... + def setPlainText(self, text: str) -> None: ... + def toPlainText(self) -> str: ... + def setHtml(self, html: str) -> None: ... + def toHtml(self) -> str: ... + + +class QGraphicsLinearLayout(QGraphicsLayout): + + @typing.overload + def __init__(self, parent: typing.Optional[QGraphicsLayoutItem] = ...) -> None: ... + @typing.overload + def __init__(self, orientation: QtCore.Qt.Orientation, parent: typing.Optional[QGraphicsLayoutItem] = ...) -> None: ... + + def sizeHint(self, which: QtCore.Qt.SizeHint, constraint: QtCore.QSizeF = ...) -> QtCore.QSizeF: ... + def invalidate(self) -> None: ... + def itemAt(self, index: int) -> QGraphicsLayoutItem: ... + def count(self) -> int: ... + def setGeometry(self, rect: QtCore.QRectF) -> None: ... + def alignment(self, item: QGraphicsLayoutItem) -> QtCore.Qt.Alignment: ... + def setAlignment(self, item: QGraphicsLayoutItem, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def stretchFactor(self, item: QGraphicsLayoutItem) -> int: ... + def setStretchFactor(self, item: QGraphicsLayoutItem, stretch: int) -> None: ... + def itemSpacing(self, index: int) -> float: ... + def setItemSpacing(self, index: int, spacing: float) -> None: ... + def spacing(self) -> float: ... + def setSpacing(self, spacing: float) -> None: ... + def removeAt(self, index: int) -> None: ... + def removeItem(self, item: QGraphicsLayoutItem) -> None: ... + def insertStretch(self, index: int, stretch: int = ...) -> None: ... + def insertItem(self, index: int, item: QGraphicsLayoutItem) -> None: ... + def addStretch(self, stretch: int = ...) -> None: ... + def addItem(self, item: QGraphicsLayoutItem) -> None: ... + def orientation(self) -> QtCore.Qt.Orientation: ... + def setOrientation(self, orientation: QtCore.Qt.Orientation) -> None: ... + + +class QGraphicsWidget(QGraphicsObject, QGraphicsLayoutItem): + + def __init__(self, parent: typing.Optional[QGraphicsItem] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def geometryChanged(self) -> None: ... + def setAutoFillBackground(self, enabled: bool) -> None: ... + def autoFillBackground(self) -> bool: ... + def ungrabKeyboardEvent(self, event: QtCore.QEvent) -> None: ... + def grabKeyboardEvent(self, event: QtCore.QEvent) -> None: ... + def ungrabMouseEvent(self, event: QtCore.QEvent) -> None: ... + def grabMouseEvent(self, event: QtCore.QEvent) -> None: ... + def hoverLeaveEvent(self, event: 'QGraphicsSceneHoverEvent') -> None: ... + def hoverMoveEvent(self, event: 'QGraphicsSceneHoverEvent') -> None: ... + def showEvent(self, event: QtGui.QShowEvent) -> None: ... + def resizeEvent(self, event: 'QGraphicsSceneResizeEvent') -> None: ... + def polishEvent(self) -> None: ... + def moveEvent(self, event: 'QGraphicsSceneMoveEvent') -> None: ... + def hideEvent(self, event: QtGui.QHideEvent) -> None: ... + def focusOutEvent(self, event: QtGui.QFocusEvent) -> None: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def focusInEvent(self, event: QtGui.QFocusEvent) -> None: ... + def closeEvent(self, event: QtGui.QCloseEvent) -> None: ... + def changeEvent(self, event: QtCore.QEvent) -> None: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def windowFrameSectionAt(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.Qt.WindowFrameSection: ... + def windowFrameEvent(self, e: QtCore.QEvent) -> bool: ... + def sceneEvent(self, event: QtCore.QEvent) -> bool: ... + def itemChange(self, change: QGraphicsItem.GraphicsItemChange, value: typing.Any) -> typing.Any: ... + def updateGeometry(self) -> None: ... + def sizeHint(self, which: QtCore.Qt.SizeHint, constraint: QtCore.QSizeF = ...) -> QtCore.QSizeF: ... + def initStyleOption(self, option: 'QStyleOption') -> None: ... + def close(self) -> bool: ... + def shape(self) -> QtGui.QPainterPath: ... + def boundingRect(self) -> QtCore.QRectF: ... + def paintWindowFrame(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: typing.Optional[QWidget] = ...) -> None: ... + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: typing.Optional[QWidget] = ...) -> None: ... + def type(self) -> int: ... + def testAttribute(self, attribute: QtCore.Qt.WidgetAttribute) -> bool: ... + def setAttribute(self, attribute: QtCore.Qt.WidgetAttribute, on: bool = ...) -> None: ... + def actions(self) -> typing.List[QAction]: ... + def removeAction(self, action: QAction) -> None: ... + def insertActions(self, before: QAction, actions: typing.Iterable[QAction]) -> None: ... + def insertAction(self, before: QAction, action: QAction) -> None: ... + def addActions(self, actions: typing.Iterable[QAction]) -> None: ... + def addAction(self, action: QAction) -> None: ... + def setShortcutAutoRepeat(self, id: int, enabled: bool = ...) -> None: ... + def setShortcutEnabled(self, id: int, enabled: bool = ...) -> None: ... + def releaseShortcut(self, id: int) -> None: ... + def grabShortcut(self, sequence: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int], context: QtCore.Qt.ShortcutContext = ...) -> int: ... + def focusWidget(self) -> 'QGraphicsWidget': ... + @staticmethod + def setTabOrder(first: 'QGraphicsWidget', second: 'QGraphicsWidget') -> None: ... + def setFocusPolicy(self, policy: QtCore.Qt.FocusPolicy) -> None: ... + def focusPolicy(self) -> QtCore.Qt.FocusPolicy: ... + def windowTitle(self) -> str: ... + def setWindowTitle(self, title: str) -> None: ... + def isActiveWindow(self) -> bool: ... + def setWindowFlags(self, wFlags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType]) -> None: ... + def windowType(self) -> QtCore.Qt.WindowType: ... + def windowFlags(self) -> QtCore.Qt.WindowFlags: ... + def windowFrameRect(self) -> QtCore.QRectF: ... + def windowFrameGeometry(self) -> QtCore.QRectF: ... + def unsetWindowFrameMargins(self) -> None: ... + def getWindowFrameMargins(self) -> typing.Tuple[float, float, float, float]: ... + def setWindowFrameMargins(self, left: float, top: float, right: float, bottom: float) -> None: ... + def getContentsMargins(self) -> typing.Tuple[float, float, float, float]: ... + def setContentsMargins(self, left: float, top: float, right: float, bottom: float) -> None: ... + def rect(self) -> QtCore.QRectF: ... + @typing.overload + def setGeometry(self, rect: QtCore.QRectF) -> None: ... + @typing.overload + def setGeometry(self, ax: float, ay: float, aw: float, ah: float) -> None: ... + def size(self) -> QtCore.QSizeF: ... + @typing.overload + def resize(self, size: QtCore.QSizeF) -> None: ... + @typing.overload + def resize(self, w: float, h: float) -> None: ... + def setPalette(self, palette: QtGui.QPalette) -> None: ... + def palette(self) -> QtGui.QPalette: ... + def setFont(self, font: QtGui.QFont) -> None: ... + def font(self) -> QtGui.QFont: ... + def setStyle(self, style: QStyle) -> None: ... + def style(self) -> QStyle: ... + def unsetLayoutDirection(self) -> None: ... + def setLayoutDirection(self, direction: QtCore.Qt.LayoutDirection) -> None: ... + def layoutDirection(self) -> QtCore.Qt.LayoutDirection: ... + def adjustSize(self) -> None: ... + def setLayout(self, layout: QGraphicsLayout) -> None: ... + def layout(self) -> QGraphicsLayout: ... + + +class QGraphicsProxyWidget(QGraphicsWidget): + + def __init__(self, parent: typing.Optional[QGraphicsItem] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def inputMethodEvent(self, event: QtGui.QInputMethodEvent) -> None: ... + def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + def newProxyWidget(self, a0: QWidget) -> 'QGraphicsProxyWidget': ... + def dropEvent(self, event: 'QGraphicsSceneDragDropEvent') -> None: ... + def dragMoveEvent(self, event: 'QGraphicsSceneDragDropEvent') -> None: ... + def dragLeaveEvent(self, event: 'QGraphicsSceneDragDropEvent') -> None: ... + def dragEnterEvent(self, event: 'QGraphicsSceneDragDropEvent') -> None: ... + def resizeEvent(self, event: 'QGraphicsSceneResizeEvent') -> None: ... + def sizeHint(self, which: QtCore.Qt.SizeHint, constraint: QtCore.QSizeF = ...) -> QtCore.QSizeF: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def focusOutEvent(self, event: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, event: QtGui.QFocusEvent) -> None: ... + def keyReleaseEvent(self, event: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, event: QtGui.QKeyEvent) -> None: ... + def wheelEvent(self, event: 'QGraphicsSceneWheelEvent') -> None: ... + def mouseDoubleClickEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... + def mouseReleaseEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... + def mousePressEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... + def mouseMoveEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... + def ungrabMouseEvent(self, event: QtCore.QEvent) -> None: ... + def grabMouseEvent(self, event: QtCore.QEvent) -> None: ... + def hoverMoveEvent(self, event: 'QGraphicsSceneHoverEvent') -> None: ... + def hoverLeaveEvent(self, event: 'QGraphicsSceneHoverEvent') -> None: ... + def hoverEnterEvent(self, event: 'QGraphicsSceneHoverEvent') -> None: ... + def contextMenuEvent(self, event: 'QGraphicsSceneContextMenuEvent') -> None: ... + def hideEvent(self, event: QtGui.QHideEvent) -> None: ... + def showEvent(self, event: QtGui.QShowEvent) -> None: ... + def eventFilter(self, object: QtCore.QObject, event: QtCore.QEvent) -> bool: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def itemChange(self, change: QGraphicsItem.GraphicsItemChange, value: typing.Any) -> typing.Any: ... + def createProxyForChildWidget(self, child: QWidget) -> 'QGraphicsProxyWidget': ... + def type(self) -> int: ... + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: QWidget) -> None: ... + def setGeometry(self, rect: QtCore.QRectF) -> None: ... + def subWidgetRect(self, widget: QWidget) -> QtCore.QRectF: ... + def widget(self) -> QWidget: ... + def setWidget(self, widget: QWidget) -> None: ... + + +class QGraphicsScene(QtCore.QObject): + + class SceneLayer(int): ... + ItemLayer = ... # type: 'QGraphicsScene.SceneLayer' + BackgroundLayer = ... # type: 'QGraphicsScene.SceneLayer' + ForegroundLayer = ... # type: 'QGraphicsScene.SceneLayer' + AllLayers = ... # type: 'QGraphicsScene.SceneLayer' + + class ItemIndexMethod(int): ... + BspTreeIndex = ... # type: 'QGraphicsScene.ItemIndexMethod' + NoIndex = ... # type: 'QGraphicsScene.ItemIndexMethod' + + class SceneLayers(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGraphicsScene.SceneLayers', 'QGraphicsScene.SceneLayer']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGraphicsScene.SceneLayers') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGraphicsScene.SceneLayers': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, sceneRect: QtCore.QRectF, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, x: float, y: float, width: float, height: float, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def setFocusOnTouch(self, enabled: bool) -> None: ... + def focusOnTouch(self) -> bool: ... + def focusItemChanged(self, newFocus: QGraphicsItem, oldFocus: QGraphicsItem, reason: QtCore.Qt.FocusReason) -> None: ... + def setMinimumRenderSize(self, minSize: float) -> None: ... + def minimumRenderSize(self) -> float: ... + def sendEvent(self, item: QGraphicsItem, event: QtCore.QEvent) -> bool: ... + def setActivePanel(self, item: QGraphicsItem) -> None: ... + def activePanel(self) -> QGraphicsItem: ... + def isActive(self) -> bool: ... + @typing.overload + def itemAt(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], deviceTransform: QtGui.QTransform) -> QGraphicsItem: ... + @typing.overload + def itemAt(self, x: float, y: float, deviceTransform: QtGui.QTransform) -> QGraphicsItem: ... + def stickyFocus(self) -> bool: ... + def setStickyFocus(self, enabled: bool) -> None: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def eventFilter(self, watched: QtCore.QObject, event: QtCore.QEvent) -> bool: ... + def setActiveWindow(self, widget: QGraphicsWidget) -> None: ... + def activeWindow(self) -> QGraphicsWidget: ... + def setPalette(self, palette: QtGui.QPalette) -> None: ... + def palette(self) -> QtGui.QPalette: ... + def setFont(self, font: QtGui.QFont) -> None: ... + def font(self) -> QtGui.QFont: ... + def setStyle(self, style: QStyle) -> None: ... + def style(self) -> QStyle: ... + def addWidget(self, widget: QWidget, flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> QGraphicsProxyWidget: ... + def selectionArea(self) -> QtGui.QPainterPath: ... + def setBspTreeDepth(self, depth: int) -> None: ... + def bspTreeDepth(self) -> int: ... + def drawForeground(self, painter: QtGui.QPainter, rect: QtCore.QRectF) -> None: ... + def drawBackground(self, painter: QtGui.QPainter, rect: QtCore.QRectF) -> None: ... + def inputMethodEvent(self, event: QtGui.QInputMethodEvent) -> None: ... + def wheelEvent(self, event: 'QGraphicsSceneWheelEvent') -> None: ... + def mouseDoubleClickEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... + def mouseReleaseEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... + def mouseMoveEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... + def mousePressEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... + def keyReleaseEvent(self, event: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, event: QtGui.QKeyEvent) -> None: ... + def helpEvent(self, event: 'QGraphicsSceneHelpEvent') -> None: ... + def focusOutEvent(self, event: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, event: QtGui.QFocusEvent) -> None: ... + def dropEvent(self, event: 'QGraphicsSceneDragDropEvent') -> None: ... + def dragLeaveEvent(self, event: 'QGraphicsSceneDragDropEvent') -> None: ... + def dragMoveEvent(self, event: 'QGraphicsSceneDragDropEvent') -> None: ... + def dragEnterEvent(self, event: 'QGraphicsSceneDragDropEvent') -> None: ... + def contextMenuEvent(self, event: 'QGraphicsSceneContextMenuEvent') -> None: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def selectionChanged(self) -> None: ... + def sceneRectChanged(self, rect: QtCore.QRectF) -> None: ... + def changed(self, region: typing.Iterable[QtCore.QRectF]) -> None: ... + def clear(self) -> None: ... + @typing.overload + def invalidate(self, rect: QtCore.QRectF = ..., layers: typing.Union['QGraphicsScene.SceneLayers', 'QGraphicsScene.SceneLayer'] = ...) -> None: ... + @typing.overload + def invalidate(self, x: float, y: float, w: float, h: float, layers: typing.Union['QGraphicsScene.SceneLayers', 'QGraphicsScene.SceneLayer'] = ...) -> None: ... + @typing.overload + def update(self, rect: QtCore.QRectF = ...) -> None: ... + @typing.overload + def update(self, x: float, y: float, w: float, h: float) -> None: ... + def advance(self) -> None: ... + def views(self) -> typing.List['QGraphicsView']: ... + def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + def setForegroundBrush(self, brush: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def foregroundBrush(self) -> QtGui.QBrush: ... + def setBackgroundBrush(self, brush: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def backgroundBrush(self) -> QtGui.QBrush: ... + def mouseGrabberItem(self) -> QGraphicsItem: ... + def clearFocus(self) -> None: ... + def setFocus(self, focusReason: QtCore.Qt.FocusReason = ...) -> None: ... + def hasFocus(self) -> bool: ... + def setFocusItem(self, item: QGraphicsItem, focusReason: QtCore.Qt.FocusReason = ...) -> None: ... + def focusItem(self) -> QGraphicsItem: ... + def removeItem(self, item: QGraphicsItem) -> None: ... + def addText(self, text: str, font: QtGui.QFont = ...) -> QGraphicsTextItem: ... + def addSimpleText(self, text: str, font: QtGui.QFont = ...) -> QGraphicsSimpleTextItem: ... + @typing.overload + def addRect(self, rect: QtCore.QRectF, pen: typing.Union[QtGui.QPen, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ..., brush: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ...) -> QGraphicsRectItem: ... + @typing.overload + def addRect(self, x: float, y: float, w: float, h: float, pen: typing.Union[QtGui.QPen, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ..., brush: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ...) -> QGraphicsRectItem: ... + def addPolygon(self, polygon: QtGui.QPolygonF, pen: typing.Union[QtGui.QPen, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ..., brush: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ...) -> QGraphicsPolygonItem: ... + def addPixmap(self, pixmap: QtGui.QPixmap) -> QGraphicsPixmapItem: ... + def addPath(self, path: QtGui.QPainterPath, pen: typing.Union[QtGui.QPen, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ..., brush: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ...) -> QGraphicsPathItem: ... + @typing.overload + def addLine(self, line: QtCore.QLineF, pen: typing.Union[QtGui.QPen, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ...) -> QGraphicsLineItem: ... + @typing.overload + def addLine(self, x1: float, y1: float, x2: float, y2: float, pen: typing.Union[QtGui.QPen, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ...) -> QGraphicsLineItem: ... + @typing.overload + def addEllipse(self, rect: QtCore.QRectF, pen: typing.Union[QtGui.QPen, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ..., brush: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ...) -> QGraphicsEllipseItem: ... + @typing.overload + def addEllipse(self, x: float, y: float, w: float, h: float, pen: typing.Union[QtGui.QPen, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ..., brush: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ...) -> QGraphicsEllipseItem: ... + def addItem(self, item: QGraphicsItem) -> None: ... + def destroyItemGroup(self, group: QGraphicsItemGroup) -> None: ... + def createItemGroup(self, items: typing.Iterable[QGraphicsItem]) -> QGraphicsItemGroup: ... + def clearSelection(self) -> None: ... + @typing.overload + def setSelectionArea(self, path: QtGui.QPainterPath, deviceTransform: QtGui.QTransform) -> None: ... + @typing.overload + def setSelectionArea(self, path: QtGui.QPainterPath, mode: QtCore.Qt.ItemSelectionMode = ..., deviceTransform: QtGui.QTransform = ...) -> None: ... + @typing.overload + def setSelectionArea(self, path: QtGui.QPainterPath, selectionOperation: QtCore.Qt.ItemSelectionOperation, mode: QtCore.Qt.ItemSelectionMode = ..., deviceTransform: QtGui.QTransform = ...) -> None: ... + def selectedItems(self) -> typing.List[QGraphicsItem]: ... + def collidingItems(self, item: QGraphicsItem, mode: QtCore.Qt.ItemSelectionMode = ...) -> typing.List[QGraphicsItem]: ... + @typing.overload + def items(self, order: QtCore.Qt.SortOrder = ...) -> typing.List[QGraphicsItem]: ... + @typing.overload + def items(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], mode: QtCore.Qt.ItemSelectionMode = ..., order: QtCore.Qt.SortOrder = ..., deviceTransform: QtGui.QTransform = ...) -> typing.List[QGraphicsItem]: ... + @typing.overload + def items(self, rect: QtCore.QRectF, mode: QtCore.Qt.ItemSelectionMode = ..., order: QtCore.Qt.SortOrder = ..., deviceTransform: QtGui.QTransform = ...) -> typing.List[QGraphicsItem]: ... + @typing.overload + def items(self, polygon: QtGui.QPolygonF, mode: QtCore.Qt.ItemSelectionMode = ..., order: QtCore.Qt.SortOrder = ..., deviceTransform: QtGui.QTransform = ...) -> typing.List[QGraphicsItem]: ... + @typing.overload + def items(self, path: QtGui.QPainterPath, mode: QtCore.Qt.ItemSelectionMode = ..., order: QtCore.Qt.SortOrder = ..., deviceTransform: QtGui.QTransform = ...) -> typing.List[QGraphicsItem]: ... + @typing.overload + def items(self, x: float, y: float, w: float, h: float, mode: QtCore.Qt.ItemSelectionMode, order: QtCore.Qt.SortOrder, deviceTransform: QtGui.QTransform = ...) -> typing.List[QGraphicsItem]: ... + def itemsBoundingRect(self) -> QtCore.QRectF: ... + def setItemIndexMethod(self, method: 'QGraphicsScene.ItemIndexMethod') -> None: ... + def itemIndexMethod(self) -> 'QGraphicsScene.ItemIndexMethod': ... + def render(self, painter: QtGui.QPainter, target: QtCore.QRectF = ..., source: QtCore.QRectF = ..., mode: QtCore.Qt.AspectRatioMode = ...) -> None: ... + @typing.overload + def setSceneRect(self, rect: QtCore.QRectF) -> None: ... + @typing.overload + def setSceneRect(self, x: float, y: float, w: float, h: float) -> None: ... + def height(self) -> float: ... + def width(self) -> float: ... + def sceneRect(self) -> QtCore.QRectF: ... + + +class QGraphicsSceneEvent(QtCore.QEvent): + + def widget(self) -> QWidget: ... + + +class QGraphicsSceneMouseEvent(QGraphicsSceneEvent): + + def flags(self) -> QtCore.Qt.MouseEventFlags: ... + def source(self) -> QtCore.Qt.MouseEventSource: ... + def modifiers(self) -> QtCore.Qt.KeyboardModifiers: ... + def button(self) -> QtCore.Qt.MouseButton: ... + def buttons(self) -> QtCore.Qt.MouseButtons: ... + def lastScreenPos(self) -> QtCore.QPoint: ... + def lastScenePos(self) -> QtCore.QPointF: ... + def lastPos(self) -> QtCore.QPointF: ... + def buttonDownScreenPos(self, button: QtCore.Qt.MouseButton) -> QtCore.QPoint: ... + def buttonDownScenePos(self, button: QtCore.Qt.MouseButton) -> QtCore.QPointF: ... + def buttonDownPos(self, button: QtCore.Qt.MouseButton) -> QtCore.QPointF: ... + def screenPos(self) -> QtCore.QPoint: ... + def scenePos(self) -> QtCore.QPointF: ... + def pos(self) -> QtCore.QPointF: ... + + +class QGraphicsSceneWheelEvent(QGraphicsSceneEvent): + + def orientation(self) -> QtCore.Qt.Orientation: ... + def delta(self) -> int: ... + def modifiers(self) -> QtCore.Qt.KeyboardModifiers: ... + def buttons(self) -> QtCore.Qt.MouseButtons: ... + def screenPos(self) -> QtCore.QPoint: ... + def scenePos(self) -> QtCore.QPointF: ... + def pos(self) -> QtCore.QPointF: ... + + +class QGraphicsSceneContextMenuEvent(QGraphicsSceneEvent): + + class Reason(int): ... + Mouse = ... # type: 'QGraphicsSceneContextMenuEvent.Reason' + Keyboard = ... # type: 'QGraphicsSceneContextMenuEvent.Reason' + Other = ... # type: 'QGraphicsSceneContextMenuEvent.Reason' + + def reason(self) -> 'QGraphicsSceneContextMenuEvent.Reason': ... + def modifiers(self) -> QtCore.Qt.KeyboardModifiers: ... + def screenPos(self) -> QtCore.QPoint: ... + def scenePos(self) -> QtCore.QPointF: ... + def pos(self) -> QtCore.QPointF: ... + + +class QGraphicsSceneHoverEvent(QGraphicsSceneEvent): + + def modifiers(self) -> QtCore.Qt.KeyboardModifiers: ... + def lastScreenPos(self) -> QtCore.QPoint: ... + def lastScenePos(self) -> QtCore.QPointF: ... + def lastPos(self) -> QtCore.QPointF: ... + def screenPos(self) -> QtCore.QPoint: ... + def scenePos(self) -> QtCore.QPointF: ... + def pos(self) -> QtCore.QPointF: ... + + +class QGraphicsSceneHelpEvent(QGraphicsSceneEvent): + + def screenPos(self) -> QtCore.QPoint: ... + def scenePos(self) -> QtCore.QPointF: ... + + +class QGraphicsSceneDragDropEvent(QGraphicsSceneEvent): + + def mimeData(self) -> QtCore.QMimeData: ... + def source(self) -> QWidget: ... + def setDropAction(self, action: QtCore.Qt.DropAction) -> None: ... + def dropAction(self) -> QtCore.Qt.DropAction: ... + def acceptProposedAction(self) -> None: ... + def proposedAction(self) -> QtCore.Qt.DropAction: ... + def possibleActions(self) -> QtCore.Qt.DropActions: ... + def modifiers(self) -> QtCore.Qt.KeyboardModifiers: ... + def buttons(self) -> QtCore.Qt.MouseButtons: ... + def screenPos(self) -> QtCore.QPoint: ... + def scenePos(self) -> QtCore.QPointF: ... + def pos(self) -> QtCore.QPointF: ... + + +class QGraphicsSceneResizeEvent(QGraphicsSceneEvent): + + def __init__(self) -> None: ... + + def newSize(self) -> QtCore.QSizeF: ... + def oldSize(self) -> QtCore.QSizeF: ... + + +class QGraphicsSceneMoveEvent(QGraphicsSceneEvent): + + def __init__(self) -> None: ... + + def newPos(self) -> QtCore.QPointF: ... + def oldPos(self) -> QtCore.QPointF: ... + + +class QGraphicsTransform(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def update(self) -> None: ... + def applyTo(self, matrix: QtGui.QMatrix4x4) -> None: ... + + +class QGraphicsScale(QGraphicsTransform): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def zScaleChanged(self) -> None: ... + def yScaleChanged(self) -> None: ... + def xScaleChanged(self) -> None: ... + def scaleChanged(self) -> None: ... + def originChanged(self) -> None: ... + def applyTo(self, matrix: QtGui.QMatrix4x4) -> None: ... + def setZScale(self, a0: float) -> None: ... + def zScale(self) -> float: ... + def setYScale(self, a0: float) -> None: ... + def yScale(self) -> float: ... + def setXScale(self, a0: float) -> None: ... + def xScale(self) -> float: ... + def setOrigin(self, point: QtGui.QVector3D) -> None: ... + def origin(self) -> QtGui.QVector3D: ... + + +class QGraphicsRotation(QGraphicsTransform): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def axisChanged(self) -> None: ... + def angleChanged(self) -> None: ... + def originChanged(self) -> None: ... + def applyTo(self, matrix: QtGui.QMatrix4x4) -> None: ... + @typing.overload + def setAxis(self, axis: QtGui.QVector3D) -> None: ... + @typing.overload + def setAxis(self, axis: QtCore.Qt.Axis) -> None: ... + def axis(self) -> QtGui.QVector3D: ... + def setAngle(self, a0: float) -> None: ... + def angle(self) -> float: ... + def setOrigin(self, point: QtGui.QVector3D) -> None: ... + def origin(self) -> QtGui.QVector3D: ... + + +class QGraphicsView(QAbstractScrollArea): + + class OptimizationFlag(int): ... + DontClipPainter = ... # type: 'QGraphicsView.OptimizationFlag' + DontSavePainterState = ... # type: 'QGraphicsView.OptimizationFlag' + DontAdjustForAntialiasing = ... # type: 'QGraphicsView.OptimizationFlag' + + class ViewportUpdateMode(int): ... + FullViewportUpdate = ... # type: 'QGraphicsView.ViewportUpdateMode' + MinimalViewportUpdate = ... # type: 'QGraphicsView.ViewportUpdateMode' + SmartViewportUpdate = ... # type: 'QGraphicsView.ViewportUpdateMode' + BoundingRectViewportUpdate = ... # type: 'QGraphicsView.ViewportUpdateMode' + NoViewportUpdate = ... # type: 'QGraphicsView.ViewportUpdateMode' + + class ViewportAnchor(int): ... + NoAnchor = ... # type: 'QGraphicsView.ViewportAnchor' + AnchorViewCenter = ... # type: 'QGraphicsView.ViewportAnchor' + AnchorUnderMouse = ... # type: 'QGraphicsView.ViewportAnchor' + + class DragMode(int): ... + NoDrag = ... # type: 'QGraphicsView.DragMode' + ScrollHandDrag = ... # type: 'QGraphicsView.DragMode' + RubberBandDrag = ... # type: 'QGraphicsView.DragMode' + + class CacheModeFlag(int): ... + CacheNone = ... # type: 'QGraphicsView.CacheModeFlag' + CacheBackground = ... # type: 'QGraphicsView.CacheModeFlag' + + class CacheMode(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGraphicsView.CacheMode', 'QGraphicsView.CacheModeFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGraphicsView.CacheMode') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGraphicsView.CacheMode': ... + def __int__(self) -> int: ... + + class OptimizationFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QGraphicsView.OptimizationFlags', 'QGraphicsView.OptimizationFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QGraphicsView.OptimizationFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QGraphicsView.OptimizationFlags': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, scene: QGraphicsScene, parent: typing.Optional[QWidget] = ...) -> None: ... + + def rubberBandChanged(self, viewportRect: QtCore.QRect, fromScenePoint: typing.Union[QtCore.QPointF, QtCore.QPoint], toScenePoint: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def rubberBandRect(self) -> QtCore.QRect: ... + def isTransformed(self) -> bool: ... + def resetTransform(self) -> None: ... + def setTransform(self, matrix: QtGui.QTransform, combine: bool = ...) -> None: ... + def viewportTransform(self) -> QtGui.QTransform: ... + def transform(self) -> QtGui.QTransform: ... + def setRubberBandSelectionMode(self, mode: QtCore.Qt.ItemSelectionMode) -> None: ... + def rubberBandSelectionMode(self) -> QtCore.Qt.ItemSelectionMode: ... + def setOptimizationFlags(self, flags: typing.Union['QGraphicsView.OptimizationFlags', 'QGraphicsView.OptimizationFlag']) -> None: ... + def setOptimizationFlag(self, flag: 'QGraphicsView.OptimizationFlag', enabled: bool = ...) -> None: ... + def optimizationFlags(self) -> 'QGraphicsView.OptimizationFlags': ... + def setViewportUpdateMode(self, mode: 'QGraphicsView.ViewportUpdateMode') -> None: ... + def viewportUpdateMode(self) -> 'QGraphicsView.ViewportUpdateMode': ... + def drawForeground(self, painter: QtGui.QPainter, rect: QtCore.QRectF) -> None: ... + def drawBackground(self, painter: QtGui.QPainter, rect: QtCore.QRectF) -> None: ... + def inputMethodEvent(self, event: QtGui.QInputMethodEvent) -> None: ... + def showEvent(self, event: QtGui.QShowEvent) -> None: ... + def scrollContentsBy(self, dx: int, dy: int) -> None: ... + def resizeEvent(self, event: QtGui.QResizeEvent) -> None: ... + def paintEvent(self, event: QtGui.QPaintEvent) -> None: ... + def wheelEvent(self, event: QtGui.QWheelEvent) -> None: ... + def mouseReleaseEvent(self, event: QtGui.QMouseEvent) -> None: ... + def mouseMoveEvent(self, event: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, event: QtGui.QMouseEvent) -> None: ... + def mouseDoubleClickEvent(self, event: QtGui.QMouseEvent) -> None: ... + def keyReleaseEvent(self, event: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, event: QtGui.QKeyEvent) -> None: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def focusOutEvent(self, event: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, event: QtGui.QFocusEvent) -> None: ... + def dropEvent(self, event: QtGui.QDropEvent) -> None: ... + def dragMoveEvent(self, event: QtGui.QDragMoveEvent) -> None: ... + def dragLeaveEvent(self, event: QtGui.QDragLeaveEvent) -> None: ... + def dragEnterEvent(self, event: QtGui.QDragEnterEvent) -> None: ... + def contextMenuEvent(self, event: QtGui.QContextMenuEvent) -> None: ... + def viewportEvent(self, event: QtCore.QEvent) -> bool: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def setupViewport(self, widget: QWidget) -> None: ... + def updateSceneRect(self, rect: QtCore.QRectF) -> None: ... + def updateScene(self, rects: typing.Iterable[QtCore.QRectF]) -> None: ... + def invalidateScene(self, rect: QtCore.QRectF = ..., layers: typing.Union[QGraphicsScene.SceneLayers, QGraphicsScene.SceneLayer] = ...) -> None: ... + def setForegroundBrush(self, brush: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def foregroundBrush(self) -> QtGui.QBrush: ... + def setBackgroundBrush(self, brush: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def backgroundBrush(self) -> QtGui.QBrush: ... + def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + @typing.overload + def mapFromScene(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> QtCore.QPoint: ... + @typing.overload + def mapFromScene(self, rect: QtCore.QRectF) -> QtGui.QPolygon: ... + @typing.overload + def mapFromScene(self, polygon: QtGui.QPolygonF) -> QtGui.QPolygon: ... + @typing.overload + def mapFromScene(self, path: QtGui.QPainterPath) -> QtGui.QPainterPath: ... + @typing.overload + def mapFromScene(self, ax: float, ay: float) -> QtCore.QPoint: ... + @typing.overload + def mapFromScene(self, ax: float, ay: float, w: float, h: float) -> QtGui.QPolygon: ... + @typing.overload + def mapToScene(self, point: QtCore.QPoint) -> QtCore.QPointF: ... + @typing.overload + def mapToScene(self, rect: QtCore.QRect) -> QtGui.QPolygonF: ... + @typing.overload + def mapToScene(self, polygon: QtGui.QPolygon) -> QtGui.QPolygonF: ... + @typing.overload + def mapToScene(self, path: QtGui.QPainterPath) -> QtGui.QPainterPath: ... + @typing.overload + def mapToScene(self, ax: int, ay: int) -> QtCore.QPointF: ... + @typing.overload + def mapToScene(self, ax: int, ay: int, w: int, h: int) -> QtGui.QPolygonF: ... + @typing.overload + def itemAt(self, pos: QtCore.QPoint) -> QGraphicsItem: ... + @typing.overload + def itemAt(self, ax: int, ay: int) -> QGraphicsItem: ... + @typing.overload + def items(self) -> typing.List[QGraphicsItem]: ... + @typing.overload + def items(self, pos: QtCore.QPoint) -> typing.List[QGraphicsItem]: ... + @typing.overload + def items(self, x: int, y: int) -> typing.List[QGraphicsItem]: ... + @typing.overload + def items(self, x: int, y: int, w: int, h: int, mode: QtCore.Qt.ItemSelectionMode = ...) -> typing.List[QGraphicsItem]: ... + @typing.overload + def items(self, rect: QtCore.QRect, mode: QtCore.Qt.ItemSelectionMode = ...) -> typing.List[QGraphicsItem]: ... + @typing.overload + def items(self, polygon: QtGui.QPolygon, mode: QtCore.Qt.ItemSelectionMode = ...) -> typing.List[QGraphicsItem]: ... + @typing.overload + def items(self, path: QtGui.QPainterPath, mode: QtCore.Qt.ItemSelectionMode = ...) -> typing.List[QGraphicsItem]: ... + def render(self, painter: QtGui.QPainter, target: QtCore.QRectF = ..., source: QtCore.QRect = ..., mode: QtCore.Qt.AspectRatioMode = ...) -> None: ... + @typing.overload + def fitInView(self, rect: QtCore.QRectF, mode: QtCore.Qt.AspectRatioMode = ...) -> None: ... + @typing.overload + def fitInView(self, item: QGraphicsItem, mode: QtCore.Qt.AspectRatioMode = ...) -> None: ... + @typing.overload + def fitInView(self, x: float, y: float, w: float, h: float, mode: QtCore.Qt.AspectRatioMode = ...) -> None: ... + @typing.overload + def ensureVisible(self, rect: QtCore.QRectF, xMargin: int = ..., yMargin: int = ...) -> None: ... + @typing.overload + def ensureVisible(self, item: QGraphicsItem, xMargin: int = ..., yMargin: int = ...) -> None: ... + @typing.overload + def ensureVisible(self, x: float, y: float, w: float, h: float, xMargin: int = ..., yMargin: int = ...) -> None: ... + @typing.overload + def centerOn(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def centerOn(self, item: QGraphicsItem) -> None: ... + @typing.overload + def centerOn(self, ax: float, ay: float) -> None: ... + def translate(self, dx: float, dy: float) -> None: ... + def shear(self, sh: float, sv: float) -> None: ... + def scale(self, sx: float, sy: float) -> None: ... + def rotate(self, angle: float) -> None: ... + @typing.overload + def setSceneRect(self, rect: QtCore.QRectF) -> None: ... + @typing.overload + def setSceneRect(self, ax: float, ay: float, aw: float, ah: float) -> None: ... + def sceneRect(self) -> QtCore.QRectF: ... + def setScene(self, scene: QGraphicsScene) -> None: ... + def scene(self) -> QGraphicsScene: ... + def setInteractive(self, allowed: bool) -> None: ... + def isInteractive(self) -> bool: ... + def resetCachedContent(self) -> None: ... + def setCacheMode(self, mode: typing.Union['QGraphicsView.CacheMode', 'QGraphicsView.CacheModeFlag']) -> None: ... + def cacheMode(self) -> 'QGraphicsView.CacheMode': ... + def setDragMode(self, mode: 'QGraphicsView.DragMode') -> None: ... + def dragMode(self) -> 'QGraphicsView.DragMode': ... + def setResizeAnchor(self, anchor: 'QGraphicsView.ViewportAnchor') -> None: ... + def resizeAnchor(self) -> 'QGraphicsView.ViewportAnchor': ... + def setTransformationAnchor(self, anchor: 'QGraphicsView.ViewportAnchor') -> None: ... + def transformationAnchor(self) -> 'QGraphicsView.ViewportAnchor': ... + def setAlignment(self, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def alignment(self) -> QtCore.Qt.Alignment: ... + def setRenderHints(self, hints: typing.Union[QtGui.QPainter.RenderHints, QtGui.QPainter.RenderHint]) -> None: ... + def setRenderHint(self, hint: QtGui.QPainter.RenderHint, on: bool = ...) -> None: ... + def renderHints(self) -> QtGui.QPainter.RenderHints: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QGridLayout(QLayout): + + @typing.overload + def __init__(self, parent: QWidget) -> None: ... + @typing.overload + def __init__(self) -> None: ... + + def itemAtPosition(self, row: int, column: int) -> QLayoutItem: ... + def spacing(self) -> int: ... + def setSpacing(self, spacing: int) -> None: ... + def verticalSpacing(self) -> int: ... + def setVerticalSpacing(self, spacing: int) -> None: ... + def horizontalSpacing(self) -> int: ... + def setHorizontalSpacing(self, spacing: int) -> None: ... + def getItemPosition(self, idx: int) -> typing.Tuple[int, int, int, int]: ... + def setDefaultPositioning(self, n: int, orient: QtCore.Qt.Orientation) -> None: ... + @typing.overload + def addItem(self, item: QLayoutItem, row: int, column: int, rowSpan: int = ..., columnSpan: int = ..., alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag] = ...) -> None: ... + @typing.overload + def addItem(self, a0: QLayoutItem) -> None: ... + def setGeometry(self, a0: QtCore.QRect) -> None: ... + def count(self) -> int: ... + def takeAt(self, a0: int) -> QLayoutItem: ... + def itemAt(self, a0: int) -> QLayoutItem: ... + def originCorner(self) -> QtCore.Qt.Corner: ... + def setOriginCorner(self, a0: QtCore.Qt.Corner) -> None: ... + @typing.overload + def addLayout(self, a0: QLayout, row: int, column: int, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag] = ...) -> None: ... + @typing.overload + def addLayout(self, a0: QLayout, row: int, column: int, rowSpan: int, columnSpan: int, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag] = ...) -> None: ... + @typing.overload + def addWidget(self, w: QWidget) -> None: ... + @typing.overload + def addWidget(self, a0: QWidget, row: int, column: int, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag] = ...) -> None: ... + @typing.overload + def addWidget(self, a0: QWidget, row: int, column: int, rowSpan: int, columnSpan: int, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag] = ...) -> None: ... + def invalidate(self) -> None: ... + def expandingDirections(self) -> QtCore.Qt.Orientations: ... + def minimumHeightForWidth(self, a0: int) -> int: ... + def heightForWidth(self, a0: int) -> int: ... + def hasHeightForWidth(self) -> bool: ... + def cellRect(self, row: int, column: int) -> QtCore.QRect: ... + def rowCount(self) -> int: ... + def columnCount(self) -> int: ... + def columnMinimumWidth(self, column: int) -> int: ... + def rowMinimumHeight(self, row: int) -> int: ... + def setColumnMinimumWidth(self, column: int, minSize: int) -> None: ... + def setRowMinimumHeight(self, row: int, minSize: int) -> None: ... + def columnStretch(self, column: int) -> int: ... + def rowStretch(self, row: int) -> int: ... + def setColumnStretch(self, column: int, stretch: int) -> None: ... + def setRowStretch(self, row: int, stretch: int) -> None: ... + def maximumSize(self) -> QtCore.QSize: ... + def minimumSize(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QGroupBox(QWidget): + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, title: str, parent: typing.Optional[QWidget] = ...) -> None: ... + + def mouseReleaseEvent(self, event: QtGui.QMouseEvent) -> None: ... + def mouseMoveEvent(self, event: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, event: QtGui.QMouseEvent) -> None: ... + def changeEvent(self, a0: QtCore.QEvent) -> None: ... + def focusInEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def childEvent(self, a0: QtCore.QChildEvent) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def initStyleOption(self, option: 'QStyleOptionGroupBox') -> None: ... + def toggled(self, a0: bool) -> None: ... + def clicked(self, checked: bool = ...) -> None: ... + def setChecked(self, b: bool) -> None: ... + def isChecked(self) -> bool: ... + def setCheckable(self, b: bool) -> None: ... + def isCheckable(self) -> bool: ... + def setFlat(self, b: bool) -> None: ... + def isFlat(self) -> bool: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def setAlignment(self, a0: int) -> None: ... + def alignment(self) -> QtCore.Qt.Alignment: ... + def setTitle(self, a0: str) -> None: ... + def title(self) -> str: ... + + +class QHeaderView(QAbstractItemView): + + class ResizeMode(int): ... + Interactive = ... # type: 'QHeaderView.ResizeMode' + Fixed = ... # type: 'QHeaderView.ResizeMode' + Stretch = ... # type: 'QHeaderView.ResizeMode' + ResizeToContents = ... # type: 'QHeaderView.ResizeMode' + Custom = ... # type: 'QHeaderView.ResizeMode' + + def __init__(self, orientation: QtCore.Qt.Orientation, parent: typing.Optional[QWidget] = ...) -> None: ... + + def isFirstSectionMovable(self) -> bool: ... + def setFirstSectionMovable(self, movable: bool) -> None: ... + def resetDefaultSectionSize(self) -> None: ... + def setMaximumSectionSize(self, size: int) -> None: ... + def maximumSectionSize(self) -> int: ... + def resizeContentsPrecision(self) -> int: ... + def setResizeContentsPrecision(self, precision: int) -> None: ... + def setVisible(self, v: bool) -> None: ... + @typing.overload + def setSectionResizeMode(self, logicalIndex: int, mode: 'QHeaderView.ResizeMode') -> None: ... + @typing.overload + def setSectionResizeMode(self, mode: 'QHeaderView.ResizeMode') -> None: ... + def sectionResizeMode(self, logicalIndex: int) -> 'QHeaderView.ResizeMode': ... + def sectionsClickable(self) -> bool: ... + def setSectionsClickable(self, clickable: bool) -> None: ... + def sectionsMovable(self) -> bool: ... + def setSectionsMovable(self, movable: bool) -> None: ... + def initStyleOption(self, option: 'QStyleOptionHeader') -> None: ... + def sortIndicatorChanged(self, logicalIndex: int, order: QtCore.Qt.SortOrder) -> None: ... + def sectionEntered(self, logicalIndex: int) -> None: ... + def setOffsetToLastSection(self) -> None: ... + def reset(self) -> None: ... + def restoreState(self, state: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + def saveState(self) -> QtCore.QByteArray: ... + def setMinimumSectionSize(self, size: int) -> None: ... + def minimumSectionSize(self) -> int: ... + def setCascadingSectionResizes(self, enable: bool) -> None: ... + def cascadingSectionResizes(self) -> bool: ... + def swapSections(self, first: int, second: int) -> None: ... + def sectionsHidden(self) -> bool: ... + def setDefaultAlignment(self, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def defaultAlignment(self) -> QtCore.Qt.Alignment: ... + def setDefaultSectionSize(self, size: int) -> None: ... + def defaultSectionSize(self) -> int: ... + def hiddenSectionCount(self) -> int: ... + def showSection(self, alogicalIndex: int) -> None: ... + def hideSection(self, alogicalIndex: int) -> None: ... + def visualRegionForSelection(self, selection: QtCore.QItemSelection) -> QtGui.QRegion: ... + def setSelection(self, rect: QtCore.QRect, flags: typing.Union[QtCore.QItemSelectionModel.SelectionFlags, QtCore.QItemSelectionModel.SelectionFlag]) -> None: ... + def moveCursor(self, a0: QAbstractItemView.CursorAction, a1: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier]) -> QtCore.QModelIndex: ... + def isIndexHidden(self, index: QtCore.QModelIndex) -> bool: ... + def indexAt(self, p: QtCore.QPoint) -> QtCore.QModelIndex: ... + def scrollTo(self, index: QtCore.QModelIndex, hint: QAbstractItemView.ScrollHint) -> None: ... + def visualRect(self, index: QtCore.QModelIndex) -> QtCore.QRect: ... + def rowsInserted(self, parent: QtCore.QModelIndex, start: int, end: int) -> None: ... + def dataChanged(self, topLeft: QtCore.QModelIndex, bottomRight: QtCore.QModelIndex, roles: typing.Iterable[int] = ...) -> None: ... + def scrollContentsBy(self, dx: int, dy: int) -> None: ... + def updateGeometries(self) -> None: ... + def verticalOffset(self) -> int: ... + def horizontalOffset(self) -> int: ... + def sectionSizeFromContents(self, logicalIndex: int) -> QtCore.QSize: ... + def paintSection(self, painter: QtGui.QPainter, rect: QtCore.QRect, logicalIndex: int) -> None: ... + def mouseDoubleClickEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mouseMoveEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, e: QtGui.QMouseEvent) -> None: ... + def paintEvent(self, e: QtGui.QPaintEvent) -> None: ... + def viewportEvent(self, e: QtCore.QEvent) -> bool: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def currentChanged(self, current: QtCore.QModelIndex, old: QtCore.QModelIndex) -> None: ... + @typing.overload + def initializeSections(self) -> None: ... + @typing.overload + def initializeSections(self, start: int, end: int) -> None: ... + def initialize(self) -> None: ... + def sectionsAboutToBeRemoved(self, parent: QtCore.QModelIndex, logicalFirst: int, logicalLast: int) -> None: ... + def sectionsInserted(self, parent: QtCore.QModelIndex, logicalFirst: int, logicalLast: int) -> None: ... + @typing.overload + def resizeSections(self) -> None: ... + @typing.overload + def resizeSections(self, mode: 'QHeaderView.ResizeMode') -> None: ... + def updateSection(self, logicalIndex: int) -> None: ... + def sectionHandleDoubleClicked(self, logicalIndex: int) -> None: ... + def sectionCountChanged(self, oldCount: int, newCount: int) -> None: ... + def sectionDoubleClicked(self, logicalIndex: int) -> None: ... + def sectionClicked(self, logicalIndex: int) -> None: ... + def sectionPressed(self, logicalIndex: int) -> None: ... + def sectionResized(self, logicalIndex: int, oldSize: int, newSize: int) -> None: ... + def sectionMoved(self, logicalIndex: int, oldVisualIndex: int, newVisualIndex: int) -> None: ... + def geometriesChanged(self) -> None: ... + def setOffsetToSectionPosition(self, visualIndex: int) -> None: ... + def headerDataChanged(self, orientation: QtCore.Qt.Orientation, logicalFirst: int, logicalLast: int) -> None: ... + def setOffset(self, offset: int) -> None: ... + def sectionsMoved(self) -> bool: ... + def setStretchLastSection(self, stretch: bool) -> None: ... + def stretchLastSection(self) -> bool: ... + def sortIndicatorOrder(self) -> QtCore.Qt.SortOrder: ... + def sortIndicatorSection(self) -> int: ... + def setSortIndicator(self, logicalIndex: int, order: QtCore.Qt.SortOrder) -> None: ... + def isSortIndicatorShown(self) -> bool: ... + def setSortIndicatorShown(self, show: bool) -> None: ... + def stretchSectionCount(self) -> int: ... + def highlightSections(self) -> bool: ... + def setHighlightSections(self, highlight: bool) -> None: ... + def logicalIndex(self, visualIndex: int) -> int: ... + def visualIndex(self, logicalIndex: int) -> int: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def setSectionHidden(self, logicalIndex: int, hide: bool) -> None: ... + def isSectionHidden(self, logicalIndex: int) -> bool: ... + def resizeSection(self, logicalIndex: int, size: int) -> None: ... + def moveSection(self, from_: int, to: int) -> None: ... + def sectionViewportPosition(self, logicalIndex: int) -> int: ... + def sectionPosition(self, logicalIndex: int) -> int: ... + def sectionSize(self, logicalIndex: int) -> int: ... + @typing.overload + def logicalIndexAt(self, position: int) -> int: ... + @typing.overload + def logicalIndexAt(self, ax: int, ay: int) -> int: ... + @typing.overload + def logicalIndexAt(self, apos: QtCore.QPoint) -> int: ... + def visualIndexAt(self, position: int) -> int: ... + def sectionSizeHint(self, logicalIndex: int) -> int: ... + def sizeHint(self) -> QtCore.QSize: ... + def length(self) -> int: ... + def offset(self) -> int: ... + def orientation(self) -> QtCore.Qt.Orientation: ... + def setModel(self, model: QtCore.QAbstractItemModel) -> None: ... + + +class QInputDialog(QDialog): + + class InputMode(int): ... + TextInput = ... # type: 'QInputDialog.InputMode' + IntInput = ... # type: 'QInputDialog.InputMode' + DoubleInput = ... # type: 'QInputDialog.InputMode' + + class InputDialogOption(int): ... + NoButtons = ... # type: 'QInputDialog.InputDialogOption' + UseListViewForComboBoxItems = ... # type: 'QInputDialog.InputDialogOption' + UsePlainTextEditForTextInput = ... # type: 'QInputDialog.InputDialogOption' + + class InputDialogOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QInputDialog.InputDialogOptions', 'QInputDialog.InputDialogOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QInputDialog.InputDialogOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QInputDialog.InputDialogOptions': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def doubleStep(self) -> float: ... + def setDoubleStep(self, step: float) -> None: ... + def doubleValueSelected(self, value: float) -> None: ... + def doubleValueChanged(self, value: float) -> None: ... + def intValueSelected(self, value: int) -> None: ... + def intValueChanged(self, value: int) -> None: ... + def textValueSelected(self, text: str) -> None: ... + def textValueChanged(self, text: str) -> None: ... + def done(self, result: int) -> None: ... + def setVisible(self, visible: bool) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + @typing.overload + def open(self) -> None: ... + @typing.overload + def open(self, slot: PYQT_SLOT) -> None: ... + def cancelButtonText(self) -> str: ... + def setCancelButtonText(self, text: str) -> None: ... + def okButtonText(self) -> str: ... + def setOkButtonText(self, text: str) -> None: ... + def doubleDecimals(self) -> int: ... + def setDoubleDecimals(self, decimals: int) -> None: ... + def setDoubleRange(self, min: float, max: float) -> None: ... + def doubleMaximum(self) -> float: ... + def setDoubleMaximum(self, max: float) -> None: ... + def doubleMinimum(self) -> float: ... + def setDoubleMinimum(self, min: float) -> None: ... + def doubleValue(self) -> float: ... + def setDoubleValue(self, value: float) -> None: ... + def intStep(self) -> int: ... + def setIntStep(self, step: int) -> None: ... + def setIntRange(self, min: int, max: int) -> None: ... + def intMaximum(self) -> int: ... + def setIntMaximum(self, max: int) -> None: ... + def intMinimum(self) -> int: ... + def setIntMinimum(self, min: int) -> None: ... + def intValue(self) -> int: ... + def setIntValue(self, value: int) -> None: ... + def comboBoxItems(self) -> typing.List[str]: ... + def setComboBoxItems(self, items: typing.Iterable[str]) -> None: ... + def isComboBoxEditable(self) -> bool: ... + def setComboBoxEditable(self, editable: bool) -> None: ... + def textEchoMode(self) -> 'QLineEdit.EchoMode': ... + def setTextEchoMode(self, mode: 'QLineEdit.EchoMode') -> None: ... + def textValue(self) -> str: ... + def setTextValue(self, text: str) -> None: ... + def options(self) -> 'QInputDialog.InputDialogOptions': ... + def setOptions(self, options: typing.Union['QInputDialog.InputDialogOptions', 'QInputDialog.InputDialogOption']) -> None: ... + def testOption(self, option: 'QInputDialog.InputDialogOption') -> bool: ... + def setOption(self, option: 'QInputDialog.InputDialogOption', on: bool = ...) -> None: ... + def labelText(self) -> str: ... + def setLabelText(self, text: str) -> None: ... + def inputMode(self) -> 'QInputDialog.InputMode': ... + def setInputMode(self, mode: 'QInputDialog.InputMode') -> None: ... + @staticmethod + def getMultiLineText(parent: QWidget, title: str, label: str, text: str = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ..., inputMethodHints: typing.Union[QtCore.Qt.InputMethodHints, QtCore.Qt.InputMethodHint] = ...) -> typing.Tuple[str, bool]: ... + @staticmethod + def getItem(parent: QWidget, title: str, label: str, items: typing.Iterable[str], current: int = ..., editable: bool = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ..., inputMethodHints: typing.Union[QtCore.Qt.InputMethodHints, QtCore.Qt.InputMethodHint] = ...) -> typing.Tuple[str, bool]: ... + @typing.overload + @staticmethod + def getDouble(parent: QWidget, title: str, label: str, value: float = ..., min: float = ..., max: float = ..., decimals: int = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> typing.Tuple[float, bool]: ... + @typing.overload + @staticmethod + def getDouble(parent: QWidget, title: str, label: str, value: float, minValue: float, maxValue: float, decimals: int, flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType], step: float) -> typing.Tuple[float, bool]: ... + @staticmethod + def getInt(parent: QWidget, title: str, label: str, value: int = ..., min: int = ..., max: int = ..., step: int = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> typing.Tuple[int, bool]: ... + @staticmethod + def getText(parent: QWidget, title: str, label: str, echo: 'QLineEdit.EchoMode' = ..., text: str = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ..., inputMethodHints: typing.Union[QtCore.Qt.InputMethodHints, QtCore.Qt.InputMethodHint] = ...) -> typing.Tuple[str, bool]: ... + + +class QItemDelegate(QAbstractItemDelegate): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def editorEvent(self, event: QtCore.QEvent, model: QtCore.QAbstractItemModel, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> bool: ... + def eventFilter(self, object: QtCore.QObject, event: QtCore.QEvent) -> bool: ... + def drawFocus(self, painter: QtGui.QPainter, option: 'QStyleOptionViewItem', rect: QtCore.QRect) -> None: ... + def drawDisplay(self, painter: QtGui.QPainter, option: 'QStyleOptionViewItem', rect: QtCore.QRect, text: str) -> None: ... + def drawDecoration(self, painter: QtGui.QPainter, option: 'QStyleOptionViewItem', rect: QtCore.QRect, pixmap: QtGui.QPixmap) -> None: ... + def drawCheck(self, painter: QtGui.QPainter, option: 'QStyleOptionViewItem', rect: QtCore.QRect, state: QtCore.Qt.CheckState) -> None: ... + def drawBackground(self, painter: QtGui.QPainter, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> None: ... + def setClipping(self, clip: bool) -> None: ... + def hasClipping(self) -> bool: ... + def setItemEditorFactory(self, factory: 'QItemEditorFactory') -> None: ... + def itemEditorFactory(self) -> 'QItemEditorFactory': ... + def updateEditorGeometry(self, editor: QWidget, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> None: ... + def setModelData(self, editor: QWidget, model: QtCore.QAbstractItemModel, index: QtCore.QModelIndex) -> None: ... + def setEditorData(self, editor: QWidget, index: QtCore.QModelIndex) -> None: ... + def createEditor(self, parent: QWidget, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> QWidget: ... + def sizeHint(self, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> QtCore.QSize: ... + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> None: ... + + +class QItemEditorCreatorBase(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QItemEditorCreatorBase') -> None: ... + + def valuePropertyName(self) -> QtCore.QByteArray: ... + def createWidget(self, parent: QWidget) -> QWidget: ... + + +class QItemEditorFactory(sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QItemEditorFactory') -> None: ... + + @staticmethod + def setDefaultFactory(factory: 'QItemEditorFactory') -> None: ... + @staticmethod + def defaultFactory() -> 'QItemEditorFactory': ... + def registerEditor(self, userType: int, creator: QItemEditorCreatorBase) -> None: ... + def valuePropertyName(self, userType: int) -> QtCore.QByteArray: ... + def createEditor(self, userType: int, parent: QWidget) -> QWidget: ... + + +class QKeyEventTransition(QtCore.QEventTransition): + + @typing.overload + def __init__(self, sourceState: typing.Optional[QtCore.QState] = ...) -> None: ... + @typing.overload + def __init__(self, object: QtCore.QObject, type: QtCore.QEvent.Type, key: int, sourceState: typing.Optional[QtCore.QState] = ...) -> None: ... + + def eventTest(self, event: QtCore.QEvent) -> bool: ... + def onTransition(self, event: QtCore.QEvent) -> None: ... + def setModifierMask(self, modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier]) -> None: ... + def modifierMask(self) -> QtCore.Qt.KeyboardModifiers: ... + def setKey(self, key: int) -> None: ... + def key(self) -> int: ... + + +class QKeySequenceEdit(QWidget): + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, keySequence: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int], parent: typing.Optional[QWidget] = ...) -> None: ... + + def timerEvent(self, a0: QtCore.QTimerEvent) -> None: ... + def keyReleaseEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def keySequenceChanged(self, keySequence: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]) -> None: ... + def editingFinished(self) -> None: ... + def clear(self) -> None: ... + def setKeySequence(self, keySequence: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]) -> None: ... + def keySequence(self) -> QtGui.QKeySequence: ... + + +class QLabel(QFrame): + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + @typing.overload + def __init__(self, text: str, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def selectionStart(self) -> int: ... + def selectedText(self) -> str: ... + def hasSelectedText(self) -> bool: ... + def setSelection(self, a0: int, a1: int) -> None: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def focusOutEvent(self, ev: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, ev: QtGui.QFocusEvent) -> None: ... + def contextMenuEvent(self, ev: QtGui.QContextMenuEvent) -> None: ... + def mouseReleaseEvent(self, ev: QtGui.QMouseEvent) -> None: ... + def mouseMoveEvent(self, ev: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, ev: QtGui.QMouseEvent) -> None: ... + def keyPressEvent(self, ev: QtGui.QKeyEvent) -> None: ... + def changeEvent(self, a0: QtCore.QEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def linkHovered(self, link: str) -> None: ... + def linkActivated(self, link: str) -> None: ... + def setText(self, a0: str) -> None: ... + def setPixmap(self, a0: QtGui.QPixmap) -> None: ... + def setPicture(self, a0: QtGui.QPicture) -> None: ... + @typing.overload + def setNum(self, a0: float) -> None: ... + @typing.overload + def setNum(self, a0: int) -> None: ... + def setMovie(self, movie: QtGui.QMovie) -> None: ... + def clear(self) -> None: ... + def setOpenExternalLinks(self, open: bool) -> None: ... + def textInteractionFlags(self) -> QtCore.Qt.TextInteractionFlags: ... + def setTextInteractionFlags(self, flags: typing.Union[QtCore.Qt.TextInteractionFlags, QtCore.Qt.TextInteractionFlag]) -> None: ... + def openExternalLinks(self) -> bool: ... + def heightForWidth(self, a0: int) -> int: ... + def buddy(self) -> QWidget: ... + def setBuddy(self, a0: QWidget) -> None: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + def setScaledContents(self, a0: bool) -> None: ... + def hasScaledContents(self) -> bool: ... + def setMargin(self, a0: int) -> None: ... + def margin(self) -> int: ... + def setIndent(self, a0: int) -> None: ... + def indent(self) -> int: ... + def wordWrap(self) -> bool: ... + def setWordWrap(self, on: bool) -> None: ... + def setAlignment(self, a0: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def alignment(self) -> QtCore.Qt.Alignment: ... + def setTextFormat(self, a0: QtCore.Qt.TextFormat) -> None: ... + def textFormat(self) -> QtCore.Qt.TextFormat: ... + def movie(self) -> QtGui.QMovie: ... + def picture(self) -> QtGui.QPicture: ... + def pixmap(self) -> QtGui.QPixmap: ... + def text(self) -> str: ... + + +class QSpacerItem(QLayoutItem): + + @typing.overload + def __init__(self, w: int, h: int, hPolicy: 'QSizePolicy.Policy' = ..., vPolicy: 'QSizePolicy.Policy' = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QSpacerItem') -> None: ... + + def sizePolicy(self) -> 'QSizePolicy': ... + def spacerItem(self) -> 'QSpacerItem': ... + def geometry(self) -> QtCore.QRect: ... + def setGeometry(self, a0: QtCore.QRect) -> None: ... + def isEmpty(self) -> bool: ... + def expandingDirections(self) -> QtCore.Qt.Orientations: ... + def maximumSize(self) -> QtCore.QSize: ... + def minimumSize(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + def changeSize(self, w: int, h: int, hPolicy: 'QSizePolicy.Policy' = ..., vPolicy: 'QSizePolicy.Policy' = ...) -> None: ... + + +class QWidgetItem(QLayoutItem): + + def __init__(self, w: QWidget) -> None: ... + + def controlTypes(self) -> 'QSizePolicy.ControlTypes': ... + def heightForWidth(self, a0: int) -> int: ... + def hasHeightForWidth(self) -> bool: ... + def widget(self) -> QWidget: ... + def geometry(self) -> QtCore.QRect: ... + def setGeometry(self, a0: QtCore.QRect) -> None: ... + def isEmpty(self) -> bool: ... + def expandingDirections(self) -> QtCore.Qt.Orientations: ... + def maximumSize(self) -> QtCore.QSize: ... + def minimumSize(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QLCDNumber(QFrame): + + class SegmentStyle(int): ... + Outline = ... # type: 'QLCDNumber.SegmentStyle' + Filled = ... # type: 'QLCDNumber.SegmentStyle' + Flat = ... # type: 'QLCDNumber.SegmentStyle' + + class Mode(int): ... + Hex = ... # type: 'QLCDNumber.Mode' + Dec = ... # type: 'QLCDNumber.Mode' + Oct = ... # type: 'QLCDNumber.Mode' + Bin = ... # type: 'QLCDNumber.Mode' + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, numDigits: int, parent: typing.Optional[QWidget] = ...) -> None: ... + + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def overflow(self) -> None: ... + def setSmallDecimalPoint(self, a0: bool) -> None: ... + def setBinMode(self) -> None: ... + def setOctMode(self) -> None: ... + def setDecMode(self) -> None: ... + def setHexMode(self) -> None: ... + @typing.overload + def display(self, str: str) -> None: ... + @typing.overload + def display(self, num: float) -> None: ... + @typing.overload + def display(self, num: int) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + def intValue(self) -> int: ... + def value(self) -> float: ... + def setSegmentStyle(self, a0: 'QLCDNumber.SegmentStyle') -> None: ... + def segmentStyle(self) -> 'QLCDNumber.SegmentStyle': ... + def setMode(self, a0: 'QLCDNumber.Mode') -> None: ... + def mode(self) -> 'QLCDNumber.Mode': ... + @typing.overload + def checkOverflow(self, num: float) -> bool: ... + @typing.overload + def checkOverflow(self, num: int) -> bool: ... + def setNumDigits(self, nDigits: int) -> None: ... + def setDigitCount(self, nDigits: int) -> None: ... + def digitCount(self) -> int: ... + def smallDecimalPoint(self) -> bool: ... + + +class QLineEdit(QWidget): + + class ActionPosition(int): ... + LeadingPosition = ... # type: 'QLineEdit.ActionPosition' + TrailingPosition = ... # type: 'QLineEdit.ActionPosition' + + class EchoMode(int): ... + Normal = ... # type: 'QLineEdit.EchoMode' + NoEcho = ... # type: 'QLineEdit.EchoMode' + Password = ... # type: 'QLineEdit.EchoMode' + PasswordEchoOnEdit = ... # type: 'QLineEdit.EchoMode' + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, contents: str, parent: typing.Optional[QWidget] = ...) -> None: ... + + def inputRejected(self) -> None: ... + def selectionLength(self) -> int: ... + def selectionEnd(self) -> int: ... + @typing.overload + def addAction(self, action: QAction) -> None: ... + @typing.overload + def addAction(self, action: QAction, position: 'QLineEdit.ActionPosition') -> None: ... + @typing.overload + def addAction(self, icon: QtGui.QIcon, position: 'QLineEdit.ActionPosition') -> QAction: ... + def isClearButtonEnabled(self) -> bool: ... + def setClearButtonEnabled(self, enable: bool) -> None: ... + def cursorMoveStyle(self) -> QtCore.Qt.CursorMoveStyle: ... + def setCursorMoveStyle(self, style: QtCore.Qt.CursorMoveStyle) -> None: ... + def setPlaceholderText(self, a0: str) -> None: ... + def placeholderText(self) -> str: ... + def textMargins(self) -> QtCore.QMargins: ... + def getTextMargins(self) -> typing.Tuple[int, int, int, int]: ... + @typing.overload + def setTextMargins(self, left: int, top: int, right: int, bottom: int) -> None: ... + @typing.overload + def setTextMargins(self, margins: QtCore.QMargins) -> None: ... + def completer(self) -> QCompleter: ... + def setCompleter(self, completer: QCompleter) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + @typing.overload + def inputMethodQuery(self, a0: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + @typing.overload + def inputMethodQuery(self, property: QtCore.Qt.InputMethodQuery, argument: typing.Any) -> typing.Any: ... + def cursorRect(self) -> QtCore.QRect: ... + def inputMethodEvent(self, a0: QtGui.QInputMethodEvent) -> None: ... + def contextMenuEvent(self, a0: QtGui.QContextMenuEvent) -> None: ... + def changeEvent(self, a0: QtCore.QEvent) -> None: ... + def dropEvent(self, a0: QtGui.QDropEvent) -> None: ... + def dragLeaveEvent(self, e: QtGui.QDragLeaveEvent) -> None: ... + def dragMoveEvent(self, e: QtGui.QDragMoveEvent) -> None: ... + def dragEnterEvent(self, a0: QtGui.QDragEnterEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def focusOutEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def initStyleOption(self, option: 'QStyleOptionFrame') -> None: ... + def selectionChanged(self) -> None: ... + def editingFinished(self) -> None: ... + def returnPressed(self) -> None: ... + def cursorPositionChanged(self, a0: int, a1: int) -> None: ... + def textEdited(self, a0: str) -> None: ... + def textChanged(self, a0: str) -> None: ... + def createStandardContextMenu(self) -> 'QMenu': ... + def insert(self, a0: str) -> None: ... + def deselect(self) -> None: ... + def paste(self) -> None: ... + def copy(self) -> None: ... + def cut(self) -> None: ... + def redo(self) -> None: ... + def undo(self) -> None: ... + def selectAll(self) -> None: ... + def clear(self) -> None: ... + def setText(self, a0: str) -> None: ... + def hasAcceptableInput(self) -> bool: ... + def setInputMask(self, inputMask: str) -> None: ... + def inputMask(self) -> str: ... + def dragEnabled(self) -> bool: ... + def setDragEnabled(self, b: bool) -> None: ... + def isRedoAvailable(self) -> bool: ... + def isUndoAvailable(self) -> bool: ... + def selectionStart(self) -> int: ... + def selectedText(self) -> str: ... + def hasSelectedText(self) -> bool: ... + def setSelection(self, a0: int, a1: int) -> None: ... + def setModified(self, a0: bool) -> None: ... + def isModified(self) -> bool: ... + def end(self, mark: bool) -> None: ... + def home(self, mark: bool) -> None: ... + def del_(self) -> None: ... + def backspace(self) -> None: ... + def cursorWordBackward(self, mark: bool) -> None: ... + def cursorWordForward(self, mark: bool) -> None: ... + def cursorBackward(self, mark: bool, steps: int = ...) -> None: ... + def cursorForward(self, mark: bool, steps: int = ...) -> None: ... + def alignment(self) -> QtCore.Qt.Alignment: ... + def setAlignment(self, flag: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def cursorPositionAt(self, pos: QtCore.QPoint) -> int: ... + def setCursorPosition(self, a0: int) -> None: ... + def cursorPosition(self) -> int: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + def validator(self) -> QtGui.QValidator: ... + def setValidator(self, a0: QtGui.QValidator) -> None: ... + def setReadOnly(self, a0: bool) -> None: ... + def isReadOnly(self) -> bool: ... + def setEchoMode(self, a0: 'QLineEdit.EchoMode') -> None: ... + def echoMode(self) -> 'QLineEdit.EchoMode': ... + def hasFrame(self) -> bool: ... + def setFrame(self, a0: bool) -> None: ... + def setMaxLength(self, a0: int) -> None: ... + def maxLength(self) -> int: ... + def displayText(self) -> str: ... + def text(self) -> str: ... + + +class QListView(QAbstractItemView): + + class ViewMode(int): ... + ListMode = ... # type: 'QListView.ViewMode' + IconMode = ... # type: 'QListView.ViewMode' + + class LayoutMode(int): ... + SinglePass = ... # type: 'QListView.LayoutMode' + Batched = ... # type: 'QListView.LayoutMode' + + class ResizeMode(int): ... + Fixed = ... # type: 'QListView.ResizeMode' + Adjust = ... # type: 'QListView.ResizeMode' + + class Flow(int): ... + LeftToRight = ... # type: 'QListView.Flow' + TopToBottom = ... # type: 'QListView.Flow' + + class Movement(int): ... + Static = ... # type: 'QListView.Movement' + Free = ... # type: 'QListView.Movement' + Snap = ... # type: 'QListView.Movement' + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def itemAlignment(self) -> QtCore.Qt.Alignment: ... + def setItemAlignment(self, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def currentChanged(self, current: QtCore.QModelIndex, previous: QtCore.QModelIndex) -> None: ... + def selectionChanged(self, selected: QtCore.QItemSelection, deselected: QtCore.QItemSelection) -> None: ... + def isSelectionRectVisible(self) -> bool: ... + def setSelectionRectVisible(self, show: bool) -> None: ... + def wordWrap(self) -> bool: ... + def setWordWrap(self, on: bool) -> None: ... + def batchSize(self) -> int: ... + def setBatchSize(self, batchSize: int) -> None: ... + def viewportSizeHint(self) -> QtCore.QSize: ... + def isIndexHidden(self, index: QtCore.QModelIndex) -> bool: ... + def updateGeometries(self) -> None: ... + def selectedIndexes(self) -> typing.List[QtCore.QModelIndex]: ... + def visualRegionForSelection(self, selection: QtCore.QItemSelection) -> QtGui.QRegion: ... + def setSelection(self, rect: QtCore.QRect, command: typing.Union[QtCore.QItemSelectionModel.SelectionFlags, QtCore.QItemSelectionModel.SelectionFlag]) -> None: ... + def setPositionForIndex(self, position: QtCore.QPoint, index: QtCore.QModelIndex) -> None: ... + def rectForIndex(self, index: QtCore.QModelIndex) -> QtCore.QRect: ... + def moveCursor(self, cursorAction: QAbstractItemView.CursorAction, modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier]) -> QtCore.QModelIndex: ... + def verticalOffset(self) -> int: ... + def horizontalOffset(self) -> int: ... + def paintEvent(self, e: QtGui.QPaintEvent) -> None: ... + def viewOptions(self) -> 'QStyleOptionViewItem': ... + def startDrag(self, supportedActions: typing.Union[QtCore.Qt.DropActions, QtCore.Qt.DropAction]) -> None: ... + def wheelEvent(self, e: QtGui.QWheelEvent) -> None: ... + def dropEvent(self, e: QtGui.QDropEvent) -> None: ... + def dragLeaveEvent(self, e: QtGui.QDragLeaveEvent) -> None: ... + def dragMoveEvent(self, e: QtGui.QDragMoveEvent) -> None: ... + def resizeEvent(self, e: QtGui.QResizeEvent) -> None: ... + def timerEvent(self, e: QtCore.QTimerEvent) -> None: ... + def mouseReleaseEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mouseMoveEvent(self, e: QtGui.QMouseEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def rowsAboutToBeRemoved(self, parent: QtCore.QModelIndex, start: int, end: int) -> None: ... + def rowsInserted(self, parent: QtCore.QModelIndex, start: int, end: int) -> None: ... + def dataChanged(self, topLeft: QtCore.QModelIndex, bottomRight: QtCore.QModelIndex, roles: typing.Iterable[int] = ...) -> None: ... + def scrollContentsBy(self, dx: int, dy: int) -> None: ... + def indexesMoved(self, indexes: typing.Iterable[QtCore.QModelIndex]) -> None: ... + def setRootIndex(self, index: QtCore.QModelIndex) -> None: ... + def reset(self) -> None: ... + def indexAt(self, p: QtCore.QPoint) -> QtCore.QModelIndex: ... + def scrollTo(self, index: QtCore.QModelIndex, hint: QAbstractItemView.ScrollHint = ...) -> None: ... + def visualRect(self, index: QtCore.QModelIndex) -> QtCore.QRect: ... + def uniformItemSizes(self) -> bool: ... + def setUniformItemSizes(self, enable: bool) -> None: ... + def modelColumn(self) -> int: ... + def setModelColumn(self, column: int) -> None: ... + def setRowHidden(self, row: int, hide: bool) -> None: ... + def isRowHidden(self, row: int) -> bool: ... + def clearPropertyFlags(self) -> None: ... + def viewMode(self) -> 'QListView.ViewMode': ... + def setViewMode(self, mode: 'QListView.ViewMode') -> None: ... + def gridSize(self) -> QtCore.QSize: ... + def setGridSize(self, size: QtCore.QSize) -> None: ... + def spacing(self) -> int: ... + def setSpacing(self, space: int) -> None: ... + def layoutMode(self) -> 'QListView.LayoutMode': ... + def setLayoutMode(self, mode: 'QListView.LayoutMode') -> None: ... + def resizeMode(self) -> 'QListView.ResizeMode': ... + def setResizeMode(self, mode: 'QListView.ResizeMode') -> None: ... + def isWrapping(self) -> bool: ... + def setWrapping(self, enable: bool) -> None: ... + def flow(self) -> 'QListView.Flow': ... + def setFlow(self, flow: 'QListView.Flow') -> None: ... + def movement(self) -> 'QListView.Movement': ... + def setMovement(self, movement: 'QListView.Movement') -> None: ... + + +class QListWidgetItem(sip.wrapper): + + class ItemType(int): ... + Type = ... # type: 'QListWidgetItem.ItemType' + UserType = ... # type: 'QListWidgetItem.ItemType' + + @typing.overload + def __init__(self, parent: typing.Optional['QListWidget'] = ..., type: int = ...) -> None: ... + @typing.overload + def __init__(self, text: str, parent: typing.Optional['QListWidget'] = ..., type: int = ...) -> None: ... + @typing.overload + def __init__(self, icon: QtGui.QIcon, text: str, parent: typing.Optional['QListWidget'] = ..., type: int = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QListWidgetItem') -> None: ... + + def isHidden(self) -> bool: ... + def setHidden(self, ahide: bool) -> None: ... + def isSelected(self) -> bool: ... + def setSelected(self, aselect: bool) -> None: ... + def setForeground(self, brush: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def foreground(self) -> QtGui.QBrush: ... + def setBackground(self, brush: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def background(self) -> QtGui.QBrush: ... + def setFont(self, afont: QtGui.QFont) -> None: ... + def setWhatsThis(self, awhatsThis: str) -> None: ... + def setToolTip(self, atoolTip: str) -> None: ... + def setStatusTip(self, astatusTip: str) -> None: ... + def setIcon(self, aicon: QtGui.QIcon) -> None: ... + def setText(self, atext: str) -> None: ... + def setFlags(self, aflags: typing.Union[QtCore.Qt.ItemFlags, QtCore.Qt.ItemFlag]) -> None: ... + def type(self) -> int: ... + def write(self, out: QtCore.QDataStream) -> None: ... + def read(self, in_: QtCore.QDataStream) -> None: ... + def setData(self, role: int, value: typing.Any) -> None: ... + def data(self, role: int) -> typing.Any: ... + def setSizeHint(self, size: QtCore.QSize) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + def setCheckState(self, state: QtCore.Qt.CheckState) -> None: ... + def checkState(self) -> QtCore.Qt.CheckState: ... + def setTextAlignment(self, alignment: int) -> None: ... + def textAlignment(self) -> int: ... + def font(self) -> QtGui.QFont: ... + def whatsThis(self) -> str: ... + def toolTip(self) -> str: ... + def statusTip(self) -> str: ... + def icon(self) -> QtGui.QIcon: ... + def text(self) -> str: ... + def flags(self) -> QtCore.Qt.ItemFlags: ... + def listWidget(self) -> 'QListWidget': ... + def clone(self) -> 'QListWidgetItem': ... + + +class QListWidget(QListView): + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def isPersistentEditorOpen(self, item: QListWidgetItem) -> bool: ... + def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel) -> None: ... + def removeItemWidget(self, aItem: QListWidgetItem) -> None: ... + def dropEvent(self, event: QtGui.QDropEvent) -> None: ... + def isSortingEnabled(self) -> bool: ... + def setSortingEnabled(self, enable: bool) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def itemFromIndex(self, index: QtCore.QModelIndex) -> QListWidgetItem: ... + def indexFromItem(self, item: QListWidgetItem) -> QtCore.QModelIndex: ... + def items(self, data: QtCore.QMimeData) -> typing.List[QListWidgetItem]: ... + def supportedDropActions(self) -> QtCore.Qt.DropActions: ... + def dropMimeData(self, index: int, data: QtCore.QMimeData, action: QtCore.Qt.DropAction) -> bool: ... + def mimeData(self, items: typing.Iterable[QListWidgetItem]) -> QtCore.QMimeData: ... + def mimeTypes(self) -> typing.List[str]: ... + def itemSelectionChanged(self) -> None: ... + def currentRowChanged(self, currentRow: int) -> None: ... + def currentTextChanged(self, currentText: str) -> None: ... + def currentItemChanged(self, current: QListWidgetItem, previous: QListWidgetItem) -> None: ... + def itemChanged(self, item: QListWidgetItem) -> None: ... + def itemEntered(self, item: QListWidgetItem) -> None: ... + def itemActivated(self, item: QListWidgetItem) -> None: ... + def itemDoubleClicked(self, item: QListWidgetItem) -> None: ... + def itemClicked(self, item: QListWidgetItem) -> None: ... + def itemPressed(self, item: QListWidgetItem) -> None: ... + def scrollToItem(self, item: QListWidgetItem, hint: QAbstractItemView.ScrollHint = ...) -> None: ... + def clear(self) -> None: ... + def findItems(self, text: str, flags: typing.Union[QtCore.Qt.MatchFlags, QtCore.Qt.MatchFlag]) -> typing.List[QListWidgetItem]: ... + def selectedItems(self) -> typing.List[QListWidgetItem]: ... + def closePersistentEditor(self, item: QListWidgetItem) -> None: ... + def openPersistentEditor(self, item: QListWidgetItem) -> None: ... + def editItem(self, item: QListWidgetItem) -> None: ... + def sortItems(self, order: QtCore.Qt.SortOrder = ...) -> None: ... + def visualItemRect(self, item: QListWidgetItem) -> QtCore.QRect: ... + def setItemWidget(self, item: QListWidgetItem, widget: QWidget) -> None: ... + def itemWidget(self, item: QListWidgetItem) -> QWidget: ... + @typing.overload + def itemAt(self, p: QtCore.QPoint) -> QListWidgetItem: ... + @typing.overload + def itemAt(self, ax: int, ay: int) -> QListWidgetItem: ... + @typing.overload + def setCurrentRow(self, row: int) -> None: ... + @typing.overload + def setCurrentRow(self, row: int, command: typing.Union[QtCore.QItemSelectionModel.SelectionFlags, QtCore.QItemSelectionModel.SelectionFlag]) -> None: ... + def currentRow(self) -> int: ... + @typing.overload + def setCurrentItem(self, item: QListWidgetItem) -> None: ... + @typing.overload + def setCurrentItem(self, item: QListWidgetItem, command: typing.Union[QtCore.QItemSelectionModel.SelectionFlags, QtCore.QItemSelectionModel.SelectionFlag]) -> None: ... + def currentItem(self) -> QListWidgetItem: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def takeItem(self, row: int) -> QListWidgetItem: ... + def addItems(self, labels: typing.Iterable[str]) -> None: ... + @typing.overload + def addItem(self, aitem: QListWidgetItem) -> None: ... + @typing.overload + def addItem(self, label: str) -> None: ... + def insertItems(self, row: int, labels: typing.Iterable[str]) -> None: ... + @typing.overload + def insertItem(self, row: int, item: QListWidgetItem) -> None: ... + @typing.overload + def insertItem(self, row: int, label: str) -> None: ... + def row(self, item: QListWidgetItem) -> int: ... + def item(self, row: int) -> QListWidgetItem: ... + + +class QMainWindow(QWidget): + + class DockOption(int): ... + AnimatedDocks = ... # type: 'QMainWindow.DockOption' + AllowNestedDocks = ... # type: 'QMainWindow.DockOption' + AllowTabbedDocks = ... # type: 'QMainWindow.DockOption' + ForceTabbedDocks = ... # type: 'QMainWindow.DockOption' + VerticalTabs = ... # type: 'QMainWindow.DockOption' + GroupedDragging = ... # type: 'QMainWindow.DockOption' + + class DockOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QMainWindow.DockOptions', 'QMainWindow.DockOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QMainWindow.DockOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QMainWindow.DockOptions': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def resizeDocks(self, docks: typing.Iterable[QDockWidget], sizes: typing.Iterable[int], orientation: QtCore.Qt.Orientation) -> None: ... + def takeCentralWidget(self) -> QWidget: ... + def tabifiedDockWidgets(self, dockwidget: QDockWidget) -> typing.List[QDockWidget]: ... + def setTabPosition(self, areas: typing.Union[QtCore.Qt.DockWidgetAreas, QtCore.Qt.DockWidgetArea], tabPosition: 'QTabWidget.TabPosition') -> None: ... + def tabPosition(self, area: QtCore.Qt.DockWidgetArea) -> 'QTabWidget.TabPosition': ... + def setTabShape(self, tabShape: 'QTabWidget.TabShape') -> None: ... + def tabShape(self) -> 'QTabWidget.TabShape': ... + def setDocumentMode(self, enabled: bool) -> None: ... + def documentMode(self) -> bool: ... + def restoreDockWidget(self, dockwidget: QDockWidget) -> bool: ... + def unifiedTitleAndToolBarOnMac(self) -> bool: ... + def setUnifiedTitleAndToolBarOnMac(self, set: bool) -> None: ... + def toolBarBreak(self, toolbar: 'QToolBar') -> bool: ... + def removeToolBarBreak(self, before: 'QToolBar') -> None: ... + def dockOptions(self) -> 'QMainWindow.DockOptions': ... + def setDockOptions(self, options: typing.Union['QMainWindow.DockOptions', 'QMainWindow.DockOption']) -> None: ... + def tabifyDockWidget(self, first: QDockWidget, second: QDockWidget) -> None: ... + def setMenuWidget(self, menubar: QWidget) -> None: ... + def menuWidget(self) -> QWidget: ... + def isSeparator(self, pos: QtCore.QPoint) -> bool: ... + def isDockNestingEnabled(self) -> bool: ... + def isAnimated(self) -> bool: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def contextMenuEvent(self, event: QtGui.QContextMenuEvent) -> None: ... + def tabifiedDockWidgetActivated(self, dockWidget: QDockWidget) -> None: ... + def toolButtonStyleChanged(self, toolButtonStyle: QtCore.Qt.ToolButtonStyle) -> None: ... + def iconSizeChanged(self, iconSize: QtCore.QSize) -> None: ... + def setDockNestingEnabled(self, enabled: bool) -> None: ... + def setAnimated(self, enabled: bool) -> None: ... + def createPopupMenu(self) -> 'QMenu': ... + def restoreState(self, state: typing.Union[QtCore.QByteArray, bytes, bytearray], version: int = ...) -> bool: ... + def saveState(self, version: int = ...) -> QtCore.QByteArray: ... + def dockWidgetArea(self, dockwidget: QDockWidget) -> QtCore.Qt.DockWidgetArea: ... + def removeDockWidget(self, dockwidget: QDockWidget) -> None: ... + def splitDockWidget(self, after: QDockWidget, dockwidget: QDockWidget, orientation: QtCore.Qt.Orientation) -> None: ... + @typing.overload + def addDockWidget(self, area: QtCore.Qt.DockWidgetArea, dockwidget: QDockWidget) -> None: ... + @typing.overload + def addDockWidget(self, area: QtCore.Qt.DockWidgetArea, dockwidget: QDockWidget, orientation: QtCore.Qt.Orientation) -> None: ... + def toolBarArea(self, toolbar: 'QToolBar') -> QtCore.Qt.ToolBarArea: ... + def removeToolBar(self, toolbar: 'QToolBar') -> None: ... + def insertToolBar(self, before: 'QToolBar', toolbar: 'QToolBar') -> None: ... + @typing.overload + def addToolBar(self, area: QtCore.Qt.ToolBarArea, toolbar: 'QToolBar') -> None: ... + @typing.overload + def addToolBar(self, toolbar: 'QToolBar') -> None: ... + @typing.overload + def addToolBar(self, title: str) -> 'QToolBar': ... + def insertToolBarBreak(self, before: 'QToolBar') -> None: ... + def addToolBarBreak(self, area: QtCore.Qt.ToolBarArea = ...) -> None: ... + def corner(self, corner: QtCore.Qt.Corner) -> QtCore.Qt.DockWidgetArea: ... + def setCorner(self, corner: QtCore.Qt.Corner, area: QtCore.Qt.DockWidgetArea) -> None: ... + def setCentralWidget(self, widget: QWidget) -> None: ... + def centralWidget(self) -> QWidget: ... + def setStatusBar(self, statusbar: 'QStatusBar') -> None: ... + def statusBar(self) -> 'QStatusBar': ... + def setMenuBar(self, menubar: 'QMenuBar') -> None: ... + def menuBar(self) -> 'QMenuBar': ... + def setToolButtonStyle(self, toolButtonStyle: QtCore.Qt.ToolButtonStyle) -> None: ... + def toolButtonStyle(self) -> QtCore.Qt.ToolButtonStyle: ... + def setIconSize(self, iconSize: QtCore.QSize) -> None: ... + def iconSize(self) -> QtCore.QSize: ... + + +class QMdiArea(QAbstractScrollArea): + + class WindowOrder(int): ... + CreationOrder = ... # type: 'QMdiArea.WindowOrder' + StackingOrder = ... # type: 'QMdiArea.WindowOrder' + ActivationHistoryOrder = ... # type: 'QMdiArea.WindowOrder' + + class ViewMode(int): ... + SubWindowView = ... # type: 'QMdiArea.ViewMode' + TabbedView = ... # type: 'QMdiArea.ViewMode' + + class AreaOption(int): ... + DontMaximizeSubWindowOnActivation = ... # type: 'QMdiArea.AreaOption' + + class AreaOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QMdiArea.AreaOptions', 'QMdiArea.AreaOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QMdiArea.AreaOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QMdiArea.AreaOptions': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def tabsMovable(self) -> bool: ... + def setTabsMovable(self, movable: bool) -> None: ... + def tabsClosable(self) -> bool: ... + def setTabsClosable(self, closable: bool) -> None: ... + def setDocumentMode(self, enabled: bool) -> None: ... + def documentMode(self) -> bool: ... + def tabPosition(self) -> 'QTabWidget.TabPosition': ... + def setTabPosition(self, position: 'QTabWidget.TabPosition') -> None: ... + def tabShape(self) -> 'QTabWidget.TabShape': ... + def setTabShape(self, shape: 'QTabWidget.TabShape') -> None: ... + def viewMode(self) -> 'QMdiArea.ViewMode': ... + def setViewMode(self, mode: 'QMdiArea.ViewMode') -> None: ... + def setActivationOrder(self, order: 'QMdiArea.WindowOrder') -> None: ... + def activationOrder(self) -> 'QMdiArea.WindowOrder': ... + def scrollContentsBy(self, dx: int, dy: int) -> None: ... + def viewportEvent(self, event: QtCore.QEvent) -> bool: ... + def showEvent(self, showEvent: QtGui.QShowEvent) -> None: ... + def timerEvent(self, timerEvent: QtCore.QTimerEvent) -> None: ... + def resizeEvent(self, resizeEvent: QtGui.QResizeEvent) -> None: ... + def childEvent(self, childEvent: QtCore.QChildEvent) -> None: ... + def paintEvent(self, paintEvent: QtGui.QPaintEvent) -> None: ... + def eventFilter(self, object: QtCore.QObject, event: QtCore.QEvent) -> bool: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def setupViewport(self, viewport: QWidget) -> None: ... + def activatePreviousSubWindow(self) -> None: ... + def activateNextSubWindow(self) -> None: ... + def closeAllSubWindows(self) -> None: ... + def closeActiveSubWindow(self) -> None: ... + def cascadeSubWindows(self) -> None: ... + def tileSubWindows(self) -> None: ... + def setActiveSubWindow(self, window: 'QMdiSubWindow') -> None: ... + def subWindowActivated(self, a0: 'QMdiSubWindow') -> None: ... + def testOption(self, opton: 'QMdiArea.AreaOption') -> bool: ... + def setOption(self, option: 'QMdiArea.AreaOption', on: bool = ...) -> None: ... + def setBackground(self, background: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def background(self) -> QtGui.QBrush: ... + def removeSubWindow(self, widget: QWidget) -> None: ... + def currentSubWindow(self) -> 'QMdiSubWindow': ... + def subWindowList(self, order: 'QMdiArea.WindowOrder' = ...) -> typing.List['QMdiSubWindow']: ... + def addSubWindow(self, widget: QWidget, flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> 'QMdiSubWindow': ... + def activeSubWindow(self) -> 'QMdiSubWindow': ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QMdiSubWindow(QWidget): + + class SubWindowOption(int): ... + RubberBandResize = ... # type: 'QMdiSubWindow.SubWindowOption' + RubberBandMove = ... # type: 'QMdiSubWindow.SubWindowOption' + + class SubWindowOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QMdiSubWindow.SubWindowOptions', 'QMdiSubWindow.SubWindowOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QMdiSubWindow.SubWindowOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QMdiSubWindow.SubWindowOptions': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def childEvent(self, childEvent: QtCore.QChildEvent) -> None: ... + def focusOutEvent(self, focusOutEvent: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, focusInEvent: QtGui.QFocusEvent) -> None: ... + def contextMenuEvent(self, contextMenuEvent: QtGui.QContextMenuEvent) -> None: ... + def keyPressEvent(self, keyEvent: QtGui.QKeyEvent) -> None: ... + def mouseMoveEvent(self, mouseEvent: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, mouseEvent: QtGui.QMouseEvent) -> None: ... + def mouseDoubleClickEvent(self, mouseEvent: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, mouseEvent: QtGui.QMouseEvent) -> None: ... + def paintEvent(self, paintEvent: QtGui.QPaintEvent) -> None: ... + def moveEvent(self, moveEvent: QtGui.QMoveEvent) -> None: ... + def timerEvent(self, timerEvent: QtCore.QTimerEvent) -> None: ... + def resizeEvent(self, resizeEvent: QtGui.QResizeEvent) -> None: ... + def leaveEvent(self, leaveEvent: QtCore.QEvent) -> None: ... + def closeEvent(self, closeEvent: QtGui.QCloseEvent) -> None: ... + def changeEvent(self, changeEvent: QtCore.QEvent) -> None: ... + def hideEvent(self, hideEvent: QtGui.QHideEvent) -> None: ... + def showEvent(self, showEvent: QtGui.QShowEvent) -> None: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def eventFilter(self, object: QtCore.QObject, event: QtCore.QEvent) -> bool: ... + def showShaded(self) -> None: ... + def showSystemMenu(self) -> None: ... + def aboutToActivate(self) -> None: ... + def windowStateChanged(self, oldState: typing.Union[QtCore.Qt.WindowStates, QtCore.Qt.WindowState], newState: typing.Union[QtCore.Qt.WindowStates, QtCore.Qt.WindowState]) -> None: ... + def mdiArea(self) -> QMdiArea: ... + def systemMenu(self) -> 'QMenu': ... + def setSystemMenu(self, systemMenu: 'QMenu') -> None: ... + def keyboardPageStep(self) -> int: ... + def setKeyboardPageStep(self, step: int) -> None: ... + def keyboardSingleStep(self) -> int: ... + def setKeyboardSingleStep(self, step: int) -> None: ... + def testOption(self, a0: 'QMdiSubWindow.SubWindowOption') -> bool: ... + def setOption(self, option: 'QMdiSubWindow.SubWindowOption', on: bool = ...) -> None: ... + def isShaded(self) -> bool: ... + def widget(self) -> QWidget: ... + def setWidget(self, widget: QWidget) -> None: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QMenu(QWidget): + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, title: str, parent: typing.Optional[QWidget] = ...) -> None: ... + + @typing.overload + def showTearOffMenu(self) -> None: ... + @typing.overload + def showTearOffMenu(self, pos: QtCore.QPoint) -> None: ... + def setAsDockMenu(self) -> None: ... + def setToolTipsVisible(self, visible: bool) -> None: ... + def toolTipsVisible(self) -> bool: ... + @typing.overload + def insertSection(self, before: QAction, text: str) -> QAction: ... + @typing.overload + def insertSection(self, before: QAction, icon: QtGui.QIcon, text: str) -> QAction: ... + @typing.overload + def addSection(self, text: str) -> QAction: ... + @typing.overload + def addSection(self, icon: QtGui.QIcon, text: str) -> QAction: ... + def setSeparatorsCollapsible(self, collapse: bool) -> None: ... + def separatorsCollapsible(self) -> bool: ... + def isEmpty(self) -> bool: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def timerEvent(self, a0: QtCore.QTimerEvent) -> None: ... + def actionEvent(self, a0: QtGui.QActionEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def hideEvent(self, a0: QtGui.QHideEvent) -> None: ... + def leaveEvent(self, a0: QtCore.QEvent) -> None: ... + def enterEvent(self, a0: QtCore.QEvent) -> None: ... + def wheelEvent(self, a0: QtGui.QWheelEvent) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def changeEvent(self, a0: QtCore.QEvent) -> None: ... + def initStyleOption(self, option: 'QStyleOptionMenuItem', action: QAction) -> None: ... + def columnCount(self) -> int: ... + def triggered(self, action: QAction) -> None: ... + def hovered(self, action: QAction) -> None: ... + def aboutToShow(self) -> None: ... + def aboutToHide(self) -> None: ... + def setNoReplayFor(self, widget: QWidget) -> None: ... + def setIcon(self, icon: QtGui.QIcon) -> None: ... + def icon(self) -> QtGui.QIcon: ... + def setTitle(self, title: str) -> None: ... + def title(self) -> str: ... + def menuAction(self) -> QAction: ... + def actionAt(self, a0: QtCore.QPoint) -> QAction: ... + def actionGeometry(self, a0: QAction) -> QtCore.QRect: ... + def sizeHint(self) -> QtCore.QSize: ... + @typing.overload + def exec(self) -> QAction: ... + @typing.overload + def exec(self, pos: QtCore.QPoint, action: typing.Optional[QAction] = ...) -> QAction: ... + @typing.overload + @staticmethod + def exec(actions: typing.Iterable[QAction], pos: QtCore.QPoint, at: typing.Optional[QAction] = ..., parent: typing.Optional[QWidget] = ...) -> QAction: ... + @typing.overload + def exec_(self) -> QAction: ... + @typing.overload + def exec_(self, p: QtCore.QPoint, action: typing.Optional[QAction] = ...) -> QAction: ... + @typing.overload + @staticmethod + def exec_(actions: typing.Iterable[QAction], pos: QtCore.QPoint, at: typing.Optional[QAction] = ..., parent: typing.Optional[QWidget] = ...) -> QAction: ... + def popup(self, p: QtCore.QPoint, action: typing.Optional[QAction] = ...) -> None: ... + def activeAction(self) -> QAction: ... + def setActiveAction(self, act: QAction) -> None: ... + def defaultAction(self) -> QAction: ... + def setDefaultAction(self, a0: QAction) -> None: ... + def hideTearOffMenu(self) -> None: ... + def isTearOffMenuVisible(self) -> bool: ... + def isTearOffEnabled(self) -> bool: ... + def setTearOffEnabled(self, a0: bool) -> None: ... + def clear(self) -> None: ... + def insertSeparator(self, before: QAction) -> QAction: ... + def insertMenu(self, before: QAction, menu: 'QMenu') -> QAction: ... + def addSeparator(self) -> QAction: ... + @typing.overload + def addMenu(self, menu: 'QMenu') -> QAction: ... + @typing.overload + def addMenu(self, title: str) -> 'QMenu': ... + @typing.overload + def addMenu(self, icon: QtGui.QIcon, title: str) -> 'QMenu': ... + @typing.overload + def addAction(self, action: QAction) -> None: ... + @typing.overload + def addAction(self, text: str) -> QAction: ... + @typing.overload + def addAction(self, icon: QtGui.QIcon, text: str) -> QAction: ... + @typing.overload + def addAction(self, text: str, slot: PYQT_SLOT, shortcut: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int] = ...) -> QAction: ... + @typing.overload + def addAction(self, icon: QtGui.QIcon, text: str, slot: PYQT_SLOT, shortcut: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int] = ...) -> QAction: ... + + +class QMenuBar(QWidget): + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def setNativeMenuBar(self, nativeMenuBar: bool) -> None: ... + def isNativeMenuBar(self) -> bool: ... + def timerEvent(self, a0: QtCore.QTimerEvent) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def eventFilter(self, a0: QtCore.QObject, a1: QtCore.QEvent) -> bool: ... + def focusInEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def focusOutEvent(self, a0: QtGui.QFocusEvent) -> None: ... + def actionEvent(self, a0: QtGui.QActionEvent) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def leaveEvent(self, a0: QtCore.QEvent) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def changeEvent(self, a0: QtCore.QEvent) -> None: ... + def initStyleOption(self, option: 'QStyleOptionMenuItem', action: QAction) -> None: ... + def hovered(self, action: QAction) -> None: ... + def triggered(self, action: QAction) -> None: ... + def setVisible(self, visible: bool) -> None: ... + def cornerWidget(self, corner: QtCore.Qt.Corner = ...) -> QWidget: ... + def setCornerWidget(self, widget: QWidget, corner: QtCore.Qt.Corner = ...) -> None: ... + def actionAt(self, a0: QtCore.QPoint) -> QAction: ... + def actionGeometry(self, a0: QAction) -> QtCore.QRect: ... + def heightForWidth(self, a0: int) -> int: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + def isDefaultUp(self) -> bool: ... + def setDefaultUp(self, a0: bool) -> None: ... + def setActiveAction(self, action: QAction) -> None: ... + def activeAction(self) -> QAction: ... + def clear(self) -> None: ... + def insertSeparator(self, before: QAction) -> QAction: ... + def insertMenu(self, before: QAction, menu: QMenu) -> QAction: ... + def addSeparator(self) -> QAction: ... + @typing.overload + def addMenu(self, menu: QMenu) -> QAction: ... + @typing.overload + def addMenu(self, title: str) -> QMenu: ... + @typing.overload + def addMenu(self, icon: QtGui.QIcon, title: str) -> QMenu: ... + @typing.overload + def addAction(self, action: QAction) -> None: ... + @typing.overload + def addAction(self, text: str) -> QAction: ... + @typing.overload + def addAction(self, text: str, slot: PYQT_SLOT) -> QAction: ... + + +class QMessageBox(QDialog): + + class StandardButton(int): ... + NoButton = ... # type: 'QMessageBox.StandardButton' + Ok = ... # type: 'QMessageBox.StandardButton' + Save = ... # type: 'QMessageBox.StandardButton' + SaveAll = ... # type: 'QMessageBox.StandardButton' + Open = ... # type: 'QMessageBox.StandardButton' + Yes = ... # type: 'QMessageBox.StandardButton' + YesToAll = ... # type: 'QMessageBox.StandardButton' + No = ... # type: 'QMessageBox.StandardButton' + NoToAll = ... # type: 'QMessageBox.StandardButton' + Abort = ... # type: 'QMessageBox.StandardButton' + Retry = ... # type: 'QMessageBox.StandardButton' + Ignore = ... # type: 'QMessageBox.StandardButton' + Close = ... # type: 'QMessageBox.StandardButton' + Cancel = ... # type: 'QMessageBox.StandardButton' + Discard = ... # type: 'QMessageBox.StandardButton' + Help = ... # type: 'QMessageBox.StandardButton' + Apply = ... # type: 'QMessageBox.StandardButton' + Reset = ... # type: 'QMessageBox.StandardButton' + RestoreDefaults = ... # type: 'QMessageBox.StandardButton' + FirstButton = ... # type: 'QMessageBox.StandardButton' + LastButton = ... # type: 'QMessageBox.StandardButton' + YesAll = ... # type: 'QMessageBox.StandardButton' + NoAll = ... # type: 'QMessageBox.StandardButton' + Default = ... # type: 'QMessageBox.StandardButton' + Escape = ... # type: 'QMessageBox.StandardButton' + FlagMask = ... # type: 'QMessageBox.StandardButton' + ButtonMask = ... # type: 'QMessageBox.StandardButton' + + class Icon(int): ... + NoIcon = ... # type: 'QMessageBox.Icon' + Information = ... # type: 'QMessageBox.Icon' + Warning = ... # type: 'QMessageBox.Icon' + Critical = ... # type: 'QMessageBox.Icon' + Question = ... # type: 'QMessageBox.Icon' + + class ButtonRole(int): ... + InvalidRole = ... # type: 'QMessageBox.ButtonRole' + AcceptRole = ... # type: 'QMessageBox.ButtonRole' + RejectRole = ... # type: 'QMessageBox.ButtonRole' + DestructiveRole = ... # type: 'QMessageBox.ButtonRole' + ActionRole = ... # type: 'QMessageBox.ButtonRole' + HelpRole = ... # type: 'QMessageBox.ButtonRole' + YesRole = ... # type: 'QMessageBox.ButtonRole' + NoRole = ... # type: 'QMessageBox.ButtonRole' + ResetRole = ... # type: 'QMessageBox.ButtonRole' + ApplyRole = ... # type: 'QMessageBox.ButtonRole' + + class StandardButtons(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QMessageBox.StandardButtons', 'QMessageBox.StandardButton']) -> None: ... + @typing.overload + def __init__(self, a0: 'QMessageBox.StandardButtons') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QMessageBox.StandardButtons': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, icon: 'QMessageBox.Icon', title: str, text: str, buttons: typing.Union['QMessageBox.StandardButtons', 'QMessageBox.StandardButton'] = ..., parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def checkBox(self) -> QCheckBox: ... + def setCheckBox(self, cb: QCheckBox) -> None: ... + def textInteractionFlags(self) -> QtCore.Qt.TextInteractionFlags: ... + def setTextInteractionFlags(self, flags: typing.Union[QtCore.Qt.TextInteractionFlags, QtCore.Qt.TextInteractionFlag]) -> None: ... + def buttonClicked(self, button: QAbstractButton) -> None: ... + def buttonRole(self, button: QAbstractButton) -> 'QMessageBox.ButtonRole': ... + def buttons(self) -> typing.List[QAbstractButton]: ... + @typing.overload + def open(self) -> None: ... + @typing.overload + def open(self, slot: PYQT_SLOT) -> None: ... + def setWindowModality(self, windowModality: QtCore.Qt.WindowModality) -> None: ... + def setWindowTitle(self, title: str) -> None: ... + def setDetailedText(self, text: str) -> None: ... + def detailedText(self) -> str: ... + def setInformativeText(self, text: str) -> None: ... + def informativeText(self) -> str: ... + def clickedButton(self) -> QAbstractButton: ... + @typing.overload + def setEscapeButton(self, button: QAbstractButton) -> None: ... + @typing.overload + def setEscapeButton(self, button: 'QMessageBox.StandardButton') -> None: ... + def escapeButton(self) -> QAbstractButton: ... + @typing.overload + def setDefaultButton(self, button: QPushButton) -> None: ... + @typing.overload + def setDefaultButton(self, button: 'QMessageBox.StandardButton') -> None: ... + def defaultButton(self) -> QPushButton: ... + def button(self, which: 'QMessageBox.StandardButton') -> QAbstractButton: ... + def standardButton(self, button: QAbstractButton) -> 'QMessageBox.StandardButton': ... + def standardButtons(self) -> 'QMessageBox.StandardButtons': ... + def setStandardButtons(self, buttons: typing.Union['QMessageBox.StandardButtons', 'QMessageBox.StandardButton']) -> None: ... + def removeButton(self, button: QAbstractButton) -> None: ... + @typing.overload + def addButton(self, button: QAbstractButton, role: 'QMessageBox.ButtonRole') -> None: ... + @typing.overload + def addButton(self, text: str, role: 'QMessageBox.ButtonRole') -> QPushButton: ... + @typing.overload + def addButton(self, button: 'QMessageBox.StandardButton') -> QPushButton: ... + def changeEvent(self, a0: QtCore.QEvent) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def closeEvent(self, a0: QtGui.QCloseEvent) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + @staticmethod + def standardIcon(icon: 'QMessageBox.Icon') -> QtGui.QPixmap: ... + @staticmethod + def aboutQt(parent: QWidget, title: str = ...) -> None: ... + @staticmethod + def about(parent: QWidget, caption: str, text: str) -> None: ... + @staticmethod + def critical(parent: QWidget, title: str, text: str, buttons: typing.Union['QMessageBox.StandardButtons', 'QMessageBox.StandardButton'] = ..., defaultButton: 'QMessageBox.StandardButton' = ...) -> 'QMessageBox.StandardButton': ... + @staticmethod + def warning(parent: QWidget, title: str, text: str, buttons: typing.Union['QMessageBox.StandardButtons', 'QMessageBox.StandardButton'] = ..., defaultButton: 'QMessageBox.StandardButton' = ...) -> 'QMessageBox.StandardButton': ... + @staticmethod + def question(parent: QWidget, title: str, text: str, buttons: typing.Union['QMessageBox.StandardButtons', 'QMessageBox.StandardButton'] = ..., defaultButton: 'QMessageBox.StandardButton' = ...) -> 'QMessageBox.StandardButton': ... + @staticmethod + def information(parent: QWidget, title: str, text: str, buttons: typing.Union['QMessageBox.StandardButtons', 'QMessageBox.StandardButton'] = ..., defaultButton: 'QMessageBox.StandardButton' = ...) -> 'QMessageBox.StandardButton': ... + def setTextFormat(self, a0: QtCore.Qt.TextFormat) -> None: ... + def textFormat(self) -> QtCore.Qt.TextFormat: ... + def setIconPixmap(self, a0: QtGui.QPixmap) -> None: ... + def iconPixmap(self) -> QtGui.QPixmap: ... + def setIcon(self, a0: 'QMessageBox.Icon') -> None: ... + def icon(self) -> 'QMessageBox.Icon': ... + def setText(self, a0: str) -> None: ... + def text(self) -> str: ... + + +class QMouseEventTransition(QtCore.QEventTransition): + + @typing.overload + def __init__(self, sourceState: typing.Optional[QtCore.QState] = ...) -> None: ... + @typing.overload + def __init__(self, object: QtCore.QObject, type: QtCore.QEvent.Type, button: QtCore.Qt.MouseButton, sourceState: typing.Optional[QtCore.QState] = ...) -> None: ... + + def eventTest(self, event: QtCore.QEvent) -> bool: ... + def onTransition(self, event: QtCore.QEvent) -> None: ... + def setHitTestPath(self, path: QtGui.QPainterPath) -> None: ... + def hitTestPath(self) -> QtGui.QPainterPath: ... + def setModifierMask(self, modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier]) -> None: ... + def modifierMask(self) -> QtCore.Qt.KeyboardModifiers: ... + def setButton(self, button: QtCore.Qt.MouseButton) -> None: ... + def button(self) -> QtCore.Qt.MouseButton: ... + + +class QOpenGLWidget(QWidget): + + class UpdateBehavior(int): ... + NoPartialUpdate = ... # type: 'QOpenGLWidget.UpdateBehavior' + PartialUpdate = ... # type: 'QOpenGLWidget.UpdateBehavior' + + def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def setTextureFormat(self, texFormat: int) -> None: ... + def textureFormat(self) -> int: ... + def updateBehavior(self) -> 'QOpenGLWidget.UpdateBehavior': ... + def setUpdateBehavior(self, updateBehavior: 'QOpenGLWidget.UpdateBehavior') -> None: ... + def paintEngine(self) -> QtGui.QPaintEngine: ... + def metric(self, metric: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def resizeEvent(self, e: QtGui.QResizeEvent) -> None: ... + def paintEvent(self, e: QtGui.QPaintEvent) -> None: ... + def paintGL(self) -> None: ... + def resizeGL(self, w: int, h: int) -> None: ... + def initializeGL(self) -> None: ... + def resized(self) -> None: ... + def aboutToResize(self) -> None: ... + def frameSwapped(self) -> None: ... + def aboutToCompose(self) -> None: ... + def grabFramebuffer(self) -> QtGui.QImage: ... + def defaultFramebufferObject(self) -> int: ... + def context(self) -> QtGui.QOpenGLContext: ... + def doneCurrent(self) -> None: ... + def makeCurrent(self) -> None: ... + def isValid(self) -> bool: ... + def format(self) -> QtGui.QSurfaceFormat: ... + def setFormat(self, format: QtGui.QSurfaceFormat) -> None: ... + + +class QPlainTextEdit(QAbstractScrollArea): + + class LineWrapMode(int): ... + NoWrap = ... # type: 'QPlainTextEdit.LineWrapMode' + WidgetWidth = ... # type: 'QPlainTextEdit.LineWrapMode' + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, text: str, parent: typing.Optional[QWidget] = ...) -> None: ... + + def setTabStopDistance(self, distance: float) -> None: ... + def tabStopDistance(self) -> float: ... + def placeholderText(self) -> str: ... + def setPlaceholderText(self, placeholderText: str) -> None: ... + def zoomOut(self, range: int = ...) -> None: ... + def zoomIn(self, range: int = ...) -> None: ... + def anchorAt(self, pos: QtCore.QPoint) -> str: ... + def getPaintContext(self) -> QtGui.QAbstractTextDocumentLayout.PaintContext: ... + def blockBoundingGeometry(self, block: QtGui.QTextBlock) -> QtCore.QRectF: ... + def blockBoundingRect(self, block: QtGui.QTextBlock) -> QtCore.QRectF: ... + def contentOffset(self) -> QtCore.QPointF: ... + def firstVisibleBlock(self) -> QtGui.QTextBlock: ... + def scrollContentsBy(self, dx: int, dy: int) -> None: ... + def insertFromMimeData(self, source: QtCore.QMimeData) -> None: ... + def canInsertFromMimeData(self, source: QtCore.QMimeData) -> bool: ... + def createMimeDataFromSelection(self) -> QtCore.QMimeData: ... + @typing.overload + def inputMethodQuery(self, property: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + @typing.overload + def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery, argument: typing.Any) -> typing.Any: ... + def inputMethodEvent(self, a0: QtGui.QInputMethodEvent) -> None: ... + def wheelEvent(self, e: QtGui.QWheelEvent) -> None: ... + def changeEvent(self, e: QtCore.QEvent) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent) -> None: ... + def focusOutEvent(self, e: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, e: QtGui.QFocusEvent) -> None: ... + def dropEvent(self, e: QtGui.QDropEvent) -> None: ... + def dragMoveEvent(self, e: QtGui.QDragMoveEvent) -> None: ... + def dragLeaveEvent(self, e: QtGui.QDragLeaveEvent) -> None: ... + def dragEnterEvent(self, e: QtGui.QDragEnterEvent) -> None: ... + def contextMenuEvent(self, e: QtGui.QContextMenuEvent) -> None: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def mouseDoubleClickEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mouseMoveEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, e: QtGui.QMouseEvent) -> None: ... + def paintEvent(self, e: QtGui.QPaintEvent) -> None: ... + def resizeEvent(self, e: QtGui.QResizeEvent) -> None: ... + def keyReleaseEvent(self, e: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, e: QtGui.QKeyEvent) -> None: ... + def timerEvent(self, e: QtCore.QTimerEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def modificationChanged(self, a0: bool) -> None: ... + def blockCountChanged(self, newBlockCount: int) -> None: ... + def updateRequest(self, rect: QtCore.QRect, dy: int) -> None: ... + def cursorPositionChanged(self) -> None: ... + def selectionChanged(self) -> None: ... + def copyAvailable(self, b: bool) -> None: ... + def redoAvailable(self, b: bool) -> None: ... + def undoAvailable(self, b: bool) -> None: ... + def textChanged(self) -> None: ... + def centerCursor(self) -> None: ... + def appendHtml(self, html: str) -> None: ... + def appendPlainText(self, text: str) -> None: ... + def insertPlainText(self, text: str) -> None: ... + def selectAll(self) -> None: ... + def clear(self) -> None: ... + def redo(self) -> None: ... + def undo(self) -> None: ... + def paste(self) -> None: ... + def copy(self) -> None: ... + def cut(self) -> None: ... + def setPlainText(self, text: str) -> None: ... + def blockCount(self) -> int: ... + def print(self, printer: QtGui.QPagedPaintDevice) -> None: ... + def print_(self, printer: QtGui.QPagedPaintDevice) -> None: ... + def canPaste(self) -> bool: ... + def moveCursor(self, operation: QtGui.QTextCursor.MoveOperation, mode: QtGui.QTextCursor.MoveMode = ...) -> None: ... + def extraSelections(self) -> typing.List['QTextEdit.ExtraSelection']: ... + def setExtraSelections(self, selections: typing.Iterable['QTextEdit.ExtraSelection']) -> None: ... + def setCursorWidth(self, width: int) -> None: ... + def cursorWidth(self) -> int: ... + def setTabStopWidth(self, width: int) -> None: ... + def tabStopWidth(self) -> int: ... + def setOverwriteMode(self, overwrite: bool) -> None: ... + def overwriteMode(self) -> bool: ... + @typing.overload + def cursorRect(self, cursor: QtGui.QTextCursor) -> QtCore.QRect: ... + @typing.overload + def cursorRect(self) -> QtCore.QRect: ... + def cursorForPosition(self, pos: QtCore.QPoint) -> QtGui.QTextCursor: ... + @typing.overload + def createStandardContextMenu(self) -> QMenu: ... + @typing.overload + def createStandardContextMenu(self, position: QtCore.QPoint) -> QMenu: ... + def loadResource(self, type: int, name: QtCore.QUrl) -> typing.Any: ... + def ensureCursorVisible(self) -> None: ... + def toPlainText(self) -> str: ... + @typing.overload + def find(self, exp: str, options: typing.Union[QtGui.QTextDocument.FindFlags, QtGui.QTextDocument.FindFlag] = ...) -> bool: ... + @typing.overload + def find(self, exp: QtCore.QRegExp, options: typing.Union[QtGui.QTextDocument.FindFlags, QtGui.QTextDocument.FindFlag] = ...) -> bool: ... + @typing.overload + def find(self, exp: QtCore.QRegularExpression, options: typing.Union[QtGui.QTextDocument.FindFlags, QtGui.QTextDocument.FindFlag] = ...) -> bool: ... + def centerOnScroll(self) -> bool: ... + def setCenterOnScroll(self, enabled: bool) -> None: ... + def backgroundVisible(self) -> bool: ... + def setBackgroundVisible(self, visible: bool) -> None: ... + def setWordWrapMode(self, policy: QtGui.QTextOption.WrapMode) -> None: ... + def wordWrapMode(self) -> QtGui.QTextOption.WrapMode: ... + def setLineWrapMode(self, mode: 'QPlainTextEdit.LineWrapMode') -> None: ... + def lineWrapMode(self) -> 'QPlainTextEdit.LineWrapMode': ... + def maximumBlockCount(self) -> int: ... + def setMaximumBlockCount(self, maximum: int) -> None: ... + def setUndoRedoEnabled(self, enable: bool) -> None: ... + def isUndoRedoEnabled(self) -> bool: ... + def documentTitle(self) -> str: ... + def setDocumentTitle(self, title: str) -> None: ... + def setTabChangesFocus(self, b: bool) -> None: ... + def tabChangesFocus(self) -> bool: ... + def currentCharFormat(self) -> QtGui.QTextCharFormat: ... + def setCurrentCharFormat(self, format: QtGui.QTextCharFormat) -> None: ... + def mergeCurrentCharFormat(self, modifier: QtGui.QTextCharFormat) -> None: ... + def textInteractionFlags(self) -> QtCore.Qt.TextInteractionFlags: ... + def setTextInteractionFlags(self, flags: typing.Union[QtCore.Qt.TextInteractionFlags, QtCore.Qt.TextInteractionFlag]) -> None: ... + def setReadOnly(self, ro: bool) -> None: ... + def isReadOnly(self) -> bool: ... + def textCursor(self) -> QtGui.QTextCursor: ... + def setTextCursor(self, cursor: QtGui.QTextCursor) -> None: ... + def document(self) -> QtGui.QTextDocument: ... + def setDocument(self, document: QtGui.QTextDocument) -> None: ... + + +class QPlainTextDocumentLayout(QtGui.QAbstractTextDocumentLayout): + + def __init__(self, document: QtGui.QTextDocument) -> None: ... + + def documentChanged(self, from_: int, a1: int, charsAdded: int) -> None: ... + def requestUpdate(self) -> None: ... + def cursorWidth(self) -> int: ... + def setCursorWidth(self, width: int) -> None: ... + def ensureBlockLayout(self, block: QtGui.QTextBlock) -> None: ... + def blockBoundingRect(self, block: QtGui.QTextBlock) -> QtCore.QRectF: ... + def frameBoundingRect(self, a0: QtGui.QTextFrame) -> QtCore.QRectF: ... + def documentSize(self) -> QtCore.QSizeF: ... + def pageCount(self) -> int: ... + def hitTest(self, a0: typing.Union[QtCore.QPointF, QtCore.QPoint], a1: QtCore.Qt.HitTestAccuracy) -> int: ... + def draw(self, a0: QtGui.QPainter, a1: QtGui.QAbstractTextDocumentLayout.PaintContext) -> None: ... + + +class QProgressBar(QWidget): + + class Direction(int): ... + TopToBottom = ... # type: 'QProgressBar.Direction' + BottomToTop = ... # type: 'QProgressBar.Direction' + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def initStyleOption(self, option: 'QStyleOptionProgressBar') -> None: ... + def valueChanged(self, value: int) -> None: ... + def setOrientation(self, a0: QtCore.Qt.Orientation) -> None: ... + def setValue(self, value: int) -> None: ... + def setMaximum(self, maximum: int) -> None: ... + def setMinimum(self, minimum: int) -> None: ... + def reset(self) -> None: ... + def resetFormat(self) -> None: ... + def format(self) -> str: ... + def setFormat(self, format: str) -> None: ... + def setTextDirection(self, textDirection: 'QProgressBar.Direction') -> None: ... + def setInvertedAppearance(self, invert: bool) -> None: ... + def orientation(self) -> QtCore.Qt.Orientation: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + def setAlignment(self, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def alignment(self) -> QtCore.Qt.Alignment: ... + def isTextVisible(self) -> bool: ... + def setTextVisible(self, visible: bool) -> None: ... + def text(self) -> str: ... + def value(self) -> int: ... + def setRange(self, minimum: int, maximum: int) -> None: ... + def maximum(self) -> int: ... + def minimum(self) -> int: ... + + +class QProgressDialog(QDialog): + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + @typing.overload + def __init__(self, labelText: str, cancelButtonText: str, minimum: int, maximum: int, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + @typing.overload + def open(self) -> None: ... + @typing.overload + def open(self, slot: PYQT_SLOT) -> None: ... + def forceShow(self) -> None: ... + def showEvent(self, e: QtGui.QShowEvent) -> None: ... + def changeEvent(self, a0: QtCore.QEvent) -> None: ... + def closeEvent(self, a0: QtGui.QCloseEvent) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def canceled(self) -> None: ... + def setMinimumDuration(self, ms: int) -> None: ... + def setCancelButtonText(self, a0: str) -> None: ... + def setLabelText(self, a0: str) -> None: ... + def setValue(self, progress: int) -> None: ... + def setMinimum(self, minimum: int) -> None: ... + def setMaximum(self, maximum: int) -> None: ... + def reset(self) -> None: ... + def cancel(self) -> None: ... + def autoClose(self) -> bool: ... + def setAutoClose(self, b: bool) -> None: ... + def autoReset(self) -> bool: ... + def setAutoReset(self, b: bool) -> None: ... + def minimumDuration(self) -> int: ... + def labelText(self) -> str: ... + def sizeHint(self) -> QtCore.QSize: ... + def value(self) -> int: ... + def setRange(self, minimum: int, maximum: int) -> None: ... + def maximum(self) -> int: ... + def minimum(self) -> int: ... + def wasCanceled(self) -> bool: ... + def setBar(self, bar: QProgressBar) -> None: ... + def setCancelButton(self, button: QPushButton) -> None: ... + def setLabel(self, label: QLabel) -> None: ... + + +class QProxyStyle(QCommonStyle): + + @typing.overload + def __init__(self, style: typing.Optional[QStyle] = ...) -> None: ... + @typing.overload + def __init__(self, key: str) -> None: ... + + def event(self, e: QtCore.QEvent) -> bool: ... + @typing.overload + def unpolish(self, widget: QWidget) -> None: ... + @typing.overload + def unpolish(self, app: QApplication) -> None: ... + @typing.overload + def polish(self, widget: QWidget) -> None: ... + @typing.overload + def polish(self, pal: QtGui.QPalette) -> QtGui.QPalette: ... + @typing.overload + def polish(self, app: QApplication) -> None: ... + def standardPalette(self) -> QtGui.QPalette: ... + def generatedIconPixmap(self, iconMode: QtGui.QIcon.Mode, pixmap: QtGui.QPixmap, opt: 'QStyleOption') -> QtGui.QPixmap: ... + def standardPixmap(self, standardPixmap: QStyle.StandardPixmap, opt: 'QStyleOption', widget: typing.Optional[QWidget] = ...) -> QtGui.QPixmap: ... + def standardIcon(self, standardIcon: QStyle.StandardPixmap, option: typing.Optional['QStyleOption'] = ..., widget: typing.Optional[QWidget] = ...) -> QtGui.QIcon: ... + def layoutSpacing(self, control1: 'QSizePolicy.ControlType', control2: 'QSizePolicy.ControlType', orientation: QtCore.Qt.Orientation, option: typing.Optional['QStyleOption'] = ..., widget: typing.Optional[QWidget] = ...) -> int: ... + def pixelMetric(self, metric: QStyle.PixelMetric, option: typing.Optional['QStyleOption'] = ..., widget: typing.Optional[QWidget] = ...) -> int: ... + def styleHint(self, hint: QStyle.StyleHint, option: typing.Optional['QStyleOption'] = ..., widget: typing.Optional[QWidget] = ..., returnData: typing.Optional['QStyleHintReturn'] = ...) -> int: ... + def hitTestComplexControl(self, control: QStyle.ComplexControl, option: 'QStyleOptionComplex', pos: QtCore.QPoint, widget: typing.Optional[QWidget] = ...) -> QStyle.SubControl: ... + def itemPixmapRect(self, r: QtCore.QRect, flags: int, pixmap: QtGui.QPixmap) -> QtCore.QRect: ... + def itemTextRect(self, fm: QtGui.QFontMetrics, r: QtCore.QRect, flags: int, enabled: bool, text: str) -> QtCore.QRect: ... + def subControlRect(self, cc: QStyle.ComplexControl, opt: 'QStyleOptionComplex', sc: QStyle.SubControl, widget: QWidget) -> QtCore.QRect: ... + def subElementRect(self, element: QStyle.SubElement, option: 'QStyleOption', widget: QWidget) -> QtCore.QRect: ... + def sizeFromContents(self, type: QStyle.ContentsType, option: 'QStyleOption', size: QtCore.QSize, widget: QWidget) -> QtCore.QSize: ... + def drawItemPixmap(self, painter: QtGui.QPainter, rect: QtCore.QRect, alignment: int, pixmap: QtGui.QPixmap) -> None: ... + def drawItemText(self, painter: QtGui.QPainter, rect: QtCore.QRect, flags: int, pal: QtGui.QPalette, enabled: bool, text: str, textRole: QtGui.QPalette.ColorRole = ...) -> None: ... + def drawComplexControl(self, control: QStyle.ComplexControl, option: 'QStyleOptionComplex', painter: QtGui.QPainter, widget: typing.Optional[QWidget] = ...) -> None: ... + def drawControl(self, element: QStyle.ControlElement, option: 'QStyleOption', painter: QtGui.QPainter, widget: typing.Optional[QWidget] = ...) -> None: ... + def drawPrimitive(self, element: QStyle.PrimitiveElement, option: 'QStyleOption', painter: QtGui.QPainter, widget: typing.Optional[QWidget] = ...) -> None: ... + def setBaseStyle(self, style: QStyle) -> None: ... + def baseStyle(self) -> QStyle: ... + + +class QRadioButton(QAbstractButton): + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, text: str, parent: typing.Optional[QWidget] = ...) -> None: ... + + def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def hitButton(self, a0: QtCore.QPoint) -> bool: ... + def initStyleOption(self, button: 'QStyleOptionButton') -> None: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QRubberBand(QWidget): + + class Shape(int): ... + Line = ... # type: 'QRubberBand.Shape' + Rectangle = ... # type: 'QRubberBand.Shape' + + def __init__(self, a0: 'QRubberBand.Shape', parent: typing.Optional[QWidget] = ...) -> None: ... + + def moveEvent(self, a0: QtGui.QMoveEvent) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent) -> None: ... + def changeEvent(self, a0: QtCore.QEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def initStyleOption(self, option: 'QStyleOptionRubberBand') -> None: ... + @typing.overload + def resize(self, w: int, h: int) -> None: ... + @typing.overload + def resize(self, s: QtCore.QSize) -> None: ... + @typing.overload + def move(self, p: QtCore.QPoint) -> None: ... + @typing.overload + def move(self, ax: int, ay: int) -> None: ... + @typing.overload + def setGeometry(self, r: QtCore.QRect) -> None: ... + @typing.overload + def setGeometry(self, ax: int, ay: int, aw: int, ah: int) -> None: ... + def shape(self) -> 'QRubberBand.Shape': ... + + +class QScrollArea(QAbstractScrollArea): + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def viewportSizeHint(self) -> QtCore.QSize: ... + def scrollContentsBy(self, dx: int, dy: int) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def eventFilter(self, a0: QtCore.QObject, a1: QtCore.QEvent) -> bool: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def ensureWidgetVisible(self, childWidget: QWidget, xMargin: int = ..., yMargin: int = ...) -> None: ... + def ensureVisible(self, x: int, y: int, xMargin: int = ..., yMargin: int = ...) -> None: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def sizeHint(self) -> QtCore.QSize: ... + def setAlignment(self, a0: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def alignment(self) -> QtCore.Qt.Alignment: ... + def setWidgetResizable(self, resizable: bool) -> None: ... + def widgetResizable(self) -> bool: ... + def takeWidget(self) -> QWidget: ... + def setWidget(self, w: QWidget) -> None: ... + def widget(self) -> QWidget: ... + + +class QScrollBar(QAbstractSlider): + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, orientation: QtCore.Qt.Orientation, parent: typing.Optional[QWidget] = ...) -> None: ... + + def sliderChange(self, change: QAbstractSlider.SliderChange) -> None: ... + def wheelEvent(self, a0: QtGui.QWheelEvent) -> None: ... + def contextMenuEvent(self, a0: QtGui.QContextMenuEvent) -> None: ... + def hideEvent(self, a0: QtGui.QHideEvent) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def initStyleOption(self, option: 'QStyleOptionSlider') -> None: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QScroller(QtCore.QObject): + + class Input(int): ... + InputPress = ... # type: 'QScroller.Input' + InputMove = ... # type: 'QScroller.Input' + InputRelease = ... # type: 'QScroller.Input' + + class ScrollerGestureType(int): ... + TouchGesture = ... # type: 'QScroller.ScrollerGestureType' + LeftMouseButtonGesture = ... # type: 'QScroller.ScrollerGestureType' + RightMouseButtonGesture = ... # type: 'QScroller.ScrollerGestureType' + MiddleMouseButtonGesture = ... # type: 'QScroller.ScrollerGestureType' + + class State(int): ... + Inactive = ... # type: 'QScroller.State' + Pressed = ... # type: 'QScroller.State' + Dragging = ... # type: 'QScroller.State' + Scrolling = ... # type: 'QScroller.State' + + def scrollerPropertiesChanged(self, a0: 'QScrollerProperties') -> None: ... + def stateChanged(self, newstate: 'QScroller.State') -> None: ... + def resendPrepareEvent(self) -> None: ... + @typing.overload + def ensureVisible(self, rect: QtCore.QRectF, xmargin: float, ymargin: float) -> None: ... + @typing.overload + def ensureVisible(self, rect: QtCore.QRectF, xmargin: float, ymargin: float, scrollTime: int) -> None: ... + @typing.overload + def scrollTo(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + @typing.overload + def scrollTo(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], scrollTime: int) -> None: ... + def setScrollerProperties(self, prop: 'QScrollerProperties') -> None: ... + @typing.overload + def setSnapPositionsY(self, positions: typing.Iterable[float]) -> None: ... + @typing.overload + def setSnapPositionsY(self, first: float, interval: float) -> None: ... + @typing.overload + def setSnapPositionsX(self, positions: typing.Iterable[float]) -> None: ... + @typing.overload + def setSnapPositionsX(self, first: float, interval: float) -> None: ... + def scrollerProperties(self) -> 'QScrollerProperties': ... + def pixelPerMeter(self) -> QtCore.QPointF: ... + def finalPosition(self) -> QtCore.QPointF: ... + def velocity(self) -> QtCore.QPointF: ... + def stop(self) -> None: ... + def handleInput(self, input: 'QScroller.Input', position: typing.Union[QtCore.QPointF, QtCore.QPoint], timestamp: int = ...) -> bool: ... + def state(self) -> 'QScroller.State': ... + def target(self) -> QtCore.QObject: ... + @staticmethod + def activeScrollers() -> typing.List['QScroller']: ... + @staticmethod + def ungrabGesture(target: QtCore.QObject) -> None: ... + @staticmethod + def grabbedGesture(target: QtCore.QObject) -> QtCore.Qt.GestureType: ... + @staticmethod + def grabGesture(target: QtCore.QObject, scrollGestureType: 'QScroller.ScrollerGestureType' = ...) -> QtCore.Qt.GestureType: ... + @staticmethod + def scroller(target: QtCore.QObject) -> 'QScroller': ... + @staticmethod + def hasScroller(target: QtCore.QObject) -> bool: ... + + +class QScrollerProperties(sip.simplewrapper): + + class ScrollMetric(int): ... + MousePressEventDelay = ... # type: 'QScrollerProperties.ScrollMetric' + DragStartDistance = ... # type: 'QScrollerProperties.ScrollMetric' + DragVelocitySmoothingFactor = ... # type: 'QScrollerProperties.ScrollMetric' + AxisLockThreshold = ... # type: 'QScrollerProperties.ScrollMetric' + ScrollingCurve = ... # type: 'QScrollerProperties.ScrollMetric' + DecelerationFactor = ... # type: 'QScrollerProperties.ScrollMetric' + MinimumVelocity = ... # type: 'QScrollerProperties.ScrollMetric' + MaximumVelocity = ... # type: 'QScrollerProperties.ScrollMetric' + MaximumClickThroughVelocity = ... # type: 'QScrollerProperties.ScrollMetric' + AcceleratingFlickMaximumTime = ... # type: 'QScrollerProperties.ScrollMetric' + AcceleratingFlickSpeedupFactor = ... # type: 'QScrollerProperties.ScrollMetric' + SnapPositionRatio = ... # type: 'QScrollerProperties.ScrollMetric' + SnapTime = ... # type: 'QScrollerProperties.ScrollMetric' + OvershootDragResistanceFactor = ... # type: 'QScrollerProperties.ScrollMetric' + OvershootDragDistanceFactor = ... # type: 'QScrollerProperties.ScrollMetric' + OvershootScrollDistanceFactor = ... # type: 'QScrollerProperties.ScrollMetric' + OvershootScrollTime = ... # type: 'QScrollerProperties.ScrollMetric' + HorizontalOvershootPolicy = ... # type: 'QScrollerProperties.ScrollMetric' + VerticalOvershootPolicy = ... # type: 'QScrollerProperties.ScrollMetric' + FrameRate = ... # type: 'QScrollerProperties.ScrollMetric' + ScrollMetricCount = ... # type: 'QScrollerProperties.ScrollMetric' + + class FrameRates(int): ... + Standard = ... # type: 'QScrollerProperties.FrameRates' + Fps60 = ... # type: 'QScrollerProperties.FrameRates' + Fps30 = ... # type: 'QScrollerProperties.FrameRates' + Fps20 = ... # type: 'QScrollerProperties.FrameRates' + + class OvershootPolicy(int): ... + OvershootWhenScrollable = ... # type: 'QScrollerProperties.OvershootPolicy' + OvershootAlwaysOff = ... # type: 'QScrollerProperties.OvershootPolicy' + OvershootAlwaysOn = ... # type: 'QScrollerProperties.OvershootPolicy' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, sp: 'QScrollerProperties') -> None: ... + + def setScrollMetric(self, metric: 'QScrollerProperties.ScrollMetric', value: typing.Any) -> None: ... + def scrollMetric(self, metric: 'QScrollerProperties.ScrollMetric') -> typing.Any: ... + @staticmethod + def unsetDefaultScrollerProperties() -> None: ... + @staticmethod + def setDefaultScrollerProperties(sp: 'QScrollerProperties') -> None: ... + + +class QShortcut(QtCore.QObject): + + @typing.overload + def __init__(self, parent: QWidget) -> None: ... + @typing.overload + def __init__(self, key: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int], parent: QWidget, member: PYQT_SLOT = ..., ambiguousMember: PYQT_SLOT = ..., context: QtCore.Qt.ShortcutContext = ...) -> None: ... + + def event(self, e: QtCore.QEvent) -> bool: ... + def activatedAmbiguously(self) -> None: ... + def activated(self) -> None: ... + def autoRepeat(self) -> bool: ... + def setAutoRepeat(self, on: bool) -> None: ... + def parentWidget(self) -> QWidget: ... + def id(self) -> int: ... + def whatsThis(self) -> str: ... + def setWhatsThis(self, text: str) -> None: ... + def context(self) -> QtCore.Qt.ShortcutContext: ... + def setContext(self, context: QtCore.Qt.ShortcutContext) -> None: ... + def isEnabled(self) -> bool: ... + def setEnabled(self, enable: bool) -> None: ... + def key(self) -> QtGui.QKeySequence: ... + def setKey(self, key: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]) -> None: ... + + +class QSizeGrip(QWidget): + + def __init__(self, parent: QWidget) -> None: ... + + def hideEvent(self, hideEvent: QtGui.QHideEvent) -> None: ... + def showEvent(self, showEvent: QtGui.QShowEvent) -> None: ... + def moveEvent(self, moveEvent: QtGui.QMoveEvent) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def eventFilter(self, a0: QtCore.QObject, a1: QtCore.QEvent) -> bool: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, mouseEvent: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def setVisible(self, a0: bool) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QSizePolicy(sip.simplewrapper): + + class ControlType(int): ... + DefaultType = ... # type: 'QSizePolicy.ControlType' + ButtonBox = ... # type: 'QSizePolicy.ControlType' + CheckBox = ... # type: 'QSizePolicy.ControlType' + ComboBox = ... # type: 'QSizePolicy.ControlType' + Frame = ... # type: 'QSizePolicy.ControlType' + GroupBox = ... # type: 'QSizePolicy.ControlType' + Label = ... # type: 'QSizePolicy.ControlType' + Line = ... # type: 'QSizePolicy.ControlType' + LineEdit = ... # type: 'QSizePolicy.ControlType' + PushButton = ... # type: 'QSizePolicy.ControlType' + RadioButton = ... # type: 'QSizePolicy.ControlType' + Slider = ... # type: 'QSizePolicy.ControlType' + SpinBox = ... # type: 'QSizePolicy.ControlType' + TabWidget = ... # type: 'QSizePolicy.ControlType' + ToolButton = ... # type: 'QSizePolicy.ControlType' + + class Policy(int): ... + Fixed = ... # type: 'QSizePolicy.Policy' + Minimum = ... # type: 'QSizePolicy.Policy' + Maximum = ... # type: 'QSizePolicy.Policy' + Preferred = ... # type: 'QSizePolicy.Policy' + MinimumExpanding = ... # type: 'QSizePolicy.Policy' + Expanding = ... # type: 'QSizePolicy.Policy' + Ignored = ... # type: 'QSizePolicy.Policy' + + class PolicyFlag(int): ... + GrowFlag = ... # type: 'QSizePolicy.PolicyFlag' + ExpandFlag = ... # type: 'QSizePolicy.PolicyFlag' + ShrinkFlag = ... # type: 'QSizePolicy.PolicyFlag' + IgnoreFlag = ... # type: 'QSizePolicy.PolicyFlag' + + class ControlTypes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QSizePolicy.ControlTypes', 'QSizePolicy.ControlType']) -> None: ... + @typing.overload + def __init__(self, a0: 'QSizePolicy.ControlTypes') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QSizePolicy.ControlTypes': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, horizontal: 'QSizePolicy.Policy', vertical: 'QSizePolicy.Policy', type: 'QSizePolicy.ControlType' = ...) -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + @typing.overload + def __init__(self, a0: 'QSizePolicy') -> None: ... + + def __hash__(self) -> int: ... + def setRetainSizeWhenHidden(self, retainSize: bool) -> None: ... + def retainSizeWhenHidden(self) -> bool: ... + def hasWidthForHeight(self) -> bool: ... + def setWidthForHeight(self, b: bool) -> None: ... + def setControlType(self, type: 'QSizePolicy.ControlType') -> None: ... + def controlType(self) -> 'QSizePolicy.ControlType': ... + def transposed(self) -> 'QSizePolicy': ... + def transpose(self) -> None: ... + def setVerticalStretch(self, stretchFactor: int) -> None: ... + def setHorizontalStretch(self, stretchFactor: int) -> None: ... + def verticalStretch(self) -> int: ... + def horizontalStretch(self) -> int: ... + def hasHeightForWidth(self) -> bool: ... + def setHeightForWidth(self, b: bool) -> None: ... + def expandingDirections(self) -> QtCore.Qt.Orientations: ... + def setVerticalPolicy(self, d: 'QSizePolicy.Policy') -> None: ... + def setHorizontalPolicy(self, d: 'QSizePolicy.Policy') -> None: ... + def verticalPolicy(self) -> 'QSizePolicy.Policy': ... + def horizontalPolicy(self) -> 'QSizePolicy.Policy': ... + + +class QSlider(QAbstractSlider): + + class TickPosition(int): ... + NoTicks = ... # type: 'QSlider.TickPosition' + TicksAbove = ... # type: 'QSlider.TickPosition' + TicksLeft = ... # type: 'QSlider.TickPosition' + TicksBelow = ... # type: 'QSlider.TickPosition' + TicksRight = ... # type: 'QSlider.TickPosition' + TicksBothSides = ... # type: 'QSlider.TickPosition' + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, orientation: QtCore.Qt.Orientation, parent: typing.Optional[QWidget] = ...) -> None: ... + + def mouseMoveEvent(self, ev: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, ev: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, ev: QtGui.QMouseEvent) -> None: ... + def paintEvent(self, ev: QtGui.QPaintEvent) -> None: ... + def initStyleOption(self, option: 'QStyleOptionSlider') -> None: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def tickInterval(self) -> int: ... + def setTickInterval(self, ti: int) -> None: ... + def tickPosition(self) -> 'QSlider.TickPosition': ... + def setTickPosition(self, position: 'QSlider.TickPosition') -> None: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QSpinBox(QAbstractSpinBox): + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def setStepType(self, stepType: QAbstractSpinBox.StepType) -> None: ... + def stepType(self) -> QAbstractSpinBox.StepType: ... + def setDisplayIntegerBase(self, base: int) -> None: ... + def displayIntegerBase(self) -> int: ... + @typing.overload + def valueChanged(self, a0: int) -> None: ... + @typing.overload + def valueChanged(self, a0: str) -> None: ... + def setValue(self, val: int) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def fixup(self, str: str) -> str: ... + def textFromValue(self, v: int) -> str: ... + def valueFromText(self, text: str) -> int: ... + def validate(self, input: str, pos: int) -> typing.Tuple[QtGui.QValidator.State, str, int]: ... + def setRange(self, min: int, max: int) -> None: ... + def setMaximum(self, max: int) -> None: ... + def maximum(self) -> int: ... + def setMinimum(self, min: int) -> None: ... + def minimum(self) -> int: ... + def setSingleStep(self, val: int) -> None: ... + def singleStep(self) -> int: ... + def cleanText(self) -> str: ... + def setSuffix(self, s: str) -> None: ... + def suffix(self) -> str: ... + def setPrefix(self, p: str) -> None: ... + def prefix(self) -> str: ... + def value(self) -> int: ... + + +class QDoubleSpinBox(QAbstractSpinBox): + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def setStepType(self, stepType: QAbstractSpinBox.StepType) -> None: ... + def stepType(self) -> QAbstractSpinBox.StepType: ... + @typing.overload + def valueChanged(self, a0: float) -> None: ... + @typing.overload + def valueChanged(self, a0: str) -> None: ... + def setValue(self, val: float) -> None: ... + def fixup(self, str: str) -> str: ... + def textFromValue(self, v: float) -> str: ... + def valueFromText(self, text: str) -> float: ... + def validate(self, input: str, pos: int) -> typing.Tuple[QtGui.QValidator.State, str, int]: ... + def setDecimals(self, prec: int) -> None: ... + def decimals(self) -> int: ... + def setRange(self, min: float, max: float) -> None: ... + def setMaximum(self, max: float) -> None: ... + def maximum(self) -> float: ... + def setMinimum(self, min: float) -> None: ... + def minimum(self) -> float: ... + def setSingleStep(self, val: float) -> None: ... + def singleStep(self) -> float: ... + def cleanText(self) -> str: ... + def setSuffix(self, s: str) -> None: ... + def suffix(self) -> str: ... + def setPrefix(self, p: str) -> None: ... + def prefix(self) -> str: ... + def value(self) -> float: ... + + +class QSplashScreen(QWidget): + + @typing.overload + def __init__(self, pixmap: QtGui.QPixmap = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + @typing.overload + def __init__(self, parent: QWidget, pixmap: QtGui.QPixmap = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def drawContents(self, painter: QtGui.QPainter) -> None: ... + def messageChanged(self, message: str) -> None: ... + def clearMessage(self) -> None: ... + def showMessage(self, message: str, alignment: int = ..., color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ...) -> None: ... + def message(self) -> str: ... + def repaint(self) -> None: ... + def finish(self, w: QWidget) -> None: ... + def pixmap(self) -> QtGui.QPixmap: ... + def setPixmap(self, pixmap: QtGui.QPixmap) -> None: ... + + +class QSplitter(QFrame): + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, orientation: QtCore.Qt.Orientation, parent: typing.Optional[QWidget] = ...) -> None: ... + + def closestLegalPosition(self, a0: int, a1: int) -> int: ... + def setRubberBand(self, position: int) -> None: ... + def moveSplitter(self, pos: int, index: int) -> None: ... + def changeEvent(self, a0: QtCore.QEvent) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def childEvent(self, a0: QtCore.QChildEvent) -> None: ... + def createHandle(self) -> 'QSplitterHandle': ... + def splitterMoved(self, pos: int, index: int) -> None: ... + def replaceWidget(self, index: int, widget: QWidget) -> QWidget: ... + def setStretchFactor(self, index: int, stretch: int) -> None: ... + def handle(self, index: int) -> 'QSplitterHandle': ... + def getRange(self, index: int) -> typing.Tuple[int, int]: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def widget(self, index: int) -> QWidget: ... + def indexOf(self, w: QWidget) -> int: ... + def setHandleWidth(self, a0: int) -> None: ... + def handleWidth(self) -> int: ... + def restoreState(self, state: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... + def saveState(self) -> QtCore.QByteArray: ... + def setSizes(self, list: typing.Iterable[int]) -> None: ... + def sizes(self) -> typing.List[int]: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + def refresh(self) -> None: ... + def opaqueResize(self) -> bool: ... + def setOpaqueResize(self, opaque: bool = ...) -> None: ... + def isCollapsible(self, index: int) -> bool: ... + def setCollapsible(self, index: int, a1: bool) -> None: ... + def childrenCollapsible(self) -> bool: ... + def setChildrenCollapsible(self, a0: bool) -> None: ... + def orientation(self) -> QtCore.Qt.Orientation: ... + def setOrientation(self, a0: QtCore.Qt.Orientation) -> None: ... + def insertWidget(self, index: int, widget: QWidget) -> None: ... + def addWidget(self, widget: QWidget) -> None: ... + + +class QSplitterHandle(QWidget): + + def __init__(self, o: QtCore.Qt.Orientation, parent: QSplitter) -> None: ... + + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def closestLegalPosition(self, p: int) -> int: ... + def moveSplitter(self, p: int) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + def splitter(self) -> QSplitter: ... + def opaqueResize(self) -> bool: ... + def orientation(self) -> QtCore.Qt.Orientation: ... + def setOrientation(self, o: QtCore.Qt.Orientation) -> None: ... + + +class QStackedLayout(QLayout): + + class StackingMode(int): ... + StackOne = ... # type: 'QStackedLayout.StackingMode' + StackAll = ... # type: 'QStackedLayout.StackingMode' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, parent: QWidget) -> None: ... + @typing.overload + def __init__(self, parentLayout: QLayout) -> None: ... + + def heightForWidth(self, width: int) -> int: ... + def hasHeightForWidth(self) -> bool: ... + def setStackingMode(self, stackingMode: 'QStackedLayout.StackingMode') -> None: ... + def stackingMode(self) -> 'QStackedLayout.StackingMode': ... + def setCurrentWidget(self, w: QWidget) -> None: ... + def setCurrentIndex(self, index: int) -> None: ... + def currentChanged(self, index: int) -> None: ... + def widgetRemoved(self, index: int) -> None: ... + def setGeometry(self, rect: QtCore.QRect) -> None: ... + def takeAt(self, a0: int) -> QLayoutItem: ... + def itemAt(self, a0: int) -> QLayoutItem: ... + def minimumSize(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + def addItem(self, item: QLayoutItem) -> None: ... + def count(self) -> int: ... + @typing.overload + def widget(self, a0: int) -> QWidget: ... + @typing.overload + def widget(self) -> QWidget: ... + def currentIndex(self) -> int: ... + def currentWidget(self) -> QWidget: ... + def insertWidget(self, index: int, w: QWidget) -> int: ... + def addWidget(self, w: QWidget) -> int: ... + + +class QStackedWidget(QFrame): + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def event(self, e: QtCore.QEvent) -> bool: ... + def widgetRemoved(self, index: int) -> None: ... + def currentChanged(self, a0: int) -> None: ... + def setCurrentWidget(self, w: QWidget) -> None: ... + def setCurrentIndex(self, index: int) -> None: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def widget(self, a0: int) -> QWidget: ... + def indexOf(self, a0: QWidget) -> int: ... + def currentIndex(self) -> int: ... + def currentWidget(self) -> QWidget: ... + def removeWidget(self, w: QWidget) -> None: ... + def insertWidget(self, index: int, w: QWidget) -> int: ... + def addWidget(self, w: QWidget) -> int: ... + + +class QStatusBar(QWidget): + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def showEvent(self, a0: QtGui.QShowEvent) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def hideOrShow(self) -> None: ... + def reformat(self) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def messageChanged(self, text: str) -> None: ... + def clearMessage(self) -> None: ... + def showMessage(self, message: str, msecs: int = ...) -> None: ... + def insertPermanentWidget(self, index: int, widget: QWidget, stretch: int = ...) -> int: ... + def insertWidget(self, index: int, widget: QWidget, stretch: int = ...) -> int: ... + def currentMessage(self) -> str: ... + def isSizeGripEnabled(self) -> bool: ... + def setSizeGripEnabled(self, a0: bool) -> None: ... + def removeWidget(self, widget: QWidget) -> None: ... + def addPermanentWidget(self, widget: QWidget, stretch: int = ...) -> None: ... + def addWidget(self, widget: QWidget, stretch: int = ...) -> None: ... + + +class QStyledItemDelegate(QAbstractItemDelegate): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def editorEvent(self, event: QtCore.QEvent, model: QtCore.QAbstractItemModel, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> bool: ... + def eventFilter(self, object: QtCore.QObject, event: QtCore.QEvent) -> bool: ... + def initStyleOption(self, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> None: ... + def displayText(self, value: typing.Any, locale: QtCore.QLocale) -> str: ... + def setItemEditorFactory(self, factory: QItemEditorFactory) -> None: ... + def itemEditorFactory(self) -> QItemEditorFactory: ... + def updateEditorGeometry(self, editor: QWidget, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> None: ... + def setModelData(self, editor: QWidget, model: QtCore.QAbstractItemModel, index: QtCore.QModelIndex) -> None: ... + def setEditorData(self, editor: QWidget, index: QtCore.QModelIndex) -> None: ... + def createEditor(self, parent: QWidget, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> QWidget: ... + def sizeHint(self, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> QtCore.QSize: ... + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> None: ... + + +class QStyleFactory(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QStyleFactory') -> None: ... + + @staticmethod + def create(a0: str) -> QStyle: ... + @staticmethod + def keys() -> typing.List[str]: ... + + +class QStyleOption(sip.simplewrapper): + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOption.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOption.StyleOptionType' + + class OptionType(int): ... + SO_Default = ... # type: 'QStyleOption.OptionType' + SO_FocusRect = ... # type: 'QStyleOption.OptionType' + SO_Button = ... # type: 'QStyleOption.OptionType' + SO_Tab = ... # type: 'QStyleOption.OptionType' + SO_MenuItem = ... # type: 'QStyleOption.OptionType' + SO_Frame = ... # type: 'QStyleOption.OptionType' + SO_ProgressBar = ... # type: 'QStyleOption.OptionType' + SO_ToolBox = ... # type: 'QStyleOption.OptionType' + SO_Header = ... # type: 'QStyleOption.OptionType' + SO_DockWidget = ... # type: 'QStyleOption.OptionType' + SO_ViewItem = ... # type: 'QStyleOption.OptionType' + SO_TabWidgetFrame = ... # type: 'QStyleOption.OptionType' + SO_TabBarBase = ... # type: 'QStyleOption.OptionType' + SO_RubberBand = ... # type: 'QStyleOption.OptionType' + SO_ToolBar = ... # type: 'QStyleOption.OptionType' + SO_Complex = ... # type: 'QStyleOption.OptionType' + SO_Slider = ... # type: 'QStyleOption.OptionType' + SO_SpinBox = ... # type: 'QStyleOption.OptionType' + SO_ToolButton = ... # type: 'QStyleOption.OptionType' + SO_ComboBox = ... # type: 'QStyleOption.OptionType' + SO_TitleBar = ... # type: 'QStyleOption.OptionType' + SO_GroupBox = ... # type: 'QStyleOption.OptionType' + SO_ComplexCustomBase = ... # type: 'QStyleOption.OptionType' + SO_GraphicsItem = ... # type: 'QStyleOption.OptionType' + SO_SizeGrip = ... # type: 'QStyleOption.OptionType' + SO_CustomBase = ... # type: 'QStyleOption.OptionType' + + direction = ... # type: QtCore.Qt.LayoutDirection + fontMetrics = ... # type: QtGui.QFontMetrics + palette = ... # type: QtGui.QPalette + rect = ... # type: QtCore.QRect + state = ... # type: typing.Union[QStyle.State, QStyle.StateFlag] + styleObject = ... # type: QtCore.QObject + type = ... # type: int + version = ... # type: int + + @typing.overload + def __init__(self, version: int = ..., type: int = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOption') -> None: ... + + def initFrom(self, w: QWidget) -> None: ... + + +class QStyleOptionFocusRect(QStyleOption): + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionFocusRect.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionFocusRect.StyleOptionType' + + backgroundColor = ... # type: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionFocusRect') -> None: ... + + +class QStyleOptionFrame(QStyleOption): + + class FrameFeature(int): ... + None_ = ... # type: 'QStyleOptionFrame.FrameFeature' + Flat = ... # type: 'QStyleOptionFrame.FrameFeature' + Rounded = ... # type: 'QStyleOptionFrame.FrameFeature' + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionFrame.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionFrame.StyleOptionType' + + class FrameFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QStyleOptionFrame.FrameFeatures', 'QStyleOptionFrame.FrameFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QStyleOptionFrame.FrameFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QStyleOptionFrame.FrameFeatures': ... + def __int__(self) -> int: ... + + features = ... # type: typing.Union['QStyleOptionFrame.FrameFeatures', 'QStyleOptionFrame.FrameFeature'] + frameShape = ... # type: QFrame.Shape + lineWidth = ... # type: int + midLineWidth = ... # type: int + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionFrame') -> None: ... + + +class QStyleOptionTabWidgetFrame(QStyleOption): + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionTabWidgetFrame.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionTabWidgetFrame.StyleOptionType' + + leftCornerWidgetSize = ... # type: QtCore.QSize + lineWidth = ... # type: int + midLineWidth = ... # type: int + rightCornerWidgetSize = ... # type: QtCore.QSize + selectedTabRect = ... # type: QtCore.QRect + shape = ... # type: 'QTabBar.Shape' + tabBarRect = ... # type: QtCore.QRect + tabBarSize = ... # type: QtCore.QSize + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionTabWidgetFrame') -> None: ... + + +class QStyleOptionTabBarBase(QStyleOption): + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionTabBarBase.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionTabBarBase.StyleOptionType' + + documentMode = ... # type: bool + selectedTabRect = ... # type: QtCore.QRect + shape = ... # type: 'QTabBar.Shape' + tabBarRect = ... # type: QtCore.QRect + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionTabBarBase') -> None: ... + + +class QStyleOptionHeader(QStyleOption): + + class SortIndicator(int): ... + None_ = ... # type: 'QStyleOptionHeader.SortIndicator' + SortUp = ... # type: 'QStyleOptionHeader.SortIndicator' + SortDown = ... # type: 'QStyleOptionHeader.SortIndicator' + + class SelectedPosition(int): ... + NotAdjacent = ... # type: 'QStyleOptionHeader.SelectedPosition' + NextIsSelected = ... # type: 'QStyleOptionHeader.SelectedPosition' + PreviousIsSelected = ... # type: 'QStyleOptionHeader.SelectedPosition' + NextAndPreviousAreSelected = ... # type: 'QStyleOptionHeader.SelectedPosition' + + class SectionPosition(int): ... + Beginning = ... # type: 'QStyleOptionHeader.SectionPosition' + Middle = ... # type: 'QStyleOptionHeader.SectionPosition' + End = ... # type: 'QStyleOptionHeader.SectionPosition' + OnlyOneSection = ... # type: 'QStyleOptionHeader.SectionPosition' + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionHeader.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionHeader.StyleOptionType' + + icon = ... # type: QtGui.QIcon + iconAlignment = ... # type: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag] + orientation = ... # type: QtCore.Qt.Orientation + position = ... # type: 'QStyleOptionHeader.SectionPosition' + section = ... # type: int + selectedPosition = ... # type: 'QStyleOptionHeader.SelectedPosition' + sortIndicator = ... # type: 'QStyleOptionHeader.SortIndicator' + text = ... # type: str + textAlignment = ... # type: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag] + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionHeader') -> None: ... + + +class QStyleOptionButton(QStyleOption): + + class ButtonFeature(int): ... + None_ = ... # type: 'QStyleOptionButton.ButtonFeature' + Flat = ... # type: 'QStyleOptionButton.ButtonFeature' + HasMenu = ... # type: 'QStyleOptionButton.ButtonFeature' + DefaultButton = ... # type: 'QStyleOptionButton.ButtonFeature' + AutoDefaultButton = ... # type: 'QStyleOptionButton.ButtonFeature' + CommandLinkButton = ... # type: 'QStyleOptionButton.ButtonFeature' + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionButton.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionButton.StyleOptionType' + + class ButtonFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QStyleOptionButton.ButtonFeatures', 'QStyleOptionButton.ButtonFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QStyleOptionButton.ButtonFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QStyleOptionButton.ButtonFeatures': ... + def __int__(self) -> int: ... + + features = ... # type: typing.Union['QStyleOptionButton.ButtonFeatures', 'QStyleOptionButton.ButtonFeature'] + icon = ... # type: QtGui.QIcon + iconSize = ... # type: QtCore.QSize + text = ... # type: str + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionButton') -> None: ... + + +class QStyleOptionTab(QStyleOption): + + class TabFeature(int): ... + None_ = ... # type: 'QStyleOptionTab.TabFeature' + HasFrame = ... # type: 'QStyleOptionTab.TabFeature' + + class CornerWidget(int): ... + NoCornerWidgets = ... # type: 'QStyleOptionTab.CornerWidget' + LeftCornerWidget = ... # type: 'QStyleOptionTab.CornerWidget' + RightCornerWidget = ... # type: 'QStyleOptionTab.CornerWidget' + + class SelectedPosition(int): ... + NotAdjacent = ... # type: 'QStyleOptionTab.SelectedPosition' + NextIsSelected = ... # type: 'QStyleOptionTab.SelectedPosition' + PreviousIsSelected = ... # type: 'QStyleOptionTab.SelectedPosition' + + class TabPosition(int): ... + Beginning = ... # type: 'QStyleOptionTab.TabPosition' + Middle = ... # type: 'QStyleOptionTab.TabPosition' + End = ... # type: 'QStyleOptionTab.TabPosition' + OnlyOneTab = ... # type: 'QStyleOptionTab.TabPosition' + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionTab.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionTab.StyleOptionType' + + class CornerWidgets(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QStyleOptionTab.CornerWidgets', 'QStyleOptionTab.CornerWidget']) -> None: ... + @typing.overload + def __init__(self, a0: 'QStyleOptionTab.CornerWidgets') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QStyleOptionTab.CornerWidgets': ... + def __int__(self) -> int: ... + + class TabFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QStyleOptionTab.TabFeatures', 'QStyleOptionTab.TabFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QStyleOptionTab.TabFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QStyleOptionTab.TabFeatures': ... + def __int__(self) -> int: ... + + cornerWidgets = ... # type: typing.Union['QStyleOptionTab.CornerWidgets', 'QStyleOptionTab.CornerWidget'] + documentMode = ... # type: bool + features = ... # type: typing.Union['QStyleOptionTab.TabFeatures', 'QStyleOptionTab.TabFeature'] + icon = ... # type: QtGui.QIcon + iconSize = ... # type: QtCore.QSize + leftButtonSize = ... # type: QtCore.QSize + position = ... # type: 'QStyleOptionTab.TabPosition' + rightButtonSize = ... # type: QtCore.QSize + row = ... # type: int + selectedPosition = ... # type: 'QStyleOptionTab.SelectedPosition' + shape = ... # type: 'QTabBar.Shape' + text = ... # type: str + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionTab') -> None: ... + + +class QStyleOptionProgressBar(QStyleOption): + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionProgressBar.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionProgressBar.StyleOptionType' + + bottomToTop = ... # type: bool + invertedAppearance = ... # type: bool + maximum = ... # type: int + minimum = ... # type: int + orientation = ... # type: QtCore.Qt.Orientation + progress = ... # type: int + text = ... # type: str + textAlignment = ... # type: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag] + textVisible = ... # type: bool + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionProgressBar') -> None: ... + + +class QStyleOptionMenuItem(QStyleOption): + + class CheckType(int): ... + NotCheckable = ... # type: 'QStyleOptionMenuItem.CheckType' + Exclusive = ... # type: 'QStyleOptionMenuItem.CheckType' + NonExclusive = ... # type: 'QStyleOptionMenuItem.CheckType' + + class MenuItemType(int): ... + Normal = ... # type: 'QStyleOptionMenuItem.MenuItemType' + DefaultItem = ... # type: 'QStyleOptionMenuItem.MenuItemType' + Separator = ... # type: 'QStyleOptionMenuItem.MenuItemType' + SubMenu = ... # type: 'QStyleOptionMenuItem.MenuItemType' + Scroller = ... # type: 'QStyleOptionMenuItem.MenuItemType' + TearOff = ... # type: 'QStyleOptionMenuItem.MenuItemType' + Margin = ... # type: 'QStyleOptionMenuItem.MenuItemType' + EmptyArea = ... # type: 'QStyleOptionMenuItem.MenuItemType' + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionMenuItem.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionMenuItem.StyleOptionType' + + checkType = ... # type: 'QStyleOptionMenuItem.CheckType' + checked = ... # type: bool + font = ... # type: QtGui.QFont + icon = ... # type: QtGui.QIcon + maxIconWidth = ... # type: int + menuHasCheckableItems = ... # type: bool + menuItemType = ... # type: 'QStyleOptionMenuItem.MenuItemType' + menuRect = ... # type: QtCore.QRect + tabWidth = ... # type: int + text = ... # type: str + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionMenuItem') -> None: ... + + +class QStyleOptionDockWidget(QStyleOption): + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionDockWidget.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionDockWidget.StyleOptionType' + + closable = ... # type: bool + floatable = ... # type: bool + movable = ... # type: bool + title = ... # type: str + verticalTitleBar = ... # type: bool + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionDockWidget') -> None: ... + + +class QStyleOptionViewItem(QStyleOption): + + class ViewItemPosition(int): ... + Invalid = ... # type: 'QStyleOptionViewItem.ViewItemPosition' + Beginning = ... # type: 'QStyleOptionViewItem.ViewItemPosition' + Middle = ... # type: 'QStyleOptionViewItem.ViewItemPosition' + End = ... # type: 'QStyleOptionViewItem.ViewItemPosition' + OnlyOne = ... # type: 'QStyleOptionViewItem.ViewItemPosition' + + class ViewItemFeature(int): ... + None_ = ... # type: 'QStyleOptionViewItem.ViewItemFeature' + WrapText = ... # type: 'QStyleOptionViewItem.ViewItemFeature' + Alternate = ... # type: 'QStyleOptionViewItem.ViewItemFeature' + HasCheckIndicator = ... # type: 'QStyleOptionViewItem.ViewItemFeature' + HasDisplay = ... # type: 'QStyleOptionViewItem.ViewItemFeature' + HasDecoration = ... # type: 'QStyleOptionViewItem.ViewItemFeature' + + class Position(int): ... + Left = ... # type: 'QStyleOptionViewItem.Position' + Right = ... # type: 'QStyleOptionViewItem.Position' + Top = ... # type: 'QStyleOptionViewItem.Position' + Bottom = ... # type: 'QStyleOptionViewItem.Position' + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionViewItem.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionViewItem.StyleOptionType' + + class ViewItemFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QStyleOptionViewItem.ViewItemFeatures', 'QStyleOptionViewItem.ViewItemFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QStyleOptionViewItem.ViewItemFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QStyleOptionViewItem.ViewItemFeatures': ... + def __int__(self) -> int: ... + + backgroundBrush = ... # type: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] + checkState = ... # type: QtCore.Qt.CheckState + decorationAlignment = ... # type: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag] + decorationPosition = ... # type: 'QStyleOptionViewItem.Position' + decorationSize = ... # type: QtCore.QSize + displayAlignment = ... # type: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag] + features = ... # type: typing.Union['QStyleOptionViewItem.ViewItemFeatures', 'QStyleOptionViewItem.ViewItemFeature'] + font = ... # type: QtGui.QFont + icon = ... # type: QtGui.QIcon + index = ... # type: QtCore.QModelIndex + locale = ... # type: QtCore.QLocale + showDecorationSelected = ... # type: bool + text = ... # type: str + textElideMode = ... # type: QtCore.Qt.TextElideMode + viewItemPosition = ... # type: 'QStyleOptionViewItem.ViewItemPosition' + widget = ... # type: QWidget + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionViewItem') -> None: ... + + +class QStyleOptionToolBox(QStyleOption): + + class SelectedPosition(int): ... + NotAdjacent = ... # type: 'QStyleOptionToolBox.SelectedPosition' + NextIsSelected = ... # type: 'QStyleOptionToolBox.SelectedPosition' + PreviousIsSelected = ... # type: 'QStyleOptionToolBox.SelectedPosition' + + class TabPosition(int): ... + Beginning = ... # type: 'QStyleOptionToolBox.TabPosition' + Middle = ... # type: 'QStyleOptionToolBox.TabPosition' + End = ... # type: 'QStyleOptionToolBox.TabPosition' + OnlyOneTab = ... # type: 'QStyleOptionToolBox.TabPosition' + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionToolBox.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionToolBox.StyleOptionType' + + icon = ... # type: QtGui.QIcon + position = ... # type: 'QStyleOptionToolBox.TabPosition' + selectedPosition = ... # type: 'QStyleOptionToolBox.SelectedPosition' + text = ... # type: str + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionToolBox') -> None: ... + + +class QStyleOptionRubberBand(QStyleOption): + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionRubberBand.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionRubberBand.StyleOptionType' + + opaque = ... # type: bool + shape = ... # type: QRubberBand.Shape + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionRubberBand') -> None: ... + + +class QStyleOptionComplex(QStyleOption): + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionComplex.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionComplex.StyleOptionType' + + activeSubControls = ... # type: typing.Union[QStyle.SubControls, QStyle.SubControl] + subControls = ... # type: typing.Union[QStyle.SubControls, QStyle.SubControl] + + @typing.overload + def __init__(self, version: int = ..., type: int = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionComplex') -> None: ... + + +class QStyleOptionSlider(QStyleOptionComplex): + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionSlider.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionSlider.StyleOptionType' + + dialWrapping = ... # type: bool + maximum = ... # type: int + minimum = ... # type: int + notchTarget = ... # type: float + orientation = ... # type: QtCore.Qt.Orientation + pageStep = ... # type: int + singleStep = ... # type: int + sliderPosition = ... # type: int + sliderValue = ... # type: int + tickInterval = ... # type: int + tickPosition = ... # type: QSlider.TickPosition + upsideDown = ... # type: bool + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionSlider') -> None: ... + + +class QStyleOptionSpinBox(QStyleOptionComplex): + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionSpinBox.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionSpinBox.StyleOptionType' + + buttonSymbols = ... # type: QAbstractSpinBox.ButtonSymbols + frame = ... # type: bool + stepEnabled = ... # type: typing.Union[QAbstractSpinBox.StepEnabled, QAbstractSpinBox.StepEnabledFlag] + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionSpinBox') -> None: ... + + +class QStyleOptionToolButton(QStyleOptionComplex): + + class ToolButtonFeature(int): ... + None_ = ... # type: 'QStyleOptionToolButton.ToolButtonFeature' + Arrow = ... # type: 'QStyleOptionToolButton.ToolButtonFeature' + Menu = ... # type: 'QStyleOptionToolButton.ToolButtonFeature' + PopupDelay = ... # type: 'QStyleOptionToolButton.ToolButtonFeature' + MenuButtonPopup = ... # type: 'QStyleOptionToolButton.ToolButtonFeature' + HasMenu = ... # type: 'QStyleOptionToolButton.ToolButtonFeature' + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionToolButton.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionToolButton.StyleOptionType' + + class ToolButtonFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QStyleOptionToolButton.ToolButtonFeatures', 'QStyleOptionToolButton.ToolButtonFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QStyleOptionToolButton.ToolButtonFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QStyleOptionToolButton.ToolButtonFeatures': ... + def __int__(self) -> int: ... + + arrowType = ... # type: QtCore.Qt.ArrowType + features = ... # type: typing.Union['QStyleOptionToolButton.ToolButtonFeatures', 'QStyleOptionToolButton.ToolButtonFeature'] + font = ... # type: QtGui.QFont + icon = ... # type: QtGui.QIcon + iconSize = ... # type: QtCore.QSize + pos = ... # type: QtCore.QPoint + text = ... # type: str + toolButtonStyle = ... # type: QtCore.Qt.ToolButtonStyle + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionToolButton') -> None: ... + + +class QStyleOptionComboBox(QStyleOptionComplex): + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionComboBox.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionComboBox.StyleOptionType' + + currentIcon = ... # type: QtGui.QIcon + currentText = ... # type: str + editable = ... # type: bool + frame = ... # type: bool + iconSize = ... # type: QtCore.QSize + popupRect = ... # type: QtCore.QRect + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionComboBox') -> None: ... + + +class QStyleOptionTitleBar(QStyleOptionComplex): + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionTitleBar.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionTitleBar.StyleOptionType' + + icon = ... # type: QtGui.QIcon + text = ... # type: str + titleBarFlags = ... # type: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] + titleBarState = ... # type: int + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionTitleBar') -> None: ... + + +class QStyleHintReturn(sip.simplewrapper): + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleHintReturn.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleHintReturn.StyleOptionType' + + class HintReturnType(int): ... + SH_Default = ... # type: 'QStyleHintReturn.HintReturnType' + SH_Mask = ... # type: 'QStyleHintReturn.HintReturnType' + SH_Variant = ... # type: 'QStyleHintReturn.HintReturnType' + + type = ... # type: int + version = ... # type: int + + @typing.overload + def __init__(self, version: int = ..., type: int = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QStyleHintReturn') -> None: ... + + +class QStyleHintReturnMask(QStyleHintReturn): + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleHintReturnMask.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleHintReturnMask.StyleOptionType' + + region = ... # type: QtGui.QRegion + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QStyleHintReturnMask') -> None: ... + + +class QStyleOptionToolBar(QStyleOption): + + class ToolBarFeature(int): ... + None_ = ... # type: 'QStyleOptionToolBar.ToolBarFeature' + Movable = ... # type: 'QStyleOptionToolBar.ToolBarFeature' + + class ToolBarPosition(int): ... + Beginning = ... # type: 'QStyleOptionToolBar.ToolBarPosition' + Middle = ... # type: 'QStyleOptionToolBar.ToolBarPosition' + End = ... # type: 'QStyleOptionToolBar.ToolBarPosition' + OnlyOne = ... # type: 'QStyleOptionToolBar.ToolBarPosition' + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionToolBar.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionToolBar.StyleOptionType' + + class ToolBarFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QStyleOptionToolBar.ToolBarFeatures', 'QStyleOptionToolBar.ToolBarFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QStyleOptionToolBar.ToolBarFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QStyleOptionToolBar.ToolBarFeatures': ... + def __int__(self) -> int: ... + + features = ... # type: typing.Union['QStyleOptionToolBar.ToolBarFeatures', 'QStyleOptionToolBar.ToolBarFeature'] + lineWidth = ... # type: int + midLineWidth = ... # type: int + positionOfLine = ... # type: 'QStyleOptionToolBar.ToolBarPosition' + positionWithinLine = ... # type: 'QStyleOptionToolBar.ToolBarPosition' + toolBarArea = ... # type: QtCore.Qt.ToolBarArea + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionToolBar') -> None: ... + + +class QStyleOptionGroupBox(QStyleOptionComplex): + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionGroupBox.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionGroupBox.StyleOptionType' + + features = ... # type: typing.Union[QStyleOptionFrame.FrameFeatures, QStyleOptionFrame.FrameFeature] + lineWidth = ... # type: int + midLineWidth = ... # type: int + text = ... # type: str + textAlignment = ... # type: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag] + textColor = ... # type: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionGroupBox') -> None: ... + + +class QStyleOptionSizeGrip(QStyleOptionComplex): + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionSizeGrip.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionSizeGrip.StyleOptionType' + + corner = ... # type: QtCore.Qt.Corner + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionSizeGrip') -> None: ... + + +class QStyleOptionGraphicsItem(QStyleOption): + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleOptionGraphicsItem.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleOptionGraphicsItem.StyleOptionType' + + exposedRect = ... # type: QtCore.QRectF + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionGraphicsItem') -> None: ... + + @staticmethod + def levelOfDetailFromTransform(worldTransform: QtGui.QTransform) -> float: ... + + +class QStyleHintReturnVariant(QStyleHintReturn): + + class StyleOptionVersion(int): ... + Version = ... # type: 'QStyleHintReturnVariant.StyleOptionVersion' + + class StyleOptionType(int): ... + Type = ... # type: 'QStyleHintReturnVariant.StyleOptionType' + + variant = ... # type: typing.Any + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QStyleHintReturnVariant') -> None: ... + + +class QStylePainter(QtGui.QPainter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, w: QWidget) -> None: ... + @typing.overload + def __init__(self, pd: QtGui.QPaintDevice, w: QWidget) -> None: ... + + def drawItemPixmap(self, r: QtCore.QRect, flags: int, pixmap: QtGui.QPixmap) -> None: ... + def drawItemText(self, rect: QtCore.QRect, flags: int, pal: QtGui.QPalette, enabled: bool, text: str, textRole: QtGui.QPalette.ColorRole = ...) -> None: ... + def drawComplexControl(self, cc: QStyle.ComplexControl, opt: QStyleOptionComplex) -> None: ... + def drawControl(self, ce: QStyle.ControlElement, opt: QStyleOption) -> None: ... + def drawPrimitive(self, pe: QStyle.PrimitiveElement, opt: QStyleOption) -> None: ... + def style(self) -> QStyle: ... + @typing.overload + def begin(self, w: QWidget) -> bool: ... + @typing.overload + def begin(self, pd: QtGui.QPaintDevice, w: QWidget) -> bool: ... + + +class QSystemTrayIcon(QtCore.QObject): + + class MessageIcon(int): ... + NoIcon = ... # type: 'QSystemTrayIcon.MessageIcon' + Information = ... # type: 'QSystemTrayIcon.MessageIcon' + Warning = ... # type: 'QSystemTrayIcon.MessageIcon' + Critical = ... # type: 'QSystemTrayIcon.MessageIcon' + + class ActivationReason(int): ... + Unknown = ... # type: 'QSystemTrayIcon.ActivationReason' + Context = ... # type: 'QSystemTrayIcon.ActivationReason' + DoubleClick = ... # type: 'QSystemTrayIcon.ActivationReason' + Trigger = ... # type: 'QSystemTrayIcon.ActivationReason' + MiddleClick = ... # type: 'QSystemTrayIcon.ActivationReason' + + @typing.overload + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, icon: QtGui.QIcon, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def event(self, event: QtCore.QEvent) -> bool: ... + def messageClicked(self) -> None: ... + def activated(self, reason: 'QSystemTrayIcon.ActivationReason') -> None: ... + def show(self) -> None: ... + def setVisible(self, visible: bool) -> None: ... + def hide(self) -> None: ... + def isVisible(self) -> bool: ... + @typing.overload + def showMessage(self, title: str, msg: str, icon: 'QSystemTrayIcon.MessageIcon' = ..., msecs: int = ...) -> None: ... + @typing.overload + def showMessage(self, title: str, msg: str, icon: QtGui.QIcon, msecs: int = ...) -> None: ... + @staticmethod + def supportsMessages() -> bool: ... + @staticmethod + def isSystemTrayAvailable() -> bool: ... + def setToolTip(self, tip: str) -> None: ... + def toolTip(self) -> str: ... + def setIcon(self, icon: QtGui.QIcon) -> None: ... + def icon(self) -> QtGui.QIcon: ... + def geometry(self) -> QtCore.QRect: ... + def contextMenu(self) -> QMenu: ... + def setContextMenu(self, menu: QMenu) -> None: ... + + +class QTabBar(QWidget): + + class SelectionBehavior(int): ... + SelectLeftTab = ... # type: 'QTabBar.SelectionBehavior' + SelectRightTab = ... # type: 'QTabBar.SelectionBehavior' + SelectPreviousTab = ... # type: 'QTabBar.SelectionBehavior' + + class ButtonPosition(int): ... + LeftSide = ... # type: 'QTabBar.ButtonPosition' + RightSide = ... # type: 'QTabBar.ButtonPosition' + + class Shape(int): ... + RoundedNorth = ... # type: 'QTabBar.Shape' + RoundedSouth = ... # type: 'QTabBar.Shape' + RoundedWest = ... # type: 'QTabBar.Shape' + RoundedEast = ... # type: 'QTabBar.Shape' + TriangularNorth = ... # type: 'QTabBar.Shape' + TriangularSouth = ... # type: 'QTabBar.Shape' + TriangularWest = ... # type: 'QTabBar.Shape' + TriangularEast = ... # type: 'QTabBar.Shape' + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def setAccessibleTabName(self, index: int, name: str) -> None: ... + def accessibleTabName(self, index: int) -> str: ... + def timerEvent(self, event: QtCore.QTimerEvent) -> None: ... + def setChangeCurrentOnDrag(self, change: bool) -> None: ... + def changeCurrentOnDrag(self) -> bool: ... + def setAutoHide(self, hide: bool) -> None: ... + def autoHide(self) -> bool: ... + def tabBarDoubleClicked(self, index: int) -> None: ... + def tabBarClicked(self, index: int) -> None: ... + def minimumTabSizeHint(self, index: int) -> QtCore.QSize: ... + def wheelEvent(self, event: QtGui.QWheelEvent) -> None: ... + def hideEvent(self, a0: QtGui.QHideEvent) -> None: ... + def tabMoved(self, from_: int, to: int) -> None: ... + def tabCloseRequested(self, index: int) -> None: ... + def setDocumentMode(self, set: bool) -> None: ... + def documentMode(self) -> bool: ... + def setMovable(self, movable: bool) -> None: ... + def isMovable(self) -> bool: ... + def setExpanding(self, enabled: bool) -> None: ... + def expanding(self) -> bool: ... + def setSelectionBehaviorOnRemove(self, behavior: 'QTabBar.SelectionBehavior') -> None: ... + def selectionBehaviorOnRemove(self) -> 'QTabBar.SelectionBehavior': ... + def tabButton(self, index: int, position: 'QTabBar.ButtonPosition') -> QWidget: ... + def setTabButton(self, index: int, position: 'QTabBar.ButtonPosition', widget: QWidget) -> None: ... + def setTabsClosable(self, closable: bool) -> None: ... + def tabsClosable(self) -> bool: ... + def moveTab(self, from_: int, to: int) -> None: ... + def changeEvent(self, a0: QtCore.QEvent) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def tabLayoutChange(self) -> None: ... + def tabRemoved(self, index: int) -> None: ... + def tabInserted(self, index: int) -> None: ... + def tabSizeHint(self, index: int) -> QtCore.QSize: ... + def initStyleOption(self, option: QStyleOptionTab, tabIndex: int) -> None: ... + def currentChanged(self, index: int) -> None: ... + def setCurrentIndex(self, index: int) -> None: ... + def usesScrollButtons(self) -> bool: ... + def setUsesScrollButtons(self, useButtons: bool) -> None: ... + def setElideMode(self, a0: QtCore.Qt.TextElideMode) -> None: ... + def elideMode(self) -> QtCore.Qt.TextElideMode: ... + def setIconSize(self, size: QtCore.QSize) -> None: ... + def iconSize(self) -> QtCore.QSize: ... + def drawBase(self) -> bool: ... + def setDrawBase(self, drawTheBase: bool) -> None: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def currentIndex(self) -> int: ... + def tabRect(self, index: int) -> QtCore.QRect: ... + def tabAt(self, pos: QtCore.QPoint) -> int: ... + def tabData(self, index: int) -> typing.Any: ... + def setTabData(self, index: int, data: typing.Any) -> None: ... + def tabWhatsThis(self, index: int) -> str: ... + def setTabWhatsThis(self, index: int, text: str) -> None: ... + def tabToolTip(self, index: int) -> str: ... + def setTabToolTip(self, index: int, tip: str) -> None: ... + def setTabIcon(self, index: int, icon: QtGui.QIcon) -> None: ... + def tabIcon(self, index: int) -> QtGui.QIcon: ... + def setTabTextColor(self, index: int, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def tabTextColor(self, index: int) -> QtGui.QColor: ... + def setTabText(self, index: int, text: str) -> None: ... + def tabText(self, index: int) -> str: ... + def setTabEnabled(self, index: int, a1: bool) -> None: ... + def isTabEnabled(self, index: int) -> bool: ... + def removeTab(self, index: int) -> None: ... + @typing.overload + def insertTab(self, index: int, text: str) -> int: ... + @typing.overload + def insertTab(self, index: int, icon: QtGui.QIcon, text: str) -> int: ... + @typing.overload + def addTab(self, text: str) -> int: ... + @typing.overload + def addTab(self, icon: QtGui.QIcon, text: str) -> int: ... + def setShape(self, shape: 'QTabBar.Shape') -> None: ... + def shape(self) -> 'QTabBar.Shape': ... + + +class QTableView(QAbstractItemView): + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def currentChanged(self, current: QtCore.QModelIndex, previous: QtCore.QModelIndex) -> None: ... + def selectionChanged(self, selected: QtCore.QItemSelection, deselected: QtCore.QItemSelection) -> None: ... + def clearSpans(self) -> None: ... + def isCornerButtonEnabled(self) -> bool: ... + def setCornerButtonEnabled(self, enable: bool) -> None: ... + def wordWrap(self) -> bool: ... + def setWordWrap(self, on: bool) -> None: ... + def sortByColumn(self, column: int, order: QtCore.Qt.SortOrder) -> None: ... + def columnSpan(self, row: int, column: int) -> int: ... + def rowSpan(self, row: int, column: int) -> int: ... + def setSpan(self, row: int, column: int, rowSpan: int, columnSpan: int) -> None: ... + def isSortingEnabled(self) -> bool: ... + def setSortingEnabled(self, enable: bool) -> None: ... + def viewportSizeHint(self) -> QtCore.QSize: ... + def isIndexHidden(self, index: QtCore.QModelIndex) -> bool: ... + def horizontalScrollbarAction(self, action: int) -> None: ... + def verticalScrollbarAction(self, action: int) -> None: ... + def sizeHintForColumn(self, column: int) -> int: ... + def sizeHintForRow(self, row: int) -> int: ... + def updateGeometries(self) -> None: ... + def selectedIndexes(self) -> typing.List[QtCore.QModelIndex]: ... + def visualRegionForSelection(self, selection: QtCore.QItemSelection) -> QtGui.QRegion: ... + def setSelection(self, rect: QtCore.QRect, command: typing.Union[QtCore.QItemSelectionModel.SelectionFlags, QtCore.QItemSelectionModel.SelectionFlag]) -> None: ... + def moveCursor(self, cursorAction: QAbstractItemView.CursorAction, modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier]) -> QtCore.QModelIndex: ... + def verticalOffset(self) -> int: ... + def horizontalOffset(self) -> int: ... + def timerEvent(self, event: QtCore.QTimerEvent) -> None: ... + def paintEvent(self, e: QtGui.QPaintEvent) -> None: ... + def viewOptions(self) -> QStyleOptionViewItem: ... + def scrollContentsBy(self, dx: int, dy: int) -> None: ... + def columnCountChanged(self, oldCount: int, newCount: int) -> None: ... + def rowCountChanged(self, oldCount: int, newCount: int) -> None: ... + def columnResized(self, column: int, oldWidth: int, newWidth: int) -> None: ... + def rowResized(self, row: int, oldHeight: int, newHeight: int) -> None: ... + def columnMoved(self, column: int, oldIndex: int, newIndex: int) -> None: ... + def rowMoved(self, row: int, oldIndex: int, newIndex: int) -> None: ... + def resizeColumnsToContents(self) -> None: ... + def resizeColumnToContents(self, column: int) -> None: ... + def resizeRowsToContents(self) -> None: ... + def resizeRowToContents(self, row: int) -> None: ... + def showColumn(self, column: int) -> None: ... + def showRow(self, row: int) -> None: ... + def hideColumn(self, column: int) -> None: ... + def hideRow(self, row: int) -> None: ... + def selectColumn(self, column: int) -> None: ... + def selectRow(self, row: int) -> None: ... + def indexAt(self, p: QtCore.QPoint) -> QtCore.QModelIndex: ... + def scrollTo(self, index: QtCore.QModelIndex, hint: QAbstractItemView.ScrollHint = ...) -> None: ... + def visualRect(self, index: QtCore.QModelIndex) -> QtCore.QRect: ... + def setGridStyle(self, style: QtCore.Qt.PenStyle) -> None: ... + def gridStyle(self) -> QtCore.Qt.PenStyle: ... + def setShowGrid(self, show: bool) -> None: ... + def showGrid(self) -> bool: ... + def setColumnHidden(self, column: int, hide: bool) -> None: ... + def isColumnHidden(self, column: int) -> bool: ... + def setRowHidden(self, row: int, hide: bool) -> None: ... + def isRowHidden(self, row: int) -> bool: ... + def columnAt(self, x: int) -> int: ... + def columnWidth(self, column: int) -> int: ... + def setColumnWidth(self, column: int, width: int) -> None: ... + def columnViewportPosition(self, column: int) -> int: ... + def rowAt(self, y: int) -> int: ... + def rowHeight(self, row: int) -> int: ... + def setRowHeight(self, row: int, height: int) -> None: ... + def rowViewportPosition(self, row: int) -> int: ... + def setVerticalHeader(self, header: QHeaderView) -> None: ... + def setHorizontalHeader(self, header: QHeaderView) -> None: ... + def verticalHeader(self) -> QHeaderView: ... + def horizontalHeader(self) -> QHeaderView: ... + def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel) -> None: ... + def setRootIndex(self, index: QtCore.QModelIndex) -> None: ... + def setModel(self, model: QtCore.QAbstractItemModel) -> None: ... + + +class QTableWidgetSelectionRange(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, top: int, left: int, bottom: int, right: int) -> None: ... + @typing.overload + def __init__(self, other: 'QTableWidgetSelectionRange') -> None: ... + + def columnCount(self) -> int: ... + def rowCount(self) -> int: ... + def rightColumn(self) -> int: ... + def leftColumn(self) -> int: ... + def bottomRow(self) -> int: ... + def topRow(self) -> int: ... + + +class QTableWidgetItem(sip.wrapper): + + class ItemType(int): ... + Type = ... # type: 'QTableWidgetItem.ItemType' + UserType = ... # type: 'QTableWidgetItem.ItemType' + + @typing.overload + def __init__(self, type: int = ...) -> None: ... + @typing.overload + def __init__(self, text: str, type: int = ...) -> None: ... + @typing.overload + def __init__(self, icon: QtGui.QIcon, text: str, type: int = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QTableWidgetItem') -> None: ... + + def isSelected(self) -> bool: ... + def setSelected(self, aselect: bool) -> None: ... + def column(self) -> int: ... + def row(self) -> int: ... + def setForeground(self, brush: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def foreground(self) -> QtGui.QBrush: ... + def setBackground(self, brush: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def background(self) -> QtGui.QBrush: ... + def setSizeHint(self, size: QtCore.QSize) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + def setFont(self, afont: QtGui.QFont) -> None: ... + def setWhatsThis(self, awhatsThis: str) -> None: ... + def setToolTip(self, atoolTip: str) -> None: ... + def setStatusTip(self, astatusTip: str) -> None: ... + def setIcon(self, aicon: QtGui.QIcon) -> None: ... + def setText(self, atext: str) -> None: ... + def setFlags(self, aflags: typing.Union[QtCore.Qt.ItemFlags, QtCore.Qt.ItemFlag]) -> None: ... + def type(self) -> int: ... + def write(self, out: QtCore.QDataStream) -> None: ... + def read(self, in_: QtCore.QDataStream) -> None: ... + def setData(self, role: int, value: typing.Any) -> None: ... + def data(self, role: int) -> typing.Any: ... + def setCheckState(self, state: QtCore.Qt.CheckState) -> None: ... + def checkState(self) -> QtCore.Qt.CheckState: ... + def setTextAlignment(self, alignment: int) -> None: ... + def textAlignment(self) -> int: ... + def font(self) -> QtGui.QFont: ... + def whatsThis(self) -> str: ... + def toolTip(self) -> str: ... + def statusTip(self) -> str: ... + def icon(self) -> QtGui.QIcon: ... + def text(self) -> str: ... + def flags(self) -> QtCore.Qt.ItemFlags: ... + def tableWidget(self) -> 'QTableWidget': ... + def clone(self) -> 'QTableWidgetItem': ... + + +class QTableWidget(QTableView): + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, rows: int, columns: int, parent: typing.Optional[QWidget] = ...) -> None: ... + + def isPersistentEditorOpen(self, item: QTableWidgetItem) -> bool: ... + def dropEvent(self, event: QtGui.QDropEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def itemFromIndex(self, index: QtCore.QModelIndex) -> QTableWidgetItem: ... + def indexFromItem(self, item: QTableWidgetItem) -> QtCore.QModelIndex: ... + def items(self, data: QtCore.QMimeData) -> typing.List[QTableWidgetItem]: ... + def supportedDropActions(self) -> QtCore.Qt.DropActions: ... + def dropMimeData(self, row: int, column: int, data: QtCore.QMimeData, action: QtCore.Qt.DropAction) -> bool: ... + def mimeData(self, items: typing.Iterable[QTableWidgetItem]) -> QtCore.QMimeData: ... + def mimeTypes(self) -> typing.List[str]: ... + def currentCellChanged(self, currentRow: int, currentColumn: int, previousRow: int, previousColumn: int) -> None: ... + def cellChanged(self, row: int, column: int) -> None: ... + def cellEntered(self, row: int, column: int) -> None: ... + def cellActivated(self, row: int, column: int) -> None: ... + def cellDoubleClicked(self, row: int, column: int) -> None: ... + def cellClicked(self, row: int, column: int) -> None: ... + def cellPressed(self, row: int, column: int) -> None: ... + def itemSelectionChanged(self) -> None: ... + def currentItemChanged(self, current: QTableWidgetItem, previous: QTableWidgetItem) -> None: ... + def itemChanged(self, item: QTableWidgetItem) -> None: ... + def itemEntered(self, item: QTableWidgetItem) -> None: ... + def itemActivated(self, item: QTableWidgetItem) -> None: ... + def itemDoubleClicked(self, item: QTableWidgetItem) -> None: ... + def itemClicked(self, item: QTableWidgetItem) -> None: ... + def itemPressed(self, item: QTableWidgetItem) -> None: ... + def clearContents(self) -> None: ... + def clear(self) -> None: ... + def removeColumn(self, column: int) -> None: ... + def removeRow(self, row: int) -> None: ... + def insertColumn(self, column: int) -> None: ... + def insertRow(self, row: int) -> None: ... + def scrollToItem(self, item: QTableWidgetItem, hint: QAbstractItemView.ScrollHint = ...) -> None: ... + def setItemPrototype(self, item: QTableWidgetItem) -> None: ... + def itemPrototype(self) -> QTableWidgetItem: ... + def visualItemRect(self, item: QTableWidgetItem) -> QtCore.QRect: ... + @typing.overload + def itemAt(self, p: QtCore.QPoint) -> QTableWidgetItem: ... + @typing.overload + def itemAt(self, ax: int, ay: int) -> QTableWidgetItem: ... + def visualColumn(self, logicalColumn: int) -> int: ... + def visualRow(self, logicalRow: int) -> int: ... + def findItems(self, text: str, flags: typing.Union[QtCore.Qt.MatchFlags, QtCore.Qt.MatchFlag]) -> typing.List[QTableWidgetItem]: ... + def selectedItems(self) -> typing.List[QTableWidgetItem]: ... + def selectedRanges(self) -> typing.List[QTableWidgetSelectionRange]: ... + def setRangeSelected(self, range: QTableWidgetSelectionRange, select: bool) -> None: ... + def removeCellWidget(self, arow: int, acolumn: int) -> None: ... + def setCellWidget(self, row: int, column: int, widget: QWidget) -> None: ... + def cellWidget(self, row: int, column: int) -> QWidget: ... + def closePersistentEditor(self, item: QTableWidgetItem) -> None: ... + def openPersistentEditor(self, item: QTableWidgetItem) -> None: ... + def editItem(self, item: QTableWidgetItem) -> None: ... + def isSortingEnabled(self) -> bool: ... + def setSortingEnabled(self, enable: bool) -> None: ... + def sortItems(self, column: int, order: QtCore.Qt.SortOrder = ...) -> None: ... + @typing.overload + def setCurrentCell(self, row: int, column: int) -> None: ... + @typing.overload + def setCurrentCell(self, row: int, column: int, command: typing.Union[QtCore.QItemSelectionModel.SelectionFlags, QtCore.QItemSelectionModel.SelectionFlag]) -> None: ... + @typing.overload + def setCurrentItem(self, item: QTableWidgetItem) -> None: ... + @typing.overload + def setCurrentItem(self, item: QTableWidgetItem, command: typing.Union[QtCore.QItemSelectionModel.SelectionFlags, QtCore.QItemSelectionModel.SelectionFlag]) -> None: ... + def currentItem(self) -> QTableWidgetItem: ... + def currentColumn(self) -> int: ... + def currentRow(self) -> int: ... + def setHorizontalHeaderLabels(self, labels: typing.Iterable[str]) -> None: ... + def setVerticalHeaderLabels(self, labels: typing.Iterable[str]) -> None: ... + def takeHorizontalHeaderItem(self, column: int) -> QTableWidgetItem: ... + def setHorizontalHeaderItem(self, column: int, item: QTableWidgetItem) -> None: ... + def horizontalHeaderItem(self, column: int) -> QTableWidgetItem: ... + def takeVerticalHeaderItem(self, row: int) -> QTableWidgetItem: ... + def setVerticalHeaderItem(self, row: int, item: QTableWidgetItem) -> None: ... + def verticalHeaderItem(self, row: int) -> QTableWidgetItem: ... + def takeItem(self, row: int, column: int) -> QTableWidgetItem: ... + def setItem(self, row: int, column: int, item: QTableWidgetItem) -> None: ... + def item(self, row: int, column: int) -> QTableWidgetItem: ... + def column(self, item: QTableWidgetItem) -> int: ... + def row(self, item: QTableWidgetItem) -> int: ... + def columnCount(self) -> int: ... + def setColumnCount(self, columns: int) -> None: ... + def rowCount(self) -> int: ... + def setRowCount(self, rows: int) -> None: ... + + +class QTabWidget(QWidget): + + class TabShape(int): ... + Rounded = ... # type: 'QTabWidget.TabShape' + Triangular = ... # type: 'QTabWidget.TabShape' + + class TabPosition(int): ... + North = ... # type: 'QTabWidget.TabPosition' + South = ... # type: 'QTabWidget.TabPosition' + West = ... # type: 'QTabWidget.TabPosition' + East = ... # type: 'QTabWidget.TabPosition' + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def setTabBarAutoHide(self, enabled: bool) -> None: ... + def tabBarAutoHide(self) -> bool: ... + def tabBarDoubleClicked(self, index: int) -> None: ... + def tabBarClicked(self, index: int) -> None: ... + def hasHeightForWidth(self) -> bool: ... + def heightForWidth(self, width: int) -> int: ... + def tabCloseRequested(self, index: int) -> None: ... + def setDocumentMode(self, set: bool) -> None: ... + def documentMode(self) -> bool: ... + def setMovable(self, movable: bool) -> None: ... + def isMovable(self) -> bool: ... + def setTabsClosable(self, closeable: bool) -> None: ... + def tabsClosable(self) -> bool: ... + def setUsesScrollButtons(self, useButtons: bool) -> None: ... + def usesScrollButtons(self) -> bool: ... + def setIconSize(self, size: QtCore.QSize) -> None: ... + def iconSize(self) -> QtCore.QSize: ... + def setElideMode(self, a0: QtCore.Qt.TextElideMode) -> None: ... + def elideMode(self) -> QtCore.Qt.TextElideMode: ... + def changeEvent(self, a0: QtCore.QEvent) -> None: ... + def tabBar(self) -> QTabBar: ... + def setTabBar(self, a0: QTabBar) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent) -> None: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def tabRemoved(self, index: int) -> None: ... + def tabInserted(self, index: int) -> None: ... + def initStyleOption(self, option: QStyleOptionTabWidgetFrame) -> None: ... + def currentChanged(self, index: int) -> None: ... + def setCurrentWidget(self, widget: QWidget) -> None: ... + def setCurrentIndex(self, index: int) -> None: ... + def cornerWidget(self, corner: QtCore.Qt.Corner = ...) -> QWidget: ... + def setCornerWidget(self, widget: QWidget, corner: QtCore.Qt.Corner = ...) -> None: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + def setTabShape(self, s: 'QTabWidget.TabShape') -> None: ... + def tabShape(self) -> 'QTabWidget.TabShape': ... + def setTabPosition(self, a0: 'QTabWidget.TabPosition') -> None: ... + def tabPosition(self) -> 'QTabWidget.TabPosition': ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def indexOf(self, widget: QWidget) -> int: ... + def widget(self, index: int) -> QWidget: ... + def currentWidget(self) -> QWidget: ... + def currentIndex(self) -> int: ... + def tabWhatsThis(self, index: int) -> str: ... + def setTabWhatsThis(self, index: int, text: str) -> None: ... + def tabToolTip(self, index: int) -> str: ... + def setTabToolTip(self, index: int, tip: str) -> None: ... + def setTabIcon(self, index: int, icon: QtGui.QIcon) -> None: ... + def tabIcon(self, index: int) -> QtGui.QIcon: ... + def setTabText(self, index: int, a1: str) -> None: ... + def tabText(self, index: int) -> str: ... + def setTabEnabled(self, index: int, a1: bool) -> None: ... + def isTabEnabled(self, index: int) -> bool: ... + def removeTab(self, index: int) -> None: ... + @typing.overload + def insertTab(self, index: int, widget: QWidget, a2: str) -> int: ... + @typing.overload + def insertTab(self, index: int, widget: QWidget, icon: QtGui.QIcon, label: str) -> int: ... + @typing.overload + def addTab(self, widget: QWidget, a1: str) -> int: ... + @typing.overload + def addTab(self, widget: QWidget, icon: QtGui.QIcon, label: str) -> int: ... + def clear(self) -> None: ... + + +class QTextEdit(QAbstractScrollArea): + + class AutoFormattingFlag(int): ... + AutoNone = ... # type: 'QTextEdit.AutoFormattingFlag' + AutoBulletList = ... # type: 'QTextEdit.AutoFormattingFlag' + AutoAll = ... # type: 'QTextEdit.AutoFormattingFlag' + + class LineWrapMode(int): ... + NoWrap = ... # type: 'QTextEdit.LineWrapMode' + WidgetWidth = ... # type: 'QTextEdit.LineWrapMode' + FixedPixelWidth = ... # type: 'QTextEdit.LineWrapMode' + FixedColumnWidth = ... # type: 'QTextEdit.LineWrapMode' + + class ExtraSelection(sip.simplewrapper): + + cursor = ... # type: QtGui.QTextCursor + format = ... # type: QtGui.QTextCharFormat + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextEdit.ExtraSelection') -> None: ... + + class AutoFormatting(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QTextEdit.AutoFormatting', 'QTextEdit.AutoFormattingFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextEdit.AutoFormatting') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QTextEdit.AutoFormatting': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, text: str, parent: typing.Optional[QWidget] = ...) -> None: ... + + def setTabStopDistance(self, distance: float) -> None: ... + def tabStopDistance(self) -> float: ... + def placeholderText(self) -> str: ... + def setPlaceholderText(self, placeholderText: str) -> None: ... + def setTextBackgroundColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def textBackgroundColor(self) -> QtGui.QColor: ... + def scrollContentsBy(self, dx: int, dy: int) -> None: ... + @typing.overload + def inputMethodQuery(self, property: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + @typing.overload + def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery, argument: typing.Any) -> typing.Any: ... + def inputMethodEvent(self, a0: QtGui.QInputMethodEvent) -> None: ... + def insertFromMimeData(self, source: QtCore.QMimeData) -> None: ... + def canInsertFromMimeData(self, source: QtCore.QMimeData) -> bool: ... + def createMimeDataFromSelection(self) -> QtCore.QMimeData: ... + def wheelEvent(self, e: QtGui.QWheelEvent) -> None: ... + def changeEvent(self, e: QtCore.QEvent) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent) -> None: ... + def focusOutEvent(self, e: QtGui.QFocusEvent) -> None: ... + def focusInEvent(self, e: QtGui.QFocusEvent) -> None: ... + def dropEvent(self, e: QtGui.QDropEvent) -> None: ... + def dragMoveEvent(self, e: QtGui.QDragMoveEvent) -> None: ... + def dragLeaveEvent(self, e: QtGui.QDragLeaveEvent) -> None: ... + def dragEnterEvent(self, e: QtGui.QDragEnterEvent) -> None: ... + def contextMenuEvent(self, e: QtGui.QContextMenuEvent) -> None: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def mouseDoubleClickEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mouseReleaseEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mouseMoveEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, e: QtGui.QMouseEvent) -> None: ... + def paintEvent(self, e: QtGui.QPaintEvent) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... + def keyReleaseEvent(self, e: QtGui.QKeyEvent) -> None: ... + def keyPressEvent(self, e: QtGui.QKeyEvent) -> None: ... + def timerEvent(self, e: QtCore.QTimerEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def cursorPositionChanged(self) -> None: ... + def selectionChanged(self) -> None: ... + def copyAvailable(self, b: bool) -> None: ... + def currentCharFormatChanged(self, format: QtGui.QTextCharFormat) -> None: ... + def redoAvailable(self, b: bool) -> None: ... + def undoAvailable(self, b: bool) -> None: ... + def textChanged(self) -> None: ... + def zoomOut(self, range: int = ...) -> None: ... + def zoomIn(self, range: int = ...) -> None: ... + def undo(self) -> None: ... + def redo(self) -> None: ... + def scrollToAnchor(self, name: str) -> None: ... + def insertHtml(self, text: str) -> None: ... + def insertPlainText(self, text: str) -> None: ... + def selectAll(self) -> None: ... + def clear(self) -> None: ... + def paste(self) -> None: ... + def copy(self) -> None: ... + def cut(self) -> None: ... + def setHtml(self, text: str) -> None: ... + def setPlainText(self, text: str) -> None: ... + def setAlignment(self, a: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... + def setCurrentFont(self, f: QtGui.QFont) -> None: ... + def setTextColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def setText(self, text: str) -> None: ... + def setFontItalic(self, b: bool) -> None: ... + def setFontUnderline(self, b: bool) -> None: ... + def setFontWeight(self, w: int) -> None: ... + def setFontFamily(self, fontFamily: str) -> None: ... + def setFontPointSize(self, s: float) -> None: ... + def print(self, printer: QtGui.QPagedPaintDevice) -> None: ... + def print_(self, printer: QtGui.QPagedPaintDevice) -> None: ... + def moveCursor(self, operation: QtGui.QTextCursor.MoveOperation, mode: QtGui.QTextCursor.MoveMode = ...) -> None: ... + def canPaste(self) -> bool: ... + def extraSelections(self) -> typing.List['QTextEdit.ExtraSelection']: ... + def setExtraSelections(self, selections: typing.Iterable['QTextEdit.ExtraSelection']) -> None: ... + def cursorWidth(self) -> int: ... + def setCursorWidth(self, width: int) -> None: ... + def textInteractionFlags(self) -> QtCore.Qt.TextInteractionFlags: ... + def setTextInteractionFlags(self, flags: typing.Union[QtCore.Qt.TextInteractionFlags, QtCore.Qt.TextInteractionFlag]) -> None: ... + def setAcceptRichText(self, accept: bool) -> None: ... + def acceptRichText(self) -> bool: ... + def setTabStopWidth(self, width: int) -> None: ... + def tabStopWidth(self) -> int: ... + def setOverwriteMode(self, overwrite: bool) -> None: ... + def overwriteMode(self) -> bool: ... + def anchorAt(self, pos: QtCore.QPoint) -> str: ... + @typing.overload + def cursorRect(self, cursor: QtGui.QTextCursor) -> QtCore.QRect: ... + @typing.overload + def cursorRect(self) -> QtCore.QRect: ... + def cursorForPosition(self, pos: QtCore.QPoint) -> QtGui.QTextCursor: ... + @typing.overload + def createStandardContextMenu(self) -> QMenu: ... + @typing.overload + def createStandardContextMenu(self, position: QtCore.QPoint) -> QMenu: ... + def loadResource(self, type: int, name: QtCore.QUrl) -> typing.Any: ... + def ensureCursorVisible(self) -> None: ... + def append(self, text: str) -> None: ... + def toHtml(self) -> str: ... + def toPlainText(self) -> str: ... + @typing.overload + def find(self, exp: str, options: typing.Union[QtGui.QTextDocument.FindFlags, QtGui.QTextDocument.FindFlag] = ...) -> bool: ... + @typing.overload + def find(self, exp: QtCore.QRegExp, options: typing.Union[QtGui.QTextDocument.FindFlags, QtGui.QTextDocument.FindFlag] = ...) -> bool: ... + @typing.overload + def find(self, exp: QtCore.QRegularExpression, options: typing.Union[QtGui.QTextDocument.FindFlags, QtGui.QTextDocument.FindFlag] = ...) -> bool: ... + def setWordWrapMode(self, policy: QtGui.QTextOption.WrapMode) -> None: ... + def wordWrapMode(self) -> QtGui.QTextOption.WrapMode: ... + def setLineWrapColumnOrWidth(self, w: int) -> None: ... + def lineWrapColumnOrWidth(self) -> int: ... + def setLineWrapMode(self, mode: 'QTextEdit.LineWrapMode') -> None: ... + def lineWrapMode(self) -> 'QTextEdit.LineWrapMode': ... + def setUndoRedoEnabled(self, enable: bool) -> None: ... + def isUndoRedoEnabled(self) -> bool: ... + def documentTitle(self) -> str: ... + def setDocumentTitle(self, title: str) -> None: ... + def setTabChangesFocus(self, b: bool) -> None: ... + def tabChangesFocus(self) -> bool: ... + def setAutoFormatting(self, features: typing.Union['QTextEdit.AutoFormatting', 'QTextEdit.AutoFormattingFlag']) -> None: ... + def autoFormatting(self) -> 'QTextEdit.AutoFormatting': ... + def currentCharFormat(self) -> QtGui.QTextCharFormat: ... + def setCurrentCharFormat(self, format: QtGui.QTextCharFormat) -> None: ... + def mergeCurrentCharFormat(self, modifier: QtGui.QTextCharFormat) -> None: ... + def alignment(self) -> QtCore.Qt.Alignment: ... + def currentFont(self) -> QtGui.QFont: ... + def textColor(self) -> QtGui.QColor: ... + def fontItalic(self) -> bool: ... + def fontUnderline(self) -> bool: ... + def fontWeight(self) -> int: ... + def fontFamily(self) -> str: ... + def fontPointSize(self) -> float: ... + def setReadOnly(self, ro: bool) -> None: ... + def isReadOnly(self) -> bool: ... + def textCursor(self) -> QtGui.QTextCursor: ... + def setTextCursor(self, cursor: QtGui.QTextCursor) -> None: ... + def document(self) -> QtGui.QTextDocument: ... + def setDocument(self, document: QtGui.QTextDocument) -> None: ... + + +class QTextBrowser(QTextEdit): + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def historyChanged(self) -> None: ... + def forwardHistoryCount(self) -> int: ... + def backwardHistoryCount(self) -> int: ... + def historyUrl(self, a0: int) -> QtCore.QUrl: ... + def historyTitle(self, a0: int) -> str: ... + def setOpenLinks(self, open: bool) -> None: ... + def openLinks(self) -> bool: ... + def setOpenExternalLinks(self, open: bool) -> None: ... + def openExternalLinks(self) -> bool: ... + def clearHistory(self) -> None: ... + def isForwardAvailable(self) -> bool: ... + def isBackwardAvailable(self) -> bool: ... + def paintEvent(self, e: QtGui.QPaintEvent) -> None: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def focusOutEvent(self, ev: QtGui.QFocusEvent) -> None: ... + def mouseReleaseEvent(self, ev: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, ev: QtGui.QMouseEvent) -> None: ... + def mouseMoveEvent(self, ev: QtGui.QMouseEvent) -> None: ... + def keyPressEvent(self, ev: QtGui.QKeyEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def anchorClicked(self, a0: QtCore.QUrl) -> None: ... + @typing.overload + def highlighted(self, a0: QtCore.QUrl) -> None: ... + @typing.overload + def highlighted(self, a0: str) -> None: ... + def sourceChanged(self, a0: QtCore.QUrl) -> None: ... + def forwardAvailable(self, a0: bool) -> None: ... + def backwardAvailable(self, a0: bool) -> None: ... + def reload(self) -> None: ... + def home(self) -> None: ... + def forward(self) -> None: ... + def backward(self) -> None: ... + def setSource(self, name: QtCore.QUrl) -> None: ... + def loadResource(self, type: int, name: QtCore.QUrl) -> typing.Any: ... + def setSearchPaths(self, paths: typing.Iterable[str]) -> None: ... + def searchPaths(self) -> typing.List[str]: ... + def source(self) -> QtCore.QUrl: ... + + +class QToolBar(QWidget): + + @typing.overload + def __init__(self, title: str, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def isFloating(self) -> bool: ... + def setFloatable(self, floatable: bool) -> None: ... + def isFloatable(self) -> bool: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def paintEvent(self, event: QtGui.QPaintEvent) -> None: ... + def changeEvent(self, event: QtCore.QEvent) -> None: ... + def actionEvent(self, event: QtGui.QActionEvent) -> None: ... + def initStyleOption(self, option: QStyleOptionToolBar) -> None: ... + def visibilityChanged(self, visible: bool) -> None: ... + def topLevelChanged(self, topLevel: bool) -> None: ... + def toolButtonStyleChanged(self, toolButtonStyle: QtCore.Qt.ToolButtonStyle) -> None: ... + def iconSizeChanged(self, iconSize: QtCore.QSize) -> None: ... + def orientationChanged(self, orientation: QtCore.Qt.Orientation) -> None: ... + def allowedAreasChanged(self, allowedAreas: typing.Union[QtCore.Qt.ToolBarAreas, QtCore.Qt.ToolBarArea]) -> None: ... + def movableChanged(self, movable: bool) -> None: ... + def actionTriggered(self, action: QAction) -> None: ... + def setToolButtonStyle(self, toolButtonStyle: QtCore.Qt.ToolButtonStyle) -> None: ... + def setIconSize(self, iconSize: QtCore.QSize) -> None: ... + def widgetForAction(self, action: QAction) -> QWidget: ... + def toolButtonStyle(self) -> QtCore.Qt.ToolButtonStyle: ... + def iconSize(self) -> QtCore.QSize: ... + def toggleViewAction(self) -> QAction: ... + @typing.overload + def actionAt(self, p: QtCore.QPoint) -> QAction: ... + @typing.overload + def actionAt(self, ax: int, ay: int) -> QAction: ... + def actionGeometry(self, action: QAction) -> QtCore.QRect: ... + def insertWidget(self, before: QAction, widget: QWidget) -> QAction: ... + def addWidget(self, widget: QWidget) -> QAction: ... + def insertSeparator(self, before: QAction) -> QAction: ... + def addSeparator(self) -> QAction: ... + @typing.overload + def addAction(self, action: QAction) -> None: ... + @typing.overload + def addAction(self, text: str) -> QAction: ... + @typing.overload + def addAction(self, icon: QtGui.QIcon, text: str) -> QAction: ... + @typing.overload + def addAction(self, text: str, slot: PYQT_SLOT) -> QAction: ... + @typing.overload + def addAction(self, icon: QtGui.QIcon, text: str, slot: PYQT_SLOT) -> QAction: ... + def clear(self) -> None: ... + def orientation(self) -> QtCore.Qt.Orientation: ... + def setOrientation(self, orientation: QtCore.Qt.Orientation) -> None: ... + def isAreaAllowed(self, area: QtCore.Qt.ToolBarArea) -> bool: ... + def allowedAreas(self) -> QtCore.Qt.ToolBarAreas: ... + def setAllowedAreas(self, areas: typing.Union[QtCore.Qt.ToolBarAreas, QtCore.Qt.ToolBarArea]) -> None: ... + def isMovable(self) -> bool: ... + def setMovable(self, movable: bool) -> None: ... + + +class QToolBox(QFrame): + + def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def changeEvent(self, a0: QtCore.QEvent) -> None: ... + def showEvent(self, e: QtGui.QShowEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def itemRemoved(self, index: int) -> None: ... + def itemInserted(self, index: int) -> None: ... + def currentChanged(self, index: int) -> None: ... + def setCurrentWidget(self, widget: QWidget) -> None: ... + def setCurrentIndex(self, index: int) -> None: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def indexOf(self, widget: QWidget) -> int: ... + def widget(self, index: int) -> QWidget: ... + def currentWidget(self) -> QWidget: ... + def currentIndex(self) -> int: ... + def itemToolTip(self, index: int) -> str: ... + def setItemToolTip(self, index: int, toolTip: str) -> None: ... + def itemIcon(self, index: int) -> QtGui.QIcon: ... + def setItemIcon(self, index: int, icon: QtGui.QIcon) -> None: ... + def itemText(self, index: int) -> str: ... + def setItemText(self, index: int, text: str) -> None: ... + def isItemEnabled(self, index: int) -> bool: ... + def setItemEnabled(self, index: int, enabled: bool) -> None: ... + def removeItem(self, index: int) -> None: ... + @typing.overload + def insertItem(self, index: int, item: QWidget, text: str) -> int: ... + @typing.overload + def insertItem(self, index: int, widget: QWidget, icon: QtGui.QIcon, text: str) -> int: ... + @typing.overload + def addItem(self, item: QWidget, text: str) -> int: ... + @typing.overload + def addItem(self, item: QWidget, iconSet: QtGui.QIcon, text: str) -> int: ... + + +class QToolButton(QAbstractButton): + + class ToolButtonPopupMode(int): ... + DelayedPopup = ... # type: 'QToolButton.ToolButtonPopupMode' + MenuButtonPopup = ... # type: 'QToolButton.ToolButtonPopupMode' + InstantPopup = ... # type: 'QToolButton.ToolButtonPopupMode' + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def hitButton(self, pos: QtCore.QPoint) -> bool: ... + def nextCheckState(self) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def changeEvent(self, a0: QtCore.QEvent) -> None: ... + def timerEvent(self, a0: QtCore.QTimerEvent) -> None: ... + def leaveEvent(self, a0: QtCore.QEvent) -> None: ... + def enterEvent(self, a0: QtCore.QEvent) -> None: ... + def actionEvent(self, a0: QtGui.QActionEvent) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def initStyleOption(self, option: QStyleOptionToolButton) -> None: ... + def triggered(self, a0: QAction) -> None: ... + def setDefaultAction(self, a0: QAction) -> None: ... + def setToolButtonStyle(self, style: QtCore.Qt.ToolButtonStyle) -> None: ... + def showMenu(self) -> None: ... + def autoRaise(self) -> bool: ... + def setAutoRaise(self, enable: bool) -> None: ... + def defaultAction(self) -> QAction: ... + def popupMode(self) -> 'QToolButton.ToolButtonPopupMode': ... + def setPopupMode(self, mode: 'QToolButton.ToolButtonPopupMode') -> None: ... + def menu(self) -> QMenu: ... + def setMenu(self, menu: QMenu) -> None: ... + def setArrowType(self, type: QtCore.Qt.ArrowType) -> None: ... + def arrowType(self) -> QtCore.Qt.ArrowType: ... + def toolButtonStyle(self) -> QtCore.Qt.ToolButtonStyle: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QToolTip(sip.simplewrapper): + + def __init__(self, a0: 'QToolTip') -> None: ... + + @staticmethod + def text() -> str: ... + @staticmethod + def isVisible() -> bool: ... + @staticmethod + def setFont(a0: QtGui.QFont) -> None: ... + @staticmethod + def font() -> QtGui.QFont: ... + @staticmethod + def setPalette(a0: QtGui.QPalette) -> None: ... + @staticmethod + def hideText() -> None: ... + @staticmethod + def palette() -> QtGui.QPalette: ... + @typing.overload + @staticmethod + def showText(pos: QtCore.QPoint, text: str, widget: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + @staticmethod + def showText(pos: QtCore.QPoint, text: str, w: QWidget, rect: QtCore.QRect) -> None: ... + @typing.overload + @staticmethod + def showText(pos: QtCore.QPoint, text: str, w: QWidget, rect: QtCore.QRect, msecShowTime: int) -> None: ... + + +class QTreeView(QAbstractItemView): + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def expandRecursively(self, index: QtCore.QModelIndex, depth: int = ...) -> None: ... + def resetIndentation(self) -> None: ... + def viewportSizeHint(self) -> QtCore.QSize: ... + def treePosition(self) -> int: ... + def setTreePosition(self, logicalIndex: int) -> None: ... + def setHeaderHidden(self, hide: bool) -> None: ... + def isHeaderHidden(self) -> bool: ... + def setExpandsOnDoubleClick(self, enable: bool) -> None: ... + def expandsOnDoubleClick(self) -> bool: ... + def currentChanged(self, current: QtCore.QModelIndex, previous: QtCore.QModelIndex) -> None: ... + def selectionChanged(self, selected: QtCore.QItemSelection, deselected: QtCore.QItemSelection) -> None: ... + def rowHeight(self, index: QtCore.QModelIndex) -> int: ... + def viewportEvent(self, event: QtCore.QEvent) -> bool: ... + def dragMoveEvent(self, event: QtGui.QDragMoveEvent) -> None: ... + def expandToDepth(self, depth: int) -> None: ... + def wordWrap(self) -> bool: ... + def setWordWrap(self, on: bool) -> None: ... + def setFirstColumnSpanned(self, row: int, parent: QtCore.QModelIndex, span: bool) -> None: ... + def isFirstColumnSpanned(self, row: int, parent: QtCore.QModelIndex) -> bool: ... + def setAutoExpandDelay(self, delay: int) -> None: ... + def autoExpandDelay(self) -> int: ... + def sortByColumn(self, column: int, order: QtCore.Qt.SortOrder) -> None: ... + def allColumnsShowFocus(self) -> bool: ... + def setAllColumnsShowFocus(self, enable: bool) -> None: ... + def isAnimated(self) -> bool: ... + def setAnimated(self, enable: bool) -> None: ... + def isSortingEnabled(self) -> bool: ... + def setSortingEnabled(self, enable: bool) -> None: ... + def setColumnWidth(self, column: int, width: int) -> None: ... + def isIndexHidden(self, index: QtCore.QModelIndex) -> bool: ... + def horizontalScrollbarAction(self, action: int) -> None: ... + def indexRowSizeHint(self, index: QtCore.QModelIndex) -> int: ... + def sizeHintForColumn(self, column: int) -> int: ... + def updateGeometries(self) -> None: ... + def keyPressEvent(self, event: QtGui.QKeyEvent) -> None: ... + def mouseDoubleClickEvent(self, e: QtGui.QMouseEvent) -> None: ... + def mouseMoveEvent(self, event: QtGui.QMouseEvent) -> None: ... + def mousePressEvent(self, e: QtGui.QMouseEvent) -> None: ... + def drawTree(self, painter: QtGui.QPainter, region: QtGui.QRegion) -> None: ... + def drawBranches(self, painter: QtGui.QPainter, rect: QtCore.QRect, index: QtCore.QModelIndex) -> None: ... + def drawRow(self, painter: QtGui.QPainter, options: QStyleOptionViewItem, index: QtCore.QModelIndex) -> None: ... + def mouseReleaseEvent(self, event: QtGui.QMouseEvent) -> None: ... + def timerEvent(self, event: QtCore.QTimerEvent) -> None: ... + def paintEvent(self, e: QtGui.QPaintEvent) -> None: ... + def selectedIndexes(self) -> typing.List[QtCore.QModelIndex]: ... + def visualRegionForSelection(self, selection: QtCore.QItemSelection) -> QtGui.QRegion: ... + def setSelection(self, rect: QtCore.QRect, command: typing.Union[QtCore.QItemSelectionModel.SelectionFlags, QtCore.QItemSelectionModel.SelectionFlag]) -> None: ... + def verticalOffset(self) -> int: ... + def horizontalOffset(self) -> int: ... + def moveCursor(self, cursorAction: QAbstractItemView.CursorAction, modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier]) -> QtCore.QModelIndex: ... + def rowsAboutToBeRemoved(self, parent: QtCore.QModelIndex, start: int, end: int) -> None: ... + def rowsInserted(self, parent: QtCore.QModelIndex, start: int, end: int) -> None: ... + def scrollContentsBy(self, dx: int, dy: int) -> None: ... + def rowsRemoved(self, parent: QtCore.QModelIndex, first: int, last: int) -> None: ... + def reexpand(self) -> None: ... + def columnMoved(self) -> None: ... + def columnCountChanged(self, oldCount: int, newCount: int) -> None: ... + def columnResized(self, column: int, oldSize: int, newSize: int) -> None: ... + def selectAll(self) -> None: ... + def resizeColumnToContents(self, column: int) -> None: ... + def collapseAll(self) -> None: ... + def collapse(self, index: QtCore.QModelIndex) -> None: ... + def expandAll(self) -> None: ... + def expand(self, index: QtCore.QModelIndex) -> None: ... + def showColumn(self, column: int) -> None: ... + def hideColumn(self, column: int) -> None: ... + def dataChanged(self, topLeft: QtCore.QModelIndex, bottomRight: QtCore.QModelIndex, roles: typing.Iterable[int] = ...) -> None: ... + def collapsed(self, index: QtCore.QModelIndex) -> None: ... + def expanded(self, index: QtCore.QModelIndex) -> None: ... + def reset(self) -> None: ... + def indexBelow(self, index: QtCore.QModelIndex) -> QtCore.QModelIndex: ... + def indexAbove(self, index: QtCore.QModelIndex) -> QtCore.QModelIndex: ... + def indexAt(self, p: QtCore.QPoint) -> QtCore.QModelIndex: ... + def scrollTo(self, index: QtCore.QModelIndex, hint: QAbstractItemView.ScrollHint = ...) -> None: ... + def visualRect(self, index: QtCore.QModelIndex) -> QtCore.QRect: ... + def keyboardSearch(self, search: str) -> None: ... + def setExpanded(self, index: QtCore.QModelIndex, expand: bool) -> None: ... + def isExpanded(self, index: QtCore.QModelIndex) -> bool: ... + def setRowHidden(self, row: int, parent: QtCore.QModelIndex, hide: bool) -> None: ... + def isRowHidden(self, row: int, parent: QtCore.QModelIndex) -> bool: ... + def setColumnHidden(self, column: int, hide: bool) -> None: ... + def isColumnHidden(self, column: int) -> bool: ... + def columnAt(self, x: int) -> int: ... + def columnWidth(self, column: int) -> int: ... + def columnViewportPosition(self, column: int) -> int: ... + def setItemsExpandable(self, enable: bool) -> None: ... + def itemsExpandable(self) -> bool: ... + def setUniformRowHeights(self, uniform: bool) -> None: ... + def uniformRowHeights(self) -> bool: ... + def setRootIsDecorated(self, show: bool) -> None: ... + def rootIsDecorated(self) -> bool: ... + def setIndentation(self, i: int) -> None: ... + def indentation(self) -> int: ... + def setHeader(self, header: QHeaderView) -> None: ... + def header(self) -> QHeaderView: ... + def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel) -> None: ... + def setRootIndex(self, index: QtCore.QModelIndex) -> None: ... + def setModel(self, model: QtCore.QAbstractItemModel) -> None: ... + + +class QTreeWidgetItem(sip.wrapper): + + class ChildIndicatorPolicy(int): ... + ShowIndicator = ... # type: 'QTreeWidgetItem.ChildIndicatorPolicy' + DontShowIndicator = ... # type: 'QTreeWidgetItem.ChildIndicatorPolicy' + DontShowIndicatorWhenChildless = ... # type: 'QTreeWidgetItem.ChildIndicatorPolicy' + + class ItemType(int): ... + Type = ... # type: 'QTreeWidgetItem.ItemType' + UserType = ... # type: 'QTreeWidgetItem.ItemType' + + @typing.overload + def __init__(self, type: int = ...) -> None: ... + @typing.overload + def __init__(self, strings: typing.Iterable[str], type: int = ...) -> None: ... + @typing.overload + def __init__(self, parent: 'QTreeWidget', type: int = ...) -> None: ... + @typing.overload + def __init__(self, parent: 'QTreeWidget', strings: typing.Iterable[str], type: int = ...) -> None: ... + @typing.overload + def __init__(self, parent: 'QTreeWidget', preceding: 'QTreeWidgetItem', type: int = ...) -> None: ... + @typing.overload + def __init__(self, parent: 'QTreeWidgetItem', type: int = ...) -> None: ... + @typing.overload + def __init__(self, parent: 'QTreeWidgetItem', strings: typing.Iterable[str], type: int = ...) -> None: ... + @typing.overload + def __init__(self, parent: 'QTreeWidgetItem', preceding: 'QTreeWidgetItem', type: int = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QTreeWidgetItem') -> None: ... + + def emitDataChanged(self) -> None: ... + def isDisabled(self) -> bool: ... + def setDisabled(self, disabled: bool) -> None: ... + def isFirstColumnSpanned(self) -> bool: ... + def setFirstColumnSpanned(self, aspan: bool) -> None: ... + def removeChild(self, child: 'QTreeWidgetItem') -> None: ... + def childIndicatorPolicy(self) -> 'QTreeWidgetItem.ChildIndicatorPolicy': ... + def setChildIndicatorPolicy(self, policy: 'QTreeWidgetItem.ChildIndicatorPolicy') -> None: ... + def isExpanded(self) -> bool: ... + def setExpanded(self, aexpand: bool) -> None: ... + def isHidden(self) -> bool: ... + def setHidden(self, ahide: bool) -> None: ... + def isSelected(self) -> bool: ... + def setSelected(self, aselect: bool) -> None: ... + def sortChildren(self, column: int, order: QtCore.Qt.SortOrder) -> None: ... + def setForeground(self, column: int, brush: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def foreground(self, column: int) -> QtGui.QBrush: ... + def setBackground(self, column: int, brush: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + def background(self, column: int) -> QtGui.QBrush: ... + def takeChildren(self) -> typing.List['QTreeWidgetItem']: ... + def insertChildren(self, index: int, children: typing.Iterable['QTreeWidgetItem']) -> None: ... + def addChildren(self, children: typing.Iterable['QTreeWidgetItem']) -> None: ... + def setSizeHint(self, column: int, size: QtCore.QSize) -> None: ... + def sizeHint(self, column: int) -> QtCore.QSize: ... + def indexOfChild(self, achild: 'QTreeWidgetItem') -> int: ... + def setFont(self, column: int, afont: QtGui.QFont) -> None: ... + def setWhatsThis(self, column: int, awhatsThis: str) -> None: ... + def setToolTip(self, column: int, atoolTip: str) -> None: ... + def setStatusTip(self, column: int, astatusTip: str) -> None: ... + def setIcon(self, column: int, aicon: QtGui.QIcon) -> None: ... + def setText(self, column: int, atext: str) -> None: ... + def setFlags(self, aflags: typing.Union[QtCore.Qt.ItemFlags, QtCore.Qt.ItemFlag]) -> None: ... + def type(self) -> int: ... + def takeChild(self, index: int) -> 'QTreeWidgetItem': ... + def insertChild(self, index: int, child: 'QTreeWidgetItem') -> None: ... + def addChild(self, child: 'QTreeWidgetItem') -> None: ... + def columnCount(self) -> int: ... + def childCount(self) -> int: ... + def child(self, index: int) -> 'QTreeWidgetItem': ... + def parent(self) -> 'QTreeWidgetItem': ... + def write(self, out: QtCore.QDataStream) -> None: ... + def read(self, in_: QtCore.QDataStream) -> None: ... + def setData(self, column: int, role: int, value: typing.Any) -> None: ... + def data(self, column: int, role: int) -> typing.Any: ... + def setCheckState(self, column: int, state: QtCore.Qt.CheckState) -> None: ... + def checkState(self, column: int) -> QtCore.Qt.CheckState: ... + def setTextAlignment(self, column: int, alignment: int) -> None: ... + def textAlignment(self, column: int) -> int: ... + def font(self, column: int) -> QtGui.QFont: ... + def whatsThis(self, column: int) -> str: ... + def toolTip(self, column: int) -> str: ... + def statusTip(self, column: int) -> str: ... + def icon(self, column: int) -> QtGui.QIcon: ... + def text(self, column: int) -> str: ... + def flags(self) -> QtCore.Qt.ItemFlags: ... + def treeWidget(self) -> 'QTreeWidget': ... + def clone(self) -> 'QTreeWidgetItem': ... + + +class QTreeWidget(QTreeView): + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def isPersistentEditorOpen(self, item: QTreeWidgetItem, column: int = ...) -> bool: ... + def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel) -> None: ... + def removeItemWidget(self, item: QTreeWidgetItem, column: int) -> None: ... + def itemBelow(self, item: QTreeWidgetItem) -> QTreeWidgetItem: ... + def itemAbove(self, item: QTreeWidgetItem) -> QTreeWidgetItem: ... + def setFirstItemColumnSpanned(self, item: QTreeWidgetItem, span: bool) -> None: ... + def isFirstItemColumnSpanned(self, item: QTreeWidgetItem) -> bool: ... + def setHeaderLabel(self, alabel: str) -> None: ... + def invisibleRootItem(self) -> QTreeWidgetItem: ... + def dropEvent(self, event: QtGui.QDropEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def itemFromIndex(self, index: QtCore.QModelIndex) -> QTreeWidgetItem: ... + def indexFromItem(self, item: QTreeWidgetItem, column: int = ...) -> QtCore.QModelIndex: ... + def supportedDropActions(self) -> QtCore.Qt.DropActions: ... + def dropMimeData(self, parent: QTreeWidgetItem, index: int, data: QtCore.QMimeData, action: QtCore.Qt.DropAction) -> bool: ... + def mimeData(self, items: typing.Iterable[QTreeWidgetItem]) -> QtCore.QMimeData: ... + def mimeTypes(self) -> typing.List[str]: ... + def itemSelectionChanged(self) -> None: ... + def currentItemChanged(self, current: QTreeWidgetItem, previous: QTreeWidgetItem) -> None: ... + def itemCollapsed(self, item: QTreeWidgetItem) -> None: ... + def itemExpanded(self, item: QTreeWidgetItem) -> None: ... + def itemChanged(self, item: QTreeWidgetItem, column: int) -> None: ... + def itemEntered(self, item: QTreeWidgetItem, column: int) -> None: ... + def itemActivated(self, item: QTreeWidgetItem, column: int) -> None: ... + def itemDoubleClicked(self, item: QTreeWidgetItem, column: int) -> None: ... + def itemClicked(self, item: QTreeWidgetItem, column: int) -> None: ... + def itemPressed(self, item: QTreeWidgetItem, column: int) -> None: ... + def clear(self) -> None: ... + def collapseItem(self, item: QTreeWidgetItem) -> None: ... + def expandItem(self, item: QTreeWidgetItem) -> None: ... + def scrollToItem(self, item: QTreeWidgetItem, hint: QAbstractItemView.ScrollHint = ...) -> None: ... + def findItems(self, text: str, flags: typing.Union[QtCore.Qt.MatchFlags, QtCore.Qt.MatchFlag], column: int = ...) -> typing.List[QTreeWidgetItem]: ... + def selectedItems(self) -> typing.List[QTreeWidgetItem]: ... + def setItemWidget(self, item: QTreeWidgetItem, column: int, widget: QWidget) -> None: ... + def itemWidget(self, item: QTreeWidgetItem, column: int) -> QWidget: ... + def closePersistentEditor(self, item: QTreeWidgetItem, column: int = ...) -> None: ... + def openPersistentEditor(self, item: QTreeWidgetItem, column: int = ...) -> None: ... + def editItem(self, item: QTreeWidgetItem, column: int = ...) -> None: ... + def sortItems(self, column: int, order: QtCore.Qt.SortOrder) -> None: ... + def sortColumn(self) -> int: ... + def visualItemRect(self, item: QTreeWidgetItem) -> QtCore.QRect: ... + @typing.overload + def itemAt(self, p: QtCore.QPoint) -> QTreeWidgetItem: ... + @typing.overload + def itemAt(self, ax: int, ay: int) -> QTreeWidgetItem: ... + @typing.overload + def setCurrentItem(self, item: QTreeWidgetItem) -> None: ... + @typing.overload + def setCurrentItem(self, item: QTreeWidgetItem, column: int) -> None: ... + @typing.overload + def setCurrentItem(self, item: QTreeWidgetItem, column: int, command: typing.Union[QtCore.QItemSelectionModel.SelectionFlags, QtCore.QItemSelectionModel.SelectionFlag]) -> None: ... + def currentColumn(self) -> int: ... + def currentItem(self) -> QTreeWidgetItem: ... + def setHeaderLabels(self, labels: typing.Iterable[str]) -> None: ... + def setHeaderItem(self, item: QTreeWidgetItem) -> None: ... + def headerItem(self) -> QTreeWidgetItem: ... + def addTopLevelItems(self, items: typing.Iterable[QTreeWidgetItem]) -> None: ... + def insertTopLevelItems(self, index: int, items: typing.Iterable[QTreeWidgetItem]) -> None: ... + def indexOfTopLevelItem(self, item: QTreeWidgetItem) -> int: ... + def takeTopLevelItem(self, index: int) -> QTreeWidgetItem: ... + def addTopLevelItem(self, item: QTreeWidgetItem) -> None: ... + def insertTopLevelItem(self, index: int, item: QTreeWidgetItem) -> None: ... + def topLevelItemCount(self) -> int: ... + def topLevelItem(self, index: int) -> QTreeWidgetItem: ... + def setColumnCount(self, columns: int) -> None: ... + def columnCount(self) -> int: ... + + +class QTreeWidgetItemIterator(sip.simplewrapper): + + class IteratorFlag(int): ... + All = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + Hidden = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + NotHidden = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + Selected = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + Unselected = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + Selectable = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + NotSelectable = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + DragEnabled = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + DragDisabled = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + DropEnabled = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + DropDisabled = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + HasChildren = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + NoChildren = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + Checked = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + NotChecked = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + Enabled = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + Disabled = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + Editable = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + NotEditable = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + UserFlag = ... # type: 'QTreeWidgetItemIterator.IteratorFlag' + + class IteratorFlags(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QTreeWidgetItemIterator.IteratorFlags', 'QTreeWidgetItemIterator.IteratorFlag']) -> None: ... + @typing.overload + def __init__(self, a0: 'QTreeWidgetItemIterator.IteratorFlags') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QTreeWidgetItemIterator.IteratorFlags': ... + def __int__(self) -> int: ... + + @typing.overload + def __init__(self, it: 'QTreeWidgetItemIterator') -> None: ... + @typing.overload + def __init__(self, widget: QTreeWidget, flags: 'QTreeWidgetItemIterator.IteratorFlags' = ...) -> None: ... + @typing.overload + def __init__(self, item: QTreeWidgetItem, flags: 'QTreeWidgetItemIterator.IteratorFlags' = ...) -> None: ... + + def value(self) -> QTreeWidgetItem: ... + + +class QUndoGroup(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def undoTextChanged(self, undoText: str) -> None: ... + def redoTextChanged(self, redoText: str) -> None: ... + def indexChanged(self, idx: int) -> None: ... + def cleanChanged(self, clean: bool) -> None: ... + def canUndoChanged(self, canUndo: bool) -> None: ... + def canRedoChanged(self, canRedo: bool) -> None: ... + def activeStackChanged(self, stack: 'QUndoStack') -> None: ... + def undo(self) -> None: ... + def setActiveStack(self, stack: 'QUndoStack') -> None: ... + def redo(self) -> None: ... + def isClean(self) -> bool: ... + def redoText(self) -> str: ... + def undoText(self) -> str: ... + def canRedo(self) -> bool: ... + def canUndo(self) -> bool: ... + def createUndoAction(self, parent: QtCore.QObject, prefix: str = ...) -> QAction: ... + def createRedoAction(self, parent: QtCore.QObject, prefix: str = ...) -> QAction: ... + def activeStack(self) -> 'QUndoStack': ... + def stacks(self) -> typing.List['QUndoStack']: ... + def removeStack(self, stack: 'QUndoStack') -> None: ... + def addStack(self, stack: 'QUndoStack') -> None: ... + + +class QUndoCommand(sip.wrapper): + + @typing.overload + def __init__(self, parent: typing.Optional['QUndoCommand'] = ...) -> None: ... + @typing.overload + def __init__(self, text: str, parent: typing.Optional['QUndoCommand'] = ...) -> None: ... + + def setObsolete(self, obsolete: bool) -> None: ... + def isObsolete(self) -> bool: ... + def actionText(self) -> str: ... + def child(self, index: int) -> 'QUndoCommand': ... + def childCount(self) -> int: ... + def undo(self) -> None: ... + def text(self) -> str: ... + def setText(self, text: str) -> None: ... + def redo(self) -> None: ... + def mergeWith(self, other: 'QUndoCommand') -> bool: ... + def id(self) -> int: ... + + +class QUndoStack(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def command(self, index: int) -> QUndoCommand: ... + def undoLimit(self) -> int: ... + def setUndoLimit(self, limit: int) -> None: ... + def undoTextChanged(self, undoText: str) -> None: ... + def redoTextChanged(self, redoText: str) -> None: ... + def indexChanged(self, idx: int) -> None: ... + def cleanChanged(self, clean: bool) -> None: ... + def canUndoChanged(self, canUndo: bool) -> None: ... + def canRedoChanged(self, canRedo: bool) -> None: ... + def resetClean(self) -> None: ... + def undo(self) -> None: ... + def setIndex(self, idx: int) -> None: ... + def setClean(self) -> None: ... + def setActive(self, active: bool = ...) -> None: ... + def redo(self) -> None: ... + def endMacro(self) -> None: ... + def beginMacro(self, text: str) -> None: ... + def cleanIndex(self) -> int: ... + def isClean(self) -> bool: ... + def isActive(self) -> bool: ... + def createRedoAction(self, parent: QtCore.QObject, prefix: str = ...) -> QAction: ... + def createUndoAction(self, parent: QtCore.QObject, prefix: str = ...) -> QAction: ... + def text(self, idx: int) -> str: ... + def index(self) -> int: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def redoText(self) -> str: ... + def undoText(self) -> str: ... + def canRedo(self) -> bool: ... + def canUndo(self) -> bool: ... + def push(self, cmd: QUndoCommand) -> None: ... + def clear(self) -> None: ... + + +class QUndoView(QListView): + + @typing.overload + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, stack: QUndoStack, parent: typing.Optional[QWidget] = ...) -> None: ... + @typing.overload + def __init__(self, group: QUndoGroup, parent: typing.Optional[QWidget] = ...) -> None: ... + + def setGroup(self, group: QUndoGroup) -> None: ... + def setStack(self, stack: QUndoStack) -> None: ... + def cleanIcon(self) -> QtGui.QIcon: ... + def setCleanIcon(self, icon: QtGui.QIcon) -> None: ... + def emptyLabel(self) -> str: ... + def setEmptyLabel(self, label: str) -> None: ... + def group(self) -> QUndoGroup: ... + def stack(self) -> QUndoStack: ... + + +class QWhatsThis(sip.simplewrapper): + + def __init__(self, a0: 'QWhatsThis') -> None: ... + + @staticmethod + def createAction(parent: typing.Optional[QtCore.QObject] = ...) -> QAction: ... + @staticmethod + def hideText() -> None: ... + @staticmethod + def showText(pos: QtCore.QPoint, text: str, widget: typing.Optional[QWidget] = ...) -> None: ... + @staticmethod + def leaveWhatsThisMode() -> None: ... + @staticmethod + def inWhatsThisMode() -> bool: ... + @staticmethod + def enterWhatsThisMode() -> None: ... + + +class QWidgetAction(QAction): + + def __init__(self, parent: QtCore.QObject) -> None: ... + + def createdWidgets(self) -> typing.List[QWidget]: ... + def deleteWidget(self, widget: QWidget) -> None: ... + def createWidget(self, parent: QWidget) -> QWidget: ... + def eventFilter(self, a0: QtCore.QObject, a1: QtCore.QEvent) -> bool: ... + def event(self, a0: QtCore.QEvent) -> bool: ... + def releaseWidget(self, widget: QWidget) -> None: ... + def requestWidget(self, parent: QWidget) -> QWidget: ... + def defaultWidget(self) -> QWidget: ... + def setDefaultWidget(self, w: QWidget) -> None: ... + + +class QWizard(QDialog): + + class WizardOption(int): ... + IndependentPages = ... # type: 'QWizard.WizardOption' + IgnoreSubTitles = ... # type: 'QWizard.WizardOption' + ExtendedWatermarkPixmap = ... # type: 'QWizard.WizardOption' + NoDefaultButton = ... # type: 'QWizard.WizardOption' + NoBackButtonOnStartPage = ... # type: 'QWizard.WizardOption' + NoBackButtonOnLastPage = ... # type: 'QWizard.WizardOption' + DisabledBackButtonOnLastPage = ... # type: 'QWizard.WizardOption' + HaveNextButtonOnLastPage = ... # type: 'QWizard.WizardOption' + HaveFinishButtonOnEarlyPages = ... # type: 'QWizard.WizardOption' + NoCancelButton = ... # type: 'QWizard.WizardOption' + CancelButtonOnLeft = ... # type: 'QWizard.WizardOption' + HaveHelpButton = ... # type: 'QWizard.WizardOption' + HelpButtonOnRight = ... # type: 'QWizard.WizardOption' + HaveCustomButton1 = ... # type: 'QWizard.WizardOption' + HaveCustomButton2 = ... # type: 'QWizard.WizardOption' + HaveCustomButton3 = ... # type: 'QWizard.WizardOption' + NoCancelButtonOnLastPage = ... # type: 'QWizard.WizardOption' + + class WizardStyle(int): ... + ClassicStyle = ... # type: 'QWizard.WizardStyle' + ModernStyle = ... # type: 'QWizard.WizardStyle' + MacStyle = ... # type: 'QWizard.WizardStyle' + AeroStyle = ... # type: 'QWizard.WizardStyle' + + class WizardPixmap(int): ... + WatermarkPixmap = ... # type: 'QWizard.WizardPixmap' + LogoPixmap = ... # type: 'QWizard.WizardPixmap' + BannerPixmap = ... # type: 'QWizard.WizardPixmap' + BackgroundPixmap = ... # type: 'QWizard.WizardPixmap' + + class WizardButton(int): ... + BackButton = ... # type: 'QWizard.WizardButton' + NextButton = ... # type: 'QWizard.WizardButton' + CommitButton = ... # type: 'QWizard.WizardButton' + FinishButton = ... # type: 'QWizard.WizardButton' + CancelButton = ... # type: 'QWizard.WizardButton' + HelpButton = ... # type: 'QWizard.WizardButton' + CustomButton1 = ... # type: 'QWizard.WizardButton' + CustomButton2 = ... # type: 'QWizard.WizardButton' + CustomButton3 = ... # type: 'QWizard.WizardButton' + Stretch = ... # type: 'QWizard.WizardButton' + + class WizardOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QWizard.WizardOptions', 'QWizard.WizardOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QWizard.WizardOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QWizard.WizardOptions': ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + + def pageRemoved(self, id: int) -> None: ... + def pageAdded(self, id: int) -> None: ... + def sideWidget(self) -> QWidget: ... + def setSideWidget(self, widget: QWidget) -> None: ... + def pageIds(self) -> typing.List[int]: ... + def removePage(self, id: int) -> None: ... + def cleanupPage(self, id: int) -> None: ... + def initializePage(self, id: int) -> None: ... + def done(self, result: int) -> None: ... + def paintEvent(self, event: QtGui.QPaintEvent) -> None: ... + def resizeEvent(self, event: QtGui.QResizeEvent) -> None: ... + def event(self, event: QtCore.QEvent) -> bool: ... + def restart(self) -> None: ... + def next(self) -> None: ... + def back(self) -> None: ... + def customButtonClicked(self, which: int) -> None: ... + def helpRequested(self) -> None: ... + def currentIdChanged(self, id: int) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + def setVisible(self, visible: bool) -> None: ... + def setDefaultProperty(self, className: str, property: str, changedSignal: PYQT_SIGNAL) -> None: ... + def pixmap(self, which: 'QWizard.WizardPixmap') -> QtGui.QPixmap: ... + def setPixmap(self, which: 'QWizard.WizardPixmap', pixmap: QtGui.QPixmap) -> None: ... + def subTitleFormat(self) -> QtCore.Qt.TextFormat: ... + def setSubTitleFormat(self, format: QtCore.Qt.TextFormat) -> None: ... + def titleFormat(self) -> QtCore.Qt.TextFormat: ... + def setTitleFormat(self, format: QtCore.Qt.TextFormat) -> None: ... + def button(self, which: 'QWizard.WizardButton') -> QAbstractButton: ... + def setButton(self, which: 'QWizard.WizardButton', button: QAbstractButton) -> None: ... + def setButtonLayout(self, layout: typing.Iterable['QWizard.WizardButton']) -> None: ... + def buttonText(self, which: 'QWizard.WizardButton') -> str: ... + def setButtonText(self, which: 'QWizard.WizardButton', text: str) -> None: ... + def options(self) -> 'QWizard.WizardOptions': ... + def setOptions(self, options: typing.Union['QWizard.WizardOptions', 'QWizard.WizardOption']) -> None: ... + def testOption(self, option: 'QWizard.WizardOption') -> bool: ... + def setOption(self, option: 'QWizard.WizardOption', on: bool = ...) -> None: ... + def wizardStyle(self) -> 'QWizard.WizardStyle': ... + def setWizardStyle(self, style: 'QWizard.WizardStyle') -> None: ... + def field(self, name: str) -> typing.Any: ... + def setField(self, name: str, value: typing.Any) -> None: ... + def nextId(self) -> int: ... + def validateCurrentPage(self) -> bool: ... + def currentId(self) -> int: ... + def currentPage(self) -> 'QWizardPage': ... + def startId(self) -> int: ... + def setStartId(self, id: int) -> None: ... + def visitedPages(self) -> typing.List[int]: ... + def hasVisitedPage(self, id: int) -> bool: ... + def page(self, id: int) -> 'QWizardPage': ... + def setPage(self, id: int, page: 'QWizardPage') -> None: ... + def addPage(self, page: 'QWizardPage') -> int: ... + + +class QWizardPage(QWidget): + + def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + + def wizard(self) -> QWizard: ... + def registerField(self, name: str, widget: QWidget, property: typing.Optional[str] = ..., changedSignal: PYQT_SIGNAL = ...) -> None: ... + def field(self, name: str) -> typing.Any: ... + def setField(self, name: str, value: typing.Any) -> None: ... + def completeChanged(self) -> None: ... + def nextId(self) -> int: ... + def isComplete(self) -> bool: ... + def validatePage(self) -> bool: ... + def cleanupPage(self) -> None: ... + def initializePage(self) -> None: ... + def buttonText(self, which: QWizard.WizardButton) -> str: ... + def setButtonText(self, which: QWizard.WizardButton, text: str) -> None: ... + def isCommitPage(self) -> bool: ... + def setCommitPage(self, commitPage: bool) -> None: ... + def isFinalPage(self) -> bool: ... + def setFinalPage(self, finalPage: bool) -> None: ... + def pixmap(self, which: QWizard.WizardPixmap) -> QtGui.QPixmap: ... + def setPixmap(self, which: QWizard.WizardPixmap, pixmap: QtGui.QPixmap) -> None: ... + def subTitle(self) -> str: ... + def setSubTitle(self, subTitle: str) -> None: ... + def title(self) -> str: ... + def setTitle(self, title: str) -> None: ... + + +class QMacCocoaViewContainer(QWidget): + + def __init__(self, cocoaViewToWrap: sip.voidptr, parent: typing.Optional[QWidget] = ...) -> None: ... + + def cocoaView(self) -> sip.voidptr: ... + def setCocoaView(self, cocoaViewToWrap: sip.voidptr) -> None: ... + + +QWIDGETSIZE_MAX = ... # type: int +qApp = ... # type: QApplication + + +def qDrawBorderPixmap(painter: QtGui.QPainter, target: QtCore.QRect, margins: QtCore.QMargins, pixmap: QtGui.QPixmap) -> None: ... +@typing.overload +def qDrawPlainRect(p: QtGui.QPainter, x: int, y: int, w: int, h: int, a5: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient], lineWidth: int = ..., fill: typing.Optional[typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]] = ...) -> None: ... +@typing.overload +def qDrawPlainRect(p: QtGui.QPainter, r: QtCore.QRect, a2: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient], lineWidth: int = ..., fill: typing.Optional[typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]] = ...) -> None: ... +@typing.overload +def qDrawWinPanel(p: QtGui.QPainter, x: int, y: int, w: int, h: int, pal: QtGui.QPalette, sunken: bool = ..., fill: typing.Optional[typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]] = ...) -> None: ... +@typing.overload +def qDrawWinPanel(p: QtGui.QPainter, r: QtCore.QRect, pal: QtGui.QPalette, sunken: bool = ..., fill: typing.Optional[typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]] = ...) -> None: ... +@typing.overload +def qDrawWinButton(p: QtGui.QPainter, x: int, y: int, w: int, h: int, pal: QtGui.QPalette, sunken: bool = ..., fill: typing.Optional[typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]] = ...) -> None: ... +@typing.overload +def qDrawWinButton(p: QtGui.QPainter, r: QtCore.QRect, pal: QtGui.QPalette, sunken: bool = ..., fill: typing.Optional[typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]] = ...) -> None: ... +@typing.overload +def qDrawShadePanel(p: QtGui.QPainter, x: int, y: int, w: int, h: int, pal: QtGui.QPalette, sunken: bool = ..., lineWidth: int = ..., fill: typing.Optional[typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]] = ...) -> None: ... +@typing.overload +def qDrawShadePanel(p: QtGui.QPainter, r: QtCore.QRect, pal: QtGui.QPalette, sunken: bool = ..., lineWidth: int = ..., fill: typing.Optional[typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]] = ...) -> None: ... +@typing.overload +def qDrawShadeRect(p: QtGui.QPainter, x: int, y: int, w: int, h: int, pal: QtGui.QPalette, sunken: bool = ..., lineWidth: int = ..., midLineWidth: int = ..., fill: typing.Optional[typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]] = ...) -> None: ... +@typing.overload +def qDrawShadeRect(p: QtGui.QPainter, r: QtCore.QRect, pal: QtGui.QPalette, sunken: bool = ..., lineWidth: int = ..., midLineWidth: int = ..., fill: typing.Optional[typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]] = ...) -> None: ... +@typing.overload +def qDrawShadeLine(p: QtGui.QPainter, x1: int, y1: int, x2: int, y2: int, pal: QtGui.QPalette, sunken: bool = ..., lineWidth: int = ..., midLineWidth: int = ...) -> None: ... +@typing.overload +def qDrawShadeLine(p: QtGui.QPainter, p1: QtCore.QPoint, p2: QtCore.QPoint, pal: QtGui.QPalette, sunken: bool = ..., lineWidth: int = ..., midLineWidth: int = ...) -> None: ... diff --git a/tools/stubs/PyQt5/QtXml.pyi b/tools/stubs/PyQt5/QtXml.pyi new file mode 100644 index 000000000..c9b4c6045 --- /dev/null +++ b/tools/stubs/PyQt5/QtXml.pyi @@ -0,0 +1,699 @@ +# The PEP 484 type hints stub file for the QtXml module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + + +class QXmlNamespaceSupport(sip.simplewrapper): + + def __init__(self) -> None: ... + + def reset(self) -> None: ... + def popContext(self) -> None: ... + def pushContext(self) -> None: ... + @typing.overload + def prefixes(self) -> typing.List[str]: ... + @typing.overload + def prefixes(self, a0: str) -> typing.List[str]: ... + def processName(self, a0: str, a1: bool, a2: str, a3: str) -> None: ... + def splitName(self, a0: str, a1: str, a2: str) -> None: ... + def uri(self, a0: str) -> str: ... + def prefix(self, a0: str) -> str: ... + def setPrefix(self, a0: str, a1: str) -> None: ... + + +class QXmlAttributes(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlAttributes') -> None: ... + + def swap(self, other: 'QXmlAttributes') -> None: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def append(self, qName: str, uri: str, localPart: str, value: str) -> None: ... + def clear(self) -> None: ... + @typing.overload + def value(self, index: int) -> str: ... + @typing.overload + def value(self, qName: str) -> str: ... + @typing.overload + def value(self, uri: str, localName: str) -> str: ... + @typing.overload + def type(self, index: int) -> str: ... + @typing.overload + def type(self, qName: str) -> str: ... + @typing.overload + def type(self, uri: str, localName: str) -> str: ... + def uri(self, index: int) -> str: ... + def qName(self, index: int) -> str: ... + def localName(self, index: int) -> str: ... + def length(self) -> int: ... + @typing.overload + def index(self, qName: str) -> int: ... + @typing.overload + def index(self, uri: str, localPart: str) -> int: ... + + +class QXmlInputSource(sip.simplewrapper): + + EndOfData = ... # type: int + EndOfDocument = ... # type: int + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, dev: QtCore.QIODevice) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlInputSource') -> None: ... + + def fromRawData(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], beginning: bool = ...) -> str: ... + def reset(self) -> None: ... + def next(self) -> str: ... + def data(self) -> str: ... + def fetchData(self) -> None: ... + @typing.overload + def setData(self, dat: str) -> None: ... + @typing.overload + def setData(self, dat: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... + + +class QXmlParseException(sip.simplewrapper): + + @typing.overload + def __init__(self, name: str = ..., column: int = ..., line: int = ..., publicId: str = ..., systemId: str = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QXmlParseException') -> None: ... + + def message(self) -> str: ... + def systemId(self) -> str: ... + def publicId(self) -> str: ... + def lineNumber(self) -> int: ... + def columnNumber(self) -> int: ... + + +class QXmlReader(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlReader') -> None: ... + + @typing.overload + def parse(self, input: QXmlInputSource) -> bool: ... + @typing.overload + def parse(self, input: QXmlInputSource) -> bool: ... + def declHandler(self) -> 'QXmlDeclHandler': ... + def setDeclHandler(self, handler: 'QXmlDeclHandler') -> None: ... + def lexicalHandler(self) -> 'QXmlLexicalHandler': ... + def setLexicalHandler(self, handler: 'QXmlLexicalHandler') -> None: ... + def errorHandler(self) -> 'QXmlErrorHandler': ... + def setErrorHandler(self, handler: 'QXmlErrorHandler') -> None: ... + def contentHandler(self) -> 'QXmlContentHandler': ... + def setContentHandler(self, handler: 'QXmlContentHandler') -> None: ... + def DTDHandler(self) -> 'QXmlDTDHandler': ... + def setDTDHandler(self, handler: 'QXmlDTDHandler') -> None: ... + def entityResolver(self) -> 'QXmlEntityResolver': ... + def setEntityResolver(self, handler: 'QXmlEntityResolver') -> None: ... + def hasProperty(self, name: str) -> bool: ... + def setProperty(self, name: str, value: sip.voidptr) -> None: ... + def property(self, name: str) -> typing.Tuple[sip.voidptr, bool]: ... + def hasFeature(self, name: str) -> bool: ... + def setFeature(self, name: str, value: bool) -> None: ... + def feature(self, name: str) -> typing.Tuple[bool, bool]: ... + + +class QXmlSimpleReader(QXmlReader): + + def __init__(self) -> None: ... + + def parseContinue(self) -> bool: ... + @typing.overload + def parse(self, input: QXmlInputSource) -> bool: ... + @typing.overload + def parse(self, input: QXmlInputSource, incremental: bool) -> bool: ... + def declHandler(self) -> 'QXmlDeclHandler': ... + def setDeclHandler(self, handler: 'QXmlDeclHandler') -> None: ... + def lexicalHandler(self) -> 'QXmlLexicalHandler': ... + def setLexicalHandler(self, handler: 'QXmlLexicalHandler') -> None: ... + def errorHandler(self) -> 'QXmlErrorHandler': ... + def setErrorHandler(self, handler: 'QXmlErrorHandler') -> None: ... + def contentHandler(self) -> 'QXmlContentHandler': ... + def setContentHandler(self, handler: 'QXmlContentHandler') -> None: ... + def DTDHandler(self) -> 'QXmlDTDHandler': ... + def setDTDHandler(self, handler: 'QXmlDTDHandler') -> None: ... + def entityResolver(self) -> 'QXmlEntityResolver': ... + def setEntityResolver(self, handler: 'QXmlEntityResolver') -> None: ... + def hasProperty(self, name: str) -> bool: ... + def setProperty(self, name: str, value: sip.voidptr) -> None: ... + def property(self, name: str) -> typing.Tuple[sip.voidptr, bool]: ... + def hasFeature(self, name: str) -> bool: ... + def setFeature(self, name: str, value: bool) -> None: ... + def feature(self, name: str) -> typing.Tuple[bool, bool]: ... + + +class QXmlLocator(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlLocator') -> None: ... + + def lineNumber(self) -> int: ... + def columnNumber(self) -> int: ... + + +class QXmlContentHandler(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlContentHandler') -> None: ... + + def errorString(self) -> str: ... + def skippedEntity(self, name: str) -> bool: ... + def processingInstruction(self, target: str, data: str) -> bool: ... + def ignorableWhitespace(self, ch: str) -> bool: ... + def characters(self, ch: str) -> bool: ... + def endElement(self, namespaceURI: str, localName: str, qName: str) -> bool: ... + def startElement(self, namespaceURI: str, localName: str, qName: str, atts: QXmlAttributes) -> bool: ... + def endPrefixMapping(self, prefix: str) -> bool: ... + def startPrefixMapping(self, prefix: str, uri: str) -> bool: ... + def endDocument(self) -> bool: ... + def startDocument(self) -> bool: ... + def setDocumentLocator(self, locator: QXmlLocator) -> None: ... + + +class QXmlErrorHandler(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlErrorHandler') -> None: ... + + def errorString(self) -> str: ... + def fatalError(self, exception: QXmlParseException) -> bool: ... + def error(self, exception: QXmlParseException) -> bool: ... + def warning(self, exception: QXmlParseException) -> bool: ... + + +class QXmlDTDHandler(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlDTDHandler') -> None: ... + + def errorString(self) -> str: ... + def unparsedEntityDecl(self, name: str, publicId: str, systemId: str, notationName: str) -> bool: ... + def notationDecl(self, name: str, publicId: str, systemId: str) -> bool: ... + + +class QXmlEntityResolver(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlEntityResolver') -> None: ... + + def errorString(self) -> str: ... + def resolveEntity(self, publicId: str, systemId: str) -> typing.Tuple[bool, QXmlInputSource]: ... + + +class QXmlLexicalHandler(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlLexicalHandler') -> None: ... + + def errorString(self) -> str: ... + def comment(self, ch: str) -> bool: ... + def endCDATA(self) -> bool: ... + def startCDATA(self) -> bool: ... + def endEntity(self, name: str) -> bool: ... + def startEntity(self, name: str) -> bool: ... + def endDTD(self) -> bool: ... + def startDTD(self, name: str, publicId: str, systemId: str) -> bool: ... + + +class QXmlDeclHandler(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlDeclHandler') -> None: ... + + def errorString(self) -> str: ... + def externalEntityDecl(self, name: str, publicId: str, systemId: str) -> bool: ... + def internalEntityDecl(self, name: str, value: str) -> bool: ... + def attributeDecl(self, eName: str, aName: str, type: str, valueDefault: str, value: str) -> bool: ... + + +class QXmlDefaultHandler(QXmlContentHandler, QXmlErrorHandler, QXmlDTDHandler, QXmlEntityResolver, QXmlLexicalHandler, QXmlDeclHandler): + + def __init__(self) -> None: ... + + def errorString(self) -> str: ... + def externalEntityDecl(self, name: str, publicId: str, systemId: str) -> bool: ... + def internalEntityDecl(self, name: str, value: str) -> bool: ... + def attributeDecl(self, eName: str, aName: str, type: str, valueDefault: str, value: str) -> bool: ... + def comment(self, ch: str) -> bool: ... + def endCDATA(self) -> bool: ... + def startCDATA(self) -> bool: ... + def endEntity(self, name: str) -> bool: ... + def startEntity(self, name: str) -> bool: ... + def endDTD(self) -> bool: ... + def startDTD(self, name: str, publicId: str, systemId: str) -> bool: ... + def resolveEntity(self, publicId: str, systemId: str) -> typing.Tuple[bool, QXmlInputSource]: ... + def unparsedEntityDecl(self, name: str, publicId: str, systemId: str, notationName: str) -> bool: ... + def notationDecl(self, name: str, publicId: str, systemId: str) -> bool: ... + def fatalError(self, exception: QXmlParseException) -> bool: ... + def error(self, exception: QXmlParseException) -> bool: ... + def warning(self, exception: QXmlParseException) -> bool: ... + def skippedEntity(self, name: str) -> bool: ... + def processingInstruction(self, target: str, data: str) -> bool: ... + def ignorableWhitespace(self, ch: str) -> bool: ... + def characters(self, ch: str) -> bool: ... + def endElement(self, namespaceURI: str, localName: str, qName: str) -> bool: ... + def startElement(self, namespaceURI: str, localName: str, qName: str, atts: QXmlAttributes) -> bool: ... + def endPrefixMapping(self, prefix: str) -> bool: ... + def startPrefixMapping(self, prefix: str, uri: str) -> bool: ... + def endDocument(self) -> bool: ... + def startDocument(self) -> bool: ... + def setDocumentLocator(self, locator: QXmlLocator) -> None: ... + + +class QDomImplementation(sip.simplewrapper): + + class InvalidDataPolicy(int): ... + AcceptInvalidChars = ... # type: 'QDomImplementation.InvalidDataPolicy' + DropInvalidChars = ... # type: 'QDomImplementation.InvalidDataPolicy' + ReturnNullNode = ... # type: 'QDomImplementation.InvalidDataPolicy' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDomImplementation') -> None: ... + + def isNull(self) -> bool: ... + @staticmethod + def setInvalidDataPolicy(policy: 'QDomImplementation.InvalidDataPolicy') -> None: ... + @staticmethod + def invalidDataPolicy() -> 'QDomImplementation.InvalidDataPolicy': ... + def createDocument(self, nsURI: str, qName: str, doctype: 'QDomDocumentType') -> 'QDomDocument': ... + def createDocumentType(self, qName: str, publicId: str, systemId: str) -> 'QDomDocumentType': ... + def hasFeature(self, feature: str, version: str) -> bool: ... + + +class QDomNode(sip.simplewrapper): + + class EncodingPolicy(int): ... + EncodingFromDocument = ... # type: 'QDomNode.EncodingPolicy' + EncodingFromTextStream = ... # type: 'QDomNode.EncodingPolicy' + + class NodeType(int): ... + ElementNode = ... # type: 'QDomNode.NodeType' + AttributeNode = ... # type: 'QDomNode.NodeType' + TextNode = ... # type: 'QDomNode.NodeType' + CDATASectionNode = ... # type: 'QDomNode.NodeType' + EntityReferenceNode = ... # type: 'QDomNode.NodeType' + EntityNode = ... # type: 'QDomNode.NodeType' + ProcessingInstructionNode = ... # type: 'QDomNode.NodeType' + CommentNode = ... # type: 'QDomNode.NodeType' + DocumentNode = ... # type: 'QDomNode.NodeType' + DocumentTypeNode = ... # type: 'QDomNode.NodeType' + DocumentFragmentNode = ... # type: 'QDomNode.NodeType' + NotationNode = ... # type: 'QDomNode.NodeType' + BaseNode = ... # type: 'QDomNode.NodeType' + CharacterDataNode = ... # type: 'QDomNode.NodeType' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDomNode') -> None: ... + + def columnNumber(self) -> int: ... + def lineNumber(self) -> int: ... + def nextSiblingElement(self, taName: str = ...) -> 'QDomElement': ... + def previousSiblingElement(self, tagName: str = ...) -> 'QDomElement': ... + def lastChildElement(self, tagName: str = ...) -> 'QDomElement': ... + def firstChildElement(self, tagName: str = ...) -> 'QDomElement': ... + def save(self, a0: QtCore.QTextStream, a1: int, a2: 'QDomNode.EncodingPolicy' = ...) -> None: ... + def toComment(self) -> 'QDomComment': ... + def toCharacterData(self) -> 'QDomCharacterData': ... + def toProcessingInstruction(self) -> 'QDomProcessingInstruction': ... + def toNotation(self) -> 'QDomNotation': ... + def toEntity(self) -> 'QDomEntity': ... + def toText(self) -> 'QDomText': ... + def toEntityReference(self) -> 'QDomEntityReference': ... + def toElement(self) -> 'QDomElement': ... + def toDocumentType(self) -> 'QDomDocumentType': ... + def toDocument(self) -> 'QDomDocument': ... + def toDocumentFragment(self) -> 'QDomDocumentFragment': ... + def toCDATASection(self) -> 'QDomCDATASection': ... + def toAttr(self) -> 'QDomAttr': ... + def clear(self) -> None: ... + def isNull(self) -> bool: ... + def namedItem(self, name: str) -> 'QDomNode': ... + def isComment(self) -> bool: ... + def isCharacterData(self) -> bool: ... + def isProcessingInstruction(self) -> bool: ... + def isNotation(self) -> bool: ... + def isEntity(self) -> bool: ... + def isText(self) -> bool: ... + def isEntityReference(self) -> bool: ... + def isElement(self) -> bool: ... + def isDocumentType(self) -> bool: ... + def isDocument(self) -> bool: ... + def isDocumentFragment(self) -> bool: ... + def isCDATASection(self) -> bool: ... + def isAttr(self) -> bool: ... + def setPrefix(self, pre: str) -> None: ... + def prefix(self) -> str: ... + def setNodeValue(self, a0: str) -> None: ... + def nodeValue(self) -> str: ... + def hasAttributes(self) -> bool: ... + def localName(self) -> str: ... + def namespaceURI(self) -> str: ... + def ownerDocument(self) -> 'QDomDocument': ... + def attributes(self) -> 'QDomNamedNodeMap': ... + def nextSibling(self) -> 'QDomNode': ... + def previousSibling(self) -> 'QDomNode': ... + def lastChild(self) -> 'QDomNode': ... + def firstChild(self) -> 'QDomNode': ... + def childNodes(self) -> 'QDomNodeList': ... + def parentNode(self) -> 'QDomNode': ... + def nodeType(self) -> 'QDomNode.NodeType': ... + def nodeName(self) -> str: ... + def isSupported(self, feature: str, version: str) -> bool: ... + def normalize(self) -> None: ... + def cloneNode(self, deep: bool = ...) -> 'QDomNode': ... + def hasChildNodes(self) -> bool: ... + def appendChild(self, newChild: 'QDomNode') -> 'QDomNode': ... + def removeChild(self, oldChild: 'QDomNode') -> 'QDomNode': ... + def replaceChild(self, newChild: 'QDomNode', oldChild: 'QDomNode') -> 'QDomNode': ... + def insertAfter(self, newChild: 'QDomNode', refChild: 'QDomNode') -> 'QDomNode': ... + def insertBefore(self, newChild: 'QDomNode', refChild: 'QDomNode') -> 'QDomNode': ... + + +class QDomNodeList(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDomNodeList') -> None: ... + + def isEmpty(self) -> bool: ... + def size(self) -> int: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def length(self) -> int: ... + def at(self, index: int) -> QDomNode: ... + def item(self, index: int) -> QDomNode: ... + + +class QDomDocumentType(QDomNode): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, x: 'QDomDocumentType') -> None: ... + + def nodeType(self) -> QDomNode.NodeType: ... + def internalSubset(self) -> str: ... + def systemId(self) -> str: ... + def publicId(self) -> str: ... + def notations(self) -> 'QDomNamedNodeMap': ... + def entities(self) -> 'QDomNamedNodeMap': ... + def name(self) -> str: ... + + +class QDomDocument(QDomNode): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, name: str) -> None: ... + @typing.overload + def __init__(self, doctype: QDomDocumentType) -> None: ... + @typing.overload + def __init__(self, x: 'QDomDocument') -> None: ... + + def toByteArray(self, indent: int = ...) -> QtCore.QByteArray: ... + def toString(self, indent: int = ...) -> str: ... + @typing.overload + def setContent(self, text: typing.Union[QtCore.QByteArray, bytes, bytearray], namespaceProcessing: bool) -> typing.Tuple[bool, str, int, int]: ... + @typing.overload + def setContent(self, text: str, namespaceProcessing: bool) -> typing.Tuple[bool, str, int, int]: ... + @typing.overload + def setContent(self, dev: QtCore.QIODevice, namespaceProcessing: bool) -> typing.Tuple[bool, str, int, int]: ... + @typing.overload + def setContent(self, source: QXmlInputSource, namespaceProcessing: bool) -> typing.Tuple[bool, str, int, int]: ... + @typing.overload + def setContent(self, text: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.Tuple[bool, str, int, int]: ... + @typing.overload + def setContent(self, text: str) -> typing.Tuple[bool, str, int, int]: ... + @typing.overload + def setContent(self, dev: QtCore.QIODevice) -> typing.Tuple[bool, str, int, int]: ... + @typing.overload + def setContent(self, source: QXmlInputSource, reader: QXmlReader) -> typing.Tuple[bool, str, int, int]: ... + def nodeType(self) -> QDomNode.NodeType: ... + def documentElement(self) -> 'QDomElement': ... + def implementation(self) -> QDomImplementation: ... + def doctype(self) -> QDomDocumentType: ... + def elementById(self, elementId: str) -> 'QDomElement': ... + def elementsByTagNameNS(self, nsURI: str, localName: str) -> QDomNodeList: ... + def createAttributeNS(self, nsURI: str, qName: str) -> 'QDomAttr': ... + def createElementNS(self, nsURI: str, qName: str) -> 'QDomElement': ... + def importNode(self, importedNode: QDomNode, deep: bool) -> QDomNode: ... + def elementsByTagName(self, tagname: str) -> QDomNodeList: ... + def createEntityReference(self, name: str) -> 'QDomEntityReference': ... + def createAttribute(self, name: str) -> 'QDomAttr': ... + def createProcessingInstruction(self, target: str, data: str) -> 'QDomProcessingInstruction': ... + def createCDATASection(self, data: str) -> 'QDomCDATASection': ... + def createComment(self, data: str) -> 'QDomComment': ... + def createTextNode(self, data: str) -> 'QDomText': ... + def createDocumentFragment(self) -> 'QDomDocumentFragment': ... + def createElement(self, tagName: str) -> 'QDomElement': ... + + +class QDomNamedNodeMap(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDomNamedNodeMap') -> None: ... + + def contains(self, name: str) -> bool: ... + def isEmpty(self) -> bool: ... + def size(self) -> int: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def length(self) -> int: ... + def removeNamedItemNS(self, nsURI: str, localName: str) -> QDomNode: ... + def setNamedItemNS(self, newNode: QDomNode) -> QDomNode: ... + def namedItemNS(self, nsURI: str, localName: str) -> QDomNode: ... + def item(self, index: int) -> QDomNode: ... + def removeNamedItem(self, name: str) -> QDomNode: ... + def setNamedItem(self, newNode: QDomNode) -> QDomNode: ... + def namedItem(self, name: str) -> QDomNode: ... + + +class QDomDocumentFragment(QDomNode): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, x: 'QDomDocumentFragment') -> None: ... + + def nodeType(self) -> QDomNode.NodeType: ... + + +class QDomCharacterData(QDomNode): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, x: 'QDomCharacterData') -> None: ... + + def nodeType(self) -> QDomNode.NodeType: ... + def setData(self, a0: str) -> None: ... + def data(self) -> str: ... + def length(self) -> int: ... + def replaceData(self, offset: int, count: int, arg: str) -> None: ... + def deleteData(self, offset: int, count: int) -> None: ... + def insertData(self, offset: int, arg: str) -> None: ... + def appendData(self, arg: str) -> None: ... + def substringData(self, offset: int, count: int) -> str: ... + + +class QDomAttr(QDomNode): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, x: 'QDomAttr') -> None: ... + + def nodeType(self) -> QDomNode.NodeType: ... + def setValue(self, a0: str) -> None: ... + def value(self) -> str: ... + def ownerElement(self) -> 'QDomElement': ... + def specified(self) -> bool: ... + def name(self) -> str: ... + + +class QDomElement(QDomNode): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, x: 'QDomElement') -> None: ... + + def text(self) -> str: ... + def nodeType(self) -> QDomNode.NodeType: ... + def attributes(self) -> QDomNamedNodeMap: ... + def setTagName(self, name: str) -> None: ... + def tagName(self) -> str: ... + def hasAttributeNS(self, nsURI: str, localName: str) -> bool: ... + def elementsByTagNameNS(self, nsURI: str, localName: str) -> QDomNodeList: ... + def setAttributeNodeNS(self, newAttr: QDomAttr) -> QDomAttr: ... + def attributeNodeNS(self, nsURI: str, localName: str) -> QDomAttr: ... + def removeAttributeNS(self, nsURI: str, localName: str) -> None: ... + @typing.overload + def setAttributeNS(self, nsURI: str, qName: str, value: str) -> None: ... + @typing.overload + def setAttributeNS(self, nsURI: str, qName: str, value: int) -> None: ... + @typing.overload + def setAttributeNS(self, nsURI: str, qName: str, value: int) -> None: ... + @typing.overload + def setAttributeNS(self, nsURI: str, qName: str, value: float) -> None: ... + @typing.overload + def setAttributeNS(self, nsURI: str, qName: str, value: int) -> None: ... + def attributeNS(self, nsURI: str, localName: str, defaultValue: str = ...) -> str: ... + def hasAttribute(self, name: str) -> bool: ... + def elementsByTagName(self, tagname: str) -> QDomNodeList: ... + def removeAttributeNode(self, oldAttr: QDomAttr) -> QDomAttr: ... + def setAttributeNode(self, newAttr: QDomAttr) -> QDomAttr: ... + def attributeNode(self, name: str) -> QDomAttr: ... + def removeAttribute(self, name: str) -> None: ... + @typing.overload + def setAttribute(self, name: str, value: str) -> None: ... + @typing.overload + def setAttribute(self, name: str, value: int) -> None: ... + @typing.overload + def setAttribute(self, name: str, value: int) -> None: ... + @typing.overload + def setAttribute(self, name: str, value: float) -> None: ... + @typing.overload + def setAttribute(self, name: str, value: int) -> None: ... + def attribute(self, name: str, defaultValue: str = ...) -> str: ... + + +class QDomText(QDomCharacterData): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, x: 'QDomText') -> None: ... + + def nodeType(self) -> QDomNode.NodeType: ... + def splitText(self, offset: int) -> 'QDomText': ... + + +class QDomComment(QDomCharacterData): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, x: 'QDomComment') -> None: ... + + def nodeType(self) -> QDomNode.NodeType: ... + + +class QDomCDATASection(QDomText): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, x: 'QDomCDATASection') -> None: ... + + def nodeType(self) -> QDomNode.NodeType: ... + + +class QDomNotation(QDomNode): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, x: 'QDomNotation') -> None: ... + + def nodeType(self) -> QDomNode.NodeType: ... + def systemId(self) -> str: ... + def publicId(self) -> str: ... + + +class QDomEntity(QDomNode): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, x: 'QDomEntity') -> None: ... + + def nodeType(self) -> QDomNode.NodeType: ... + def notationName(self) -> str: ... + def systemId(self) -> str: ... + def publicId(self) -> str: ... + + +class QDomEntityReference(QDomNode): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, x: 'QDomEntityReference') -> None: ... + + def nodeType(self) -> QDomNode.NodeType: ... + + +class QDomProcessingInstruction(QDomNode): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, x: 'QDomProcessingInstruction') -> None: ... + + def nodeType(self) -> QDomNode.NodeType: ... + def setData(self, d: str) -> None: ... + def data(self) -> str: ... + def target(self) -> str: ... diff --git a/tools/stubs/PyQt5/QtXmlPatterns.pyi b/tools/stubs/PyQt5/QtXmlPatterns.pyi new file mode 100644 index 000000000..5a8ba3f8d --- /dev/null +++ b/tools/stubs/PyQt5/QtXmlPatterns.pyi @@ -0,0 +1,368 @@ +# The PEP 484 type hints stub file for the QtXmlPatterns module. +# +# Generated by SIP 5.0.0 +# +# Copyright (c) 2019 Riverbank Computing Limited +# +# This file is part of PyQt5. +# +# This file may be used under the terms of the GNU General Public License +# version 3.0 as published by the Free Software Foundation and appearing in +# the file LICENSE included in the packaging of this file. Please review the +# following information to ensure the GNU General Public License version 3.0 +# requirements will be met: http://www.gnu.org/copyleft/gpl.html. +# +# If you do not wish to use this file under the terms of the GPL version 3.0 +# then you may purchase a commercial license. For more information contact +# info@riverbankcomputing.com. +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + +import typing +import sip + +from PyQt5 import QtNetwork +from PyQt5 import QtCore + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] + + +class QAbstractMessageHandler(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def handleMessage(self, type: QtCore.QtMsgType, description: str, identifier: QtCore.QUrl, sourceLocation: 'QSourceLocation') -> None: ... + def message(self, type: QtCore.QtMsgType, description: str, identifier: QtCore.QUrl = ..., sourceLocation: 'QSourceLocation' = ...) -> None: ... + + +class QAbstractUriResolver(QtCore.QObject): + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def resolve(self, relative: QtCore.QUrl, baseURI: QtCore.QUrl) -> QtCore.QUrl: ... + + +class QXmlNodeModelIndex(sip.simplewrapper): + + class DocumentOrder(int): ... + Precedes = ... # type: 'QXmlNodeModelIndex.DocumentOrder' + Is = ... # type: 'QXmlNodeModelIndex.DocumentOrder' + Follows = ... # type: 'QXmlNodeModelIndex.DocumentOrder' + + class NodeKind(int): ... + Attribute = ... # type: 'QXmlNodeModelIndex.NodeKind' + Comment = ... # type: 'QXmlNodeModelIndex.NodeKind' + Document = ... # type: 'QXmlNodeModelIndex.NodeKind' + Element = ... # type: 'QXmlNodeModelIndex.NodeKind' + Namespace = ... # type: 'QXmlNodeModelIndex.NodeKind' + ProcessingInstruction = ... # type: 'QXmlNodeModelIndex.NodeKind' + Text = ... # type: 'QXmlNodeModelIndex.NodeKind' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QXmlNodeModelIndex') -> None: ... + + def __hash__(self) -> int: ... + def isNull(self) -> bool: ... + def additionalData(self) -> int: ... + def model(self) -> 'QAbstractXmlNodeModel': ... + def internalPointer(self) -> typing.Any: ... + def data(self) -> int: ... + + +class QAbstractXmlNodeModel(sip.simplewrapper): + + class SimpleAxis(int): ... + Parent = ... # type: 'QAbstractXmlNodeModel.SimpleAxis' + FirstChild = ... # type: 'QAbstractXmlNodeModel.SimpleAxis' + PreviousSibling = ... # type: 'QAbstractXmlNodeModel.SimpleAxis' + NextSibling = ... # type: 'QAbstractXmlNodeModel.SimpleAxis' + + def __init__(self) -> None: ... + + @typing.overload + def createIndex(self, data: int) -> QXmlNodeModelIndex: ... + @typing.overload + def createIndex(self, data: int, additionalData: int) -> QXmlNodeModelIndex: ... + @typing.overload + def createIndex(self, pointer: typing.Any, additionalData: int = ...) -> QXmlNodeModelIndex: ... + def attributes(self, element: QXmlNodeModelIndex) -> typing.List[QXmlNodeModelIndex]: ... + def nextFromSimpleAxis(self, axis: 'QAbstractXmlNodeModel.SimpleAxis', origin: QXmlNodeModelIndex) -> QXmlNodeModelIndex: ... + def sourceLocation(self, index: QXmlNodeModelIndex) -> 'QSourceLocation': ... + def nodesByIdref(self, NCName: 'QXmlName') -> typing.List[QXmlNodeModelIndex]: ... + def elementById(self, NCName: 'QXmlName') -> QXmlNodeModelIndex: ... + def namespaceBindings(self, n: QXmlNodeModelIndex) -> typing.List['QXmlName']: ... + def typedValue(self, n: QXmlNodeModelIndex) -> typing.Any: ... + def stringValue(self, n: QXmlNodeModelIndex) -> str: ... + def name(self, ni: QXmlNodeModelIndex) -> 'QXmlName': ... + def root(self, n: QXmlNodeModelIndex) -> QXmlNodeModelIndex: ... + def compareOrder(self, ni1: QXmlNodeModelIndex, ni2: QXmlNodeModelIndex) -> QXmlNodeModelIndex.DocumentOrder: ... + def kind(self, ni: QXmlNodeModelIndex) -> QXmlNodeModelIndex.NodeKind: ... + def documentUri(self, ni: QXmlNodeModelIndex) -> QtCore.QUrl: ... + def baseUri(self, ni: QXmlNodeModelIndex) -> QtCore.QUrl: ... + + +class QXmlItem(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QXmlItem') -> None: ... + @typing.overload + def __init__(self, node: QXmlNodeModelIndex) -> None: ... + @typing.overload + def __init__(self, atomicValue: typing.Any) -> None: ... + + def toNodeModelIndex(self) -> QXmlNodeModelIndex: ... + def toAtomicValue(self) -> typing.Any: ... + def isAtomicValue(self) -> bool: ... + def isNode(self) -> bool: ... + def isNull(self) -> bool: ... + + +class QAbstractXmlReceiver(sip.simplewrapper): + + def __init__(self) -> None: ... + + def endOfSequence(self) -> None: ... + def startOfSequence(self) -> None: ... + def namespaceBinding(self, name: 'QXmlName') -> None: ... + def atomicValue(self, value: typing.Any) -> None: ... + def processingInstruction(self, target: 'QXmlName', value: str) -> None: ... + def endDocument(self) -> None: ... + def startDocument(self) -> None: ... + def characters(self, value: str) -> None: ... + def comment(self, value: str) -> None: ... + def attribute(self, name: 'QXmlName', value: str) -> None: ... + def endElement(self) -> None: ... + def startElement(self, name: 'QXmlName') -> None: ... + + +class QSimpleXmlNodeModel(QAbstractXmlNodeModel): + + def __init__(self, namePool: 'QXmlNamePool') -> None: ... + + def nodesByIdref(self, idref: 'QXmlName') -> typing.List[QXmlNodeModelIndex]: ... + def elementById(self, id: 'QXmlName') -> QXmlNodeModelIndex: ... + def stringValue(self, node: QXmlNodeModelIndex) -> str: ... + def namespaceBindings(self, a0: QXmlNodeModelIndex) -> typing.List['QXmlName']: ... + def namePool(self) -> 'QXmlNamePool': ... + def baseUri(self, node: QXmlNodeModelIndex) -> QtCore.QUrl: ... + + +class QSourceLocation(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QSourceLocation') -> None: ... + @typing.overload + def __init__(self, u: QtCore.QUrl, line: int = ..., column: int = ...) -> None: ... + + def __hash__(self) -> int: ... + def isNull(self) -> bool: ... + def setUri(self, newUri: QtCore.QUrl) -> None: ... + def uri(self) -> QtCore.QUrl: ... + def setLine(self, newLine: int) -> None: ... + def line(self) -> int: ... + def setColumn(self, newColumn: int) -> None: ... + def column(self) -> int: ... + + +class QXmlSerializer(QAbstractXmlReceiver): + + def __init__(self, query: 'QXmlQuery', outputDevice: QtCore.QIODevice) -> None: ... + + def codec(self) -> QtCore.QTextCodec: ... + def setCodec(self, codec: QtCore.QTextCodec) -> None: ... + def outputDevice(self) -> QtCore.QIODevice: ... + def endOfSequence(self) -> None: ... + def startOfSequence(self) -> None: ... + def endDocument(self) -> None: ... + def startDocument(self) -> None: ... + def atomicValue(self, value: typing.Any) -> None: ... + def processingInstruction(self, name: 'QXmlName', value: str) -> None: ... + def attribute(self, name: 'QXmlName', value: str) -> None: ... + def endElement(self) -> None: ... + def startElement(self, name: 'QXmlName') -> None: ... + def comment(self, value: str) -> None: ... + def characters(self, value: str) -> None: ... + def namespaceBinding(self, nb: 'QXmlName') -> None: ... + + +class QXmlFormatter(QXmlSerializer): + + def __init__(self, query: 'QXmlQuery', outputDevice: QtCore.QIODevice) -> None: ... + + def setIndentationDepth(self, depth: int) -> None: ... + def indentationDepth(self) -> int: ... + def endOfSequence(self) -> None: ... + def startOfSequence(self) -> None: ... + def endDocument(self) -> None: ... + def startDocument(self) -> None: ... + def atomicValue(self, value: typing.Any) -> None: ... + def processingInstruction(self, name: 'QXmlName', value: str) -> None: ... + def attribute(self, name: 'QXmlName', value: str) -> None: ... + def endElement(self) -> None: ... + def startElement(self, name: 'QXmlName') -> None: ... + def comment(self, value: str) -> None: ... + def characters(self, value: str) -> None: ... + + +class QXmlName(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, namePool: 'QXmlNamePool', localName: str, namespaceUri: str = ..., prefix: str = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QXmlName') -> None: ... + + def __hash__(self) -> int: ... + @staticmethod + def fromClarkName(clarkName: str, namePool: 'QXmlNamePool') -> 'QXmlName': ... + @staticmethod + def isNCName(candidate: str) -> bool: ... + def isNull(self) -> bool: ... + def toClarkName(self, query: 'QXmlNamePool') -> str: ... + def localName(self, query: 'QXmlNamePool') -> str: ... + def prefix(self, query: 'QXmlNamePool') -> str: ... + def namespaceUri(self, query: 'QXmlNamePool') -> str: ... + + +class QXmlNamePool(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QXmlNamePool') -> None: ... + + +class QXmlQuery(sip.simplewrapper): + + class QueryLanguage(int): ... + XQuery10 = ... # type: 'QXmlQuery.QueryLanguage' + XSLT20 = ... # type: 'QXmlQuery.QueryLanguage' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QXmlQuery') -> None: ... + @typing.overload + def __init__(self, np: QXmlNamePool) -> None: ... + @typing.overload + def __init__(self, queryLanguage: 'QXmlQuery.QueryLanguage', pool: QXmlNamePool = ...) -> None: ... + + def queryLanguage(self) -> 'QXmlQuery.QueryLanguage': ... + def networkAccessManager(self) -> QtNetwork.QNetworkAccessManager: ... + def setNetworkAccessManager(self, newManager: QtNetwork.QNetworkAccessManager) -> None: ... + def initialTemplateName(self) -> QXmlName: ... + @typing.overload + def setInitialTemplateName(self, name: QXmlName) -> None: ... + @typing.overload + def setInitialTemplateName(self, name: str) -> None: ... + @typing.overload + def setFocus(self, item: QXmlItem) -> None: ... + @typing.overload + def setFocus(self, documentURI: QtCore.QUrl) -> bool: ... + @typing.overload + def setFocus(self, document: QtCore.QIODevice) -> bool: ... + @typing.overload + def setFocus(self, focus: str) -> bool: ... + def uriResolver(self) -> QAbstractUriResolver: ... + def setUriResolver(self, resolver: QAbstractUriResolver) -> None: ... + def evaluateToString(self) -> str: ... + def evaluateToStringList(self) -> typing.List[str]: ... + @typing.overload + def evaluateTo(self, result: 'QXmlResultItems') -> None: ... + @typing.overload + def evaluateTo(self, callback: QAbstractXmlReceiver) -> bool: ... + @typing.overload + def evaluateTo(self, target: QtCore.QIODevice) -> bool: ... + def isValid(self) -> bool: ... + @typing.overload + def bindVariable(self, name: QXmlName, value: QXmlItem) -> None: ... + @typing.overload + def bindVariable(self, name: QXmlName, a1: QtCore.QIODevice) -> None: ... + @typing.overload + def bindVariable(self, name: QXmlName, query: 'QXmlQuery') -> None: ... + @typing.overload + def bindVariable(self, localName: str, value: QXmlItem) -> None: ... + @typing.overload + def bindVariable(self, localName: str, a1: QtCore.QIODevice) -> None: ... + @typing.overload + def bindVariable(self, localName: str, query: 'QXmlQuery') -> None: ... + def namePool(self) -> QXmlNamePool: ... + @typing.overload + def setQuery(self, sourceCode: str, documentUri: QtCore.QUrl = ...) -> None: ... + @typing.overload + def setQuery(self, sourceCode: QtCore.QIODevice, documentUri: QtCore.QUrl = ...) -> None: ... + @typing.overload + def setQuery(self, queryURI: QtCore.QUrl, baseUri: QtCore.QUrl = ...) -> None: ... + def messageHandler(self) -> QAbstractMessageHandler: ... + def setMessageHandler(self, messageHandler: QAbstractMessageHandler) -> None: ... + + +class QXmlResultItems(sip.simplewrapper): + + def __init__(self) -> None: ... + + def current(self) -> QXmlItem: ... + def next(self) -> QXmlItem: ... + def hasError(self) -> bool: ... + + +class QXmlSchema(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QXmlSchema') -> None: ... + + def networkAccessManager(self) -> QtNetwork.QNetworkAccessManager: ... + def setNetworkAccessManager(self, networkmanager: QtNetwork.QNetworkAccessManager) -> None: ... + def uriResolver(self) -> QAbstractUriResolver: ... + def setUriResolver(self, resolver: QAbstractUriResolver) -> None: ... + def messageHandler(self) -> QAbstractMessageHandler: ... + def setMessageHandler(self, handler: QAbstractMessageHandler) -> None: ... + def documentUri(self) -> QtCore.QUrl: ... + def namePool(self) -> QXmlNamePool: ... + def isValid(self) -> bool: ... + @typing.overload + def load(self, source: QtCore.QUrl) -> bool: ... + @typing.overload + def load(self, source: QtCore.QIODevice, documentUri: QtCore.QUrl = ...) -> bool: ... + @typing.overload + def load(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], documentUri: QtCore.QUrl = ...) -> bool: ... + + +class QXmlSchemaValidator(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, schema: QXmlSchema) -> None: ... + + def networkAccessManager(self) -> QtNetwork.QNetworkAccessManager: ... + def setNetworkAccessManager(self, networkmanager: QtNetwork.QNetworkAccessManager) -> None: ... + def uriResolver(self) -> QAbstractUriResolver: ... + def setUriResolver(self, resolver: QAbstractUriResolver) -> None: ... + def messageHandler(self) -> QAbstractMessageHandler: ... + def setMessageHandler(self, handler: QAbstractMessageHandler) -> None: ... + def schema(self) -> QXmlSchema: ... + def namePool(self) -> QXmlNamePool: ... + @typing.overload + def validate(self, source: QtCore.QUrl) -> bool: ... + @typing.overload + def validate(self, source: QtCore.QIODevice, documentUri: QtCore.QUrl = ...) -> bool: ... + @typing.overload + def validate(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], documentUri: QtCore.QUrl = ...) -> bool: ... + def setSchema(self, schema: QXmlSchema) -> None: ... diff --git a/tools/stubs/PyQt5/py.typed b/tools/stubs/PyQt5/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/tools/typecheck-setup.sh b/tools/typecheck-setup.sh new file mode 100755 index 000000000..901aeb086 --- /dev/null +++ b/tools/typecheck-setup.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# +# Anki bundles sip 5 generated typings that allow type checking Qt code when +# installed next to the original modules. Attempting to use them as a separate +# stubs distribution with MYPYPATH yielded a bunch of errors which I was not +# able to resolve. A solution that doesn't require modifying the python install +# would be welcome! + +TOOLS="$(cd "`dirname "$0"`"; pwd)" +modDir=$(python -c 'import PyQt5, sys, os; print(os.path.dirname(sys.modules["PyQt5"].__file__))') + +sudo rsync -av $TOOLS/stubs/PyQt5/* $modDir/ +