From 0dfce929de908d71cfa1751abd928258f178607a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Thu, 28 May 2026 11:26:45 +0200 Subject: [PATCH 1/4] Bump dependencies and add manual type-stubs for PyQt6. --- games/stalkeranomaly/XRSave.py | 13 +- plugin-requirements.txt | 6 +- poetry.lock | 340 +- pyproject.toml | 26 +- typings/PyQt6/QAxContainer.pyi | 149 + typings/PyQt6/QtBluetooth.pyi | 1235 ++++ typings/PyQt6/QtCore.pyi | 9555 +++++++++++++++++++++++++ typings/PyQt6/QtDBus.pyi | 497 ++ typings/PyQt6/QtDesigner.pyi | 453 ++ typings/PyQt6/QtGui.pyi | 8415 ++++++++++++++++++++++ typings/PyQt6/QtHelp.pyi | 306 + typings/PyQt6/QtMultimedia.pyi | 1434 ++++ typings/PyQt6/QtMultimediaWidgets.pyi | 82 + typings/PyQt6/QtNetwork.pyi | 2497 +++++++ typings/PyQt6/QtNfc.pyi | 318 + typings/PyQt6/QtOpenGL.pyi | 2474 +++++++ typings/PyQt6/QtOpenGLWidgets.pyi | 90 + typings/PyQt6/QtPdf.pyi | 284 + typings/PyQt6/QtPdfWidgets.pyi | 102 + typings/PyQt6/QtPositioning.pyi | 572 ++ typings/PyQt6/QtPrintSupport.pyi | 379 + typings/PyQt6/QtQml.pyi | 852 +++ typings/PyQt6/QtQuick.pyi | 1419 ++++ typings/PyQt6/QtQuick3D.pyi | 224 + typings/PyQt6/QtQuickWidgets.pyi | 107 + typings/PyQt6/QtRemoteObjects.pyi | 206 + typings/PyQt6/QtSensors.pyi | 601 ++ typings/PyQt6/QtSerialPort.pyi | 192 + typings/PyQt6/QtSpatialAudio.pyi | 245 + typings/PyQt6/QtSql.pyi | 660 ++ typings/PyQt6/QtStateMachine.pyi | 280 + typings/PyQt6/QtSvg.pyi | 137 + typings/PyQt6/QtSvgWidgets.pyi | 78 + typings/PyQt6/QtTest.pyi | 155 + typings/PyQt6/QtTextToSpeech.pyi | 146 + typings/PyQt6/QtWebChannel.pyi | 64 + typings/PyQt6/QtWebSockets.pyi | 239 + typings/PyQt6/QtWidgets.pyi | 8909 +++++++++++++++++++++++ typings/PyQt6/QtXml.pyi | 431 ++ typings/PyQt6/sip.pyi | 99 + 40 files changed, 44101 insertions(+), 170 deletions(-) create mode 100644 typings/PyQt6/QAxContainer.pyi create mode 100644 typings/PyQt6/QtBluetooth.pyi create mode 100644 typings/PyQt6/QtCore.pyi create mode 100644 typings/PyQt6/QtDBus.pyi create mode 100644 typings/PyQt6/QtDesigner.pyi create mode 100644 typings/PyQt6/QtGui.pyi create mode 100644 typings/PyQt6/QtHelp.pyi create mode 100644 typings/PyQt6/QtMultimedia.pyi create mode 100644 typings/PyQt6/QtMultimediaWidgets.pyi create mode 100644 typings/PyQt6/QtNetwork.pyi create mode 100644 typings/PyQt6/QtNfc.pyi create mode 100644 typings/PyQt6/QtOpenGL.pyi create mode 100644 typings/PyQt6/QtOpenGLWidgets.pyi create mode 100644 typings/PyQt6/QtPdf.pyi create mode 100644 typings/PyQt6/QtPdfWidgets.pyi create mode 100644 typings/PyQt6/QtPositioning.pyi create mode 100644 typings/PyQt6/QtPrintSupport.pyi create mode 100644 typings/PyQt6/QtQml.pyi create mode 100644 typings/PyQt6/QtQuick.pyi create mode 100644 typings/PyQt6/QtQuick3D.pyi create mode 100644 typings/PyQt6/QtQuickWidgets.pyi create mode 100644 typings/PyQt6/QtRemoteObjects.pyi create mode 100644 typings/PyQt6/QtSensors.pyi create mode 100644 typings/PyQt6/QtSerialPort.pyi create mode 100644 typings/PyQt6/QtSpatialAudio.pyi create mode 100644 typings/PyQt6/QtSql.pyi create mode 100644 typings/PyQt6/QtStateMachine.pyi create mode 100644 typings/PyQt6/QtSvg.pyi create mode 100644 typings/PyQt6/QtSvgWidgets.pyi create mode 100644 typings/PyQt6/QtTest.pyi create mode 100644 typings/PyQt6/QtTextToSpeech.pyi create mode 100644 typings/PyQt6/QtWebChannel.pyi create mode 100644 typings/PyQt6/QtWebSockets.pyi create mode 100644 typings/PyQt6/QtWidgets.pyi create mode 100644 typings/PyQt6/QtXml.pyi create mode 100644 typings/PyQt6/sip.pyi diff --git a/games/stalkeranomaly/XRSave.py b/games/stalkeranomaly/XRSave.py index b73a9888..615aad68 100644 --- a/games/stalkeranomaly/XRSave.py +++ b/games/stalkeranomaly/XRSave.py @@ -2,9 +2,9 @@ import struct from datetime import datetime from pathlib import Path -from typing import BinaryIO, Optional, cast +from typing import BinaryIO, Optional -import lzokay # pyright: ignore[reportMissingTypeStubs] +import lzokay from .XRIO import XRReader, XRStream from .XRObject import XRCreatureActor, XRFlag @@ -108,14 +108,7 @@ def readFile(self, file: BinaryIO) -> Optional[XRStream]: if (start == -1) and (version >= 6): file.seek(12) data = file.read(size - 12) - return XRStream( - cast( - bytes, - lzokay.decompress( # pyright: ignore[reportUnknownMemberType] - data, source - ), - ) - ) + return XRStream(lzokay.decompress(data, source)) return None diff --git a/plugin-requirements.txt b/plugin-requirements.txt index f945efdf..e92bdf7b 100644 --- a/plugin-requirements.txt +++ b/plugin-requirements.txt @@ -1,4 +1,4 @@ -psutil==5.8.0 +psutil==7.2.2 vdf==3.4 -lzokay==1.1.5 -pyyaml==6.0.2 +lzokay==2.1.0 +pyyaml==6.0.3 diff --git a/poetry.lock b/poetry.lock index a4066dd5..7fa0c751 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2,28 +2,52 @@ [[package]] name = "lzokay" -version = "1.1.5" +version = "2.1.0" description = "Python bindings for LZ👌, a LZO compression/decompression algorithm." optional = false -python-versions = ">=3.8" +python-versions = ">=3.10" groups = ["main"] files = [ - {file = "lzokay-1.1.5-cp310-cp310-macosx_11_0_x86_64.whl", hash = "sha256:4faeefdef8132c4db995de8e96a649c890c63a81cee06b3bbcae9d224302fa09"}, - {file = "lzokay-1.1.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4ee2c7144dd3916cf0392d3851cebe8f28136e7998b7a50a91f63d7276327d70"}, - {file = "lzokay-1.1.5-cp310-cp310-win_amd64.whl", hash = "sha256:829bfd081c8f03e85994d920ce7cc8d45033d7c467fc2fadc17b5c47667ec045"}, - {file = "lzokay-1.1.5-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:0d6b1d80121cdbc3cb106b3fafc03b139f3de3c134ce58b38fcc2d751fc5b013"}, - {file = "lzokay-1.1.5-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b8f07bdd8c3bd9443d3f5ca69a03b9dc35522c5c92fce61db087ded1f348274f"}, - {file = "lzokay-1.1.5-cp311-cp311-win_amd64.whl", hash = "sha256:266db5697a0d01428e4c31633f8dc1e87666ad17bb46b4c48ec7b7b8b70b94bc"}, - {file = "lzokay-1.1.5-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:eec7679194643bc1417f8883ef3c9d27e95e00632d4d2a7dc9ef1a1ca92cdd95"}, - {file = "lzokay-1.1.5-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5426a80664c471c18a47766111629cae5c9435ca8421cd208b00b10de5df5df9"}, - {file = "lzokay-1.1.5-cp312-cp312-win_amd64.whl", hash = "sha256:a4df719d5fef922e0f43ec2408cd70280171ded18ab096c1e88fd1c3ca4dff46"}, - {file = "lzokay-1.1.5-cp38-cp38-macosx_11_0_x86_64.whl", hash = "sha256:88fa389193cde7feb13fd4b57b6b8d626a6159bfe84cd795e664e0a738debb42"}, - {file = "lzokay-1.1.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1c83a0f1cc7628237466c298e676a64a1ab4914ccf628b3775f8680477b77481"}, - {file = "lzokay-1.1.5-cp38-cp38-win_amd64.whl", hash = "sha256:f1997c6994239ea24a2c7c7812f9e06bceb6b216c5537b85d8b585dbfd711cb0"}, - {file = "lzokay-1.1.5-cp39-cp39-macosx_11_0_x86_64.whl", hash = "sha256:4389b8b6f3c95aaa33308e2129b026140c850d94440fbea4fdeabcd42477f3b2"}, - {file = "lzokay-1.1.5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:867a9fd4a76c830b17366fd2e8bd03fe9b29cf5c13c42bc19562e411cf648dad"}, - {file = "lzokay-1.1.5-cp39-cp39-win_amd64.whl", hash = "sha256:f828864453ddfca036de7470da74245d8dcf369c521291037b1b01ac7c5dbd83"}, - {file = "lzokay-1.1.5.tar.gz", hash = "sha256:3c2e81d178161de58bf233eec87c6ef3dba96fecdd9ba72f8f2c8790adc18f74"}, + {file = "lzokay-2.1.0-cp310-abi3-macosx_10_12_x86_64.whl", hash = "sha256:354be3a13de4a4d1b5055d7987ee3abfc2c7771c4bd0bc1cccd5e9bd7eab824e"}, + {file = "lzokay-2.1.0-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:4daf4f9e266257cc33e43aca5419e6baea0edb44371dde064a8423f0332f705a"}, + {file = "lzokay-2.1.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8797a58ed8b70e7556eab747105abbfae41716824eec7038f2e3a10d99ae276e"}, + {file = "lzokay-2.1.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:34d0635cd0bb918f27abec86b43dbff03d3f04082c729b3cb2ec481c6bc5551f"}, + {file = "lzokay-2.1.0-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5b35f888418fdd7d85ec8ae6e457a1d5f4a3f81782ebb1ebf66d664171425ca8"}, + {file = "lzokay-2.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6aa14b39ea6d80159a25de0f337b85cd59413a1e42c9ba34e18216202099ab8a"}, + {file = "lzokay-2.1.0-cp310-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:5509589d8f12d4e9efcf5aa90239c701459b122ee2c788533c693c415ea4f55b"}, + {file = "lzokay-2.1.0-cp310-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:fa2a5abd954c09db1173f69eda8914c650c085179f5f0684ab3faf64d9f39483"}, + {file = "lzokay-2.1.0-cp310-abi3-musllinux_1_2_i686.whl", hash = "sha256:c87c9fa436368853c86204c3155ff76ae68328a627a70c602713d7e6ec9ee846"}, + {file = "lzokay-2.1.0-cp310-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:ff1619f66f0116b3142063decec955a6578f62518ae9050cd393986f4c14b73d"}, + {file = "lzokay-2.1.0-cp310-abi3-win32.whl", hash = "sha256:5577ee05b33bbce28572a44c939ebeba67908cf5fc7f2c45c367130047e5a77b"}, + {file = "lzokay-2.1.0-cp310-abi3-win_amd64.whl", hash = "sha256:928f33f3ff238f9326006a418100a32394847edfb664442e433025f919c4e2f7"}, + {file = "lzokay-2.1.0-cp310-abi3-win_arm64.whl", hash = "sha256:32ec987a183ee82ea66902162784db2d0f4f184c3e72b8159d7a8f0c333de8b7"}, + {file = "lzokay-2.1.0-cp313-cp313t-macosx_10_12_x86_64.whl", hash = "sha256:7ebeb25e35aeeb9fe0526771409d0407936676c9b0e0de0185f12d9d8ade3ed7"}, + {file = "lzokay-2.1.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:62e1e3b4aca0b90bffeff31d72dcb6b1bb727c1ba67f5004642ffe45ebb88ac7"}, + {file = "lzokay-2.1.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0e13c8df77b2ac87ebccf6167c856840a24165c40ee8230a3d556e2f404b8d5a"}, + {file = "lzokay-2.1.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:6ba9ceb4715c8550bf6e91a58ca29f4161fa396820f424a7080842206901901d"}, + {file = "lzokay-2.1.0-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4e6d7984450b1575815f822b3d0b834063d60e33c6b5a57081571d0f96b86ebc"}, + {file = "lzokay-2.1.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:41a4cd5a20a81cf8e27ae1883a9eced4ad1bfe694fad54b67117434100fc45db"}, + {file = "lzokay-2.1.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:3c21198d8736905ce4d9417c64e1f62ac3d0c2b9a5efb8e457144c8dd43e20b1"}, + {file = "lzokay-2.1.0-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:dfabbc0d33bc6ffa226fbc6fed51fdae5478de40caabd3e315334cd51e4c1a7b"}, + {file = "lzokay-2.1.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:99a32c751621b69ab973987c2d8cef3bb4a7db1a970856b336fe54b0a8e8eafd"}, + {file = "lzokay-2.1.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:448341994a3010c5ad315c117a82f8d718c3a6206a63f53099179c199dabccda"}, + {file = "lzokay-2.1.0-cp313-cp313t-win32.whl", hash = "sha256:6816c077a9782fad4833f6f913234ef5761c45287afad05cc58edef4e9003c34"}, + {file = "lzokay-2.1.0-cp313-cp313t-win_amd64.whl", hash = "sha256:414f847f719408de51551857afa179146d9db30e76712caa89b5dac2e1f68e5e"}, + {file = "lzokay-2.1.0-cp313-cp313t-win_arm64.whl", hash = "sha256:17f8bbc43bb95eabfbdc150fe517037954e172b78768dbac2e2054c63355eac1"}, + {file = "lzokay-2.1.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:b489aaee686410909216d7efe175a0f16071741d54b6ace412c48ae3af71a897"}, + {file = "lzokay-2.1.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:b43714a5b7aedb9a6fa4bb82fd0f8062f5325a4c874940314c9539a7ea72185a"}, + {file = "lzokay-2.1.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e00ad70bc6f5165a492cb0fd52fd0c581afdb43a46b1ae0f5d1c46a35e809717"}, + {file = "lzokay-2.1.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:07dc52c25e3c22416ce1e587ef5bf72a3a9d7a9c2ca2cc26d7b9af0a6e4aeb6a"}, + {file = "lzokay-2.1.0-cp314-cp314t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:893e423de89019771d406dad3b5449dd2eee433396b16743a158e980acd7a61f"}, + {file = "lzokay-2.1.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:34cf7bab951975e1f23b0fcea03d89eab344245ebcac1f12ebd09a7ee4b1cf74"}, + {file = "lzokay-2.1.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:331d01e017cf966d36593ef04ab181245d8d3b187a68750ee317119f74529b7a"}, + {file = "lzokay-2.1.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:e2a53899627bfeadc9c9f4bbe7d846577eda445153819e35d53a25cd21bee32c"}, + {file = "lzokay-2.1.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:6c0e40936411a359fd978a12d93921b12d76bf6fa0d434d30809ff6d890a9522"}, + {file = "lzokay-2.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:8b9d162680ff3d6f384cfc18edd249eb83cd10d652e4492379b11ad219b9cb8c"}, + {file = "lzokay-2.1.0-cp314-cp314t-win32.whl", hash = "sha256:fb1809da265cfc0cd1f36b1ee2bd31402ea142ec68a27975de1104d93c2fe197"}, + {file = "lzokay-2.1.0-cp314-cp314t-win_amd64.whl", hash = "sha256:faff98ffc512f8667c4407e1b0f696918d7be257744a4a3d88defe7ffb48d7be"}, + {file = "lzokay-2.1.0-cp314-cp314t-win_arm64.whl", hash = "sha256:43540c26a1302a440ae184886adf04956b11e9b1162d562d86e8de881d8748f9"}, + {file = "lzokay-2.1.0.tar.gz", hash = "sha256:5796a1f784b00a6b445315c1acbc4ad7a922b0eec07f3d697b4f6c60c5da853b"}, ] [package.extras] @@ -67,86 +91,92 @@ files = [ [[package]] name = "poethepoet" -version = "0.36.0" +version = "0.46.0" description = "A task runner that works well with poetry and uv." optional = false -python-versions = ">=3.9" +python-versions = ">=3.10" groups = ["dev"] files = [ - {file = "poethepoet-0.36.0-py3-none-any.whl", hash = "sha256:693e3c1eae9f6731d3613c3c0c40f747d3c5c68a375beda42e590a63c5623308"}, - {file = "poethepoet-0.36.0.tar.gz", hash = "sha256:2217b49cb4e4c64af0b42ff8c4814b17f02e107d38bc461542517348ede25663"}, + {file = "poethepoet-0.46.0-py3-none-any.whl", hash = "sha256:dc6d770a14792d124abac9066c5a707876027d1878ac9ca26cf57e9b2a96dc89"}, + {file = "poethepoet-0.46.0.tar.gz", hash = "sha256:daf8469031879ef59ef0b34fdba83574d65e41eb9186e20cd0f7c89ce479b030"}, ] [package.dependencies] pastel = ">=0.2.1,<0.3.0" -pyyaml = ">=6.0.2,<7.0" +pyyaml = ">=6.0.3,<7.0" [package.extras] poetry-plugin = ["poetry (>=1.2.0,<3.0.0) ; python_version < \"4.0\""] [[package]] name = "psutil" -version = "5.9.8" -description = "Cross-platform lib for process and system monitoring in Python." +version = "7.2.2" +description = "Cross-platform lib for process and system monitoring." optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" +python-versions = ">=3.6" groups = ["main"] files = [ - {file = "psutil-5.9.8-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:26bd09967ae00920df88e0352a91cff1a78f8d69b3ecabbfe733610c0af486c8"}, - {file = "psutil-5.9.8-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:05806de88103b25903dff19bb6692bd2e714ccf9e668d050d144012055cbca73"}, - {file = "psutil-5.9.8-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:611052c4bc70432ec770d5d54f64206aa7203a101ec273a0cd82418c86503bb7"}, - {file = "psutil-5.9.8-cp27-cp27mu-manylinux2010_i686.whl", hash = "sha256:50187900d73c1381ba1454cf40308c2bf6f34268518b3f36a9b663ca87e65e36"}, - {file = "psutil-5.9.8-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:02615ed8c5ea222323408ceba16c60e99c3f91639b07da6373fb7e6539abc56d"}, - {file = "psutil-5.9.8-cp27-none-win32.whl", hash = "sha256:36f435891adb138ed3c9e58c6af3e2e6ca9ac2f365efe1f9cfef2794e6c93b4e"}, - {file = "psutil-5.9.8-cp27-none-win_amd64.whl", hash = "sha256:bd1184ceb3f87651a67b2708d4c3338e9b10c5df903f2e3776b62303b26cb631"}, - {file = "psutil-5.9.8-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:aee678c8720623dc456fa20659af736241f575d79429a0e5e9cf88ae0605cc81"}, - {file = "psutil-5.9.8-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8cb6403ce6d8e047495a701dc7c5bd788add903f8986d523e3e20b98b733e421"}, - {file = "psutil-5.9.8-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d06016f7f8625a1825ba3732081d77c94589dca78b7a3fc072194851e88461a4"}, - {file = "psutil-5.9.8-cp36-cp36m-win32.whl", hash = "sha256:7d79560ad97af658a0f6adfef8b834b53f64746d45b403f225b85c5c2c140eee"}, - {file = "psutil-5.9.8-cp36-cp36m-win_amd64.whl", hash = "sha256:27cc40c3493bb10de1be4b3f07cae4c010ce715290a5be22b98493509c6299e2"}, - {file = "psutil-5.9.8-cp37-abi3-win32.whl", hash = "sha256:bc56c2a1b0d15aa3eaa5a60c9f3f8e3e565303b465dbf57a1b730e7a2b9844e0"}, - {file = "psutil-5.9.8-cp37-abi3-win_amd64.whl", hash = "sha256:8db4c1b57507eef143a15a6884ca10f7c73876cdf5d51e713151c1236a0e68cf"}, - {file = "psutil-5.9.8-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:d16bbddf0693323b8c6123dd804100241da461e41d6e332fb0ba6058f630f8c8"}, - {file = "psutil-5.9.8.tar.gz", hash = "sha256:6be126e3225486dff286a8fb9a06246a5253f4c7c53b475ea5f5ac934e64194c"}, + {file = "psutil-7.2.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:2edccc433cbfa046b980b0df0171cd25bcaeb3a68fe9022db0979e7aa74a826b"}, + {file = "psutil-7.2.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e78c8603dcd9a04c7364f1a3e670cea95d51ee865e4efb3556a3a63adef958ea"}, + {file = "psutil-7.2.2-cp313-cp313t-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1a571f2330c966c62aeda00dd24620425d4b0cc86881c89861fbc04549e5dc63"}, + {file = "psutil-7.2.2-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:917e891983ca3c1887b4ef36447b1e0873e70c933afc831c6b6da078ba474312"}, + {file = "psutil-7.2.2-cp313-cp313t-win_amd64.whl", hash = "sha256:ab486563df44c17f5173621c7b198955bd6b613fb87c71c161f827d3fb149a9b"}, + {file = "psutil-7.2.2-cp313-cp313t-win_arm64.whl", hash = "sha256:ae0aefdd8796a7737eccea863f80f81e468a1e4cf14d926bd9b6f5f2d5f90ca9"}, + {file = "psutil-7.2.2-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:eed63d3b4d62449571547b60578c5b2c4bcccc5387148db46e0c2313dad0ee00"}, + {file = "psutil-7.2.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7b6d09433a10592ce39b13d7be5a54fbac1d1228ed29abc880fb23df7cb694c9"}, + {file = "psutil-7.2.2-cp314-cp314t-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1fa4ecf83bcdf6e6c8f4449aff98eefb5d0604bf88cb883d7da3d8d2d909546a"}, + {file = "psutil-7.2.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e452c464a02e7dc7822a05d25db4cde564444a67e58539a00f929c51eddda0cf"}, + {file = "psutil-7.2.2-cp314-cp314t-win_amd64.whl", hash = "sha256:c7663d4e37f13e884d13994247449e9f8f574bc4655d509c3b95e9ec9e2b9dc1"}, + {file = "psutil-7.2.2-cp314-cp314t-win_arm64.whl", hash = "sha256:11fe5a4f613759764e79c65cf11ebdf26e33d6dd34336f8a337aa2996d71c841"}, + {file = "psutil-7.2.2-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:ed0cace939114f62738d808fdcecd4c869222507e266e574799e9c0faa17d486"}, + {file = "psutil-7.2.2-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:1a7b04c10f32cc88ab39cbf606e117fd74721c831c98a27dc04578deb0c16979"}, + {file = "psutil-7.2.2-cp36-abi3-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:076a2d2f923fd4821644f5ba89f059523da90dc9014e85f8e45a5774ca5bc6f9"}, + {file = "psutil-7.2.2-cp36-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b0726cecd84f9474419d67252add4ac0cd9811b04d61123054b9fb6f57df6e9e"}, + {file = "psutil-7.2.2-cp36-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:fd04ef36b4a6d599bbdb225dd1d3f51e00105f6d48a28f006da7f9822f2606d8"}, + {file = "psutil-7.2.2-cp36-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:b58fabe35e80b264a4e3bb23e6b96f9e45a3df7fb7eed419ac0e5947c61e47cc"}, + {file = "psutil-7.2.2-cp37-abi3-win_amd64.whl", hash = "sha256:eb7e81434c8d223ec4a219b5fc1c47d0417b12be7ea866e24fb5ad6e84b3d988"}, + {file = "psutil-7.2.2-cp37-abi3-win_arm64.whl", hash = "sha256:8c233660f575a5a89e6d4cb65d9f938126312bca76d8fe087b947b3a1aaac9ee"}, + {file = "psutil-7.2.2.tar.gz", hash = "sha256:0746f5f8d406af344fd547f1c8daa5f5c33dbc293bb8d6a16d80b4bb88f59372"}, ] [package.extras] -test = ["enum34 ; python_version <= \"3.4\"", "ipaddress ; python_version < \"3.0\"", "mock ; python_version < \"3.0\"", "pywin32 ; sys_platform == \"win32\"", "wmi ; sys_platform == \"win32\""] +dev = ["abi3audit", "black", "check-manifest", "colorama ; os_name == \"nt\"", "coverage", "packaging", "psleak", "pylint", "pyperf", "pypinfo", "pyreadline3 ; os_name == \"nt\"", "pytest", "pytest-cov", "pytest-instafail", "pytest-xdist", "pywin32 ; os_name == \"nt\" and implementation_name != \"pypy\"", "requests", "rstcheck", "ruff", "setuptools", "sphinx", "sphinx_rtd_theme", "toml-sort", "twine", "validate-pyproject[all]", "virtualenv", "vulture", "wheel", "wheel ; os_name == \"nt\" and implementation_name != \"pypy\"", "wmi ; os_name == \"nt\" and implementation_name != \"pypy\""] +test = ["psleak", "pytest", "pytest-instafail", "pytest-xdist", "pywin32 ; os_name == \"nt\" and implementation_name != \"pypy\"", "setuptools", "wheel ; os_name == \"nt\" and implementation_name != \"pypy\"", "wmi ; os_name == \"nt\" and implementation_name != \"pypy\""] [[package]] name = "pyqt6" -version = "6.7.0" +version = "6.11.0" description = "Python bindings for the Qt cross platform application toolkit" optional = false -python-versions = ">=3.8" -groups = ["main", "dev"] +python-versions = ">=3.10" +groups = ["main"] files = [ - {file = "PyQt6-6.7.0-1-cp38-abi3-macosx_10_14_universal2.whl", hash = "sha256:656734112853fde1be0963f0ad362e5efd87ba6c6ff234cb1f9fe8003ee254e6"}, - {file = "PyQt6-6.7.0-1-cp38-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:fa2d27fc2f5340f3f1e145c815101ef4550771a9e4bfafd4c7c2479fe83d9488"}, - {file = "PyQt6-6.7.0-1-cp38-abi3-win_amd64.whl", hash = "sha256:6a1f6dfe03752f888b5e628c208f9fd1a03bda7ebda59ffed8c13580289a1892"}, - {file = "PyQt6-6.7.0-cp38-abi3-macosx_10_14_universal2.whl", hash = "sha256:919ffb01020ece42209228bf94b4f2c156a6b77cc5a69a90a05e358b0333750b"}, - {file = "PyQt6-6.7.0-cp38-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:e294f025f94493ee12b66efd6893fab309c9063172bb8a5b184f84dfc1ebcc49"}, - {file = "PyQt6-6.7.0-cp38-abi3-win_amd64.whl", hash = "sha256:9d8865fb6357dba032002c4554a9648e88f2b4706c929cc51fba58edafad91fc"}, - {file = "PyQt6-6.7.0.tar.gz", hash = "sha256:3d31b2c59dc378ee26e16586d9469842483588142fc377280aad22aaf2fa6235"}, + {file = "pyqt6-6.11.0-cp310-abi3-macosx_10_14_universal2.whl", hash = "sha256:f7100bc7f72b12581ec479a733f4ad11b8002668e6786e8a445ab6f4d1c743d4"}, + {file = "pyqt6-6.11.0-cp310-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:8555277989fa7d114cb3c3443fd261d566909f7268ceedd41d93a5f02d37ec05"}, + {file = "pyqt6-6.11.0-cp310-abi3-manylinux_2_39_aarch64.whl", hash = "sha256:0734959955adde095af9a074213a7f73386d1bbbddfc27346b4c0621641a692e"}, + {file = "pyqt6-6.11.0-cp310-abi3-win_amd64.whl", hash = "sha256:bd11b459c54dca068e988a42cf838303334f0d441b9d16d92ae6719fcb5ac6ba"}, + {file = "pyqt6-6.11.0-cp310-abi3-win_arm64.whl", hash = "sha256:b6324e3501b19b4292c7a55b1f22e82d3e80e519e383ce4fe79b4a754c6f0288"}, + {file = "pyqt6-6.11.0.tar.gz", hash = "sha256:45dd60aa69976de1918b5ced6b4e7b6a25abd2a919ecef5fd5826ecc76718889"}, ] [package.dependencies] -PyQt6-Qt6 = ">=6.7.0,<6.8.0" -PyQt6-sip = ">=13.6,<14" +PyQt6-Qt6 = ">=6.11.0,<6.12.0" +PyQt6-sip = ">=13.8,<14" [[package]] name = "pyqt6-qt6" -version = "6.7.3" +version = "6.11.1" description = "The subset of a Qt installation needed by PyQt6." optional = false python-versions = "*" -groups = ["main", "dev"] +groups = ["main"] files = [ - {file = "PyQt6_Qt6-6.7.3-py3-none-macosx_10_14_x86_64.whl", hash = "sha256:f517a93b6b1a814d4aa6587adc312e812ebaf4d70415bb15cfb44268c5ad3f5f"}, - {file = "PyQt6_Qt6-6.7.3-py3-none-macosx_11_0_arm64.whl", hash = "sha256:8551732984fb36a5f4f3db51eafc4e8e6caf18617365830285306f2db17a94c2"}, - {file = "PyQt6_Qt6-6.7.3-py3-none-manylinux_2_28_aarch64.whl", hash = "sha256:50c7482bcdcf2bb78af257fb10ed8b582f8daf91d829782393bc50ac5a0a900c"}, - {file = "PyQt6_Qt6-6.7.3-py3-none-manylinux_2_28_x86_64.whl", hash = "sha256:cb525fdd393332de60887953029276a44de480fce1d785251ae639580f5e7246"}, - {file = "PyQt6_Qt6-6.7.3-py3-none-win_amd64.whl", hash = "sha256:36ea0892b8caeb983af3f285f45fb8dfbb93cfd972439f4e01b7efb2868f6230"}, + {file = "pyqt6_qt6-6.11.1-py3-none-macosx_10_14_x86_64.whl", hash = "sha256:694486f18b7ab9b1edcdb50e0c9f5cb726e096107da90ae7b0e810f18e2002b3"}, + {file = "pyqt6_qt6-6.11.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:fd05b31a3c83111b6eb82bb472ccfe531ef823f70d085b82fd1edc5ad2553c54"}, + {file = "pyqt6_qt6-6.11.1-py3-none-manylinux_2_34_x86_64.whl", hash = "sha256:254af349e0ef4b2fa581f86ee9d65eb797bb1d4f0c01ae5ceaa7b2446b458be9"}, + {file = "pyqt6_qt6-6.11.1-py3-none-manylinux_2_39_aarch64.whl", hash = "sha256:039b1ab619d63d06a87cacf84b581a2b61a30c9ad5bb677553e738afe4dc433a"}, + {file = "pyqt6_qt6-6.11.1-py3-none-win_amd64.whl", hash = "sha256:7486c80512e823f2d3087e67f854f0556b345f4368040a853c8dc4d30fd3fe69"}, + {file = "pyqt6_qt6-6.11.1-py3-none-win_arm64.whl", hash = "sha256:120efbedf833e5bbbc3d64ebdb139b44ff34e60f34410c7b1c2c26d230380bda"}, ] [[package]] @@ -155,7 +185,7 @@ version = "13.10.0" description = "The sip module support for PyQt6" optional = false python-versions = ">=3.9" -groups = ["main", "dev"] +groups = ["main"] files = [ {file = "PyQt6_sip-13.10.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:e7b1258963717cfae1d30e262bb784db808072a8a674d98f57c2076caaa50499"}, {file = "PyQt6_sip-13.10.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d27a3fed2a461f179d3cde6a74530fbad629ccaa66ed739b9544fda1932887af"}, @@ -185,14 +215,14 @@ files = [ [[package]] name = "pyright" -version = "1.1.402" +version = "1.1.409" description = "Command line wrapper for pyright" optional = false python-versions = ">=3.7" groups = ["dev"] files = [ - {file = "pyright-1.1.402-py3-none-any.whl", hash = "sha256:2c721f11869baac1884e846232800fe021c33f1b4acb3929cff321f7ea4e2982"}, - {file = "pyright-1.1.402.tar.gz", hash = "sha256:85a33c2d40cd4439c66aa946fd4ce71ab2f3f5b8c22ce36a623f59ac22937683"}, + {file = "pyright-1.1.409-py3-none-any.whl", hash = "sha256:aa3ea228cab90c845c7a60d28db7a844c04315356392aa09fafcee98c8c22fb3"}, + {file = "pyright-1.1.409.tar.gz", hash = "sha256:986ee05beca9e077c165758ad123667c679e050059a2546aa02473930394bc93"}, ] [package.dependencies] @@ -206,105 +236,125 @@ nodejs = ["nodejs-wheel-binaries"] [[package]] name = "pyyaml" -version = "6.0.2" +version = "6.0.3" description = "YAML parser and emitter for Python" optional = false python-versions = ">=3.8" groups = ["main", "dev"] files = [ - {file = "PyYAML-6.0.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:0a9a2848a5b7feac301353437eb7d5957887edbf81d56e903999a75a3d743086"}, - {file = "PyYAML-6.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:29717114e51c84ddfba879543fb232a6ed60086602313ca38cce623c1d62cfbf"}, - {file = "PyYAML-6.0.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8824b5a04a04a047e72eea5cec3bc266db09e35de6bdfe34c9436ac5ee27d237"}, - {file = "PyYAML-6.0.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7c36280e6fb8385e520936c3cb3b8042851904eba0e58d277dca80a5cfed590b"}, - {file = "PyYAML-6.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ec031d5d2feb36d1d1a24380e4db6d43695f3748343d99434e6f5f9156aaa2ed"}, - {file = "PyYAML-6.0.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:936d68689298c36b53b29f23c6dbb74de12b4ac12ca6cfe0e047bedceea56180"}, - {file = "PyYAML-6.0.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:23502f431948090f597378482b4812b0caae32c22213aecf3b55325e049a6c68"}, - {file = "PyYAML-6.0.2-cp310-cp310-win32.whl", hash = "sha256:2e99c6826ffa974fe6e27cdb5ed0021786b03fc98e5ee3c5bfe1fd5015f42b99"}, - {file = "PyYAML-6.0.2-cp310-cp310-win_amd64.whl", hash = "sha256:a4d3091415f010369ae4ed1fc6b79def9416358877534caf6a0fdd2146c87a3e"}, - {file = "PyYAML-6.0.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:cc1c1159b3d456576af7a3e4d1ba7e6924cb39de8f67111c735f6fc832082774"}, - {file = "PyYAML-6.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:1e2120ef853f59c7419231f3bf4e7021f1b936f6ebd222406c3b60212205d2ee"}, - {file = "PyYAML-6.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5d225db5a45f21e78dd9358e58a98702a0302f2659a3c6cd320564b75b86f47c"}, - {file = "PyYAML-6.0.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5ac9328ec4831237bec75defaf839f7d4564be1e6b25ac710bd1a96321cc8317"}, - {file = "PyYAML-6.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3ad2a3decf9aaba3d29c8f537ac4b243e36bef957511b4766cb0057d32b0be85"}, - {file = "PyYAML-6.0.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:ff3824dc5261f50c9b0dfb3be22b4567a6f938ccce4587b38952d85fd9e9afe4"}, - {file = "PyYAML-6.0.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:797b4f722ffa07cc8d62053e4cff1486fa6dc094105d13fea7b1de7d8bf71c9e"}, - {file = "PyYAML-6.0.2-cp311-cp311-win32.whl", hash = "sha256:11d8f3dd2b9c1207dcaf2ee0bbbfd5991f571186ec9cc78427ba5bd32afae4b5"}, - {file = "PyYAML-6.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:e10ce637b18caea04431ce14fabcf5c64a1c61ec9c56b071a4b7ca131ca52d44"}, - {file = "PyYAML-6.0.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:c70c95198c015b85feafc136515252a261a84561b7b1d51e3384e0655ddf25ab"}, - {file = "PyYAML-6.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ce826d6ef20b1bc864f0a68340c8b3287705cae2f8b4b1d932177dcc76721725"}, - {file = "PyYAML-6.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f71ea527786de97d1a0cc0eacd1defc0985dcf6b3f17bb77dcfc8c34bec4dc5"}, - {file = "PyYAML-6.0.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9b22676e8097e9e22e36d6b7bda33190d0d400f345f23d4065d48f4ca7ae0425"}, - {file = "PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:80bab7bfc629882493af4aa31a4cfa43a4c57c83813253626916b8c7ada83476"}, - {file = "PyYAML-6.0.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:0833f8694549e586547b576dcfaba4a6b55b9e96098b36cdc7ebefe667dfed48"}, - {file = "PyYAML-6.0.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8b9c7197f7cb2738065c481a0461e50ad02f18c78cd75775628afb4d7137fb3b"}, - {file = "PyYAML-6.0.2-cp312-cp312-win32.whl", hash = "sha256:ef6107725bd54b262d6dedcc2af448a266975032bc85ef0172c5f059da6325b4"}, - {file = "PyYAML-6.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:7e7401d0de89a9a855c839bc697c079a4af81cf878373abd7dc625847d25cbd8"}, - {file = "PyYAML-6.0.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:efdca5630322a10774e8e98e1af481aad470dd62c3170801852d752aa7a783ba"}, - {file = "PyYAML-6.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:50187695423ffe49e2deacb8cd10510bc361faac997de9efef88badc3bb9e2d1"}, - {file = "PyYAML-6.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0ffe8360bab4910ef1b9e87fb812d8bc0a308b0d0eef8c8f44e0254ab3b07133"}, - {file = "PyYAML-6.0.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:17e311b6c678207928d649faa7cb0d7b4c26a0ba73d41e99c4fff6b6c3276484"}, - {file = "PyYAML-6.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:70b189594dbe54f75ab3a1acec5f1e3faa7e8cf2f1e08d9b561cb41b845f69d5"}, - {file = "PyYAML-6.0.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:41e4e3953a79407c794916fa277a82531dd93aad34e29c2a514c2c0c5fe971cc"}, - {file = "PyYAML-6.0.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:68ccc6023a3400877818152ad9a1033e3db8625d899c72eacb5a668902e4d652"}, - {file = "PyYAML-6.0.2-cp313-cp313-win32.whl", hash = "sha256:bc2fa7c6b47d6bc618dd7fb02ef6fdedb1090ec036abab80d4681424b84c1183"}, - {file = "PyYAML-6.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:8388ee1976c416731879ac16da0aff3f63b286ffdd57cdeb95f3f2e085687563"}, - {file = "PyYAML-6.0.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:24471b829b3bf607e04e88d79542a9d48bb037c2267d7927a874e6c205ca7e9a"}, - {file = "PyYAML-6.0.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d7fded462629cfa4b685c5416b949ebad6cec74af5e2d42905d41e257e0869f5"}, - {file = "PyYAML-6.0.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d84a1718ee396f54f3a086ea0a66d8e552b2ab2017ef8b420e92edbc841c352d"}, - {file = "PyYAML-6.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9056c1ecd25795207ad294bcf39f2db3d845767be0ea6e6a34d856f006006083"}, - {file = "PyYAML-6.0.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:82d09873e40955485746739bcb8b4586983670466c23382c19cffecbf1fd8706"}, - {file = "PyYAML-6.0.2-cp38-cp38-win32.whl", hash = "sha256:43fa96a3ca0d6b1812e01ced1044a003533c47f6ee8aca31724f78e93ccc089a"}, - {file = "PyYAML-6.0.2-cp38-cp38-win_amd64.whl", hash = "sha256:01179a4a8559ab5de078078f37e5c1a30d76bb88519906844fd7bdea1b7729ff"}, - {file = "PyYAML-6.0.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:688ba32a1cffef67fd2e9398a2efebaea461578b0923624778664cc1c914db5d"}, - {file = "PyYAML-6.0.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a8786accb172bd8afb8be14490a16625cbc387036876ab6ba70912730faf8e1f"}, - {file = "PyYAML-6.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d8e03406cac8513435335dbab54c0d385e4a49e4945d2909a581c83647ca0290"}, - {file = "PyYAML-6.0.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f753120cb8181e736c57ef7636e83f31b9c0d1722c516f7e86cf15b7aa57ff12"}, - {file = "PyYAML-6.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3b1fdb9dc17f5a7677423d508ab4f243a726dea51fa5e70992e59a7411c89d19"}, - {file = "PyYAML-6.0.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:0b69e4ce7a131fe56b7e4d770c67429700908fc0752af059838b1cfb41960e4e"}, - {file = "PyYAML-6.0.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:a9f8c2e67970f13b16084e04f134610fd1d374bf477b17ec1599185cf611d725"}, - {file = "PyYAML-6.0.2-cp39-cp39-win32.whl", hash = "sha256:6395c297d42274772abc367baaa79683958044e5d3835486c16da75d2a694631"}, - {file = "PyYAML-6.0.2-cp39-cp39-win_amd64.whl", hash = "sha256:39693e1f8320ae4f43943590b49779ffb98acb81f788220ea932a6b6c51004d8"}, - {file = "pyyaml-6.0.2.tar.gz", hash = "sha256:d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e"}, + {file = "PyYAML-6.0.3-cp38-cp38-macosx_10_13_x86_64.whl", hash = "sha256:c2514fceb77bc5e7a2f7adfaa1feb2fb311607c9cb518dbc378688ec73d8292f"}, + {file = "PyYAML-6.0.3-cp38-cp38-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c57bb8c96f6d1808c030b1687b9b5fb476abaa47f0db9c0101f5e9f394e97f4"}, + {file = "PyYAML-6.0.3-cp38-cp38-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:efd7b85f94a6f21e4932043973a7ba2613b059c4a000551892ac9f1d11f5baf3"}, + {file = "PyYAML-6.0.3-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:22ba7cfcad58ef3ecddc7ed1db3409af68d023b7f940da23c6c2a1890976eda6"}, + {file = "PyYAML-6.0.3-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:6344df0d5755a2c9a276d4473ae6b90647e216ab4757f8426893b5dd2ac3f369"}, + {file = "PyYAML-6.0.3-cp38-cp38-win32.whl", hash = "sha256:3ff07ec89bae51176c0549bc4c63aa6202991da2d9a6129d7aef7f1407d3f295"}, + {file = "PyYAML-6.0.3-cp38-cp38-win_amd64.whl", hash = "sha256:5cf4e27da7e3fbed4d6c3d8e797387aaad68102272f8f9752883bc32d61cb87b"}, + {file = "pyyaml-6.0.3-cp310-cp310-macosx_10_13_x86_64.whl", hash = "sha256:214ed4befebe12df36bcc8bc2b64b396ca31be9304b8f59e25c11cf94a4c033b"}, + {file = "pyyaml-6.0.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:02ea2dfa234451bbb8772601d7b8e426c2bfa197136796224e50e35a78777956"}, + {file = "pyyaml-6.0.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b30236e45cf30d2b8e7b3e85881719e98507abed1011bf463a8fa23e9c3e98a8"}, + {file = "pyyaml-6.0.3-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:66291b10affd76d76f54fad28e22e51719ef9ba22b29e1d7d03d6777a9174198"}, + {file = "pyyaml-6.0.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9c7708761fccb9397fe64bbc0395abcae8c4bf7b0eac081e12b809bf47700d0b"}, + {file = "pyyaml-6.0.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:418cf3f2111bc80e0933b2cd8cd04f286338bb88bdc7bc8e6dd775ebde60b5e0"}, + {file = "pyyaml-6.0.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:5e0b74767e5f8c593e8c9b5912019159ed0533c70051e9cce3e8b6aa699fcd69"}, + {file = "pyyaml-6.0.3-cp310-cp310-win32.whl", hash = "sha256:28c8d926f98f432f88adc23edf2e6d4921ac26fb084b028c733d01868d19007e"}, + {file = "pyyaml-6.0.3-cp310-cp310-win_amd64.whl", hash = "sha256:bdb2c67c6c1390b63c6ff89f210c8fd09d9a1217a465701eac7316313c915e4c"}, + {file = "pyyaml-6.0.3-cp311-cp311-macosx_10_13_x86_64.whl", hash = "sha256:44edc647873928551a01e7a563d7452ccdebee747728c1080d881d68af7b997e"}, + {file = "pyyaml-6.0.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:652cb6edd41e718550aad172851962662ff2681490a8a711af6a4d288dd96824"}, + {file = "pyyaml-6.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:10892704fc220243f5305762e276552a0395f7beb4dbf9b14ec8fd43b57f126c"}, + {file = "pyyaml-6.0.3-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:850774a7879607d3a6f50d36d04f00ee69e7fc816450e5f7e58d7f17f1ae5c00"}, + {file = "pyyaml-6.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b8bb0864c5a28024fac8a632c443c87c5aa6f215c0b126c449ae1a150412f31d"}, + {file = "pyyaml-6.0.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1d37d57ad971609cf3c53ba6a7e365e40660e3be0e5175fa9f2365a379d6095a"}, + {file = "pyyaml-6.0.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:37503bfbfc9d2c40b344d06b2199cf0e96e97957ab1c1b546fd4f87e53e5d3e4"}, + {file = "pyyaml-6.0.3-cp311-cp311-win32.whl", hash = "sha256:8098f252adfa6c80ab48096053f512f2321f0b998f98150cea9bd23d83e1467b"}, + {file = "pyyaml-6.0.3-cp311-cp311-win_amd64.whl", hash = "sha256:9f3bfb4965eb874431221a3ff3fdcddc7e74e3b07799e0e84ca4a0f867d449bf"}, + {file = "pyyaml-6.0.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7f047e29dcae44602496db43be01ad42fc6f1cc0d8cd6c83d342306c32270196"}, + {file = "pyyaml-6.0.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0"}, + {file = "pyyaml-6.0.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9149cad251584d5fb4981be1ecde53a1ca46c891a79788c0df828d2f166bda28"}, + {file = "pyyaml-6.0.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5fdec68f91a0c6739b380c83b951e2c72ac0197ace422360e6d5a959d8d97b2c"}, + {file = "pyyaml-6.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ba1cc08a7ccde2d2ec775841541641e4548226580ab850948cbfda66a1befcdc"}, + {file = "pyyaml-6.0.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8dc52c23056b9ddd46818a57b78404882310fb473d63f17b07d5c40421e47f8e"}, + {file = "pyyaml-6.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:41715c910c881bc081f1e8872880d3c650acf13dfa8214bad49ed4cede7c34ea"}, + {file = "pyyaml-6.0.3-cp312-cp312-win32.whl", hash = "sha256:96b533f0e99f6579b3d4d4995707cf36df9100d67e0c8303a0c55b27b5f99bc5"}, + {file = "pyyaml-6.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:5fcd34e47f6e0b794d17de1b4ff496c00986e1c83f7ab2fb8fcfe9616ff7477b"}, + {file = "pyyaml-6.0.3-cp312-cp312-win_arm64.whl", hash = "sha256:64386e5e707d03a7e172c0701abfb7e10f0fb753ee1d773128192742712a98fd"}, + {file = "pyyaml-6.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8"}, + {file = "pyyaml-6.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1"}, + {file = "pyyaml-6.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c"}, + {file = "pyyaml-6.0.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5"}, + {file = "pyyaml-6.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6"}, + {file = "pyyaml-6.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6"}, + {file = "pyyaml-6.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be"}, + {file = "pyyaml-6.0.3-cp313-cp313-win32.whl", hash = "sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26"}, + {file = "pyyaml-6.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c"}, + {file = "pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb"}, + {file = "pyyaml-6.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac"}, + {file = "pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310"}, + {file = "pyyaml-6.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7"}, + {file = "pyyaml-6.0.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788"}, + {file = "pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5"}, + {file = "pyyaml-6.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764"}, + {file = "pyyaml-6.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35"}, + {file = "pyyaml-6.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac"}, + {file = "pyyaml-6.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3"}, + {file = "pyyaml-6.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3"}, + {file = "pyyaml-6.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba"}, + {file = "pyyaml-6.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c"}, + {file = "pyyaml-6.0.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702"}, + {file = "pyyaml-6.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c"}, + {file = "pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065"}, + {file = "pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65"}, + {file = "pyyaml-6.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9"}, + {file = "pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b"}, + {file = "pyyaml-6.0.3-cp39-cp39-macosx_10_13_x86_64.whl", hash = "sha256:b865addae83924361678b652338317d1bd7e79b1f4596f96b96c77a5a34b34da"}, + {file = "pyyaml-6.0.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:c3355370a2c156cffb25e876646f149d5d68f5e0a3ce86a5084dd0b64a994917"}, + {file = "pyyaml-6.0.3-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3c5677e12444c15717b902a5798264fa7909e41153cdf9ef7ad571b704a63dd9"}, + {file = "pyyaml-6.0.3-cp39-cp39-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5ed875a24292240029e4483f9d4a4b8a1ae08843b9c54f43fcc11e404532a8a5"}, + {file = "pyyaml-6.0.3-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0150219816b6a1fa26fb4699fb7daa9caf09eb1999f3b70fb6e786805e80375a"}, + {file = "pyyaml-6.0.3-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:fa160448684b4e94d80416c0fa4aac48967a969efe22931448d853ada8baf926"}, + {file = "pyyaml-6.0.3-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:27c0abcb4a5dac13684a37f76e701e054692a9b2d3064b70f5e4eb54810553d7"}, + {file = "pyyaml-6.0.3-cp39-cp39-win32.whl", hash = "sha256:1ebe39cb5fc479422b83de611d14e2c0d3bb2a18bbcb01f229ab3cfbd8fee7a0"}, + {file = "pyyaml-6.0.3-cp39-cp39-win_amd64.whl", hash = "sha256:2e71d11abed7344e42a8849600193d15b6def118602c4c176f748e4583246007"}, + {file = "pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f"}, ] [[package]] name = "ruff" -version = "0.12.2" +version = "0.15.14" description = "An extremely fast Python linter and code formatter, written in Rust." optional = false python-versions = ">=3.7" groups = ["dev"] files = [ - {file = "ruff-0.12.2-py3-none-linux_armv6l.whl", hash = "sha256:093ea2b221df1d2b8e7ad92fc6ffdca40a2cb10d8564477a987b44fd4008a7be"}, - {file = "ruff-0.12.2-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:09e4cf27cc10f96b1708100fa851e0daf21767e9709e1649175355280e0d950e"}, - {file = "ruff-0.12.2-py3-none-macosx_11_0_arm64.whl", hash = "sha256:8ae64755b22f4ff85e9c52d1f82644abd0b6b6b6deedceb74bd71f35c24044cc"}, - {file = "ruff-0.12.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3eb3a6b2db4d6e2c77e682f0b988d4d61aff06860158fdb413118ca133d57922"}, - {file = "ruff-0.12.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:73448de992d05517170fc37169cbca857dfeaeaa8c2b9be494d7bcb0d36c8f4b"}, - {file = "ruff-0.12.2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3b8b94317cbc2ae4a2771af641739f933934b03555e51515e6e021c64441532d"}, - {file = "ruff-0.12.2-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:45fc42c3bf1d30d2008023a0a9a0cfb06bf9835b147f11fe0679f21ae86d34b1"}, - {file = "ruff-0.12.2-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ce48f675c394c37e958bf229fb5c1e843e20945a6d962cf3ea20b7a107dcd9f4"}, - {file = "ruff-0.12.2-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:793d8859445ea47591272021a81391350205a4af65a9392401f418a95dfb75c9"}, - {file = "ruff-0.12.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6932323db80484dda89153da3d8e58164d01d6da86857c79f1961934354992da"}, - {file = "ruff-0.12.2-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:6aa7e623a3a11538108f61e859ebf016c4f14a7e6e4eba1980190cacb57714ce"}, - {file = "ruff-0.12.2-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:2a4a20aeed74671b2def096bdf2eac610c7d8ffcbf4fb0e627c06947a1d7078d"}, - {file = "ruff-0.12.2-py3-none-musllinux_1_2_i686.whl", hash = "sha256:71a4c550195612f486c9d1f2b045a600aeba851b298c667807ae933478fcef04"}, - {file = "ruff-0.12.2-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:4987b8f4ceadf597c927beee65a5eaf994c6e2b631df963f86d8ad1bdea99342"}, - {file = "ruff-0.12.2-py3-none-win32.whl", hash = "sha256:369ffb69b70cd55b6c3fc453b9492d98aed98062db9fec828cdfd069555f5f1a"}, - {file = "ruff-0.12.2-py3-none-win_amd64.whl", hash = "sha256:dca8a3b6d6dc9810ed8f328d406516bf4d660c00caeaef36eb831cf4871b0639"}, - {file = "ruff-0.12.2-py3-none-win_arm64.whl", hash = "sha256:48d6c6bfb4761df68bc05ae630e24f506755e702d4fb08f08460be778c7ccb12"}, - {file = "ruff-0.12.2.tar.gz", hash = "sha256:d7b4f55cd6f325cb7621244f19c873c565a08aff5a4ba9c69aa7355f3f7afd3e"}, + {file = "ruff-0.15.14-py3-none-linux_armv6l.whl", hash = "sha256:8dd2db9416e487c8d4b01fa7056bb02c4d05969d4f8d17a08c229c2f4ff3c108"}, + {file = "ruff-0.15.14-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:be4ff55af755bd71a00ab3dc6bd7ffc467bd76e0df6881e286c2e3d23e8fb43b"}, + {file = "ruff-0.15.14-py3-none-macosx_11_0_arm64.whl", hash = "sha256:48d5909d7d06276ce7dde6d32bfa4b0d4cb2651145cd8ee4b440722cbc77832f"}, + {file = "ruff-0.15.14-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ca8cbfa94c4f90984a67561978602746d4cd27103568f745fa90eee3f0d4107d"}, + {file = "ruff-0.15.14-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:9a6bbc0333f1ab053423bcbf6226477d266ca7cec7738c4c8e3f55647803f3c4"}, + {file = "ruff-0.15.14-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8a24a4f7605d7003a6674d4387651effd939dead3fddd0f36561eb77a9a2e542"}, + {file = "ruff-0.15.14-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:049b5326e53ed80978f2fc041a280603f69dd6b0c95464342a2bb4572d9d9e2f"}, + {file = "ruff-0.15.14-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d4ed42e6696c8dfa5f06728e6441993901f548eb92d73bc472cb5a38d1395fbf"}, + {file = "ruff-0.15.14-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:715c543cf450c4888251f91c52f1942a800541d9bddd7ac060aa4e6b77ae7cba"}, + {file = "ruff-0.15.14-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:72ebab6013ec887d439d8b7593737a0a4ffb06d45d209d4e4bf2e92813082d3f"}, + {file = "ruff-0.15.14-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:49072d36abdbe97a8dd7f480afe9c675699c0c495d4c84076e2c1203c4550581"}, + {file = "ruff-0.15.14-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:958522aee105068640c2c2ceae08f413ae44d922f52a1374ac13d6a96032fc93"}, + {file = "ruff-0.15.14-py3-none-musllinux_1_2_i686.whl", hash = "sha256:f3707da619a143a2e8830e2abab8224478d69ace2d28cb6c20543ae97c36bf61"}, + {file = "ruff-0.15.14-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:bb01d645694e3ec0102105d07ef2d53703970407d59c04e59d3ba0b7a1d53553"}, + {file = "ruff-0.15.14-py3-none-win32.whl", hash = "sha256:6d0c1ad2a0ab718d39b6d8fd2217981ce4d625cd96a720095f798fb47d8b13e6"}, + {file = "ruff-0.15.14-py3-none-win_amd64.whl", hash = "sha256:802342981e056db3851a7836e5b070f8f15f67d4a685ae2a6160939d364b2902"}, + {file = "ruff-0.15.14-py3-none-win_arm64.whl", hash = "sha256:ff47b90a9ef6a40c9e2f3b479c1fb78531adf055b94c1eba0a7ba04b31951826"}, + {file = "ruff-0.15.14.tar.gz", hash = "sha256:48e866b165be4a9bdbf310f7d3c9a07edef2fe8cd63ffeb4e00bb590506ebf9f"}, ] [[package]] name = "types-psutil" -version = "5.9.5.20240516" +version = "7.2.2.20260518" description = "Typing stubs for psutil" optional = false -python-versions = ">=3.8" +python-versions = ">=3.10" groups = ["dev"] files = [ - {file = "types-psutil-5.9.5.20240516.tar.gz", hash = "sha256:bb296f59fc56458891d0feb1994717e548a1bcf89936a2877df8792b822b4696"}, - {file = "types_psutil-5.9.5.20240516-py3-none-any.whl", hash = "sha256:83146ded949a10167d9895e567b3b71e53ebc5e23fd8363eab62b3c76cce7b89"}, + {file = "types_psutil-7.2.2.20260518-py3-none-any.whl", hash = "sha256:6a3d697665754a60d7b5a41d5a2cff12b53f5e0676d77810cd28ba5e14cb4049"}, + {file = "types_psutil-7.2.2.20260518.tar.gz", hash = "sha256:9f825f631463a5b4d26f19f63aebc9ec25f01140d655026f3ad8a67841f9b331"}, ] [[package]] @@ -333,5 +383,5 @@ files = [ [metadata] lock-version = "2.1" -python-versions = ">=3.12,<4.0" -content-hash = "b3a65da37845a56d4b259c4d73913b8957a61382499eeda8bdce2343a48e8c66" +python-versions = ">=3.13,<4.0" +content-hash = "7eb5759075a1fed2c50e23f181a84366c325de9092046ed5362fee4590718cde" diff --git a/pyproject.toml b/pyproject.toml index 89778ca2..65d24714 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,26 +7,25 @@ description = "" authors = [] license = "MIT" readme = "README.md" -requires-python = ">=3.12,<4.0" +requires-python = ">=3.13,<4.0" dynamic = ["dependencies"] [tool.poetry] package-mode = false [tool.poetry.dependencies] -psutil = "^5.8.0" -vdf = "3.4" -lzokay = "1.1.5" -pyqt6 = "6.7.0" -pyyaml = "^6.0.2" +psutil = "^7.2.2" +vdf = "^3.4" +lzokay = "^2.1.0" +pyqt6 = "6.11.0" +pyyaml = "^6.0.3" [tool.poetry.group.dev.dependencies] mobase-stubs = "^2.5.2" -pyqt6 = "^6.7.0" -pyright = "^1.1.402" -ruff = "^0.12.2" -types-psutil = "<6" -poethepoet = "^0.36.0" +pyright = "^1.1.409" +ruff = "^0.15.14" +types-psutil = "^7.2.2.20260518" +poethepoet = "^0.46.0" [build-system] requires = ["poetry-core (>=2.0)"] @@ -42,6 +41,9 @@ lint-pyright = "pyright ." lint.sequence = ["lint-ruff", "lint-ruff-format", "lint-pyright"] lint.ignore_fail = "return_non_zero" +[tool.ruff] +extend-exclude = ["typings"] + [tool.ruff.lint] extend-select = ["B", "Q", "I"] @@ -52,7 +54,7 @@ extend-immutable-calls = ["PyQt6.QtCore.QModelIndex"] known-first-party = ["mobase"] [tool.pyright] -exclude = ["lib", "**/.*", "venv"] +exclude = ["lib", "**/.*", "venv", "typings"] typeCheckingMode = "strict" reportMissingTypeStubs = true reportMissingModuleSource = false diff --git a/typings/PyQt6/QAxContainer.pyi b/typings/PyQt6/QAxContainer.pyi new file mode 100644 index 00000000..f9b753dc --- /dev/null +++ b/typings/PyQt6/QAxContainer.pyi @@ -0,0 +1,149 @@ +# The PEP 484 type hints stub file for the QAxContainer module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui +from PyQt6 import QtWidgets + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QAxBase(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAxBase') -> None: ... + + def setClassContext(self, classContext: int) -> None: ... + def classContext(self) -> int: ... + def disableEventSink(self) -> None: ... + def disableClassInfo(self) -> None: ... + def disableMetaObject(self) -> None: ... + def setControl(self, a0: str|None) -> bool: ... + def clear(self) -> None: ... + def asVariant(self) -> typing.Any: ... + def verbs(self) -> list[str]: ... + def isNull(self) -> bool: ... + def setPropertyWritable(self, a0: str, a1: bool) -> None: ... + def propertyWritable(self, a0: str) -> bool: ... + def generateDocumentation(self) -> str: ... + def setPropertyBag(self, a0: dict[str|None, typing.Any]) -> None: ... + def propertyBag(self) -> dict[str, typing.Any]: ... + @typing.overload + def querySubObject(self, a0: str, a1: collections.abc.Iterable[typing.Any]) -> 'QAxObject|None': ... + @typing.overload + def querySubObject(self, a0: str, value1: typing.Any = ..., value2: typing.Any = ..., value3: typing.Any = ..., value4: typing.Any = ..., value5: typing.Any = ..., value6: typing.Any = ..., value7: typing.Any = ..., value8: typing.Any = ...) -> 'QAxObject|None': ... + @typing.overload + def dynamicCall(self, a0: str, a1: collections.abc.Iterable[typing.Any]) -> typing.Any: ... + @typing.overload + def dynamicCall(self, a0: str, value1: typing.Any = ..., value2: typing.Any = ..., value3: typing.Any = ..., value4: typing.Any = ..., value5: typing.Any = ..., value6: typing.Any = ..., value7: typing.Any = ..., value8: typing.Any = ...) -> typing.Any: ... + def control(self) -> str: ... + + +class QAxObjectInterface(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAxObjectInterface') -> None: ... + + def resetControl(self) -> None: ... + def setControl(self, c: str|None) -> bool: ... + def control(self) -> str: ... + def setClassContext(self, classContext: int) -> None: ... + def classContext(self) -> int: ... + + +class QAxBaseObject(QtCore.QObject, QAxObjectInterface): + + def __init__(self) -> None: ... + + signal: typing.ClassVar[QtCore.pyqtSignal] + propertyChanged: typing.ClassVar[QtCore.pyqtSignal] + exception: typing.ClassVar[QtCore.pyqtSignal] + + +class QAxObject(QAxBaseObject, QAxBase): + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, a0: str|None, parent: QtCore.QObject|None = ...) -> None: ... + + def connectNotify(self, a0: QtCore.QMetaMethod) -> None: ... + def doVerb(self, a0: str|None) -> bool: ... + def clear(self) -> None: ... + def resetControl(self) -> None: ... + def setControl(self, c: str|None) -> bool: ... + def control(self) -> str: ... + def setClassContext(self, classContext: int) -> None: ... + def classContext(self) -> int: ... + + +class QAxBaseWidget(QtWidgets.QWidget, QAxObjectInterface): + + def __init__(self) -> None: ... + + signal: typing.ClassVar[QtCore.pyqtSignal] + propertyChanged: typing.ClassVar[QtCore.pyqtSignal] + exception: typing.ClassVar[QtCore.pyqtSignal] + + +class QAxWidget(QAxBaseWidget, QAxBase): + + @typing.overload + def __init__(self, parent: QtWidgets.QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + @typing.overload + def __init__(self, a0: str|None, parent: QtWidgets.QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + def connectNotify(self, a0: QtCore.QMetaMethod) -> None: ... + def translateKeyEvent(self, a0: int, a1: int) -> bool: ... + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + def changeEvent(self, a0: QtCore.QEvent|None) -> None: ... + @typing.overload + def createHostWindow(self, a0: bool) -> bool: ... + @typing.overload + def createHostWindow(self, a0: bool, a1: QtCore.QByteArray|bytes|bytearray|memoryview) -> bool: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + def doVerb(self, a0: str|None) -> bool: ... + def clear(self) -> None: ... + def resetControl(self) -> None: ... + def setControl(self, c: str|None) -> bool: ... + def control(self) -> str: ... + def setClassContext(self, classContext: int) -> None: ... + def classContext(self) -> int: ... diff --git a/typings/PyQt6/QtBluetooth.pyi b/typings/PyQt6/QtBluetooth.pyi new file mode 100644 index 00000000..a9e0b1f9 --- /dev/null +++ b/typings/PyQt6/QtBluetooth.pyi @@ -0,0 +1,1235 @@ +# The PEP 484 type hints stub file for the QtBluetooth module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 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[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QBluetooth(PyQt6.sip.simplewrapper): + + class AttAccessConstraint(enum.Flag): + AttAuthorizationRequired = ... # type: QBluetooth.AttAccessConstraint + AttAuthenticationRequired = ... # type: QBluetooth.AttAccessConstraint + AttEncryptionRequired = ... # type: QBluetooth.AttAccessConstraint + + class Security(enum.Flag): + NoSecurity = ... # type: QBluetooth.Security + Authorization = ... # type: QBluetooth.Security + Authentication = ... # type: QBluetooth.Security + Encryption = ... # type: QBluetooth.Security + Secure = ... # type: QBluetooth.Security + + +class QBluetoothAddress(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, address: int) -> None: ... + @typing.overload + def __init__(self, address: str|None) -> None: ... + @typing.overload + def __init__(self, other: 'QBluetoothAddress') -> None: ... + + def __ge__(self, b: 'QBluetoothAddress') -> bool: ... + def __lt__(self, b: 'QBluetoothAddress') -> bool: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __hash__(self) -> int: ... + def toString(self) -> str: ... + def toUInt64(self) -> int: ... + def clear(self) -> None: ... + def isNull(self) -> bool: ... + + +class QBluetoothDeviceDiscoveryAgent(QtCore.QObject): + + class DiscoveryMethod(enum.Flag): + NoMethod = ... # type: QBluetoothDeviceDiscoveryAgent.DiscoveryMethod + ClassicMethod = ... # type: QBluetoothDeviceDiscoveryAgent.DiscoveryMethod + LowEnergyMethod = ... # type: QBluetoothDeviceDiscoveryAgent.DiscoveryMethod + + class Error(enum.Enum): + NoError = ... # type: QBluetoothDeviceDiscoveryAgent.Error + InputOutputError = ... # type: QBluetoothDeviceDiscoveryAgent.Error + PoweredOffError = ... # type: QBluetoothDeviceDiscoveryAgent.Error + InvalidBluetoothAdapterError = ... # type: QBluetoothDeviceDiscoveryAgent.Error + UnsupportedPlatformError = ... # type: QBluetoothDeviceDiscoveryAgent.Error + UnsupportedDiscoveryMethod = ... # type: QBluetoothDeviceDiscoveryAgent.Error + LocationServiceTurnedOffError = ... # type: QBluetoothDeviceDiscoveryAgent.Error + MissingPermissionsError = ... # type: QBluetoothDeviceDiscoveryAgent.Error + UnknownError = ... # type: QBluetoothDeviceDiscoveryAgent.Error + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, deviceAdapter: QBluetoothAddress, parent: QtCore.QObject|None = ...) -> None: ... + + @staticmethod + def supportedDiscoveryMethods() -> 'QBluetoothDeviceDiscoveryAgent.DiscoveryMethod': ... + def lowEnergyDiscoveryTimeout(self) -> int: ... + def setLowEnergyDiscoveryTimeout(self, msTimeout: int) -> None: ... + deviceUpdated: typing.ClassVar[QtCore.pyqtSignal] + canceled: typing.ClassVar[QtCore.pyqtSignal] + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + finished: typing.ClassVar[QtCore.pyqtSignal] + deviceDiscovered: typing.ClassVar[QtCore.pyqtSignal] + def stop(self) -> None: ... + @typing.overload + def start(self) -> None: ... + @typing.overload + def start(self, method: 'QBluetoothDeviceDiscoveryAgent.DiscoveryMethod') -> None: ... + def discoveredDevices(self) -> list['QBluetoothDeviceInfo']: ... + def errorString(self) -> str: ... + def error(self) -> 'QBluetoothDeviceDiscoveryAgent.Error': ... + def isActive(self) -> bool: ... + + +class QBluetoothDeviceInfo(PyQt6.sip.simplewrapper): + + class Field(enum.Flag): + None_ = ... # type: QBluetoothDeviceInfo.Field + RSSI = ... # type: QBluetoothDeviceInfo.Field + ManufacturerData = ... # type: QBluetoothDeviceInfo.Field + ServiceData = ... # type: QBluetoothDeviceInfo.Field + All = ... # type: QBluetoothDeviceInfo.Field + + class CoreConfiguration(enum.Flag): + UnknownCoreConfiguration = ... # type: QBluetoothDeviceInfo.CoreConfiguration + LowEnergyCoreConfiguration = ... # type: QBluetoothDeviceInfo.CoreConfiguration + BaseRateCoreConfiguration = ... # type: QBluetoothDeviceInfo.CoreConfiguration + BaseRateAndLowEnergyCoreConfiguration = ... # type: QBluetoothDeviceInfo.CoreConfiguration + + class ServiceClass(enum.Flag): + 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(enum.Enum): + 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(enum.Enum): + 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(enum.Enum): + 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(enum.Enum): + UncategorizedImagingDevice = ... # type: QBluetoothDeviceInfo.MinorImagingClass + ImageDisplay = ... # type: QBluetoothDeviceInfo.MinorImagingClass + ImageCamera = ... # type: QBluetoothDeviceInfo.MinorImagingClass + ImageScanner = ... # type: QBluetoothDeviceInfo.MinorImagingClass + ImagePrinter = ... # type: QBluetoothDeviceInfo.MinorImagingClass + + class MinorPeripheralClass(enum.Enum): + 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(enum.Enum): + 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(enum.Enum): + 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(enum.Enum): + 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(enum.Enum): + 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(enum.Enum): + UncategorizedMiscellaneous = ... # type: QBluetoothDeviceInfo.MinorMiscellaneousClass + + class MajorDeviceClass(enum.Enum): + MiscellaneousDevice = ... # type: QBluetoothDeviceInfo.MajorDeviceClass + ComputerDevice = ... # type: QBluetoothDeviceInfo.MajorDeviceClass + PhoneDevice = ... # 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 + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, address: QBluetoothAddress, name: str|None, classOfDevice: int) -> None: ... + @typing.overload + def __init__(self, uuid: 'QBluetoothUuid', name: str|None, classOfDevice: int) -> None: ... + @typing.overload + def __init__(self, other: 'QBluetoothDeviceInfo') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def setServiceData(self, serviceId: 'QBluetoothUuid', data: QtCore.QByteArray|bytes|bytearray|memoryview) -> bool: ... + @typing.overload + def serviceData(self) -> dict['QBluetoothUuid', QtCore.QByteArray]: ... + @typing.overload + def serviceData(self, serviceId: 'QBluetoothUuid') -> QtCore.QByteArray: ... + def serviceIds(self) -> list['QBluetoothUuid']: ... + def setName(self, name: str|None) -> None: ... + def setManufacturerData(self, manufacturerId: int, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> bool: ... + @typing.overload + def manufacturerData(self) -> dict[int, QtCore.QByteArray]: ... + @typing.overload + def manufacturerData(self, manufacturerId: int) -> QtCore.QByteArray: ... + def manufacturerIds(self) -> list[int]: ... + def deviceUuid(self) -> 'QBluetoothUuid': ... + def setDeviceUuid(self, uuid: 'QBluetoothUuid') -> None: ... + def coreConfigurations(self) -> 'QBluetoothDeviceInfo.CoreConfiguration': ... + def setCoreConfigurations(self, coreConfigs: 'QBluetoothDeviceInfo.CoreConfiguration') -> None: ... + def serviceUuids(self) -> list['QBluetoothUuid']: ... + def setServiceUuids(self, uuids: collections.abc.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.ServiceClass': ... + def name(self) -> str: ... + def address(self) -> QBluetoothAddress: ... + def setCached(self, cached: bool) -> None: ... + def isCached(self) -> bool: ... + def isValid(self) -> bool: ... + + +class QBluetoothHostInfo(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QBluetoothHostInfo') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def setName(self, name: str|None) -> None: ... + def name(self) -> str: ... + def setAddress(self, address: QBluetoothAddress) -> None: ... + def address(self) -> QBluetoothAddress: ... + + +class QBluetoothLocalDevice(QtCore.QObject): + + class Error(enum.Enum): + NoError = ... # type: QBluetoothLocalDevice.Error + PairingError = ... # type: QBluetoothLocalDevice.Error + MissingPermissionsError = ... # type: QBluetoothLocalDevice.Error + UnknownError = ... # type: QBluetoothLocalDevice.Error + + class HostMode(enum.Enum): + HostPoweredOff = ... # type: QBluetoothLocalDevice.HostMode + HostConnectable = ... # type: QBluetoothLocalDevice.HostMode + HostDiscoverable = ... # type: QBluetoothLocalDevice.HostMode + HostDiscoverableLimitedInquiry = ... # type: QBluetoothLocalDevice.HostMode + + class Pairing(enum.Enum): + Unpaired = ... # type: QBluetoothLocalDevice.Pairing + Paired = ... # type: QBluetoothLocalDevice.Pairing + AuthorizedPaired = ... # type: QBluetoothLocalDevice.Pairing + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, address: QBluetoothAddress, parent: QtCore.QObject|None = ...) -> None: ... + + deviceDisconnected: typing.ClassVar[QtCore.pyqtSignal] + deviceConnected: typing.ClassVar[QtCore.pyqtSignal] + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + pairingFinished: typing.ClassVar[QtCore.pyqtSignal] + hostModeStateChanged: typing.ClassVar[QtCore.pyqtSignal] + def connectedDevices(self) -> list[QBluetoothAddress]: ... + @staticmethod + def allDevices() -> 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(enum.Enum): + NoError = ... # type: QBluetoothServer.Error + UnknownError = ... # type: QBluetoothServer.Error + PoweredOffError = ... # type: QBluetoothServer.Error + InputOutputError = ... # type: QBluetoothServer.Error + ServiceAlreadyRegisteredError = ... # type: QBluetoothServer.Error + UnsupportedProtocolError = ... # type: QBluetoothServer.Error + MissingPermissionsError = ... # type: QBluetoothServer.Error + + def __init__(self, serverType: 'QBluetoothServiceInfo.Protocol', parent: QtCore.QObject|None = ...) -> None: ... + + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + newConnection: typing.ClassVar[QtCore.pyqtSignal] + def error(self) -> 'QBluetoothServer.Error': ... + def serverType(self) -> 'QBluetoothServiceInfo.Protocol': ... + def securityFlags(self) -> QBluetooth.Security: ... + def setSecurityFlags(self, security: QBluetooth.Security) -> None: ... + def serverPort(self) -> int: ... + def serverAddress(self) -> QBluetoothAddress: ... + def nextPendingConnection(self) -> 'QBluetoothSocket|None': ... + 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|None = ...) -> 'QBluetoothServiceInfo': ... + def close(self) -> None: ... + + +class QBluetoothServiceDiscoveryAgent(QtCore.QObject): + + class DiscoveryMode(enum.Enum): + MinimalDiscovery = ... # type: QBluetoothServiceDiscoveryAgent.DiscoveryMode + FullDiscovery = ... # type: QBluetoothServiceDiscoveryAgent.DiscoveryMode + + class Error(enum.Enum): + NoError = ... # type: QBluetoothServiceDiscoveryAgent.Error + InputOutputError = ... # type: QBluetoothServiceDiscoveryAgent.Error + PoweredOffError = ... # type: QBluetoothServiceDiscoveryAgent.Error + InvalidBluetoothAdapterError = ... # type: QBluetoothServiceDiscoveryAgent.Error + MissingPermissionsError = ... # type: QBluetoothServiceDiscoveryAgent.Error + UnknownError = ... # type: QBluetoothServiceDiscoveryAgent.Error + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, deviceAdapter: QBluetoothAddress, parent: QtCore.QObject|None = ...) -> None: ... + + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + canceled: typing.ClassVar[QtCore.pyqtSignal] + finished: typing.ClassVar[QtCore.pyqtSignal] + serviceDiscovered: typing.ClassVar[QtCore.pyqtSignal] + 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) -> list['QBluetoothUuid']: ... + @typing.overload + def setUuidFilter(self, uuids: collections.abc.Iterable['QBluetoothUuid']) -> None: ... + @typing.overload + def setUuidFilter(self, uuid: 'QBluetoothUuid') -> None: ... + def discoveredServices(self) -> list['QBluetoothServiceInfo']: ... + def errorString(self) -> str: ... + def error(self) -> 'QBluetoothServiceDiscoveryAgent.Error': ... + def isActive(self) -> bool: ... + + +class QBluetoothServiceInfo(PyQt6.sip.simplewrapper): + + class Protocol(enum.Enum): + UnknownProtocol = ... # type: QBluetoothServiceInfo.Protocol + L2capProtocol = ... # type: QBluetoothServiceInfo.Protocol + RfcommProtocol = ... # type: QBluetoothServiceInfo.Protocol + + class AttributeId(enum.Enum): + 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) -> 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) -> None: ... + def serviceDescription(self) -> str: ... + def setServiceDescription(self, description: str|None) -> None: ... + def serviceName(self) -> str: ... + def setServiceName(self, name: str|None) -> None: ... + @typing.overload + def setAttribute(self, attributeId: int, value: 'QBluetoothUuid') -> None: ... + @typing.overload + def setAttribute(self, attributeId: int, value: collections.abc.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') -> 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) -> 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(enum.Enum): + NoSocketError = ... # type: QBluetoothSocket.SocketError + UnknownSocketError = ... # type: QBluetoothSocket.SocketError + RemoteHostClosedError = ... # type: QBluetoothSocket.SocketError + HostNotFoundError = ... # type: QBluetoothSocket.SocketError + ServiceNotFoundError = ... # type: QBluetoothSocket.SocketError + NetworkError = ... # type: QBluetoothSocket.SocketError + UnsupportedProtocolError = ... # type: QBluetoothSocket.SocketError + OperationError = ... # type: QBluetoothSocket.SocketError + MissingPermissionsError = ... # type: QBluetoothSocket.SocketError + + class SocketState(enum.Enum): + 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: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def preferredSecurityFlags(self) -> QBluetooth.Security: ... + def setPreferredSecurityFlags(self, flags: QBluetooth.Security) -> None: ... + def doDeviceDiscovery(self, service: QBluetoothServiceInfo, openMode: QtCore.QIODeviceBase.OpenModeFlag) -> None: ... + def setSocketError(self, error: 'QBluetoothSocket.SocketError') -> None: ... + def setSocketState(self, state: 'QBluetoothSocket.SocketState') -> None: ... + def writeData(self, data: PyQt6.sip.array[bytes]) -> int: ... + def readData(self, maxlen: int) -> bytes: ... + stateChanged: typing.ClassVar[QtCore.pyqtSignal] + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + disconnected: typing.ClassVar[QtCore.pyqtSignal] + connected: typing.ClassVar[QtCore.pyqtSignal] + def errorString(self) -> str: ... + def error(self) -> 'QBluetoothSocket.SocketError': ... + 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: QtCore.QIODeviceBase.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, address: QBluetoothAddress, uuid: 'QBluetoothUuid.ServiceClassUuid', mode: QtCore.QIODeviceBase.OpenModeFlag = ...) -> None: ... + @typing.overload + def connectToService(self, address: QBluetoothAddress, port: int, mode: QtCore.QIODeviceBase.OpenModeFlag = ...) -> None: ... + @typing.overload + def connectToService(self, address: QBluetoothAddress, uuid: 'QBluetoothUuid', mode: QtCore.QIODeviceBase.OpenModeFlag = ...) -> None: ... + @typing.overload + def connectToService(self, service: QBluetoothServiceInfo, mode: QtCore.QIODeviceBase.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 QBluetoothUuid(QtCore.QUuid): + + class DescriptorType(enum.Enum): + 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(enum.Enum): + 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 + MagneticDeclination = ... # 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 + 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(enum.Enum): + 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 + BasicImage = ... # 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 + 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 + 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 + 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(enum.Enum): + 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: 'QBluetoothUuid.ProtocolUuid') -> None: ... + @typing.overload + def __init__(self, uuid: 'QBluetoothUuid.ServiceClassUuid') -> None: ... + @typing.overload + def __init__(self, uuid: 'QBluetoothUuid.CharacteristicType') -> None: ... + @typing.overload + def __init__(self, uuid: 'QBluetoothUuid.DescriptorType') -> None: ... + @typing.overload + def __init__(self, uuid: int) -> None: ... + @typing.overload + def __init__(self, uuid: tuple[int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int], order: QtCore.QSysInfo.Endian = ...) -> None: ... + @typing.overload + def __init__(self, uuid: str|None) -> None: ... + @typing.overload + def __init__(self, uuid: 'QBluetoothUuid') -> None: ... + @typing.overload + def __init__(self, uuid: QtCore.QUuid) -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __hash__(self) -> int: ... + @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) -> 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(PyQt6.sip.simplewrapper): + + class Discoverability(enum.Enum): + 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 __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def swap(self, other: 'QLowEnergyAdvertisingData') -> None: ... + def rawData(self) -> QtCore.QByteArray: ... + def setRawData(self, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def services(self) -> list[QBluetoothUuid]: ... + def setServices(self, services: collections.abc.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: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + @staticmethod + def invalidManufacturerId() -> int: ... + def localName(self) -> str: ... + def setLocalName(self, name: str|None) -> None: ... + + +class QLowEnergyAdvertisingParameters(PyQt6.sip.simplewrapper): + + class FilterPolicy(enum.Enum): + IgnoreWhiteList = ... # type: QLowEnergyAdvertisingParameters.FilterPolicy + UseWhiteListForScanning = ... # type: QLowEnergyAdvertisingParameters.FilterPolicy + UseWhiteListForConnecting = ... # type: QLowEnergyAdvertisingParameters.FilterPolicy + UseWhiteListForScanningAndConnecting = ... # type: QLowEnergyAdvertisingParameters.FilterPolicy + + class Mode(enum.Enum): + AdvInd = ... # type: QLowEnergyAdvertisingParameters.Mode + AdvScanInd = ... # type: QLowEnergyAdvertisingParameters.Mode + AdvNonConnInd = ... # type: QLowEnergyAdvertisingParameters.Mode + + class AddressInfo(PyQt6.sip.simplewrapper): + + 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: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QLowEnergyAdvertisingParameters') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + 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) -> list['QLowEnergyAdvertisingParameters.AddressInfo']: ... + def setWhiteList(self, whiteList: collections.abc.Iterable['QLowEnergyAdvertisingParameters.AddressInfo'], policy: 'QLowEnergyAdvertisingParameters.FilterPolicy') -> None: ... + def mode(self) -> 'QLowEnergyAdvertisingParameters.Mode': ... + def setMode(self, mode: 'QLowEnergyAdvertisingParameters.Mode') -> None: ... + + +class QLowEnergyCharacteristic(PyQt6.sip.simplewrapper): + + class PropertyType(enum.Flag): + 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 + + CCCDDisable = ... # type: QtCore.QByteArray|bytes|bytearray|memoryview + CCCDEnableIndication = ... # type: QtCore.QByteArray|bytes|bytearray|memoryview + CCCDEnableNotification = ... # type: QtCore.QByteArray|bytes|bytearray|memoryview + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QLowEnergyCharacteristic') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def clientCharacteristicConfiguration(self) -> 'QLowEnergyDescriptor': ... + def isValid(self) -> bool: ... + def descriptors(self) -> list['QLowEnergyDescriptor']: ... + def descriptor(self, uuid: QBluetoothUuid) -> 'QLowEnergyDescriptor': ... + def properties(self) -> 'QLowEnergyCharacteristic.PropertyType': ... + def value(self) -> QtCore.QByteArray: ... + def uuid(self) -> QBluetoothUuid: ... + def name(self) -> str: ... + + +class QLowEnergyCharacteristicData(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QLowEnergyCharacteristicData') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + 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.AttAccessConstraint: ... + def setWriteConstraints(self, constraints: QBluetooth.AttAccessConstraint) -> None: ... + def readConstraints(self) -> QBluetooth.AttAccessConstraint: ... + def setReadConstraints(self, constraints: QBluetooth.AttAccessConstraint) -> None: ... + def addDescriptor(self, descriptor: 'QLowEnergyDescriptorData') -> None: ... + def setDescriptors(self, descriptors: collections.abc.Iterable['QLowEnergyDescriptorData']) -> None: ... + def descriptors(self) -> list['QLowEnergyDescriptorData']: ... + def setProperties(self, properties: QLowEnergyCharacteristic.PropertyType) -> None: ... + def properties(self) -> QLowEnergyCharacteristic.PropertyType: ... + def setValue(self, value: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def value(self) -> QtCore.QByteArray: ... + def setUuid(self, uuid: QBluetoothUuid) -> None: ... + def uuid(self) -> QBluetoothUuid: ... + + +class QLowEnergyConnectionParameters(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QLowEnergyConnectionParameters') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + 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(enum.Enum): + CentralRole = ... # type: QLowEnergyController.Role + PeripheralRole = ... # type: QLowEnergyController.Role + + class RemoteAddressType(enum.Enum): + PublicAddress = ... # type: QLowEnergyController.RemoteAddressType + RandomAddress = ... # type: QLowEnergyController.RemoteAddressType + + class ControllerState(enum.Enum): + 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(enum.Enum): + 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 + AuthorizationError = ... # type: QLowEnergyController.Error + MissingPermissionsError = ... # type: QLowEnergyController.Error + RssiReadError = ... # type: QLowEnergyController.Error + + rssiRead: typing.ClassVar[QtCore.pyqtSignal] + def readRssi(self) -> None: ... + def remoteDeviceUuid(self) -> QBluetoothUuid: ... + def role(self) -> 'QLowEnergyController.Role': ... + def requestConnectionUpdate(self, parameters: QLowEnergyConnectionParameters) -> None: ... + def addService(self, service: 'QLowEnergyServiceData', parent: QtCore.QObject|None = ...) -> 'QLowEnergyService|None': ... + def stopAdvertising(self) -> None: ... + def startAdvertising(self, parameters: QLowEnergyAdvertisingParameters, advertisingData: QLowEnergyAdvertisingData, scanResponseData: QLowEnergyAdvertisingData = ...) -> None: ... + @typing.overload + @staticmethod + def createPeripheral(localDevice: QBluetoothAddress, parent: QtCore.QObject|None = ...) -> 'QLowEnergyController|None': ... + @typing.overload + @staticmethod + def createPeripheral(parent: QtCore.QObject|None = ...) -> 'QLowEnergyController|None': ... + @typing.overload + @staticmethod + def createCentral(remoteDevice: QBluetoothDeviceInfo, parent: QtCore.QObject|None = ...) -> 'QLowEnergyController|None': ... + @typing.overload + @staticmethod + def createCentral(remoteDevice: QBluetoothDeviceInfo, localDevice: QBluetoothAddress, parent: QtCore.QObject|None = ...) -> 'QLowEnergyController|None': ... + mtuChanged: typing.ClassVar[QtCore.pyqtSignal] + connectionUpdated: typing.ClassVar[QtCore.pyqtSignal] + discoveryFinished: typing.ClassVar[QtCore.pyqtSignal] + serviceDiscovered: typing.ClassVar[QtCore.pyqtSignal] + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + stateChanged: typing.ClassVar[QtCore.pyqtSignal] + disconnected: typing.ClassVar[QtCore.pyqtSignal] + connected: typing.ClassVar[QtCore.pyqtSignal] + def mtu(self) -> int: ... + def remoteName(self) -> str: ... + def errorString(self) -> str: ... + def error(self) -> 'QLowEnergyController.Error': ... + def createServiceObject(self, service: QBluetoothUuid, parent: QtCore.QObject|None = ...) -> 'QLowEnergyService|None': ... + def services(self) -> 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(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QLowEnergyDescriptor') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def type(self) -> QBluetoothUuid.DescriptorType: ... + def name(self) -> str: ... + def uuid(self) -> QBluetoothUuid: ... + def value(self) -> QtCore.QByteArray: ... + def isValid(self) -> bool: ... + + +class QLowEnergyDescriptorData(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, uuid: QBluetoothUuid, value: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + @typing.overload + def __init__(self, other: 'QLowEnergyDescriptorData') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def swap(self, other: 'QLowEnergyDescriptorData') -> None: ... + def writeConstraints(self) -> QBluetooth.AttAccessConstraint: ... + def isWritable(self) -> bool: ... + def setWritePermissions(self, writable: bool, constraints: QBluetooth.AttAccessConstraint = ...) -> None: ... + def readConstraints(self) -> QBluetooth.AttAccessConstraint: ... + def isReadable(self) -> bool: ... + def setReadPermissions(self, readable: bool, constraints: QBluetooth.AttAccessConstraint = ...) -> None: ... + def isValid(self) -> bool: ... + def setUuid(self, uuid: QBluetoothUuid) -> None: ... + def uuid(self) -> QBluetoothUuid: ... + def setValue(self, value: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def value(self) -> QtCore.QByteArray: ... + + +class QLowEnergyService(QtCore.QObject): + + class WriteMode(enum.Enum): + WriteWithResponse = ... # type: QLowEnergyService.WriteMode + WriteWithoutResponse = ... # type: QLowEnergyService.WriteMode + WriteSigned = ... # type: QLowEnergyService.WriteMode + + class ServiceState(enum.Enum): + InvalidService = ... # type: QLowEnergyService.ServiceState + DiscoveryRequired = ... # type: QLowEnergyService.ServiceState + ServiceDiscovered = ... # type: QLowEnergyService.ServiceState + LocalService = ... # type: QLowEnergyService.ServiceState + RemoteService = ... # type: QLowEnergyService.ServiceState + RemoteServiceDiscovering = ... # type: QLowEnergyService.ServiceState + RemoteServiceDiscovered = ... # type: QLowEnergyService.ServiceState + DiscoveringService = ... # type: QLowEnergyService.ServiceState + + class ServiceError(enum.Enum): + 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(enum.Flag): + PrimaryService = ... # type: QLowEnergyService.ServiceType + IncludedService = ... # type: QLowEnergyService.ServiceType + + class DiscoveryMode(enum.Enum): + FullDiscovery = ... # type: QLowEnergyService.DiscoveryMode + SkipValueDiscovery = ... # type: QLowEnergyService.DiscoveryMode + + descriptorRead: typing.ClassVar[QtCore.pyqtSignal] + characteristicRead: typing.ClassVar[QtCore.pyqtSignal] + def readDescriptor(self, descriptor: QLowEnergyDescriptor) -> None: ... + def readCharacteristic(self, characteristic: QLowEnergyCharacteristic) -> None: ... + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + descriptorWritten: typing.ClassVar[QtCore.pyqtSignal] + characteristicWritten: typing.ClassVar[QtCore.pyqtSignal] + characteristicChanged: typing.ClassVar[QtCore.pyqtSignal] + stateChanged: typing.ClassVar[QtCore.pyqtSignal] + def writeDescriptor(self, descriptor: QLowEnergyDescriptor, newValue: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def writeCharacteristic(self, characteristic: QLowEnergyCharacteristic, newValue: QtCore.QByteArray|bytes|bytearray|memoryview, mode: 'QLowEnergyService.WriteMode' = ...) -> None: ... + @typing.overload + def contains(self, characteristic: QLowEnergyCharacteristic) -> bool: ... + @typing.overload + def contains(self, descriptor: QLowEnergyDescriptor) -> bool: ... + def error(self) -> 'QLowEnergyService.ServiceError': ... + def discoverDetails(self, mode: 'QLowEnergyService.DiscoveryMode' = ...) -> None: ... + def serviceName(self) -> str: ... + def serviceUuid(self) -> QBluetoothUuid: ... + def characteristics(self) -> list[QLowEnergyCharacteristic]: ... + def characteristic(self, uuid: QBluetoothUuid) -> QLowEnergyCharacteristic: ... + def state(self) -> 'QLowEnergyService.ServiceState': ... + def type(self) -> 'QLowEnergyService.ServiceType': ... + def includedServices(self) -> list[QBluetoothUuid]: ... + + +class QLowEnergyServiceData(PyQt6.sip.simplewrapper): + + class ServiceType(enum.Enum): + ServiceTypePrimary = ... # type: QLowEnergyServiceData.ServiceType + ServiceTypeSecondary = ... # type: QLowEnergyServiceData.ServiceType + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QLowEnergyServiceData') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def swap(self, other: 'QLowEnergyServiceData') -> None: ... + def isValid(self) -> bool: ... + def addCharacteristic(self, characteristic: QLowEnergyCharacteristicData) -> None: ... + def setCharacteristics(self, characteristics: collections.abc.Iterable[QLowEnergyCharacteristicData]) -> None: ... + def characteristics(self) -> list[QLowEnergyCharacteristicData]: ... + def addIncludedService(self, service: QLowEnergyService|None) -> None: ... + def setIncludedServices(self, services: collections.abc.Iterable[QLowEnergyService]) -> None: ... + def includedServices(self) -> 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/typings/PyQt6/QtCore.pyi b/typings/PyQt6/QtCore.pyi new file mode 100644 index 00000000..fd1c4871 --- /dev/null +++ b/typings/PyQt6/QtCore.pyi @@ -0,0 +1,9555 @@ +# The PEP 484 type hints stub file for the QtCore module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections.abc, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +# Support for QDate, QDateTime and QTime. +import datetime + + +# Support for new-style signals and slots. +class pyqtSignal: + + signatures = ... # type: tuple[str, ...] + + def __init__(self, *types: typing.Any, name: str = ...) -> None: ... + + @typing.overload + def __get__(self, instance: None, owner: type['QObject']) -> 'pyqtSignal': ... + + @typing.overload + def __get__(self, instance: 'QObject', owner: type['QObject']) -> 'pyqtBoundSignal': ... + + + +class pyqtBoundSignal: + + signal = ... # type: str + + def __getitem__(self, key: object) -> 'pyqtBoundSignal': ... + + def connect(self, slot: 'PYQT_SLOT') -> 'QMetaObject.Connection': ... + + @typing.overload + def disconnect(self) -> None: ... + + @typing.overload + def disconnect(self, slot: typing.Union['PYQT_SLOT', 'QMetaObject.Connection']) -> None: ... + + def emit(self, *args: typing.Any) -> None: ... + + +FuncT = typing.TypeVar('FuncT', bound=collections.abc.Callable) +def pyqtSlot(*types, name: typing.Optional[str] = ..., result: typing.Optional[str] = ...) -> collections.abc.Callable[[FuncT], FuncT]: ... + + +# For QObject.findChild() and QObject.findChildren(). +QObjectT = typing.TypeVar('QObjectT', bound=QObject) + + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[pyqtSignal, pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], pyqtBoundSignal] + + +class QtMsgType(enum.Enum): + QtDebugMsg = ... # type: QtMsgType + QtWarningMsg = ... # type: QtMsgType + QtCriticalMsg = ... # type: QtMsgType + QtFatalMsg = ... # type: QtMsgType + QtSystemMsg = ... # type: QtMsgType + QtInfoMsg = ... # type: QtMsgType + + +class QCborKnownTags(enum.Enum): + 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(enum.Enum): + False_ = ... # type: QCborSimpleType + True_ = ... # type: QCborSimpleType + Null = ... # type: QCborSimpleType + Undefined = ... # type: QCborSimpleType + + +class Qt(PyQt6.sip.simplewrapper): + + class ContrastPreference(enum.Enum): + NoPreference = ... # type: Qt.ContrastPreference + HighContrast = ... # type: Qt.ContrastPreference + + class ContextMenuTrigger(enum.Enum): + Press = ... # type: Qt.ContextMenuTrigger + Release = ... # type: Qt.ContextMenuTrigger + + class PermissionStatus(enum.Enum): + Undetermined = ... # type: Qt.PermissionStatus + Granted = ... # type: Qt.PermissionStatus + Denied = ... # type: Qt.PermissionStatus + + class ColorScheme(enum.Enum): + Unknown = ... # type: Qt.ColorScheme + Light = ... # type: Qt.ColorScheme + Dark = ... # type: Qt.ColorScheme + + class HighDpiScaleFactorRoundingPolicy(enum.Enum): + Round = ... # type: Qt.HighDpiScaleFactorRoundingPolicy + Ceil = ... # type: Qt.HighDpiScaleFactorRoundingPolicy + Floor = ... # type: Qt.HighDpiScaleFactorRoundingPolicy + RoundPreferFloor = ... # type: Qt.HighDpiScaleFactorRoundingPolicy + PassThrough = ... # type: Qt.HighDpiScaleFactorRoundingPolicy + + class ChecksumType(enum.Enum): + ChecksumIso3309 = ... # type: Qt.ChecksumType + ChecksumItuV41 = ... # type: Qt.ChecksumType + + class EnterKeyType(enum.Enum): + 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(enum.Enum): + ReplaceSelection = ... # type: Qt.ItemSelectionOperation + AddToSelection = ... # type: Qt.ItemSelectionOperation + + class TabFocusBehavior(enum.Enum): + NoTabFocus = ... # type: Qt.TabFocusBehavior + TabFocusTextControls = ... # type: Qt.TabFocusBehavior + TabFocusListControls = ... # type: Qt.TabFocusBehavior + TabFocusAllControls = ... # type: Qt.TabFocusBehavior + + class MouseEventFlag(enum.Flag): + MouseEventCreatedDoubleClick = ... # type: Qt.MouseEventFlag + + class MouseEventSource(enum.Enum): + MouseEventNotSynthesized = ... # type: Qt.MouseEventSource + MouseEventSynthesizedBySystem = ... # type: Qt.MouseEventSource + MouseEventSynthesizedByQt = ... # type: Qt.MouseEventSource + MouseEventSynthesizedByApplication = ... # type: Qt.MouseEventSource + + class ScrollPhase(enum.Enum): + ScrollBegin = ... # type: Qt.ScrollPhase + ScrollUpdate = ... # type: Qt.ScrollPhase + ScrollEnd = ... # type: Qt.ScrollPhase + NoScrollPhase = ... # type: Qt.ScrollPhase + ScrollMomentum = ... # type: Qt.ScrollPhase + + class NativeGestureType(enum.Enum): + 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(enum.Flag): + TopEdge = ... # type: Qt.Edge + LeftEdge = ... # type: Qt.Edge + RightEdge = ... # type: Qt.Edge + BottomEdge = ... # type: Qt.Edge + + class ApplicationState(enum.Flag): + ApplicationSuspended = ... # type: Qt.ApplicationState + ApplicationHidden = ... # type: Qt.ApplicationState + ApplicationInactive = ... # type: Qt.ApplicationState + ApplicationActive = ... # type: Qt.ApplicationState + + class HitTestAccuracy(enum.Enum): + ExactHit = ... # type: Qt.HitTestAccuracy + FuzzyHit = ... # type: Qt.HitTestAccuracy + + class WhiteSpaceMode(enum.Enum): + WhiteSpaceNormal = ... # type: Qt.WhiteSpaceMode + WhiteSpacePre = ... # type: Qt.WhiteSpaceMode + WhiteSpaceNoWrap = ... # type: Qt.WhiteSpaceMode + WhiteSpaceModeUndefined = ... # type: Qt.WhiteSpaceMode + + class FindChildOption(enum.Flag): + FindDirectChildrenOnly = ... # type: Qt.FindChildOption + FindChildrenRecursively = ... # type: Qt.FindChildOption + + class ScreenOrientation(enum.Flag): + PrimaryOrientation = ... # type: Qt.ScreenOrientation + PortraitOrientation = ... # type: Qt.ScreenOrientation + LandscapeOrientation = ... # type: Qt.ScreenOrientation + InvertedPortraitOrientation = ... # type: Qt.ScreenOrientation + InvertedLandscapeOrientation = ... # type: Qt.ScreenOrientation + + class CursorMoveStyle(enum.Enum): + LogicalMoveStyle = ... # type: Qt.CursorMoveStyle + VisualMoveStyle = ... # type: Qt.CursorMoveStyle + + class NavigationMode(enum.Enum): + NavigationModeNone = ... # type: Qt.NavigationMode + NavigationModeKeypadTabOrder = ... # type: Qt.NavigationMode + NavigationModeKeypadDirectional = ... # type: Qt.NavigationMode + NavigationModeCursorAuto = ... # type: Qt.NavigationMode + NavigationModeCursorForceVisible = ... # type: Qt.NavigationMode + + class GestureFlag(enum.Flag): + DontStartGestureOnChildren = ... # type: Qt.GestureFlag + ReceivePartialGestures = ... # type: Qt.GestureFlag + IgnoredGesturesPropagateToParent = ... # type: Qt.GestureFlag + + class GestureType(enum.IntEnum): + 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(enum.Enum): + GestureStarted = ... # type: Qt.GestureState + GestureUpdated = ... # type: Qt.GestureState + GestureFinished = ... # type: Qt.GestureState + GestureCanceled = ... # type: Qt.GestureState + + class TouchPointState(enum.Flag): + TouchPointUnknownState = ... # type: Qt.TouchPointState + TouchPointPressed = ... # type: Qt.TouchPointState + TouchPointMoved = ... # type: Qt.TouchPointState + TouchPointStationary = ... # type: Qt.TouchPointState + TouchPointReleased = ... # type: Qt.TouchPointState + + class CoordinateSystem(enum.Enum): + DeviceCoordinates = ... # type: Qt.CoordinateSystem + LogicalCoordinates = ... # type: Qt.CoordinateSystem + + class AnchorPoint(enum.Enum): + 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(enum.Flag): + 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(enum.Enum): + StretchTile = ... # type: Qt.TileRule + RepeatTile = ... # type: Qt.TileRule + RoundTile = ... # type: Qt.TileRule + + class WindowFrameSection(enum.Enum): + 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(enum.Enum): + MinimumSize = ... # type: Qt.SizeHint + PreferredSize = ... # type: Qt.SizeHint + MaximumSize = ... # type: Qt.SizeHint + MinimumDescent = ... # type: Qt.SizeHint + + class SizeMode(enum.Enum): + AbsoluteSize = ... # type: Qt.SizeMode + RelativeSize = ... # type: Qt.SizeMode + + class EventPriority(enum.Enum): + HighEventPriority = ... # type: Qt.EventPriority + NormalEventPriority = ... # type: Qt.EventPriority + LowEventPriority = ... # type: Qt.EventPriority + + class Axis(enum.Enum): + XAxis = ... # type: Qt.Axis + YAxis = ... # type: Qt.Axis + ZAxis = ... # type: Qt.Axis + + class MaskMode(enum.Enum): + MaskInColor = ... # type: Qt.MaskMode + MaskOutColor = ... # type: Qt.MaskMode + + class TextInteractionFlag(enum.Flag): + 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(enum.Enum): + ContainsItemShape = ... # type: Qt.ItemSelectionMode + IntersectsItemShape = ... # type: Qt.ItemSelectionMode + ContainsItemBoundingRect = ... # type: Qt.ItemSelectionMode + IntersectsItemBoundingRect = ... # type: Qt.ItemSelectionMode + + class ApplicationAttribute(enum.Enum): + AA_DontShowIconsInMenus = ... # type: Qt.ApplicationAttribute + AA_NativeWindows = ... # type: Qt.ApplicationAttribute + AA_DontCreateNativeWidgetSiblings = ... # type: Qt.ApplicationAttribute + AA_DontUseNativeMenuBar = ... # type: Qt.ApplicationAttribute + AA_MacDontSwapCtrlAndMeta = ... # type: Qt.ApplicationAttribute + AA_Use96Dpi = ... # type: Qt.ApplicationAttribute + AA_SynthesizeTouchForUnhandledMouseEvents = ... # type: Qt.ApplicationAttribute + AA_SynthesizeMouseForUnhandledTouchEvents = ... # 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_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_DisableSessionManager = ... # type: Qt.ApplicationAttribute + AA_DisableNativeVirtualKeyboard = ... # type: Qt.ApplicationAttribute + AA_QtQuickUseDefaultSizePolicy = ... # type: Qt.ApplicationAttribute + AA_DontUseNativeMenuWindows = ... # type: Qt.ApplicationAttribute + + class WindowModality(enum.Enum): + NonModal = ... # type: Qt.WindowModality + WindowModal = ... # type: Qt.WindowModality + ApplicationModal = ... # type: Qt.WindowModality + + class MatchFlag(enum.Flag): + MatchExactly = ... # type: Qt.MatchFlag + MatchFixedString = ... # type: Qt.MatchFlag + MatchContains = ... # type: Qt.MatchFlag + MatchStartsWith = ... # type: Qt.MatchFlag + MatchEndsWith = ... # type: Qt.MatchFlag + MatchWildcard = ... # type: Qt.MatchFlag + MatchCaseSensitive = ... # type: Qt.MatchFlag + MatchWrap = ... # type: Qt.MatchFlag + MatchRecursive = ... # type: Qt.MatchFlag + MatchRegularExpression = ... # type: Qt.MatchFlag + + class ItemFlag(enum.Flag): + 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 + ItemNeverHasChildren = ... # type: Qt.ItemFlag + ItemIsUserTristate = ... # type: Qt.ItemFlag + ItemIsAutoTristate = ... # type: Qt.ItemFlag + + class ItemDataRole(enum.IntEnum): + 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 + ForegroundRole = ... # type: Qt.ItemDataRole + CheckStateRole = ... # type: Qt.ItemDataRole + AccessibleTextRole = ... # type: Qt.ItemDataRole + AccessibleDescriptionRole = ... # type: Qt.ItemDataRole + SizeHintRole = ... # type: Qt.ItemDataRole + InitialSortOrderRole = ... # type: Qt.ItemDataRole + RangeModelAdapterRole = ... # type: Qt.ItemDataRole + UserRole = ... # type: Qt.ItemDataRole + + class CheckState(enum.Enum): + Unchecked = ... # type: Qt.CheckState + PartiallyChecked = ... # type: Qt.CheckState + Checked = ... # type: Qt.CheckState + + class DropAction(enum.Flag): + 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(enum.Enum): + LeftToRight = ... # type: Qt.LayoutDirection + RightToLeft = ... # type: Qt.LayoutDirection + LayoutDirectionAuto = ... # type: Qt.LayoutDirection + + class ToolButtonStyle(enum.Enum): + ToolButtonIconOnly = ... # type: Qt.ToolButtonStyle + ToolButtonTextOnly = ... # type: Qt.ToolButtonStyle + ToolButtonTextBesideIcon = ... # type: Qt.ToolButtonStyle + ToolButtonTextUnderIcon = ... # type: Qt.ToolButtonStyle + ToolButtonFollowStyle = ... # type: Qt.ToolButtonStyle + + class InputMethodQuery(enum.Flag): + 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 + ImReadOnly = ... # type: Qt.InputMethodQuery + + class ContextMenuPolicy(enum.Enum): + NoContextMenu = ... # type: Qt.ContextMenuPolicy + PreventContextMenu = ... # type: Qt.ContextMenuPolicy + DefaultContextMenu = ... # type: Qt.ContextMenuPolicy + ActionsContextMenu = ... # type: Qt.ContextMenuPolicy + CustomContextMenu = ... # type: Qt.ContextMenuPolicy + + class FocusReason(enum.Enum): + 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(enum.Enum): + FastTransformation = ... # type: Qt.TransformationMode + SmoothTransformation = ... # type: Qt.TransformationMode + + class ClipOperation(enum.Enum): + NoClip = ... # type: Qt.ClipOperation + ReplaceClip = ... # type: Qt.ClipOperation + IntersectClip = ... # type: Qt.ClipOperation + + class FillRule(enum.Enum): + OddEvenFill = ... # type: Qt.FillRule + WindingFill = ... # type: Qt.FillRule + + class ShortcutContext(enum.Enum): + WidgetShortcut = ... # type: Qt.ShortcutContext + WindowShortcut = ... # type: Qt.ShortcutContext + ApplicationShortcut = ... # type: Qt.ShortcutContext + WidgetWithChildrenShortcut = ... # type: Qt.ShortcutContext + + class ConnectionType(enum.Enum): + AutoConnection = ... # type: Qt.ConnectionType + DirectConnection = ... # type: Qt.ConnectionType + QueuedConnection = ... # type: Qt.ConnectionType + BlockingQueuedConnection = ... # type: Qt.ConnectionType + UniqueConnection = ... # type: Qt.ConnectionType + SingleShotConnection = ... # type: Qt.ConnectionType + + class Corner(enum.Enum): + TopLeftCorner = ... # type: Qt.Corner + TopRightCorner = ... # type: Qt.Corner + BottomLeftCorner = ... # type: Qt.Corner + BottomRightCorner = ... # type: Qt.Corner + + class CaseSensitivity(enum.Enum): + CaseInsensitive = ... # type: Qt.CaseSensitivity + CaseSensitive = ... # type: Qt.CaseSensitivity + + class ScrollBarPolicy(enum.Enum): + ScrollBarAsNeeded = ... # type: Qt.ScrollBarPolicy + ScrollBarAlwaysOff = ... # type: Qt.ScrollBarPolicy + ScrollBarAlwaysOn = ... # type: Qt.ScrollBarPolicy + + class DayOfWeek(enum.Enum): + 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(enum.Enum): + LocalTime = ... # type: Qt.TimeSpec + UTC = ... # type: Qt.TimeSpec + OffsetFromUTC = ... # type: Qt.TimeSpec + TimeZone = ... # type: Qt.TimeSpec + + class DateFormat(enum.Enum): + TextDate = ... # type: Qt.DateFormat + ISODate = ... # type: Qt.DateFormat + ISODateWithMs = ... # type: Qt.DateFormat + RFC2822Date = ... # type: Qt.DateFormat + + class ToolBarArea(enum.Flag): + LeftToolBarArea = ... # type: Qt.ToolBarArea + RightToolBarArea = ... # type: Qt.ToolBarArea + TopToolBarArea = ... # type: Qt.ToolBarArea + BottomToolBarArea = ... # type: Qt.ToolBarArea + AllToolBarAreas = ... # type: Qt.ToolBarArea + NoToolBarArea = ... # type: Qt.ToolBarArea + + class TimerType(enum.Enum): + PreciseTimer = ... # type: Qt.TimerType + CoarseTimer = ... # type: Qt.TimerType + VeryCoarseTimer = ... # type: Qt.TimerType + + class DockWidgetArea(enum.Flag): + LeftDockWidgetArea = ... # type: Qt.DockWidgetArea + RightDockWidgetArea = ... # type: Qt.DockWidgetArea + TopDockWidgetArea = ... # type: Qt.DockWidgetArea + BottomDockWidgetArea = ... # type: Qt.DockWidgetArea + AllDockWidgetAreas = ... # type: Qt.DockWidgetArea + NoDockWidgetArea = ... # type: Qt.DockWidgetArea + + class AspectRatioMode(enum.Enum): + IgnoreAspectRatio = ... # type: Qt.AspectRatioMode + KeepAspectRatio = ... # type: Qt.AspectRatioMode + KeepAspectRatioByExpanding = ... # type: Qt.AspectRatioMode + + class TextFormat(enum.Enum): + PlainText = ... # type: Qt.TextFormat + RichText = ... # type: Qt.TextFormat + AutoText = ... # type: Qt.TextFormat + MarkdownText = ... # type: Qt.TextFormat + + class CursorShape(enum.Enum): + 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(enum.Enum): + 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(enum.Enum): + 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(enum.Enum): + MiterJoin = ... # type: Qt.PenJoinStyle + BevelJoin = ... # type: Qt.PenJoinStyle + RoundJoin = ... # type: Qt.PenJoinStyle + MPenJoinStyle = ... # type: Qt.PenJoinStyle + SvgMiterJoin = ... # type: Qt.PenJoinStyle + + class PenCapStyle(enum.Enum): + FlatCap = ... # type: Qt.PenCapStyle + SquareCap = ... # type: Qt.PenCapStyle + RoundCap = ... # type: Qt.PenCapStyle + + class PenStyle(enum.Enum): + 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 + + class ArrowType(enum.Enum): + NoArrow = ... # type: Qt.ArrowType + UpArrow = ... # type: Qt.ArrowType + DownArrow = ... # type: Qt.ArrowType + LeftArrow = ... # type: Qt.ArrowType + RightArrow = ... # type: Qt.ArrowType + + class Key(enum.IntEnum): + 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 + Key_micro = ... # type: Qt.Key + Key_Keyboard = ... # type: Qt.Key + + class BGMode(enum.Enum): + TransparentMode = ... # type: Qt.BGMode + OpaqueMode = ... # type: Qt.BGMode + + class ImageConversionFlag(enum.Flag): + 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(enum.Enum): + 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_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_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_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_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_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_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_TranslucentBackground = ... # type: Qt.WidgetAttribute + WA_AcceptTouchEvents = ... # type: Qt.WidgetAttribute + WA_TouchPadAcceptSingleTouchEvents = ... # type: Qt.WidgetAttribute + WA_X11DoNotAcceptFocus = ... # 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(enum.Flag): + WindowNoState = ... # type: Qt.WindowState + WindowMinimized = ... # type: Qt.WindowState + WindowMaximized = ... # type: Qt.WindowState + WindowFullScreen = ... # type: Qt.WindowState + WindowActive = ... # type: Qt.WindowState + + class WindowType(enum.IntFlag): + 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 + ExpandedClientAreaHint = ... # type: Qt.WindowType + NoTitleBarBackgroundHint = ... # type: Qt.WindowType + + class TextElideMode(enum.Enum): + ElideLeft = ... # type: Qt.TextElideMode + ElideRight = ... # type: Qt.TextElideMode + ElideMiddle = ... # type: Qt.TextElideMode + ElideNone = ... # type: Qt.TextElideMode + + class TextFlag(enum.IntFlag): + 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(enum.IntFlag): + 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(enum.Enum): + AscendingOrder = ... # type: Qt.SortOrder + DescendingOrder = ... # type: Qt.SortOrder + + class FocusPolicy(enum.IntFlag): + NoFocus = ... # type: Qt.FocusPolicy + TabFocus = ... # type: Qt.FocusPolicy + ClickFocus = ... # type: Qt.FocusPolicy + StrongFocus = ... # type: Qt.FocusPolicy + WheelFocus = ... # type: Qt.FocusPolicy + + class Orientation(enum.Flag): + Horizontal = ... # type: Qt.Orientation + Vertical = ... # type: Qt.Orientation + + class MouseButton(enum.Flag): + NoButton = ... # type: Qt.MouseButton + AllButtons = ... # type: Qt.MouseButton + LeftButton = ... # type: Qt.MouseButton + RightButton = ... # 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(enum.Flag): + META = ... # type: Qt.Modifier + SHIFT = ... # type: Qt.Modifier + CTRL = ... # type: Qt.Modifier + ALT = ... # type: Qt.Modifier + MODIFIER_MASK = ... # type: Qt.Modifier + + class KeyboardModifier(enum.Flag): + 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(enum.Enum): + 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 + + def ws(self, s: 'QTextStream') -> 'QTextStream': ... + def bom(self, s: 'QTextStream') -> 'QTextStream': ... + def reset(self, s: 'QTextStream') -> 'QTextStream': ... + def flush(self, s: 'QTextStream') -> 'QTextStream': ... + def endl(self, s: 'QTextStream') -> 'QTextStream': ... + def center(self, s: 'QTextStream') -> 'QTextStream': ... + def right(self, s: 'QTextStream') -> 'QTextStream': ... + def left(self, s: 'QTextStream') -> 'QTextStream': ... + def scientific(self, s: 'QTextStream') -> 'QTextStream': ... + def fixed(self, s: 'QTextStream') -> 'QTextStream': ... + def lowercasedigits(self, s: 'QTextStream') -> 'QTextStream': ... + def lowercasebase(self, s: 'QTextStream') -> 'QTextStream': ... + def uppercasedigits(self, s: 'QTextStream') -> 'QTextStream': ... + def uppercasebase(self, s: 'QTextStream') -> 'QTextStream': ... + def noforcepoint(self, s: 'QTextStream') -> 'QTextStream': ... + def noforcesign(self, s: 'QTextStream') -> 'QTextStream': ... + def noshowbase(self, s: 'QTextStream') -> 'QTextStream': ... + def forcepoint(self, s: 'QTextStream') -> 'QTextStream': ... + def forcesign(self, s: 'QTextStream') -> 'QTextStream': ... + def showbase(self, s: 'QTextStream') -> 'QTextStream': ... + def hex(self, s: 'QTextStream') -> 'QTextStream': ... + def dec(self, s: 'QTextStream') -> 'QTextStream': ... + def oct(self, s: 'QTextStream') -> 'QTextStream': ... + def bin(self, s: 'QTextStream') -> 'QTextStream': ... + + +class QKeyCombination(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self, key: Qt.Key = ...) -> None: ... + @typing.overload + def __init__(self, modifiers: Qt.Modifier, key: Qt.Key = ...) -> None: ... + @typing.overload + def __init__(self, modifiers: Qt.KeyboardModifier, key: Qt.Key = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QKeyCombination') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __hash__(self) -> int: ... + def toCombined(self) -> int: ... + @staticmethod + def fromCombined(combined: int) -> 'QKeyCombination': ... + def key(self) -> Qt.Key: ... + def keyboardModifiers(self) -> Qt.KeyboardModifier: ... + + +class QObject(PyQt6.sip.wrapper): + + staticMetaObject = ... # type: 'QMetaObject' + + def __init__(self, parent: 'QObject|None' = ...) -> None: ... + + def isQmlExposed(self) -> bool: ... + def isQuickItemType(self) -> bool: ... + @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') -> None: ... + def childEvent(self, a0: 'QChildEvent|None') -> None: ... + def timerEvent(self, a0: 'QTimerEvent|None') -> None: ... + def receivers(self, signal: PYQT_SIGNAL) -> int: ... + def sender(self) -> 'QObject|None': ... + def deleteLater(self) -> None: ... + def inherits(self, classname: str) -> bool: ... + def parent(self) -> 'QObject|None': ... + objectNameChanged: typing.ClassVar[pyqtSignal] + destroyed: typing.ClassVar[pyqtSignal] + def property(self, name: str) -> typing.Any: ... + def setProperty(self, name: str, value: typing.Any) -> bool: ... + def dynamicPropertyNames(self) -> list['QByteArray']: ... + def dumpObjectTree(self) -> None: ... + def dumpObjectInfo(self) -> None: ... + def removeEventFilter(self, a0: 'QObject|None') -> None: ... + def installEventFilter(self, a0: 'QObject|None') -> None: ... + def setParent(self, a0: 'QObject|None') -> None: ... + def children(self) -> list['QObject']: ... + def killTimer(self, id: int) -> None: ... + def startTimer(self, interval: int, timerType: Qt.TimerType = ...) -> int: ... + def moveToThread(self, thread: 'QThread|None') -> None: ... + def thread(self) -> 'QThread|None': ... + def blockSignals(self, b: bool) -> bool: ... + def signalsBlocked(self) -> bool: ... + def isWindowType(self) -> bool: ... + def isWidgetType(self) -> bool: ... + def setObjectName(self, name: 'QByteArray'|bytes|bytearray|memoryview|str|None) -> None: ... + def objectName(self) -> str: ... + @typing.overload + def findChildren(self, type: type[QObjectT], name: str|None = ..., options: Qt.FindChildOption = ...) -> list[QObjectT]: ... + @typing.overload + def findChildren(self, types: tuple[type[QObjectT], ...], name: str|None = ..., options: Qt.FindChildOption = ...) -> list[QObjectT]: ... + @typing.overload + def findChildren(self, type: type[QObjectT], re: 'QRegularExpression', options: Qt.FindChildOption = ...) -> list[QObjectT]: ... + @typing.overload + def findChildren(self, types: tuple[type[QObjectT], ...], re: 'QRegularExpression', options: Qt.FindChildOption = ...) -> list[QObjectT]: ... + @typing.overload + def findChild(self, type: type[QObjectT], name: str|None = ..., options: Qt.FindChildOption = ...) -> QObjectT: ... + @typing.overload + def findChild(self, types: tuple[type[QObjectT], ...], name: str|None = ..., options: Qt.FindChildOption = ...) -> QObjectT: ... + @staticmethod + def tr(sourceText: str, disambiguation: str = ..., n: int = ...) -> str: ... + def eventFilter(self, a0: 'QObject|None', a1: 'QEvent|None') -> bool: ... + def event(self, a0: 'QEvent|None') -> bool: ... + def pyqtConfigure(self, a0: typing.Any) -> None: ... + def metaObject(self) -> 'QMetaObject|None': ... + + +class QAbstractAnimation(QObject): + + class DeletionPolicy(enum.Enum): + KeepWhenStopped = ... # type: QAbstractAnimation.DeletionPolicy + DeleteWhenStopped = ... # type: QAbstractAnimation.DeletionPolicy + + class State(enum.Enum): + Stopped = ... # type: QAbstractAnimation.State + Paused = ... # type: QAbstractAnimation.State + Running = ... # type: QAbstractAnimation.State + + class Direction(enum.Enum): + Forward = ... # type: QAbstractAnimation.Direction + Backward = ... # type: QAbstractAnimation.Direction + + def __init__(self, parent: QObject|None = ...) -> 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|None') -> 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: ... + directionChanged: typing.ClassVar[pyqtSignal] + currentLoopChanged: typing.ClassVar[pyqtSignal] + stateChanged: typing.ClassVar[pyqtSignal] + finished: typing.ClassVar[pyqtSignal] + 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|None': ... + def state(self) -> 'QAbstractAnimation.State': ... + + +class QAbstractEventDispatcher(QObject): + + class TimerInfo(PyQt6.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: QObject|None = ...) -> None: ... + + awake: typing.ClassVar[pyqtSignal] + aboutToBlock: typing.ClassVar[pyqtSignal] + def filterNativeEvent(self, eventType: 'QByteArray'|bytes|bytearray|memoryview, message: PyQt6.sip.voidptr) -> typing.Tuple[bool, PyQt6.sip.voidptr]: ... + def removeNativeEventFilter(self, filterObj: 'QAbstractNativeEventFilter|None') -> None: ... + def installNativeEventFilter(self, filterObj: 'QAbstractNativeEventFilter|None') -> None: ... + def remainingTime(self, timerId: int) -> int: ... + def closingDown(self) -> None: ... + def startingUp(self) -> None: ... + def interrupt(self) -> None: ... + def wakeUp(self) -> None: ... + def registeredTimers(self, object: QObject|None) -> list['QAbstractEventDispatcher.TimerInfo']: ... + def unregisterTimers(self, object: QObject|None) -> bool: ... + def unregisterTimer(self, timerId: int) -> bool: ... + @typing.overload + def registerTimer(self, interval: int, timerType: Qt.TimerType, object: QObject|None) -> int: ... + @typing.overload + def registerTimer(self, timerId: int, interval: int, timerType: Qt.TimerType, object: QObject|None) -> None: ... + def processEvents(self, flags: 'QEventLoop.ProcessEventsFlag') -> bool: ... + @staticmethod + def instance(thread: 'QThread|None' = ...) -> 'QAbstractEventDispatcher|None': ... + + +class QModelIndex(PyQt6.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 __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @typing.overload + def __ge__(self, rhs: 'QPersistentModelIndex') -> bool: ... + @typing.overload + def __ge__(self, rhs: 'QModelIndex') -> bool: ... + @typing.overload + def __le__(self, rhs: 'QPersistentModelIndex') -> bool: ... + @typing.overload + def __le__(self, rhs: 'QModelIndex') -> bool: ... + @typing.overload + def __gt__(self, rhs: 'QPersistentModelIndex') -> bool: ... + @typing.overload + def __gt__(self, rhs: 'QModelIndex') -> bool: ... + @typing.overload + def __lt__(self, rhs: 'QPersistentModelIndex') -> bool: ... + @typing.overload + def __lt__(self, rhs: 'QModelIndex') -> bool: ... + 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|None': ... + def internalId(self) -> int: ... + def internalPointer(self) -> typing.Any: ... + def flags(self) -> Qt.ItemFlag: ... + def data(self, role: int = ...) -> typing.Any: ... + def column(self) -> int: ... + def row(self) -> int: ... + + +class QPersistentModelIndex(PyQt6.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 __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @typing.overload + def __ge__(self, rhs: QModelIndex) -> bool: ... + @typing.overload + def __ge__(self, rhs: 'QPersistentModelIndex') -> bool: ... + @typing.overload + def __le__(self, rhs: QModelIndex) -> bool: ... + @typing.overload + def __le__(self, rhs: 'QPersistentModelIndex') -> bool: ... + @typing.overload + def __gt__(self, rhs: QModelIndex) -> bool: ... + @typing.overload + def __gt__(self, rhs: 'QPersistentModelIndex') -> bool: ... + @typing.overload + def __lt__(self, rhs: QModelIndex) -> bool: ... + @typing.overload + def __lt__(self, rhs: 'QPersistentModelIndex') -> bool: ... + def __hash__(self) -> int: ... + def swap(self, other: 'QPersistentModelIndex') -> None: ... + def isValid(self) -> bool: ... + def model(self) -> 'QAbstractItemModel|None': ... + def sibling(self, row: int, column: int) -> QModelIndex: ... + def parent(self) -> QModelIndex: ... + def flags(self) -> Qt.ItemFlag: ... + def data(self, role: int = ...) -> typing.Any: ... + def column(self) -> int: ... + def row(self) -> int: ... + + +class QAbstractItemModel(QObject): + + class CheckIndexOption(enum.Flag): + NoOption = ... # type: QAbstractItemModel.CheckIndexOption + IndexIsValid = ... # type: QAbstractItemModel.CheckIndexOption + DoNotUseParent = ... # type: QAbstractItemModel.CheckIndexOption + ParentIsInvalid = ... # type: QAbstractItemModel.CheckIndexOption + + class LayoutChangeHint(enum.Enum): + NoLayoutChangeHint = ... # type: QAbstractItemModel.LayoutChangeHint + VerticalSortHint = ... # type: QAbstractItemModel.LayoutChangeHint + HorizontalSortHint = ... # type: QAbstractItemModel.LayoutChangeHint + + def __init__(self, parent: QObject|None = ...) -> None: ... + + def multiData(self, index: QModelIndex, roleDataSpan: 'QModelRoleDataSpan') -> None: ... + def clearItemData(self, index: QModelIndex) -> bool: ... + def checkIndex(self, index: QModelIndex, options: '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|None', 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: ... + columnsMoved: typing.ClassVar[pyqtSignal] + columnsAboutToBeMoved: typing.ClassVar[pyqtSignal] + rowsMoved: typing.ClassVar[pyqtSignal] + rowsAboutToBeMoved: typing.ClassVar[pyqtSignal] + def createIndex(self, row: int, column: int, object: typing.Any = ...) -> QModelIndex: ... + def roleNames(self) -> dict[int, 'QByteArray']: ... + def supportedDragActions(self) -> Qt.DropAction: ... + 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_: collections.abc.Iterable[QModelIndex], to: collections.abc.Iterable[QModelIndex]) -> None: ... + def changePersistentIndex(self, from_: QModelIndex, to: QModelIndex) -> None: ... + def persistentIndexList(self) -> 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: collections.abc.Iterable[QModelIndex], stream: 'QDataStream') -> None: ... + def revert(self) -> None: ... + def submit(self) -> bool: ... + modelReset: typing.ClassVar[pyqtSignal] + modelAboutToBeReset: typing.ClassVar[pyqtSignal] + columnsRemoved: typing.ClassVar[pyqtSignal] + columnsAboutToBeRemoved: typing.ClassVar[pyqtSignal] + columnsInserted: typing.ClassVar[pyqtSignal] + columnsAboutToBeInserted: typing.ClassVar[pyqtSignal] + rowsRemoved: typing.ClassVar[pyqtSignal] + rowsAboutToBeRemoved: typing.ClassVar[pyqtSignal] + rowsInserted: typing.ClassVar[pyqtSignal] + rowsAboutToBeInserted: typing.ClassVar[pyqtSignal] + layoutChanged: typing.ClassVar[pyqtSignal] + layoutAboutToBeChanged: typing.ClassVar[pyqtSignal] + headerDataChanged: typing.ClassVar[pyqtSignal] + dataChanged: typing.ClassVar[pyqtSignal] + def span(self, index: QModelIndex) -> 'QSize': ... + def match(self, start: QModelIndex, role: int, value: typing.Any, hits: int = ..., flags: Qt.MatchFlag = ...) -> list[QModelIndex]: ... + def buddy(self, index: QModelIndex) -> QModelIndex: ... + def sort(self, column: int, order: Qt.SortOrder = ...) -> None: ... + def flags(self, index: QModelIndex) -> Qt.ItemFlag: ... + 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.DropAction: ... + def dropMimeData(self, data: 'QMimeData|None', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def mimeData(self, indexes: collections.abc.Iterable[QModelIndex]) -> 'QMimeData|None': ... + def mimeTypes(self) -> list[str]: ... + def setItemData(self, index: QModelIndex, roles: dict[int, typing.Any]) -> bool: ... + def itemData(self, index: QModelIndex) -> 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|None: ... + 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: QObject|None = ...) -> None: ... + + def sibling(self, row: int, column: int, idx: QModelIndex) -> QModelIndex: ... + def parent(self) -> QObject|None: ... + def flags(self, index: QModelIndex) -> Qt.ItemFlag: ... + def dropMimeData(self, data: 'QMimeData|None', 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: QObject|None = ...) -> None: ... + + def sibling(self, row: int, column: int, idx: QModelIndex) -> QModelIndex: ... + def parent(self) -> QObject|None: ... + def flags(self, index: QModelIndex) -> Qt.ItemFlag: ... + def dropMimeData(self, data: 'QMimeData|None', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def index(self, row: int, column: int = ..., parent: QModelIndex = ...) -> QModelIndex: ... + + +class QModelRoleData(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self, role: int) -> None: ... + @typing.overload + def __init__(self, a0: 'QModelRoleData') -> None: ... + + def clearData(self) -> None: ... + def setData(self, data: typing.Any) -> None: ... + def data(self) -> typing.Any: ... + def role(self) -> int: ... + + +class QModelRoleDataSpan(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, modelRoleData: QModelRoleData) -> None: ... + @typing.overload + def __init__(self, modelRoleData: collections.abc.Iterable[QModelRoleData]) -> None: ... + @typing.overload + def __init__(self, a0: 'QModelRoleDataSpan') -> None: ... + + def dataForRole(self, role: int) -> typing.Any: ... + def __getitem__(self, index: int) -> QModelRoleData: ... + def end(self) -> QModelRoleData|None: ... + def begin(self) -> QModelRoleData|None: ... + def data(self) -> QModelRoleData|None: ... + def __len__(self) -> int: ... + def length(self) -> int: ... + def size(self) -> int: ... + + +class QAbstractNativeEventFilter(PyQt6.sip.simplewrapper): + + def __init__(self) -> None: ... + + def nativeEventFilter(self, eventType: 'QByteArray'|bytes|bytearray|memoryview, message: PyQt6.sip.voidptr) -> typing.Tuple[bool, PyQt6.sip.voidptr]: ... + + +class QAbstractProxyModel(QAbstractItemModel): + + def __init__(self, parent: QObject|None = ...) -> None: ... + + def roleNames(self) -> dict[int, 'QByteArray']: ... + def clearItemData(self, index: QModelIndex) -> bool: ... + def supportedDragActions(self) -> Qt.DropAction: ... + def dropMimeData(self, data: 'QMimeData|None', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def canDropMimeData(self, data: 'QMimeData|None', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + sourceModelChanged: typing.ClassVar[pyqtSignal] + def sibling(self, row: int, column: int, idx: QModelIndex) -> QModelIndex: ... + def supportedDropActions(self) -> Qt.DropAction: ... + def mimeTypes(self) -> list[str]: ... + def mimeData(self, indexes: collections.abc.Iterable[QModelIndex]) -> 'QMimeData|None': ... + 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: dict[int, typing.Any]) -> bool: ... + def flags(self, index: QModelIndex) -> Qt.ItemFlag: ... + def itemData(self, index: QModelIndex) -> 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|None: ... + def setSourceModel(self, sourceModel: QAbstractItemModel|None) -> None: ... + + +class QAnimationGroup(QAbstractAnimation): + + def __init__(self, parent: QObject|None = ...) -> None: ... + + def event(self, event: 'QEvent|None') -> bool: ... + def clear(self) -> None: ... + def takeAnimation(self, index: int) -> QAbstractAnimation|None: ... + def removeAnimation(self, animation: QAbstractAnimation|None) -> None: ... + def insertAnimation(self, index: int, animation: QAbstractAnimation|None) -> None: ... + def addAnimation(self, animation: QAbstractAnimation|None) -> None: ... + def indexOfAnimation(self, animation: QAbstractAnimation|None) -> int: ... + def animationCount(self) -> int: ... + def animationAt(self, index: int) -> QAbstractAnimation|None: ... + + +class QBasicTimer(PyQt6.sip.simplewrapper): + + def __init__(self) -> None: ... + + def id(self) -> int: ... + def swap(self, other: 'QBasicTimer') -> None: ... + def stop(self) -> None: ... + @typing.overload + def start(self, msec: int, timerType: Qt.TimerType, obj: QObject|None) -> None: ... + @typing.overload + def start(self, msec: int, obj: QObject|None) -> None: ... + def timerId(self) -> int: ... + def isActive(self) -> bool: ... + + +class QBitArray(PyQt6.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: ... + + def __or__(self, a0: 'QBitArray') -> 'QBitArray': ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __and__(self, a0: 'QBitArray') -> 'QBitArray': ... + def __xor__(self, a0: 'QBitArray') -> 'QBitArray': ... + def toUInt32(self, endianness: 'QSysInfo.Endian') -> typing.Tuple[int, bool]: ... + @staticmethod + def fromBits(data: bytes, 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, val: bool, size: int = ...) -> bool: ... + def __ixor__(self, a0: 'QBitArray') -> 'QBitArray': ... + def __ior__(self, a0: 'QBitArray') -> 'QBitArray': ... + def __iand__(self, a0: 'QBitArray') -> '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 QIODeviceBase(PyQt6.sip.simplewrapper): + + class OpenModeFlag(enum.Flag): + NotOpen = ... # type: QIODeviceBase.OpenModeFlag + ReadOnly = ... # type: QIODeviceBase.OpenModeFlag + WriteOnly = ... # type: QIODeviceBase.OpenModeFlag + ReadWrite = ... # type: QIODeviceBase.OpenModeFlag + Append = ... # type: QIODeviceBase.OpenModeFlag + Truncate = ... # type: QIODeviceBase.OpenModeFlag + Text = ... # type: QIODeviceBase.OpenModeFlag + Unbuffered = ... # type: QIODeviceBase.OpenModeFlag + NewOnly = ... # type: QIODeviceBase.OpenModeFlag + ExistingOnly = ... # type: QIODeviceBase.OpenModeFlag + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QIODeviceBase') -> None: ... + + +class QIODevice(QObject, QIODeviceBase): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, parent: QObject|None) -> None: ... + + def setErrorString(self, errorString: str|None) -> None: ... + def setOpenMode(self, openMode: QIODeviceBase.OpenModeFlag) -> None: ... + def skipData(self, maxSize: int) -> int: ... + def writeData(self, a0: PyQt6.sip.Buffer) -> int: ... + def readLineData(self, maxlen: int) -> bytes: ... + def readData(self, maxlen: int) -> bytes: ... + readyRead: typing.ClassVar[pyqtSignal] + readChannelFinished: typing.ClassVar[pyqtSignal] + channelReadyRead: typing.ClassVar[pyqtSignal] + channelBytesWritten: typing.ClassVar[pyqtSignal] + bytesWritten: typing.ClassVar[pyqtSignal] + aboutToClose: typing.ClassVar[pyqtSignal] + def errorString(self) -> str: ... + def getChar(self) -> typing.Tuple[bool, bytes]: ... + def putChar(self, c: bytes) -> bool: ... + def ungetChar(self, c: bytes) -> None: ... + def waitForBytesWritten(self, msecs: int) -> bool: ... + def waitForReadyRead(self, msecs: int) -> bool: ... + def skip(self, maxSize: int) -> int: ... + def peek(self, maxlen: int) -> bytes: ... + def write(self, a0: PyQt6.sip.Buffer) -> int: ... + def isTransactionStarted(self) -> bool: ... + def rollbackTransaction(self) -> None: ... + def commitTransaction(self) -> None: ... + def startTransaction(self) -> None: ... + def canReadLine(self) -> bool: ... + def readAll(self) -> 'QByteArray': ... + def readLineInto(self, result: 'QByteArray'|bytes|bytearray|memoryview, maxSize: int = ...) -> bool: ... + @typing.overload + def readLine(self, maxlen: int) -> bytes: ... + @typing.overload + def readLine(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: QIODeviceBase.OpenModeFlag) -> bool: ... + 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 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) -> QIODeviceBase.OpenModeFlag: ... + + +class QBuffer(QIODevice): + + @typing.overload + def __init__(self, parent: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, byteArray: 'QByteArray|None', parent: QObject|None = ...) -> None: ... + + def writeData(self, a0: PyQt6.sip.Buffer) -> 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: QIODeviceBase.OpenModeFlag) -> bool: ... + @typing.overload + def setData(self, data: 'QByteArray'|bytes|bytearray|memoryview) -> None: ... + @typing.overload + def setData(self, data: PyQt6.sip.array[bytes]) -> None: ... + def setBuffer(self, a: 'QByteArray|None') -> None: ... + def data(self) -> 'QByteArray': ... + def buffer(self) -> 'QByteArray': ... + + +class QByteArray(PyQt6.sip.simplewrapper): + + class Base64DecodingStatus(enum.Enum): + Ok = ... # type: QByteArray.Base64DecodingStatus + IllegalInputLength = ... # type: QByteArray.Base64DecodingStatus + IllegalCharacter = ... # type: QByteArray.Base64DecodingStatus + IllegalPadding = ... # type: QByteArray.Base64DecodingStatus + + class Base64Option(enum.Flag): + Base64Encoding = ... # type: QByteArray.Base64Option + Base64UrlEncoding = ... # type: QByteArray.Base64Option + KeepTrailingEquals = ... # type: QByteArray.Base64Option + OmitTrailingEquals = ... # type: QByteArray.Base64Option + IgnoreBase64DecodingErrors = ... # type: QByteArray.Base64Option + AbortOnBase64DecodingErrors = ... # type: QByteArray.Base64Option + + class FromBase64Result(PyQt6.sip.simplewrapper): + + decoded = ... # type: 'QByteArray'|bytes|bytearray|memoryview + decodingStatus = ... # type: 'QByteArray.Base64DecodingStatus' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QByteArray.FromBase64Result') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __hash__(self) -> int: ... + def __int__(self) -> bool: ... + def swap(self, other: 'QByteArray.FromBase64Result') -> None: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, size: int, c: bytes) -> None: ... + @typing.overload + def __init__(self, a: 'QByteArray'|bytes|bytearray|memoryview) -> None: ... + + def __add__(self, a2: 'QByteArray'|bytes|bytearray|memoryview) -> 'QByteArray': ... + def nullTerminate(self) -> 'QByteArray': ... + def nullTerminated(self) -> 'QByteArray': ... + @staticmethod + def maxSize() -> int: ... + def max_size(self) -> int: ... + @typing.overload + def slice(self, pos: int, n: int) -> 'QByteArray': ... + @typing.overload + def slice(self, pos: int) -> 'QByteArray': ... + def assign(self, v: 'QByteArray'|bytes|bytearray|memoryview) -> 'QByteArray': ... + def removeLast(self) -> 'QByteArray': ... + def removeFirst(self) -> 'QByteArray': ... + def removeAt(self, pos: int) -> 'QByteArray': ... + def percentDecoded(self, percent: str = ...) -> 'QByteArray': ... + def isValidUtf8(self) -> bool: ... + @typing.overload + def sliced(self, pos: int) -> 'QByteArray': ... + @typing.overload + def sliced(self, pos: int, n: int) -> 'QByteArray': ... + @staticmethod + def fromBase64Encoding(base64: 'QByteArray'|bytes|bytearray|memoryview, options: 'QByteArray.Base64Option' = ...) -> 'QByteArray.FromBase64Result': ... + def isLower(self) -> bool: ... + def isUpper(self) -> bool: ... + def compare(self, a: 'QByteArray'|bytes|bytearray|memoryview, 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: 'QByteArray'|bytes|bytearray|memoryview, percent: str = ...) -> 'QByteArray': ... + def toPercentEncoding(self, exclude: 'QByteArray'|bytes|bytearray|memoryview = ..., include: 'QByteArray'|bytes|bytearray|memoryview = ..., percent: str = ...) -> 'QByteArray': ... + def toHex(self, separator: bytes = ...) -> 'QByteArray': ... + def contains(self, bv: 'QByteArray'|bytes|bytearray|memoryview) -> bool: ... + def push_front(self, a: 'QByteArray'|bytes|bytearray|memoryview) -> None: ... + def push_back(self, a: 'QByteArray'|bytes|bytearray|memoryview) -> None: ... + def squeeze(self) -> None: ... + def reserve(self, size: int) -> None: ... + def capacity(self) -> int: ... + def data(self) -> bytes: ... + def isEmpty(self) -> bool: ... + def __imul__(self, m: int) -> 'QByteArray': ... + def __mul__(self, m: int) -> 'QByteArray': ... + def __repr__(self) -> str: ... + def __str__(self) -> str: ... + def __hash__(self) -> int: ... + def __contains__(self, bv: 'QByteArray'|bytes|bytearray|memoryview) -> int: ... + @typing.overload + def __getitem__(self, i: int) -> bytes: ... + @typing.overload + def __getitem__(self, slice: slice) -> 'QByteArray': ... + def at(self, i: int) -> bytes: ... + def __len__(self) -> int: ... + def size(self) -> int: ... + def isNull(self) -> bool: ... + def length(self) -> int: ... + @staticmethod + def fromHex(hexEncoded: 'QByteArray'|bytes|bytearray|memoryview) -> 'QByteArray': ... + @staticmethod + def fromBase64(base64: 'QByteArray'|bytes|bytearray|memoryview, options: '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': ... + def toBase64(self, options: '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]: ... + @typing.overload + def __ge__(self, s2: str|None) -> bool: ... + @typing.overload + def __ge__(self, a2: 'QByteArray'|bytes|bytearray|memoryview) -> bool: ... + @typing.overload + def __le__(self, s2: str|None) -> bool: ... + @typing.overload + def __le__(self, a2: 'QByteArray'|bytes|bytearray|memoryview) -> bool: ... + @typing.overload + def __gt__(self, s2: str|None) -> bool: ... + @typing.overload + def __gt__(self, a2: 'QByteArray'|bytes|bytearray|memoryview) -> bool: ... + @typing.overload + def __lt__(self, s2: str|None) -> bool: ... + @typing.overload + def __lt__(self, a2: 'QByteArray'|bytes|bytearray|memoryview) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __iadd__(self, a: 'QByteArray'|bytes|bytearray|memoryview) -> 'QByteArray': ... + def split(self, sep: bytes) -> list['QByteArray']: ... + @typing.overload + def replace(self, before: 'QByteArray'|bytes|bytearray|memoryview, after: 'QByteArray'|bytes|bytearray|memoryview) -> 'QByteArray': ... + @typing.overload + def replace(self, index: int, len: int, s: 'QByteArray'|bytes|bytearray|memoryview) -> 'QByteArray': ... + def remove(self, index: int, len: int) -> 'QByteArray': ... + @typing.overload + def insert(self, i: int, data: 'QByteArray'|bytes|bytearray|memoryview) -> 'QByteArray': ... + @typing.overload + def insert(self, i: int, count: int, c: bytes) -> 'QByteArray': ... + @typing.overload + def append(self, a: 'QByteArray'|bytes|bytearray|memoryview) -> 'QByteArray': ... + @typing.overload + def append(self, count: int, c: bytes) -> 'QByteArray': ... + @typing.overload + def prepend(self, a: 'QByteArray'|bytes|bytearray|memoryview) -> 'QByteArray': ... + @typing.overload + def prepend(self, count: int, c: bytes) -> 'QByteArray': ... + def rightJustified(self, width: int, fill: bytes = ..., truncate: bool = ...) -> 'QByteArray': ... + def leftJustified(self, width: int, fill: bytes = ..., 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, bv: 'QByteArray'|bytes|bytearray|memoryview) -> bool: ... + def startsWith(self, bv: 'QByteArray'|bytes|bytearray|memoryview) -> bool: ... + def last(self, n: int) -> 'QByteArray': ... + def first(self, n: int) -> 'QByteArray': ... + def mid(self, index: int, length: int = ...) -> 'QByteArray': ... + def right(self, len: int) -> 'QByteArray': ... + def left(self, len: int) -> 'QByteArray': ... + @typing.overload + def count(self, bv: 'QByteArray'|bytes|bytearray|memoryview) -> int: ... + @typing.overload + def count(self) -> int: ... + def lastIndexOf(self, bv: 'QByteArray'|bytes|bytearray|memoryview, from_: int = ...) -> int: ... + def indexOf(self, bv: 'QByteArray'|bytes|bytearray|memoryview, from_: int = ...) -> int: ... + def clear(self) -> None: ... + def fill(self, c: bytes, size: int = ...) -> 'QByteArray': ... + @typing.overload + def resize(self, size: int) -> None: ... + @typing.overload + def resize(self, size: int, c: str) -> None: ... + + +class QByteArrayMatcher(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self, pattern: bytes, length: int = ...) -> None: ... + @typing.overload + def __init__(self, pattern: QByteArray|bytes|bytearray|memoryview) -> None: ... + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QByteArrayMatcher') -> None: ... + + def pattern(self) -> QByteArray: ... + @typing.overload + def indexIn(self, data: QByteArray|bytes|bytearray|memoryview, from_: int = ...) -> int: ... + @typing.overload + def indexIn(self, str: bytes, len: int, from_: int = ...) -> int: ... + def setPattern(self, pattern: QByteArray|bytes|bytearray|memoryview) -> None: ... + + +class QCalendar(PyQt6.sip.simplewrapper): + + class System(enum.Enum): + Gregorian = ... # type: QCalendar.System + Julian = ... # type: QCalendar.System + Milankovic = ... # type: QCalendar.System + Jalali = ... # type: QCalendar.System + IslamicCivil = ... # type: QCalendar.System + + Unspecified = ... # type: int + + class YearMonthDay(PyQt6.sip.simplewrapper): + + day = ... # type: int + month = ... # type: int + year = ... # type: int + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, year: int, month: int = ..., day: int = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QCalendar.YearMonthDay') -> None: ... + + def isValid(self) -> bool: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, system: 'QCalendar.System') -> None: ... + @typing.overload + def __init__(self, name: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + @typing.overload + def __init__(self, a0: 'QCalendar') -> None: ... + + def matchCenturyToWeekday(self, parts: 'QCalendar.YearMonthDay', dow: int) -> 'QDate': ... + @staticmethod + def availableCalendars() -> list[str]: ... + def dateTimeToString(self, format: str, datetime: 'QDateTime'|datetime.datetime, dateOnly: 'QDate'|datetime.date, timeOnly: 'QTime'|datetime.time, locale: 'QLocale') -> str: ... + def standaloneWeekDayName(self, locale: 'QLocale', day: int, format: 'QLocale.FormatType' = ...) -> str: ... + def weekDayName(self, locale: 'QLocale', day: int, format: 'QLocale.FormatType' = ...) -> str: ... + def standaloneMonthName(self, locale: 'QLocale', month: int, year: int = ..., format: 'QLocale.FormatType' = ...) -> str: ... + def monthName(self, locale: 'QLocale', month: int, year: int = ..., format: 'QLocale.FormatType' = ...) -> str: ... + def dayOfWeek(self, date: 'QDate'|datetime.date) -> int: ... + def partsFromDate(self, date: 'QDate'|datetime.date) -> 'QCalendar.YearMonthDay': ... + @typing.overload + def dateFromParts(self, year: int, month: int, day: int) -> 'QDate': ... + @typing.overload + def dateFromParts(self, parts: 'QCalendar.YearMonthDay') -> 'QDate': ... + def name(self) -> str: ... + def maximumMonthsInYear(self) -> int: ... + def minimumDaysInMonth(self) -> int: ... + def maximumDaysInMonth(self) -> int: ... + def hasYearZero(self) -> bool: ... + def isProleptic(self) -> bool: ... + def isSolar(self) -> bool: ... + def isLuniSolar(self) -> bool: ... + def isLunar(self) -> bool: ... + def isGregorian(self) -> bool: ... + def isLeapYear(self, year: int) -> bool: ... + def isDateValid(self, year: int, month: int, day: int) -> bool: ... + def monthsInYear(self, year: int) -> int: ... + def daysInYear(self, year: int) -> int: ... + def daysInMonth(self, month: int, year: int = ...) -> int: ... + + +class QCborError(PyQt6.sip.simplewrapper): + + class Code(enum.Enum): + 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 QCborStreamReader(PyQt6.sip.simplewrapper): + + class StringResultCode(enum.Enum): + EndOfString = ... # type: QCborStreamReader.StringResultCode + Ok = ... # type: QCborStreamReader.StringResultCode + Error = ... # type: QCborStreamReader.StringResultCode + + class Type(enum.Enum): + 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: QByteArray|bytes|bytearray|memoryview) -> None: ... + @typing.overload + def __init__(self, device: QIODevice|None) -> None: ... + + def readAllByteArray(self) -> QByteArray: ... + def readAllUtf8String(self) -> QByteArray: ... + def readAllString(self) -> str: ... + def readAndAppendToByteArray(self, dst: QByteArray|bytes|bytearray|memoryview) -> bool: ... + def readAndAppendToUtf8String(self, dst: QByteArray|bytes|bytearray|memoryview) -> bool: ... + def readAndAppendToString(self, dst: str|None) -> bool: ... + def toInteger(self) -> int: ... + def toDouble(self) -> float: ... + def toSimpleType(self) -> QCborSimpleType: ... + def toUnsignedInteger(self) -> int: ... + def toBool(self) -> bool: ... + def readUtf8String(self) -> tuple[QByteArray, 'QCborStreamReader.StringResultCode']: ... + def readByteArray(self) -> tuple[QByteArray, 'QCborStreamReader.StringResultCode']: ... + def readString(self) -> 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: QByteArray|bytes|bytearray|memoryview) -> None: ... + def device(self) -> QIODevice|None: ... + def setDevice(self, device: QIODevice|None) -> None: ... + + +class QCborStreamWriter(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self, device: QIODevice|None) -> None: ... + @typing.overload + def __init__(self, data: QByteArray|None) -> 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, ba: QByteArray|bytes|bytearray|memoryview) -> None: ... + @typing.overload + def append(self, str: str) -> None: ... + @typing.overload + def append(self, tag: QCborKnownTags) -> None: ... + @typing.overload + def append(self, st: QCborSimpleType) -> 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|None: ... + def setDevice(self, device: QIODevice|None) -> None: ... + + +class QChar(PyQt6.sip.simplewrapper): + + class Script(enum.Enum): + Script_Unknown = ... # type: QChar.Script + Script_Inherited = ... # type: QChar.Script + Script_Common = ... # type: QChar.Script + Script_Latin = ... # type: QChar.Script + Script_Greek = ... # type: QChar.Script + Script_Cyrillic = ... # type: QChar.Script + Script_Armenian = ... # type: QChar.Script + Script_Hebrew = ... # type: QChar.Script + Script_Arabic = ... # type: QChar.Script + Script_Syriac = ... # type: QChar.Script + Script_Thaana = ... # type: QChar.Script + Script_Devanagari = ... # type: QChar.Script + Script_Bengali = ... # type: QChar.Script + Script_Gurmukhi = ... # type: QChar.Script + Script_Gujarati = ... # type: QChar.Script + Script_Oriya = ... # type: QChar.Script + Script_Tamil = ... # type: QChar.Script + Script_Telugu = ... # type: QChar.Script + Script_Kannada = ... # type: QChar.Script + Script_Malayalam = ... # type: QChar.Script + Script_Sinhala = ... # type: QChar.Script + Script_Thai = ... # type: QChar.Script + Script_Lao = ... # type: QChar.Script + Script_Tibetan = ... # type: QChar.Script + Script_Myanmar = ... # type: QChar.Script + Script_Georgian = ... # type: QChar.Script + Script_Hangul = ... # type: QChar.Script + Script_Ethiopic = ... # type: QChar.Script + Script_Cherokee = ... # type: QChar.Script + Script_CanadianAboriginal = ... # type: QChar.Script + Script_Ogham = ... # type: QChar.Script + Script_Runic = ... # type: QChar.Script + Script_Khmer = ... # type: QChar.Script + Script_Mongolian = ... # type: QChar.Script + Script_Hiragana = ... # type: QChar.Script + Script_Katakana = ... # type: QChar.Script + Script_Bopomofo = ... # type: QChar.Script + Script_Han = ... # type: QChar.Script + Script_Yi = ... # type: QChar.Script + Script_OldItalic = ... # type: QChar.Script + Script_Gothic = ... # type: QChar.Script + Script_Deseret = ... # type: QChar.Script + Script_Tagalog = ... # type: QChar.Script + Script_Hanunoo = ... # type: QChar.Script + Script_Buhid = ... # type: QChar.Script + Script_Tagbanwa = ... # type: QChar.Script + Script_Coptic = ... # type: QChar.Script + Script_Limbu = ... # type: QChar.Script + Script_TaiLe = ... # type: QChar.Script + Script_LinearB = ... # type: QChar.Script + Script_Ugaritic = ... # type: QChar.Script + Script_Shavian = ... # type: QChar.Script + Script_Osmanya = ... # type: QChar.Script + Script_Cypriot = ... # type: QChar.Script + Script_Braille = ... # type: QChar.Script + Script_Buginese = ... # type: QChar.Script + Script_NewTaiLue = ... # type: QChar.Script + Script_Glagolitic = ... # type: QChar.Script + Script_Tifinagh = ... # type: QChar.Script + Script_SylotiNagri = ... # type: QChar.Script + Script_OldPersian = ... # type: QChar.Script + Script_Kharoshthi = ... # type: QChar.Script + Script_Balinese = ... # type: QChar.Script + Script_Cuneiform = ... # type: QChar.Script + Script_Phoenician = ... # type: QChar.Script + Script_PhagsPa = ... # type: QChar.Script + Script_Nko = ... # type: QChar.Script + Script_Sundanese = ... # type: QChar.Script + Script_Lepcha = ... # type: QChar.Script + Script_OlChiki = ... # type: QChar.Script + Script_Vai = ... # type: QChar.Script + Script_Saurashtra = ... # type: QChar.Script + Script_KayahLi = ... # type: QChar.Script + Script_Rejang = ... # type: QChar.Script + Script_Lycian = ... # type: QChar.Script + Script_Carian = ... # type: QChar.Script + Script_Lydian = ... # type: QChar.Script + Script_Cham = ... # type: QChar.Script + Script_TaiTham = ... # type: QChar.Script + Script_TaiViet = ... # type: QChar.Script + Script_Avestan = ... # type: QChar.Script + Script_EgyptianHieroglyphs = ... # type: QChar.Script + Script_Samaritan = ... # type: QChar.Script + Script_Lisu = ... # type: QChar.Script + Script_Bamum = ... # type: QChar.Script + Script_Javanese = ... # type: QChar.Script + Script_MeeteiMayek = ... # type: QChar.Script + Script_ImperialAramaic = ... # type: QChar.Script + Script_OldSouthArabian = ... # type: QChar.Script + Script_InscriptionalParthian = ... # type: QChar.Script + Script_InscriptionalPahlavi = ... # type: QChar.Script + Script_OldTurkic = ... # type: QChar.Script + Script_Kaithi = ... # type: QChar.Script + Script_Batak = ... # type: QChar.Script + Script_Brahmi = ... # type: QChar.Script + Script_Mandaic = ... # type: QChar.Script + Script_Chakma = ... # type: QChar.Script + Script_MeroiticCursive = ... # type: QChar.Script + Script_MeroiticHieroglyphs = ... # type: QChar.Script + Script_Miao = ... # type: QChar.Script + Script_Sharada = ... # type: QChar.Script + Script_SoraSompeng = ... # type: QChar.Script + Script_Takri = ... # type: QChar.Script + Script_CaucasianAlbanian = ... # type: QChar.Script + Script_BassaVah = ... # type: QChar.Script + Script_Duployan = ... # type: QChar.Script + Script_Elbasan = ... # type: QChar.Script + Script_Grantha = ... # type: QChar.Script + Script_PahawhHmong = ... # type: QChar.Script + Script_Khojki = ... # type: QChar.Script + Script_LinearA = ... # type: QChar.Script + Script_Mahajani = ... # type: QChar.Script + Script_Manichaean = ... # type: QChar.Script + Script_MendeKikakui = ... # type: QChar.Script + Script_Modi = ... # type: QChar.Script + Script_Mro = ... # type: QChar.Script + Script_OldNorthArabian = ... # type: QChar.Script + Script_Nabataean = ... # type: QChar.Script + Script_Palmyrene = ... # type: QChar.Script + Script_PauCinHau = ... # type: QChar.Script + Script_OldPermic = ... # type: QChar.Script + Script_PsalterPahlavi = ... # type: QChar.Script + Script_Siddham = ... # type: QChar.Script + Script_Khudawadi = ... # type: QChar.Script + Script_Tirhuta = ... # type: QChar.Script + Script_WarangCiti = ... # type: QChar.Script + Script_Ahom = ... # type: QChar.Script + Script_AnatolianHieroglyphs = ... # type: QChar.Script + Script_Hatran = ... # type: QChar.Script + Script_Multani = ... # type: QChar.Script + Script_OldHungarian = ... # type: QChar.Script + Script_SignWriting = ... # type: QChar.Script + Script_Adlam = ... # type: QChar.Script + Script_Bhaiksuki = ... # type: QChar.Script + Script_Marchen = ... # type: QChar.Script + Script_Newa = ... # type: QChar.Script + Script_Osage = ... # type: QChar.Script + Script_Tangut = ... # type: QChar.Script + Script_MasaramGondi = ... # type: QChar.Script + Script_Nushu = ... # type: QChar.Script + Script_Soyombo = ... # type: QChar.Script + Script_ZanabazarSquare = ... # type: QChar.Script + Script_Dogra = ... # type: QChar.Script + Script_GunjalaGondi = ... # type: QChar.Script + Script_HanifiRohingya = ... # type: QChar.Script + Script_Makasar = ... # type: QChar.Script + Script_Medefaidrin = ... # type: QChar.Script + Script_OldSogdian = ... # type: QChar.Script + Script_Sogdian = ... # type: QChar.Script + Script_Elymaic = ... # type: QChar.Script + Script_Nandinagari = ... # type: QChar.Script + Script_NyiakengPuachueHmong = ... # type: QChar.Script + Script_Wancho = ... # type: QChar.Script + Script_Chorasmian = ... # type: QChar.Script + Script_DivesAkuru = ... # type: QChar.Script + Script_KhitanSmallScript = ... # type: QChar.Script + Script_Yezidi = ... # type: QChar.Script + Script_CyproMinoan = ... # type: QChar.Script + Script_NagMundari = ... # type: QChar.Script + Script_OldUyghur = ... # type: QChar.Script + Script_Tangsa = ... # type: QChar.Script + Script_Toto = ... # type: QChar.Script + Script_Vithkuqi = ... # type: QChar.Script + Script_Kawi = ... # type: QChar.Script + Script_Garay = ... # type: QChar.Script + Script_GurungKhema = ... # type: QChar.Script + Script_KiratRai = ... # type: QChar.Script + Script_OlOnal = ... # type: QChar.Script + Script_Sunuwar = ... # type: QChar.Script + Script_Todhri = ... # type: QChar.Script + Script_TuluTigalari = ... # type: QChar.Script + Script_Sidetic = ... # type: QChar.Script + Script_TaiYo = ... # type: QChar.Script + Script_TolongSiki = ... # type: QChar.Script + Script_BeriaErfe = ... # type: QChar.Script + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QChar') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __ge__(self, rhs: str) -> bool: ... + def __le__(self, rhs: str) -> bool: ... + def __gt__(self, rhs: str) -> bool: ... + def __lt__(self, rhs: str) -> bool: ... + + +class QCollatorSortKey(PyQt6.sip.simplewrapper): + + def __init__(self, other: 'QCollatorSortKey') -> None: ... + + def __ge__(self, rhs: 'QCollatorSortKey') -> bool: ... + def __lt__(self, rhs: 'QCollatorSortKey') -> bool: ... + def compare(self, key: 'QCollatorSortKey') -> int: ... + def swap(self, other: 'QCollatorSortKey') -> None: ... + + +class QCollator(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, locale: 'QLocale') -> None: ... + @typing.overload + def __init__(self, a0: 'QCollator') -> None: ... + + @staticmethod + def defaultSortKey(key: str) -> QCollatorSortKey: ... + @staticmethod + def defaultCompare(s1: str, s2: str) -> int: ... + def sortKey(self, string: str|None) -> QCollatorSortKey: ... + def compare(self, s1: str|None, s2: str|None) -> 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(PyQt6.sip.simplewrapper): + + class Flag(enum.Flag): + HiddenFromHelp = ... # type: QCommandLineOption.Flag + ShortOptionStyle = ... # type: QCommandLineOption.Flag + IgnoreOptionsAfter = ... # type: QCommandLineOption.Flag + + @typing.overload + def __init__(self, name: str|None) -> None: ... + @typing.overload + def __init__(self, names: collections.abc.Iterable[str|None]) -> None: ... + @typing.overload + def __init__(self, name: str|None, description: str|None, valueName: str|None = ..., defaultValue: str|None = ...) -> None: ... + @typing.overload + def __init__(self, names: collections.abc.Iterable[str|None], description: str|None, valueName: str|None = ..., defaultValue: str|None = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QCommandLineOption') -> None: ... + + def setFlags(self, aflags: 'QCommandLineOption.Flag') -> None: ... + def flags(self) -> 'QCommandLineOption.Flag': ... + def defaultValues(self) -> list[str]: ... + def setDefaultValues(self, defaultValues: collections.abc.Iterable[str|None]) -> None: ... + def setDefaultValue(self, defaultValue: str|None) -> None: ... + def description(self) -> str: ... + def setDescription(self, description: str|None) -> None: ... + def valueName(self) -> str: ... + def setValueName(self, name: str|None) -> None: ... + def names(self) -> list[str]: ... + def swap(self, other: 'QCommandLineOption') -> None: ... + + +class QCommandLineParser(PyQt6.sip.simplewrapper): + + class MessageType(enum.Enum): + Information = ... # type: QCommandLineParser.MessageType + Error = ... # type: QCommandLineParser.MessageType + + class OptionsAfterPositionalArgumentsMode(enum.Enum): + ParseAsOptions = ... # type: QCommandLineParser.OptionsAfterPositionalArgumentsMode + ParseAsPositionalArguments = ... # type: QCommandLineParser.OptionsAfterPositionalArgumentsMode + + class SingleDashWordOptionMode(enum.Enum): + ParseAsCompactedShortOptions = ... # type: QCommandLineParser.SingleDashWordOptionMode + ParseAsLongOptions = ... # type: QCommandLineParser.SingleDashWordOptionMode + + def __init__(self) -> None: ... + + @staticmethod + def showMessageAndExit(type: 'QCommandLineParser.MessageType', message: str|None, exitCode: int = ...) -> None: ... + def setOptionsAfterPositionalArgumentsMode(self, mode: 'QCommandLineParser.OptionsAfterPositionalArgumentsMode') -> None: ... + def showVersion(self) -> None: ... + def addOptions(self, options: collections.abc.Iterable[QCommandLineOption]) -> bool: ... + def helpText(self) -> str: ... + def showHelp(self, exitCode: int = ...) -> None: ... + def unknownOptionNames(self) -> list[str]: ... + def optionNames(self) -> list[str]: ... + def positionalArguments(self) -> list[str]: ... + @typing.overload + def values(self, name: str|None) -> list[str]: ... + @typing.overload + def values(self, option: QCommandLineOption) -> list[str]: ... + @typing.overload + def value(self, name: str|None) -> str: ... + @typing.overload + def value(self, option: QCommandLineOption) -> str: ... + @typing.overload + def isSet(self, name: str|None) -> bool: ... + @typing.overload + def isSet(self, option: QCommandLineOption) -> bool: ... + def errorText(self) -> str: ... + def parse(self, arguments: collections.abc.Iterable[str|None]) -> bool: ... + @typing.overload + def process(self, arguments: collections.abc.Iterable[str|None]) -> None: ... + @typing.overload + def process(self, app: 'QCoreApplication') -> None: ... + def clearPositionalArguments(self) -> None: ... + def addPositionalArgument(self, name: str|None, description: str|None, syntax: str|None = ...) -> None: ... + def applicationDescription(self) -> str: ... + def setApplicationDescription(self, description: str|None) -> 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: QObject|None = ...) -> None: ... + + def roleNames(self) -> dict[int, QByteArray]: ... + def sourceModels(self) -> list[QAbstractItemModel]: ... + def span(self, index: QModelIndex) -> 'QSize': ... + def dropMimeData(self, data: 'QMimeData|None', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def canDropMimeData(self, data: 'QMimeData|None', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def mimeData(self, indexes: collections.abc.Iterable[QModelIndex]) -> 'QMimeData|None': ... + def mimeTypes(self) -> 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.ItemFlag: ... + def setItemData(self, index: QModelIndex, roles: dict[int, typing.Any]) -> bool: ... + def itemData(self, proxyIndex: QModelIndex) -> 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) -> None: ... + def addSourceModel(self, sourceModel: QAbstractItemModel|None) -> None: ... + + +class QCoreApplication(QObject): + + def __init__(self, argv: list[str]) -> None: ... + + def requestPermission(self, permission: 'QBluetoothPermission'|'QCalendarPermission'|'QCameraPermission'|'QContactsPermission'|'QLocationPermission'|'QMicrophonePermission', handler: collections.abc.Callable[['QBluetoothPermission'|'QCalendarPermission'|'QCameraPermission'|'QContactsPermission'|'QLocationPermission'|'QMicrophonePermission'], None]) -> None: ... + def checkPermission(self, permission: 'QBluetoothPermission'|'QCalendarPermission'|'QCameraPermission'|'QContactsPermission'|'QLocationPermission'|'QMicrophonePermission') -> Qt.PermissionStatus: ... + 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) -> None: ... + def installNativeEventFilter(self, filterObj: QAbstractNativeEventFilter|None) -> None: ... + @staticmethod + def setQuitLockEnabled(enabled: bool) -> None: ... + @staticmethod + def isQuitLockEnabled() -> bool: ... + @staticmethod + def setEventDispatcher(eventDispatcher: QAbstractEventDispatcher|None) -> None: ... + @staticmethod + def eventDispatcher() -> QAbstractEventDispatcher|None: ... + @staticmethod + def applicationPid() -> int: ... + @staticmethod + def applicationVersion() -> str: ... + @staticmethod + def setApplicationVersion(version: str|None) -> None: ... + def event(self, a0: 'QEvent|None') -> bool: ... + aboutToQuit: typing.ClassVar[pyqtSignal] + @staticmethod + def exit(returnCode: int = ...) -> None: ... + @staticmethod + def quit() -> None: ... + @staticmethod + def testAttribute(attribute: Qt.ApplicationAttribute) -> bool: ... + @staticmethod + def setAttribute(attribute: Qt.ApplicationAttribute, on: bool = ...) -> None: ... + @staticmethod + def translate(context: str, sourceText: str, disambiguation: str = ..., n: int = ...) -> str: ... + @staticmethod + def removeTranslator(messageFile: 'QTranslator|None') -> bool: ... + @staticmethod + def installTranslator(messageFile: 'QTranslator|None') -> bool: ... + @staticmethod + def removeLibraryPath(a0: str|None) -> None: ... + @staticmethod + def addLibraryPath(a0: str|None) -> None: ... + @staticmethod + def libraryPaths() -> list[str]: ... + @staticmethod + def setLibraryPaths(a0: collections.abc.Iterable[str|None]) -> None: ... + @staticmethod + def applicationFilePath() -> str: ... + @staticmethod + def applicationDirPath() -> str: ... + @staticmethod + def closingDown() -> bool: ... + @staticmethod + def startingUp() -> bool: ... + def notify(self, a0: QObject|None, a1: 'QEvent|None') -> bool: ... + @staticmethod + def removePostedEvents(receiver: QObject|None, eventType: int = ...) -> None: ... + @staticmethod + def sendPostedEvents(receiver: QObject|None = ..., eventType: int = ...) -> None: ... + @staticmethod + def postEvent(receiver: QObject|None, event: 'QEvent|None', priority: int = ...) -> None: ... + @staticmethod + def sendEvent(receiver: QObject|None, event: 'QEvent|None') -> bool: ... + @typing.overload + @staticmethod + def processEvents(flags: 'QEventLoop.ProcessEventsFlag' = ...) -> None: ... + @typing.overload + @staticmethod + def processEvents(flags: 'QEventLoop.ProcessEventsFlag', maxtime: int) -> None: ... + @typing.overload + @staticmethod + def processEvents(flags: 'QEventLoop.ProcessEventsFlag', deadline: 'QDeadlineTimer') -> None: ... + @staticmethod + def exec() -> int: ... + @staticmethod + def instance() -> 'QCoreApplication|None': ... + @staticmethod + def arguments() -> list[str]: ... + @staticmethod + def applicationName() -> str: ... + @staticmethod + def setApplicationName(application: str|None) -> None: ... + @staticmethod + def organizationName() -> str: ... + @staticmethod + def setOrganizationName(orgName: str|None) -> None: ... + @staticmethod + def organizationDomain() -> str: ... + @staticmethod + def setOrganizationDomain(orgDomain: str|None) -> None: ... + + +class QEvent(PyQt6.sip.wrapper): + + class Type(enum.IntEnum): + 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 + Quit = ... # 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 + NativeGesture = ... # 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 + GraphicsSceneLeave = ... # type: QEvent.Type + EnterEditFocus = ... # type: QEvent.Type + LeaveEditFocus = ... # type: QEvent.Type + DevicePixelRatioChange = ... # type: QEvent.Type + ChildWindowAdded = ... # type: QEvent.Type + ChildWindowRemoved = ... # type: QEvent.Type + ParentWindowAboutToChange = ... # type: QEvent.Type + ParentWindowChange = ... # type: QEvent.Type + SafeAreaMarginsChange = ... # type: QEvent.Type + User = ... # type: QEvent.Type + MaxUser = ... # type: QEvent.Type + + @typing.overload + def __init__(self, type: 'QEvent.Type') -> None: ... + @typing.overload + @deprecated("""""") + def __init__(self, type: int) -> None: ... + + def clone(self) -> 'QEvent|None': ... + def isSinglePointEvent(self) -> bool: ... + def isPointerEvent(self) -> bool: ... + def isInputEvent(self) -> bool: ... + @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): + + def __init__(self, timerId: int) -> None: ... + + def matches(self, timer: QBasicTimer) -> bool: ... + def id(self) -> int: ... + def clone(self) -> 'QTimerEvent|None': ... + def timerId(self) -> int: ... + + +class QChildEvent(QEvent): + + @typing.overload + def __init__(self, type: QEvent.Type, child: QObject|None) -> None: ... + @typing.overload + def __init__(self, type: int, child: QObject|None) -> None: ... + + def clone(self) -> 'QChildEvent|None': ... + def removed(self) -> bool: ... + def polished(self) -> bool: ... + def added(self) -> bool: ... + def child(self) -> QObject|None: ... + + +class QDynamicPropertyChangeEvent(QEvent): + + def __init__(self, name: QByteArray|bytes|bytearray|memoryview) -> None: ... + + def clone(self) -> 'QDynamicPropertyChangeEvent|None': ... + def propertyName(self) -> QByteArray: ... + + +class QCryptographicHash(PyQt6.sip.simplewrapper): + + class Algorithm(enum.Enum): + 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 + Blake2b_160 = ... # type: QCryptographicHash.Algorithm + Blake2b_256 = ... # type: QCryptographicHash.Algorithm + Blake2b_384 = ... # type: QCryptographicHash.Algorithm + Blake2b_512 = ... # type: QCryptographicHash.Algorithm + Blake2s_128 = ... # type: QCryptographicHash.Algorithm + Blake2s_160 = ... # type: QCryptographicHash.Algorithm + Blake2s_224 = ... # type: QCryptographicHash.Algorithm + Blake2s_256 = ... # type: QCryptographicHash.Algorithm + + def __init__(self, method: 'QCryptographicHash.Algorithm') -> None: ... + + @staticmethod + def supportsAlgorithm(method: 'QCryptographicHash.Algorithm') -> bool: ... + def algorithm(self) -> 'QCryptographicHash.Algorithm': ... + def swap(self, other: 'QCryptographicHash') -> None: ... + @staticmethod + def hashLength(method: 'QCryptographicHash.Algorithm') -> int: ... + @staticmethod + def hash(data: QByteArray|bytes|bytearray|memoryview, method: 'QCryptographicHash.Algorithm') -> QByteArray: ... + def resultView(self) -> QByteArray: ... + def result(self) -> QByteArray: ... + @typing.overload + def addData(self, data: QByteArray|bytes|bytearray|memoryview) -> None: ... + @typing.overload + def addData(self, data: PyQt6.sip.array[bytes]) -> None: ... + @typing.overload + def addData(self, device: QIODevice|None) -> bool: ... + def reset(self) -> None: ... + + +class QDataStream(QIODeviceBase): + + class FloatingPointPrecision(enum.Enum): + SinglePrecision = ... # type: QDataStream.FloatingPointPrecision + DoublePrecision = ... # type: QDataStream.FloatingPointPrecision + + class Status(enum.Enum): + Ok = ... # type: QDataStream.Status + ReadPastEnd = ... # type: QDataStream.Status + ReadCorruptData = ... # type: QDataStream.Status + WriteFailed = ... # type: QDataStream.Status + SizeLimitExceeded = ... # type: QDataStream.Status + + class ByteOrder(enum.Enum): + BigEndian = ... # type: QDataStream.ByteOrder + LittleEndian = ... # type: QDataStream.ByteOrder + + class Version(enum.IntEnum): + 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 + Qt_5_14 = ... # type: QDataStream.Version + Qt_5_15 = ... # type: QDataStream.Version + Qt_6_0 = ... # type: QDataStream.Version + Qt_6_1 = ... # type: QDataStream.Version + Qt_6_2 = ... # type: QDataStream.Version + Qt_6_3 = ... # type: QDataStream.Version + Qt_6_4 = ... # type: QDataStream.Version + Qt_6_5 = ... # type: QDataStream.Version + Qt_6_6 = ... # type: QDataStream.Version + Qt_6_7 = ... # type: QDataStream.Version + Qt_6_8 = ... # type: QDataStream.Version + Qt_6_9 = ... # type: QDataStream.Version + Qt_6_10 = ... # type: QDataStream.Version + Qt_6_11 = ... # type: QDataStream.Version + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: QIODevice|None) -> None: ... + @typing.overload + def __init__(self, a0: QByteArray|None, flags: QIODeviceBase.OpenModeFlag) -> None: ... + @typing.overload + def __init__(self, a0: QByteArray|bytes|bytearray|memoryview) -> None: ... + + @typing.overload + def __lshift__(self, a0: QBitArray) -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: QByteArray) -> 'QDataStream': ... + @typing.overload + def __lshift__(self, chr: str) -> 'QDataStream': ... + @typing.overload + def __lshift__(self, combination: QKeyCombination) -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QDate'|datetime.date) -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QTime'|datetime.time) -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QDateTime'|datetime.datetime) -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QEasingCurve') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QJsonDocument') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QJsonValue|None') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QLine') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QLineF') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QLocale') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QMargins') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QMarginsF') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QPoint') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QPointF') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QRect') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QRectF') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, re: 'QRegularExpression') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QSize') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QSizeF') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, tz: 'QTimeZone') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, revision: 'QTypeRevision') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QUrl') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, a0: 'QUuid') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, p: 'QVariant|None') -> 'QDataStream': ... + @typing.overload + def __lshift__(self, version: 'QVersionNumber') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: QBitArray) -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: QByteArray) -> 'QDataStream': ... + @typing.overload + def __rshift__(self, chr: QChar) -> 'QDataStream': ... + @typing.overload + def __rshift__(self, combination: QKeyCombination) -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QDate') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QTime') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QDateTime') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QEasingCurve') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QJsonDocument') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QJsonValue|None') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QLine') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QLineF') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QLocale') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QMargins') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QMarginsF') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QPoint') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QPointF') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QRect') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QRectF') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, re: 'QRegularExpression') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QSize') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QSizeF') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, tz: 'QTimeZone') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, revision: 'QTypeRevision') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QUrl') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, a0: 'QUuid') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, p: 'QVariant|None') -> 'QDataStream': ... + @typing.overload + def __rshift__(self, version: 'QVersionNumber') -> 'QDataStream': ... + def __int__(self) -> bool: ... + def writeQVariantHash(self, qvarhash: dict[str|None, typing.Any]) -> None: ... + def readQVariantHash(self) -> dict[str, typing.Any]: ... + def writeQVariantMap(self, qvarmap: dict[str|None, typing.Any]) -> None: ... + def readQVariantMap(self) -> dict[str, typing.Any]: ... + def writeQVariantList(self, qvarlst: collections.abc.Iterable[typing.Any]) -> None: ... + def readQVariantList(self) -> list[typing.Any]: ... + def writeQVariant(self, qvar: typing.Any) -> None: ... + def readQVariant(self) -> typing.Any: ... + def writeQStringList(self, qstrlst: collections.abc.Iterable[str|None]) -> None: ... + def readQStringList(self) -> list[str]: ... + def writeQString(self, qstr: str|None) -> None: ... + def readQString(self) -> str: ... + def writeString(self, str: bytes) -> 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 abortTransaction(self) -> None: ... + def rollbackTransaction(self) -> None: ... + def commitTransaction(self) -> bool: ... + def startTransaction(self) -> None: ... + def skipRawData(self, len: int) -> int: ... + def writeRawData(self, a0: PyQt6.sip.Buffer) -> int: ... + def writeBytes(self, a0: PyQt6.sip.Buffer) -> 'QDataStream': ... + def readRawData(self, len: int) -> bytes: ... + def readBytes(self) -> bytes: ... + def setVersion(self, a0: int) -> None: ... + def version(self) -> int: ... + def setByteOrder(self, a0: 'QDataStream.ByteOrder') -> None: ... + def byteOrder(self) -> 'QDataStream.ByteOrder': ... + def setFloatingPointPrecision(self, precision: 'QDataStream.FloatingPointPrecision') -> None: ... + def floatingPointPrecision(self) -> 'QDataStream.FloatingPointPrecision': ... + 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) -> None: ... + def device(self) -> QIODevice|None: ... + + +class QDate(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, y: int, m: int, d: int) -> None: ... + @typing.overload + def __init__(self, y: int, m: int, d: int, cal: QCalendar) -> None: ... + @typing.overload + def __init__(self, a0: 'QDate') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __ge__(self, rhs: 'QDate'|datetime.date) -> bool: ... + def __le__(self, rhs: 'QDate'|datetime.date) -> bool: ... + def __gt__(self, rhs: 'QDate'|datetime.date) -> bool: ... + def __lt__(self, rhs: 'QDate'|datetime.date) -> bool: ... + def daysTo(self, d: 'QDate'|datetime.date) -> int: ... + @typing.overload + def endOfDay(self, spec: Qt.TimeSpec = ..., offsetSeconds: int = ...) -> 'QDateTime': ... + @typing.overload + def endOfDay(self, zone: 'QTimeZone') -> 'QDateTime': ... + @typing.overload + def startOfDay(self, spec: Qt.TimeSpec = ..., offsetSeconds: int = ...) -> 'QDateTime': ... + @typing.overload + def startOfDay(self, zone: 'QTimeZone') -> 'QDateTime': ... + def getDate(self) -> typing.Tuple[int, int, int]: ... + @typing.overload + def setDate(self, year: int, month: int, date: int) -> bool: ... + @typing.overload + def setDate(self, year: int, month: int, day: int, cal: QCalendar) -> bool: ... + def toJulianDay(self) -> int: ... + @staticmethod + def fromJulianDay(jd: int) -> 'QDate': ... + @staticmethod + def isLeapYear(year: int) -> bool: ... + @typing.overload + @staticmethod + def fromString(string: str|None, format: Qt.DateFormat = ...) -> 'QDate': ... + @typing.overload + @staticmethod + def fromString(string: str|None, format: str|None, cal: QCalendar = ...) -> 'QDate': ... + @typing.overload + @staticmethod + def fromString(string: str|None, format: str|None, baseYear: int, cal: QCalendar = ...) -> 'QDate': ... + @staticmethod + def currentDate() -> 'QDate': ... + @typing.overload + def addYears(self, years: int) -> 'QDate': ... + @typing.overload + def addYears(self, years: int, cal: QCalendar) -> 'QDate': ... + @typing.overload + def addMonths(self, months: int) -> 'QDate': ... + @typing.overload + def addMonths(self, months: int, cal: QCalendar) -> 'QDate': ... + def addDays(self, days: int) -> 'QDate': ... + @typing.overload + def toString(self, format: str|None, cal: QCalendar = ...) -> str: ... + @typing.overload + def toString(self, format: Qt.DateFormat = ...) -> str: ... + def weekNumber(self) -> typing.Tuple[int, int]: ... + @typing.overload + def daysInYear(self) -> int: ... + @typing.overload + def daysInYear(self, cal: QCalendar) -> int: ... + @typing.overload + def daysInMonth(self) -> int: ... + @typing.overload + def daysInMonth(self, cal: QCalendar) -> int: ... + @typing.overload + def dayOfYear(self) -> int: ... + @typing.overload + def dayOfYear(self, cal: QCalendar) -> int: ... + @typing.overload + def dayOfWeek(self) -> int: ... + @typing.overload + def dayOfWeek(self, cal: QCalendar) -> int: ... + @typing.overload + def day(self) -> int: ... + @typing.overload + def day(self, cal: QCalendar) -> int: ... + @typing.overload + def month(self) -> int: ... + @typing.overload + def month(self, cal: QCalendar) -> int: ... + @typing.overload + def year(self) -> int: ... + @typing.overload + def year(self, cal: QCalendar) -> 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(PyQt6.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 __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __ge__(self, rhs: 'QTime'|datetime.time) -> bool: ... + def __le__(self, rhs: 'QTime'|datetime.time) -> bool: ... + def __gt__(self, rhs: 'QTime'|datetime.time) -> bool: ... + def __lt__(self, rhs: 'QTime'|datetime.time) -> bool: ... + def msecsTo(self, t: 'QTime'|datetime.time) -> int: ... + def secsTo(self, t: 'QTime'|datetime.time) -> int: ... + def msecsSinceStartOfDay(self) -> int: ... + @staticmethod + def fromMSecsSinceStartOfDay(msecs: int) -> 'QTime': ... + @typing.overload + @staticmethod + def fromString(string: str|None, format: Qt.DateFormat = ...) -> 'QTime': ... + @typing.overload + @staticmethod + def fromString(s: str|None, format: str|None) -> 'QTime': ... + @staticmethod + def currentTime() -> 'QTime': ... + def addMSecs(self, ms: int) -> 'QTime': ... + 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|None) -> 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(PyQt6.sip.simplewrapper): + + class YearRange(enum.Enum): + First = ... # type: QDateTime.YearRange + Last = ... # type: QDateTime.YearRange + + class TransitionResolution(enum.Enum): + Reject = ... # type: QDateTime.TransitionResolution + RelativeToBefore = ... # type: QDateTime.TransitionResolution + RelativeToAfter = ... # type: QDateTime.TransitionResolution + PreferBefore = ... # type: QDateTime.TransitionResolution + PreferAfter = ... # type: QDateTime.TransitionResolution + PreferStandard = ... # type: QDateTime.TransitionResolution + PreferDaylightSaving = ... # type: QDateTime.TransitionResolution + LegacyBehavior = ... # type: QDateTime.TransitionResolution + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QDateTime'|datetime.datetime) -> 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: QDate|datetime.date, time: QTime|datetime.time, resolve: 'QDateTime.TransitionResolution') -> None: ... + @typing.overload + def __init__(self, date: QDate|datetime.date, time: QTime|datetime.time, spec: Qt.TimeSpec = ..., offsetSeconds: int = ...) -> None: ... + @typing.overload + def __init__(self, date: QDate|datetime.date, time: QTime|datetime.time, timeZone: 'QTimeZone', resolve: 'QDateTime.TransitionResolution' = ...) -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __ge__(self, rhs: 'QDateTime'|datetime.datetime) -> bool: ... + def __le__(self, rhs: 'QDateTime'|datetime.datetime) -> bool: ... + def __gt__(self, rhs: 'QDateTime'|datetime.datetime) -> bool: ... + def __lt__(self, rhs: 'QDateTime'|datetime.datetime) -> bool: ... + def timeRepresentation(self) -> 'QTimeZone': ... + def setTime(self, time: QTime|datetime.time, resolve: 'QDateTime.TransitionResolution' = ...) -> None: ... + def setDate(self, date: QDate|datetime.date, resolve: 'QDateTime.TransitionResolution' = ...) -> 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: ... + @typing.overload + @staticmethod + def fromMSecsSinceEpoch(msecs: int, spec: Qt.TimeSpec = ..., offsetSeconds: int = ...) -> 'QDateTime': ... + @typing.overload + @staticmethod + def fromMSecsSinceEpoch(msecs: int, timeZone: 'QTimeZone') -> 'QDateTime': ... + def toTimeZone(self, toZone: 'QTimeZone') -> 'QDateTime': ... + def toOffsetFromUtc(self, offsetSeconds: int) -> 'QDateTime': ... + def setTimeZone(self, toZone: 'QTimeZone', resolve: 'QDateTime.TransitionResolution' = ...) -> 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: ... + @staticmethod + def currentDateTimeUtc() -> 'QDateTime': ... + def msecsTo(self, a0: 'QDateTime'|datetime.datetime) -> int: ... + def setMSecsSinceEpoch(self, msecs: int) -> None: ... + def toMSecsSinceEpoch(self) -> int: ... + @typing.overload + @staticmethod + def fromString(string: str|None, format: Qt.DateFormat = ...) -> 'QDateTime': ... + @typing.overload + @staticmethod + def fromString(string: str|None, format: str|None, cal: QCalendar = ...) -> 'QDateTime': ... + @typing.overload + @staticmethod + def fromString(string: str|None, format: str|None, baseYear: int, cal: QCalendar = ...) -> 'QDateTime': ... + @typing.overload + @staticmethod + def currentDateTime() -> 'QDateTime': ... + @typing.overload + @staticmethod + def currentDateTime(zone: 'QTimeZone') -> 'QDateTime': ... + def secsTo(self, a0: 'QDateTime'|datetime.datetime) -> int: ... + def daysTo(self, a0: '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: str|None, cal: QCalendar = ...) -> str: ... + @typing.overload + def toString(self, format: Qt.DateFormat = ...) -> str: ... + def setTimeSpec(self, spec: Qt.TimeSpec) -> None: ... + 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(PyQt6.sip.simplewrapper): + + class ForeverConstant(enum.Enum): + 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: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __ge__(self, rhs: 'QDeadlineTimer') -> bool: ... + def __le__(self, rhs: 'QDeadlineTimer') -> bool: ... + def __gt__(self, rhs: 'QDeadlineTimer') -> bool: ... + def __lt__(self, rhs: 'QDeadlineTimer') -> bool: ... + def __add__(self, msecs: int) -> 'QDeadlineTimer': ... + def __radd__(self, msecs: int) -> 'QDeadlineTimer': ... + @typing.overload + def __sub__(self, msecs: int) -> 'QDeadlineTimer': ... + @typing.overload + def __sub__(self, dt2: 'QDeadlineTimer') -> int: ... + def __isub__(self, msecs: int) -> 'QDeadlineTimer': ... + def __iadd__(self, msecs: int) -> 'QDeadlineTimer': ... + @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(PyQt6.sip.simplewrapper): + + class SortFlag(enum.Flag): + 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(enum.Flag): + 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 + + @typing.overload + def __init__(self, path: str|None, nameFilter: str|None, sort: 'QDir.SortFlag' = ..., filters: 'QDir.Filter' = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QDir') -> None: ... + @typing.overload + def __init__(self, path: str|None = ...) -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def isEmpty(self, filters: 'QDir.Filter' = ...) -> bool: ... + @staticmethod + def listSeparator() -> str: ... + def swap(self, other: 'QDir') -> None: ... + def removeRecursively(self) -> bool: ... + @staticmethod + def searchPaths(prefix: str|None) -> list[str]: ... + @staticmethod + def addSearchPath(prefix: str|None, path: str|None) -> None: ... + @staticmethod + def setSearchPaths(prefix: str|None, searchPaths: collections.abc.Iterable[str|None]) -> None: ... + @staticmethod + def fromNativeSeparators(pathName: str|None) -> str: ... + @staticmethod + def toNativeSeparators(pathName: str|None) -> str: ... + @staticmethod + def cleanPath(path: str|None) -> str: ... + @typing.overload + @staticmethod + def match(filters: collections.abc.Iterable[str|None], fileName: str|None) -> bool: ... + @typing.overload + @staticmethod + def match(filter: str|None, fileName: str|None) -> 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|None) -> bool: ... + @staticmethod + def separator() -> str: ... + @staticmethod + def drives() -> list['QFileInfo']: ... + def refresh(self) -> None: ... + def rename(self, oldName: str|None, newName: str|None) -> bool: ... + def remove(self, fileName: str|None) -> bool: ... + def makeAbsolute(self) -> bool: ... + def isAbsolute(self) -> bool: ... + def isRelative(self) -> bool: ... + @staticmethod + def isAbsolutePath(path: str|None) -> bool: ... + @staticmethod + def isRelativePath(path: str|None) -> bool: ... + def isRoot(self) -> bool: ... + @typing.overload + def exists(self) -> bool: ... + @typing.overload + def exists(self, name: str|None) -> bool: ... + def isReadable(self) -> bool: ... + def rmpath(self, dirPath: str|None) -> bool: ... + @typing.overload + def mkpath(self, dirPath: str|None, permissions: 'QFileDevice.Permission') -> bool: ... + @typing.overload + def mkpath(self, dirPath: str|None) -> bool: ... + def rmdir(self, dirName: str|None) -> bool: ... + @typing.overload + def mkdir(self, dirName: str|None, permissions: 'QFileDevice.Permission') -> bool: ... + @typing.overload + def mkdir(self, dirName: str|None) -> bool: ... + @typing.overload + def entryInfoList(self, filters: 'QDir.Filter' = ..., sort: 'QDir.SortFlag' = ...) -> list['QFileInfo']: ... + @typing.overload + def entryInfoList(self, nameFilters: collections.abc.Iterable[str|None], filters: 'QDir.Filter' = ..., sort: 'QDir.SortFlag' = ...) -> list['QFileInfo']: ... + @typing.overload + def entryList(self, filters: 'QDir.Filter' = ..., sort: 'QDir.SortFlag' = ...) -> list[str]: ... + @typing.overload + def entryList(self, nameFilters: collections.abc.Iterable[str|None], filters: 'QDir.Filter' = ..., sort: 'QDir.SortFlag' = ...) -> list[str]: ... + @staticmethod + def nameFiltersFromString(nameFilter: str|None) -> list[str]: ... + def __contains__(self, a0: str|None) -> int: ... + @typing.overload + def __getitem__(self, a0: int) -> str: ... + @typing.overload + def __getitem__(self, a0: slice) -> list[str]: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def setSorting(self, sort: 'QDir.SortFlag') -> None: ... + def sorting(self) -> 'QDir.SortFlag': ... + def setFilter(self, filter: 'QDir.Filter') -> None: ... + def filter(self) -> 'QDir.Filter': ... + def setNameFilters(self, nameFilters: collections.abc.Iterable[str|None]) -> None: ... + def nameFilters(self) -> list[str]: ... + def cdUp(self) -> bool: ... + def cd(self, dirName: str|None) -> bool: ... + def relativeFilePath(self, fileName: str|None) -> str: ... + def absoluteFilePath(self, fileName: str|None) -> str: ... + def filePath(self, fileName: str|None) -> str: ... + def dirName(self) -> str: ... + def canonicalPath(self) -> str: ... + def absolutePath(self) -> str: ... + def path(self) -> str: ... + def setPath(self, path: str|None) -> None: ... + + +class QDirIterator(PyQt6.sip.simplewrapper): + + class IteratorFlag(enum.Flag): + NoIteratorFlags = ... # type: QDirIterator.IteratorFlag + FollowSymlinks = ... # type: QDirIterator.IteratorFlag + Subdirectories = ... # type: QDirIterator.IteratorFlag + + @typing.overload + def __init__(self, dir: QDir, flags: 'QDirIterator.IteratorFlag' = ...) -> None: ... + @typing.overload + def __init__(self, path: str|None, flags: 'QDirIterator.IteratorFlag' = ...) -> None: ... + @typing.overload + def __init__(self, path: str|None, filter: QDir.Filter, flags: 'QDirIterator.IteratorFlag' = ...) -> None: ... + @typing.overload + def __init__(self, path: str|None, nameFilters: collections.abc.Iterable[str|None], filters: QDir.Filter = ..., flags: 'QDirIterator.IteratorFlag' = ...) -> None: ... + + def path(self) -> str: ... + def fileInfo(self) -> 'QFileInfo': ... + def filePath(self) -> str: ... + def fileName(self) -> str: ... + def hasNext(self) -> bool: ... + def nextFileInfo(self) -> 'QFileInfo': ... + def next(self) -> str: ... + + +class QEasingCurve(PyQt6.sip.simplewrapper): + + class Type(enum.Enum): + 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: 'QEasingCurve'|'QEasingCurve.Type') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def toCubicSpline(self) -> list['QPointF']: ... + def addTCBSegment(self, nextPoint: 'QPointF', t: float, c: float, b: float) -> None: ... + def addCubicBezierSegment(self, c1: 'QPointF', c2: 'QPointF', endPoint: 'QPointF') -> None: ... + def swap(self, other: 'QEasingCurve') -> None: ... + def valueForProgress(self, progress: float) -> float: ... + def customType(self) -> collections.abc.Callable[[float], float]: ... + def setCustomType(self, func: collections.abc.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(PyQt6.sip.simplewrapper): + + class ClockType(enum.Enum): + 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 __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __ge__(self, rhs: 'QElapsedTimer') -> bool: ... + def __le__(self, rhs: 'QElapsedTimer') -> bool: ... + def __gt__(self, rhs: 'QElapsedTimer') -> bool: ... + def __lt__(self, v2: 'QElapsedTimer') -> bool: ... + 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(enum.Flag): + AllEvents = ... # type: QEventLoop.ProcessEventsFlag + ExcludeUserInputEvents = ... # type: QEventLoop.ProcessEventsFlag + ExcludeSocketNotifiers = ... # type: QEventLoop.ProcessEventsFlag + WaitForMoreEvents = ... # type: QEventLoop.ProcessEventsFlag + + def __init__(self, parent: QObject|None = ...) -> None: ... + + def event(self, event: QEvent|None) -> bool: ... + def quit(self) -> None: ... + def wakeUp(self) -> None: ... + def isRunning(self) -> bool: ... + def exit(self, returnCode: int = ...) -> None: ... + def exec(self, flags: 'QEventLoop.ProcessEventsFlag' = ...) -> int: ... + @typing.overload + def processEvents(self, flags: 'QEventLoop.ProcessEventsFlag' = ...) -> bool: ... + @typing.overload + def processEvents(self, flags: 'QEventLoop.ProcessEventsFlag', maximumTime: int) -> None: ... + @typing.overload + def processEvents(self, flags: 'QEventLoop.ProcessEventsFlag', deadline: QDeadlineTimer) -> None: ... + + +class QEventLoopLocker(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, loop: QEventLoop|None) -> None: ... + @typing.overload + def __init__(self, thread: 'QThread|None') -> None: ... + + def swap(self, other: 'QEventLoopLocker') -> None: ... + + +class QFileDevice(QIODevice): + + class MemoryMapFlag(enum.Flag): + NoOptions = ... # type: QFileDevice.MemoryMapFlag + MapPrivateOption = ... # type: QFileDevice.MemoryMapFlag + + class FileTime(enum.Enum): + FileAccessTime = ... # type: QFileDevice.FileTime + FileBirthTime = ... # type: QFileDevice.FileTime + FileMetadataChangeTime = ... # type: QFileDevice.FileTime + FileModificationTime = ... # type: QFileDevice.FileTime + + class FileHandleFlag(enum.Flag): + AutoCloseHandle = ... # type: QFileDevice.FileHandleFlag + DontCloseHandle = ... # type: QFileDevice.FileHandleFlag + + class Permission(enum.Flag): + 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(enum.Enum): + 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 + + def setFileTime(self, newDate: QDateTime|datetime.datetime, fileTime: 'QFileDevice.FileTime') -> bool: ... + def fileTime(self, time: 'QFileDevice.FileTime') -> QDateTime: ... + def writeData(self, a0: PyQt6.sip.Buffer) -> int: ... + def readLineData(self, maxlen: int) -> bytes: ... + def readData(self, maxlen: int) -> bytes: ... + def unmap(self, address: PyQt6.sip.voidptr) -> bool: ... + def map(self, offset: int, size: int, flags: 'QFileDevice.MemoryMapFlag' = ...) -> PyQt6.sip.voidptr: ... + def setPermissions(self, permissionSpec: 'QFileDevice.Permission') -> bool: ... + def permissions(self) -> 'QFileDevice.Permission': ... + 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) -> None: ... + @typing.overload + def __init__(self, parent: QObject|None) -> None: ... + @typing.overload + def __init__(self, name: str|None, parent: QObject|None) -> None: ... + + @staticmethod + def supportsMoveToTrash() -> bool: ... + @typing.overload + def moveToTrash(self) -> bool: ... + @typing.overload + @staticmethod + def moveToTrash(fileName: str|None) -> typing.Tuple[bool, str]: ... + @typing.overload + def setPermissions(self, permissionSpec: QFileDevice.Permission) -> bool: ... + @typing.overload + @staticmethod + def setPermissions(filename: str|None, permissionSpec: QFileDevice.Permission) -> bool: ... + @typing.overload + def permissions(self) -> QFileDevice.Permission: ... + @typing.overload + @staticmethod + def permissions(filename: str|None) -> QFileDevice.Permission: ... + @typing.overload + def resize(self, sz: int) -> bool: ... + @typing.overload + @staticmethod + def resize(filename: str|None, sz: int) -> bool: ... + def size(self) -> int: ... + @typing.overload + def open(self, flags: QIODeviceBase.OpenModeFlag, permissions: QFileDevice.Permission) -> bool: ... + @typing.overload + def open(self, flags: QIODeviceBase.OpenModeFlag) -> bool: ... + @typing.overload + def open(self, fd: int, ioFlags: QIODeviceBase.OpenModeFlag, handleFlags: QFileDevice.FileHandleFlag = ...) -> bool: ... + @typing.overload + def copy(self, newName: str|None) -> bool: ... + @typing.overload + @staticmethod + def copy(fileName: str|None, newName: str|None) -> bool: ... + @typing.overload + def link(self, newName: str|None) -> bool: ... + @typing.overload + @staticmethod + def link(oldname: str|None, newName: str|None) -> bool: ... + @typing.overload + def rename(self, newName: str|None) -> bool: ... + @typing.overload + @staticmethod + def rename(oldName: str|None, newName: str|None) -> bool: ... + @typing.overload + def remove(self) -> bool: ... + @typing.overload + @staticmethod + def remove(fileName: str|None) -> bool: ... + @typing.overload + def symLinkTarget(self) -> str: ... + @typing.overload + @staticmethod + def symLinkTarget(fileName: str|None) -> str: ... + @typing.overload + def exists(self) -> bool: ... + @typing.overload + @staticmethod + def exists(fileName: str|None) -> bool: ... + @typing.overload + @staticmethod + def decodeName(localFileName: QByteArray|bytes|bytearray|memoryview) -> str: ... + @typing.overload + @staticmethod + def decodeName(localFileName: str) -> str: ... + @staticmethod + def encodeName(fileName: str|None) -> QByteArray: ... + def setFileName(self, name: str|None) -> None: ... + def fileName(self) -> str: ... + + +class QFileInfo(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, file: QFileDevice) -> None: ... + @typing.overload + def __init__(self, file: str|None) -> None: ... + @typing.overload + def __init__(self, dir: QDir, file: str|None) -> None: ... + @typing.overload + def __init__(self, fileinfo: 'QFileInfo') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def isOther(self) -> bool: ... + def readSymLink(self) -> str: ... + def isAlias(self) -> bool: ... + def junctionTarget(self) -> str: ... + def stat(self) -> None: ... + def isJunction(self) -> bool: ... + def isShortcut(self) -> bool: ... + def isSymbolicLink(self) -> bool: ... + @typing.overload + def fileTime(self, time: QFileDevice.FileTime) -> QDateTime: ... + @typing.overload + def fileTime(self, time: QFileDevice.FileTime, tz: 'QTimeZone') -> QDateTime: ... + @typing.overload + def metadataChangeTime(self) -> QDateTime: ... + @typing.overload + def metadataChangeTime(self, tz: 'QTimeZone') -> QDateTime: ... + @typing.overload + def birthTime(self) -> QDateTime: ... + @typing.overload + def birthTime(self, tz: 'QTimeZone') -> 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: ... + @typing.overload + def lastRead(self) -> QDateTime: ... + @typing.overload + def lastRead(self, tz: 'QTimeZone') -> QDateTime: ... + @typing.overload + def lastModified(self) -> QDateTime: ... + @typing.overload + def lastModified(self, tz: 'QTimeZone') -> QDateTime: ... + def size(self) -> int: ... + def permissions(self) -> QFileDevice.Permission: ... + def permission(self, 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|None) -> bool: ... + @typing.overload + def setFile(self, file: str|None) -> None: ... + @typing.overload + def setFile(self, file: QFileDevice) -> None: ... + @typing.overload + def setFile(self, dir: QDir, file: str|None) -> None: ... + + +class QFileSelector(QObject): + + def __init__(self, parent: QObject|None = ...) -> None: ... + + def allSelectors(self) -> list[str]: ... + def setExtraSelectors(self, list: collections.abc.Iterable[str|None]) -> None: ... + def extraSelectors(self) -> list[str]: ... + @typing.overload + def select(self, filePath: str|None) -> str: ... + @typing.overload + def select(self, filePath: 'QUrl') -> 'QUrl': ... + + +class QFileSystemWatcher(QObject): + + @typing.overload + def __init__(self, parent: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, paths: collections.abc.Iterable[str|None], parent: QObject|None = ...) -> None: ... + + fileChanged: typing.ClassVar[pyqtSignal] + directoryChanged: typing.ClassVar[pyqtSignal] + def removePaths(self, files: collections.abc.Iterable[str|None]) -> list[str]: ... + def removePath(self, file: str|None) -> bool: ... + def files(self) -> list[str]: ... + def directories(self) -> list[str]: ... + def addPaths(self, files: collections.abc.Iterable[str|None]) -> list[str]: ... + def addPath(self, file: str|None) -> bool: ... + + +class QIdentityProxyModel(QAbstractProxyModel): + + def __init__(self, parent: QObject|None = ...) -> None: ... + + def setHandleSourceDataChanges(self, a0: bool) -> None: ... + def setHandleSourceLayoutChanges(self, a0: bool) -> None: ... + def handleSourceDataChanges(self) -> bool: ... + def handleSourceLayoutChanges(self) -> 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 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) -> None: ... + def match(self, start: QModelIndex, role: int, value: typing.Any, hits: int = ..., flags: Qt.MatchFlag = ...) -> list[QModelIndex]: ... + def mapSelectionToSource(self, selection: 'QItemSelection') -> 'QItemSelection': ... + def mapSelectionFromSource(self, selection: 'QItemSelection') -> 'QItemSelection': ... + def dropMimeData(self, data: 'QMimeData|None', 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(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, atopLeft: QModelIndex, abottomRight: QModelIndex) -> None: ... + @typing.overload + def __init__(self, index: QModelIndex) -> None: ... + @typing.overload + def __init__(self, a0: 'QItemSelectionRange') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def swap(self, other: 'QItemSelectionRange') -> None: ... + def isEmpty(self) -> bool: ... + def intersected(self, other: 'QItemSelectionRange') -> 'QItemSelectionRange': ... + def indexes(self) -> 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|None: ... + 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(enum.Flag): + 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 + + @typing.overload + def __init__(self, model: QAbstractItemModel|None = ...) -> None: ... + @typing.overload + def __init__(self, model: QAbstractItemModel|None, parent: QObject|None) -> None: ... + + modelChanged: typing.ClassVar[pyqtSignal] + def setModel(self, model: QAbstractItemModel|None) -> None: ... + def selectedColumns(self, row: int = ...) -> list[QModelIndex]: ... + def selectedRows(self, column: int = ...) -> list[QModelIndex]: ... + def hasSelection(self) -> bool: ... + def emitSelectionChanged(self, newSelection: 'QItemSelection', oldSelection: 'QItemSelection') -> None: ... + currentColumnChanged: typing.ClassVar[pyqtSignal] + currentRowChanged: typing.ClassVar[pyqtSignal] + currentChanged: typing.ClassVar[pyqtSignal] + selectionChanged: typing.ClassVar[pyqtSignal] + def clearCurrentIndex(self) -> None: ... + def setCurrentIndex(self, index: QModelIndex, command: 'QItemSelectionModel.SelectionFlag') -> None: ... + @typing.overload + def select(self, index: QModelIndex, command: 'QItemSelectionModel.SelectionFlag') -> None: ... + @typing.overload + def select(self, selection: 'QItemSelection', command: 'QItemSelectionModel.SelectionFlag') -> None: ... + def reset(self) -> None: ... + def clearSelection(self) -> None: ... + def clear(self) -> None: ... + def model(self) -> QAbstractItemModel|None: ... + def selection(self) -> 'QItemSelection': ... + def selectedIndexes(self) -> 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(PyQt6.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: ... + + @typing.overload + def __iadd__(self, other: 'QItemSelection') -> 'QItemSelection': ... + @typing.overload + def __iadd__(self, value: QItemSelectionRange) -> 'QItemSelection': ... + 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 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: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @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') -> None: ... + def merge(self, other: 'QItemSelection', command: QItemSelectionModel.SelectionFlag) -> None: ... + def indexes(self) -> list[QModelIndex]: ... + def __contains__(self, index: QModelIndex) -> int: ... + def contains(self, index: QModelIndex) -> bool: ... + def select(self, topLeft: QModelIndex, bottomRight: QModelIndex) -> None: ... + + +class QJsonDocument(PyQt6.sip.simplewrapper): + + class JsonFormat(enum.Enum): + Indented = ... # type: QJsonDocument.JsonFormat + Compact = ... # type: QJsonDocument.JsonFormat + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, object: dict[str|None, 'QJsonValue'|'QJsonValue.Type'|collections.abc.Iterable['QJsonValue']|dict[str|None, 'QJsonValue']|bool|int|float|None|str|None]) -> None: ... + @typing.overload + def __init__(self, array: collections.abc.Iterable['QJsonValue'|'QJsonValue.Type'|collections.abc.Iterable['QJsonValue']|dict[str|None, 'QJsonValue']|bool|int|float|None|str|None]) -> None: ... + @typing.overload + def __init__(self, other: 'QJsonDocument') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @typing.overload + def __getitem__(self, i: int) -> 'QJsonValue|None': ... + @typing.overload + def __getitem__(self, key: str|None) -> 'QJsonValue|None': ... + def swap(self, other: 'QJsonDocument') -> None: ... + def isNull(self) -> bool: ... + def setArray(self, array: collections.abc.Iterable['QJsonValue'|'QJsonValue.Type'|collections.abc.Iterable['QJsonValue']|dict[str|None, 'QJsonValue']|bool|int|float|None|str|None]) -> None: ... + def setObject(self, object: dict[str|None, 'QJsonValue'|'QJsonValue.Type'|collections.abc.Iterable['QJsonValue']|dict[str|None, 'QJsonValue']|bool|int|float|None|str|None]) -> None: ... + def array(self) -> list['QJsonValue']: ... + def object(self) -> dict[str, 'QJsonValue']: ... + def isObject(self) -> bool: ... + def isArray(self) -> bool: ... + def isEmpty(self) -> bool: ... + def toJson(self, format: 'QJsonDocument.JsonFormat' = ...) -> QByteArray: ... + @staticmethod + def fromJson(json: QByteArray|bytes|bytearray|memoryview, error: 'QJsonParseError|None' = ...) -> 'QJsonDocument': ... + def toVariant(self) -> typing.Any: ... + @staticmethod + def fromVariant(variant: typing.Any) -> 'QJsonDocument': ... + + +class QJsonParseError(PyQt6.sip.simplewrapper): + + class ParseError(enum.Enum): + 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 QJsonValue(PyQt6.sip.simplewrapper): + + class Type(enum.Enum): + 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: 'QJsonValue'|'QJsonValue.Type'|collections.abc.Iterable['QJsonValue']|dict[str|None, 'QJsonValue']|bool|int|float|None|str|None) -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def toJson(self, format: QJsonDocument.JsonFormat = ...) -> QByteArray: ... + @staticmethod + def fromJson(json: QByteArray|bytes|bytearray|memoryview) -> typing.Tuple['QJsonValue|None', QJsonParseError|None]: ... + def __hash__(self) -> int: ... + @typing.overload + def __getitem__(self, i: int) -> 'QJsonValue|None': ... + @typing.overload + def __getitem__(self, key: str|None) -> 'QJsonValue|None': ... + def swap(self, other: 'QJsonValue|None') -> None: ... + @typing.overload + def toString(self) -> str: ... + @typing.overload + def toString(self, defaultValue: str|None) -> str: ... + @typing.overload + def toObject(self) -> dict[str, 'QJsonValue']: ... + @typing.overload + def toObject(self, defaultValue: dict[str|None, 'QJsonValue'|'QJsonValue.Type'|collections.abc.Iterable['QJsonValue']|dict[str|None, 'QJsonValue']|bool|int|float|None|str|None]) -> dict[str, 'QJsonValue']: ... + @typing.overload + def toArray(self) -> list['QJsonValue']: ... + @typing.overload + def toArray(self, defaultValue: collections.abc.Iterable['QJsonValue'|'QJsonValue.Type'|collections.abc.Iterable['QJsonValue']|dict[str|None, 'QJsonValue']|bool|int|float|None|str|None]) -> list['QJsonValue']: ... + def toDouble(self, defaultValue: float = ...) -> float: ... + def toInteger(self, defaultValue: int = ...) -> int: ... + 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|None': ... + + +class QLibrary(QObject): + + class LoadHint(enum.Flag): + ResolveAllSymbolsHint = ... # type: QLibrary.LoadHint + ExportExternalSymbolsHint = ... # type: QLibrary.LoadHint + LoadArchiveMemberHint = ... # type: QLibrary.LoadHint + PreventUnloadHint = ... # type: QLibrary.LoadHint + DeepBindHint = ... # type: QLibrary.LoadHint + + @typing.overload + def __init__(self, parent: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, fileName: str|None, parent: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, fileName: str|None, verNum: int, parent: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, fileName: str|None, version: str|None, parent: QObject|None = ...) -> None: ... + + def setLoadHints(self, hints: 'QLibrary.LoadHint') -> None: ... + @typing.overload + def setFileNameAndVersion(self, fileName: str|None, verNum: int) -> None: ... + @typing.overload + def setFileNameAndVersion(self, fileName: str|None, version: str|None) -> None: ... + def setFileName(self, fileName: str|None) -> None: ... + @staticmethod + def isLibrary(fileName: str|None) -> bool: ... + def unload(self) -> bool: ... + @typing.overload + def resolve(self, symbol: str) -> PyQt6.sip.voidptr: ... + @typing.overload + @staticmethod + def resolve(fileName: str|None, symbol: str) -> PyQt6.sip.voidptr: ... + @typing.overload + @staticmethod + def resolve(fileName: str|None, verNum: int, symbol: str) -> PyQt6.sip.voidptr: ... + @typing.overload + @staticmethod + def resolve(fileName: str|None, version: str|None, symbol: str) -> PyQt6.sip.voidptr: ... + def loadHints(self) -> 'QLibrary.LoadHint': ... + def load(self) -> bool: ... + def isLoaded(self) -> bool: ... + def fileName(self) -> str: ... + def errorString(self) -> str: ... + + +class QLibraryInfo(PyQt6.sip.simplewrapper): + + class LibraryPath(enum.Enum): + PrefixPath = ... # type: QLibraryInfo.LibraryPath + DocumentationPath = ... # type: QLibraryInfo.LibraryPath + HeadersPath = ... # type: QLibraryInfo.LibraryPath + LibrariesPath = ... # type: QLibraryInfo.LibraryPath + LibraryExecutablesPath = ... # type: QLibraryInfo.LibraryPath + BinariesPath = ... # type: QLibraryInfo.LibraryPath + PluginsPath = ... # type: QLibraryInfo.LibraryPath + Qml2ImportsPath = ... # type: QLibraryInfo.LibraryPath + ArchDataPath = ... # type: QLibraryInfo.LibraryPath + DataPath = ... # type: QLibraryInfo.LibraryPath + TranslationsPath = ... # type: QLibraryInfo.LibraryPath + ExamplesPath = ... # type: QLibraryInfo.LibraryPath + TestsPath = ... # type: QLibraryInfo.LibraryPath + SettingsPath = ... # type: QLibraryInfo.LibraryPath + QmlImportsPath = ... # type: QLibraryInfo.LibraryPath + + def __init__(self, a0: 'QLibraryInfo') -> None: ... + + @staticmethod + def paths(p: 'QLibraryInfo.LibraryPath') -> list[str]: ... + @staticmethod + def version() -> 'QVersionNumber': ... + @staticmethod + def path(p: 'QLibraryInfo.LibraryPath') -> str: ... + @staticmethod + def isSharedBuild() -> bool: ... + @staticmethod + def isDebugBuild() -> bool: ... + + +class QLine(PyQt6.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 __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def toLineF(self) -> 'QLineF': ... + 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(PyQt6.sip.simplewrapper): + + class IntersectionType(enum.Enum): + NoIntersection = ... # type: QLineF.IntersectionType + BoundedIntersection = ... # type: QLineF.IntersectionType + UnboundedIntersection = ... # type: QLineF.IntersectionType + + @typing.overload + def __init__(self, line: QLine) -> None: ... + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, apt1: 'QPointF', apt2: 'QPointF') -> None: ... + @typing.overload + def __init__(self, x1pos: float, y1pos: float, x2pos: float, y2pos: float) -> None: ... + @typing.overload + def __init__(self, a0: 'QLineF') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def center(self) -> 'QPointF': ... + def setLine(self, aX1: float, aY1: float, aX2: float, aY2: float) -> None: ... + def setPoints(self, aP1: 'QPointF', aP2: 'QPointF') -> None: ... + def setP2(self, aP2: 'QPointF') -> None: ... + def setP1(self, aP1: 'QPointF') -> None: ... + @typing.overload + def translated(self, p: 'QPointF') -> '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: 'QPointF') -> 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 intersects(self, l: 'QLineF') -> typing.Tuple['QLineF.IntersectionType', 'QPointF|None']: ... + def unitVector(self) -> 'QLineF': ... + def length(self) -> float: ... + def __bool__(self) -> int: ... + def isNull(self) -> bool: ... + + +class QLocale(PyQt6.sip.simplewrapper): + + class LanguageCodeType(enum.IntFlag): + ISO639Part1 = ... # type: QLocale.LanguageCodeType + ISO639Part2B = ... # type: QLocale.LanguageCodeType + ISO639Part2T = ... # type: QLocale.LanguageCodeType + ISO639Part3 = ... # type: QLocale.LanguageCodeType + LegacyLanguageCode = ... # type: QLocale.LanguageCodeType + ISO639Part2 = ... # type: QLocale.LanguageCodeType + ISO639Alpha2 = ... # type: QLocale.LanguageCodeType + ISO639Alpha3 = ... # type: QLocale.LanguageCodeType + ISO639 = ... # type: QLocale.LanguageCodeType + AnyLanguageCode = ... # type: QLocale.LanguageCodeType + + class DataSizeFormat(enum.Flag): + DataSizeIecFormat = ... # type: QLocale.DataSizeFormat + DataSizeTraditionalFormat = ... # type: QLocale.DataSizeFormat + DataSizeSIFormat = ... # type: QLocale.DataSizeFormat + + class FloatingPointPrecisionOption(enum.IntEnum): + FloatingPointShortest = ... # type: QLocale.FloatingPointPrecisionOption + + class QuotationStyle(enum.Enum): + StandardQuotation = ... # type: QLocale.QuotationStyle + AlternateQuotation = ... # type: QLocale.QuotationStyle + + class CurrencySymbolFormat(enum.Enum): + CurrencyIsoCode = ... # type: QLocale.CurrencySymbolFormat + CurrencySymbol = ... # type: QLocale.CurrencySymbolFormat + CurrencyDisplayName = ... # type: QLocale.CurrencySymbolFormat + + class Script(enum.Enum): + 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 + BanglaScript = ... # type: QLocale.Script + MendeScript = ... # type: QLocale.Script + OdiaScript = ... # type: QLocale.Script + HanifiScript = ... # type: QLocale.Script + + class MeasurementSystem(enum.Enum): + MetricSystem = ... # type: QLocale.MeasurementSystem + ImperialSystem = ... # type: QLocale.MeasurementSystem + ImperialUSSystem = ... # type: QLocale.MeasurementSystem + ImperialUKSystem = ... # type: QLocale.MeasurementSystem + + class FormatType(enum.Enum): + LongFormat = ... # type: QLocale.FormatType + ShortFormat = ... # type: QLocale.FormatType + NarrowFormat = ... # type: QLocale.FormatType + + class TagSeparator(enum.Enum): + Dash = ... # type: QLocale.TagSeparator + Underscore = ... # type: QLocale.TagSeparator + + class NumberOption(enum.Flag): + 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(enum.Enum): + AnyCountry = ... # type: QLocale.Country + AnyTerritory = ... # 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 + TrinidadAndTobago = ... # type: QLocale.Country + Tunisia = ... # type: QLocale.Country + Turkey = ... # type: QLocale.Country + Turkmenistan = ... # type: QLocale.Country + TurksAndCaicosIslands = ... # 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 + BosniaAndHerzegovina = ... # type: QLocale.Country + CaribbeanNetherlands = ... # type: QLocale.Country + Curacao = ... # type: QLocale.Country + Czechia = ... # type: QLocale.Country + Eswatini = ... # type: QLocale.Country + Macao = ... # type: QLocale.Country + SaintVincentAndGrenadines = ... # type: QLocale.Country + SouthGeorgiaAndSouthSandwichIslands = ... # type: QLocale.Country + SvalbardAndJanMayen = ... # type: QLocale.Country + TimorLeste = ... # type: QLocale.Country + UnitedStatesOutlyingIslands = ... # type: QLocale.Country + VaticanCity = ... # type: QLocale.Country + WallisAndFutuna = ... # type: QLocale.Country + NauruTerritory = ... # type: QLocale.Country + TokelauTerritory = ... # type: QLocale.Country + TuvaluTerritory = ... # type: QLocale.Country + + class Language(enum.Enum): + 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 + 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 + Mongolian = ... # type: QLocale.Language + NauruLanguage = ... # type: QLocale.Language + Nepali = ... # 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 + 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 + 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 + 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 + 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 + Chakma = ... # type: QLocale.Language + Coptic = ... # type: QLocale.Language + Dogri = ... # type: QLocale.Language + Gothic = ... # type: QLocale.Language + Ingush = ... # type: QLocale.Language + Mandingo = ... # type: QLocale.Language + Manipuri = ... # type: QLocale.Language + OldIrish = ... # type: QLocale.Language + OldNorse = ... # type: QLocale.Language + OldPersian = ... # type: QLocale.Language + Pahlavi = ... # type: QLocale.Language + Phoenician = ... # type: QLocale.Language + Santali = ... # type: QLocale.Language + Saurashtra = ... # type: QLocale.Language + TaiDam = ... # 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 + Mende = ... # type: QLocale.Language + Lezghian = ... # type: QLocale.Language + Maithili = ... # type: QLocale.Language + AmericanSignLanguage = ... # type: QLocale.Language + Bhojpuri = ... # type: QLocale.Language + LiteraryChinese = ... # type: QLocale.Language + Mazanderani = ... # type: QLocale.Language + Newari = ... # type: QLocale.Language + NorthernLuri = ... # type: QLocale.Language + Palauan = ... # type: QLocale.Language + Papiamento = ... # type: QLocale.Language + TokelauLanguage = ... # type: QLocale.Language + TokPisin = ... # type: QLocale.Language + TuvaluLanguage = ... # type: QLocale.Language + Cantonese = ... # type: QLocale.Language + Osage = ... # type: QLocale.Language + Ido = ... # type: QLocale.Language + Lojban = ... # type: QLocale.Language + Sicilian = ... # type: QLocale.Language + SouthernKurdish = ... # type: QLocale.Language + WesternBalochi = ... # type: QLocale.Language + Cebuano = ... # type: QLocale.Language + Erzya = ... # type: QLocale.Language + Chickasaw = ... # type: QLocale.Language + Muscogee = ... # type: QLocale.Language + Silesian = ... # type: QLocale.Language + NigerianPidgin = ... # type: QLocale.Language + Bangla = ... # type: QLocale.Language + CentralAtlasTamazight = ... # type: QLocale.Language + Inupiaq = ... # type: QLocale.Language + Kalaallisut = ... # type: QLocale.Language + Kuanyama = ... # type: QLocale.Language + Kyrgyz = ... # type: QLocale.Language + Navajo = ... # type: QLocale.Language + Odia = ... # type: QLocale.Language + Uyghur = ... # type: QLocale.Language + Wolaytta = ... # type: QLocale.Language + Kaingang = ... # type: QLocale.Language + Nheengatu = ... # type: QLocale.Language + Haryanvi = ... # type: QLocale.Language + NorthernFrisian = ... # type: QLocale.Language + Rajasthani = ... # type: QLocale.Language + Moksha = ... # type: QLocale.Language + TokiPona = ... # type: QLocale.Language + Pijin = ... # type: QLocale.Language + Obolo = ... # type: QLocale.Language + Baluchi = ... # type: QLocale.Language + Ligurian = ... # type: QLocale.Language + Rohingya = ... # type: QLocale.Language + Torwali = ... # type: QLocale.Language + Anii = ... # type: QLocale.Language + Kangri = ... # type: QLocale.Language + Venetian = ... # type: QLocale.Language + Kuvi = ... # type: QLocale.Language + KaraKalpak = ... # type: QLocale.Language + SwampyCree = ... # type: QLocale.Language + Ladin = ... # type: QLocale.Language + Shan = ... # type: QLocale.Language + + DefaultTwoDigitBaseYear = ... # type: int + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, name: str|None) -> None: ... + @typing.overload + def __init__(self, language: 'QLocale.Language', country: 'QLocale.Country' = ...) -> None: ... + @typing.overload + def __init__(self, language: 'QLocale.Language', script: 'QLocale.Script', country: 'QLocale.Country') -> None: ... + @typing.overload + def __init__(self, other: 'QLocale') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @staticmethod + def territoryToString(territory: 'QLocale.Country') -> str: ... + @staticmethod + def codeToTerritory(territoryCode: str) -> 'QLocale.Country': ... + @staticmethod + def territoryToCode(territory: 'QLocale.Country') -> str: ... + def nativeTerritoryName(self) -> str: ... + def territory(self) -> 'QLocale.Country': ... + @staticmethod + def codeToScript(scriptCode: str) -> 'QLocale.Script': ... + @staticmethod + def scriptToCode(script: 'QLocale.Script') -> str: ... + @staticmethod + def codeToCountry(countryCode: str) -> 'QLocale.Country': ... + @staticmethod + def countryToCode(country: 'QLocale.Country') -> str: ... + @staticmethod + def codeToLanguage(languageCode: str, codeTypes: 'QLocale.LanguageCodeType' = ...) -> 'QLocale.Language': ... + @staticmethod + def languageToCode(language: 'QLocale.Language', codeTypes: 'QLocale.LanguageCodeType' = ...) -> str: ... + def collation(self) -> 'QLocale': ... + def toULong(self, s: str|None) -> typing.Tuple[int, bool]: ... + def toLong(self, s: str|None) -> typing.Tuple[int, bool]: ... + def formattedDataSize(self, bytes: int, precision: int = ..., format: 'QLocale.DataSizeFormat' = ...) -> str: ... + def swap(self, other: 'QLocale') -> None: ... + def __hash__(self) -> int: ... + def createSeparatedList(self, list: collections.abc.Iterable[str|None]) -> str: ... + def quoteString(self, str: str, style: 'QLocale.QuotationStyle' = ...) -> str: ... + @staticmethod + def matchingLocales(language: 'QLocale.Language', script: 'QLocale.Script', territory: 'QLocale.Country') -> list['QLocale']: ... + @staticmethod + def scriptToString(script: 'QLocale.Script') -> str: ... + def uiLanguages(self, separator: 'QLocale.TagSeparator' = ...) -> list[str]: ... + @typing.overload + def toCurrencyString(self, a0: float, symbol: str|None = ..., precision: int = ...) -> str: ... + @typing.overload + def toCurrencyString(self, value: int, symbol: str|None = ...) -> str: ... + def currencySymbol(self, format: 'QLocale.CurrencySymbolFormat' = ...) -> str: ... + def toLower(self, str: str|None) -> str: ... + def toUpper(self, str: str|None) -> str: ... + def weekdays(self) -> list[Qt.DayOfWeek]: ... + def firstDayOfWeek(self) -> Qt.DayOfWeek: ... + def nativeCountryName(self) -> str: ... + def nativeLanguageName(self) -> str: ... + def bcp47Name(self, separator: 'QLocale.TagSeparator' = ...) -> 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.NumberOption': ... + def setNumberOptions(self, options: '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|None, format: str|None, baseYear: int = ...) -> QDateTime: ... + @typing.overload + def toDateTime(self, string: str|None, format: str|None, cal: QCalendar, baseYear: int = ...) -> QDateTime: ... + @typing.overload + def toDateTime(self, string: str|None, format: 'QLocale.FormatType', cal: QCalendar, baseYear: int = ...) -> QDateTime: ... + @typing.overload + def toDateTime(self, string: str|None, format: 'QLocale.FormatType' = ..., baseYear: int = ...) -> QDateTime: ... + @typing.overload + def toTime(self, string: str|None, format: 'QLocale.FormatType' = ...) -> QTime: ... + @typing.overload + def toTime(self, string: str|None, format: str|None) -> QTime: ... + @typing.overload + def toDate(self, string: str|None, format: str|None, baseYear: int = ...) -> QDate: ... + @typing.overload + def toDate(self, string: str|None, format: str|None, cal: QCalendar, baseYear: int = ...) -> QDate: ... + @typing.overload + def toDate(self, string: str|None, format: 'QLocale.FormatType', cal: QCalendar, baseYear: int = ...) -> QDate: ... + @typing.overload + def toDate(self, string: str|None, a1: 'QLocale.FormatType' = ..., baseYear: int = ...) -> 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, date: QDate|datetime.date, format: 'QLocale.FormatType', cal: QCalendar) -> str: ... + @typing.overload + def toString(self, date: QDate|datetime.date, formatStr: str, cal: QCalendar) -> str: ... + @typing.overload + def toString(self, date: QDate|datetime.date, format: 'QLocale.FormatType' = ...) -> str: ... + @typing.overload + def toString(self, date: QDate|datetime.date, formatStr: str) -> str: ... + @typing.overload + def toString(self, time: QTime|datetime.time, format: 'QLocale.FormatType' = ...) -> str: ... + @typing.overload + def toString(self, time: QTime|datetime.time, formatStr: str) -> str: ... + @typing.overload + def toString(self, i: float, format: str = ..., precision: int = ...) -> str: ... + @typing.overload + def toString(self, dateTime: QDateTime|datetime.datetime, format: 'QLocale.FormatType', cal: QCalendar) -> str: ... + @typing.overload + def toString(self, dateTime: QDateTime|datetime.datetime, format: str|None) -> str: ... + @typing.overload + def toString(self, dateTime: QDateTime|datetime.datetime, formatStr: str|None, cal: QCalendar) -> str: ... + @typing.overload + def toString(self, dateTime: QDateTime|datetime.datetime, format: 'QLocale.FormatType' = ...) -> str: ... + @typing.overload + def toString(self, i: int) -> str: ... + def toDouble(self, s: str|None) -> typing.Tuple[float, bool]: ... + def toFloat(self, s: str|None) -> typing.Tuple[float, bool]: ... + def toULongLong(self, s: str|None) -> typing.Tuple[int, bool]: ... + def toLongLong(self, s: str|None) -> typing.Tuple[int, bool]: ... + def toUInt(self, s: str|None) -> typing.Tuple[int, bool]: ... + def toInt(self, s: str|None) -> typing.Tuple[int, bool]: ... + def toUShort(self, s: str|None) -> typing.Tuple[int, bool]: ... + def toShort(self, s: str|None) -> typing.Tuple[int, bool]: ... + def name(self, separator: 'QLocale.TagSeparator' = ...) -> str: ... + def country(self) -> 'QLocale.Country': ... + def language(self) -> 'QLocale.Language': ... + + +class QLockFile(PyQt6.sip.simplewrapper): + + class LockError(enum.Enum): + NoError = ... # type: QLockFile.LockError + LockFailedError = ... # type: QLockFile.LockError + PermissionError = ... # type: QLockFile.LockError + UnknownError = ... # type: QLockFile.LockError + + def __init__(self, fileName: str|None) -> None: ... + + def fileName(self) -> str: ... + 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(PyQt6.sip.simplewrapper): + + CurrentVersion = ... # type: int + category = ... # type: str + file = ... # type: str + function = ... # type: str + line = ... # type: int + + +class QMessageLogger(PyQt6.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: ... + + @typing.overload + def fatal(self, msg: str) -> None: ... + @typing.overload + def fatal(self, cat: 'QLoggingCategory', msg: str) -> None: ... + @typing.overload + def critical(self, msg: str) -> None: ... + @typing.overload + def critical(self, cat: 'QLoggingCategory', msg: str) -> None: ... + @typing.overload + def warning(self, msg: str) -> None: ... + @typing.overload + def warning(self, cat: 'QLoggingCategory', msg: str) -> None: ... + @typing.overload + def info(self, msg: str) -> None: ... + @typing.overload + def info(self, cat: 'QLoggingCategory', msg: str) -> None: ... + @typing.overload + def debug(self, msg: str) -> None: ... + @typing.overload + def debug(self, cat: 'QLoggingCategory', msg: str) -> None: ... + + +class QLoggingCategory(PyQt6.sip.simplewrapper): + + def __init__(self, category: str, severityLevel: QtMsgType = ...) -> None: ... + + @staticmethod + def setFilterRules(rules: str|None) -> None: ... + @staticmethod + def defaultCategory() -> 'QLoggingCategory|None': ... + 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(PyQt6.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 __or__(self, m2: 'QMargins') -> 'QMargins': ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @typing.overload + def __add__(self, m2: 'QMargins') -> 'QMargins': ... + @typing.overload + def __add__(self, rhs: int) -> 'QMargins': ... + @typing.overload + def __add__(self, rectangle: 'QRect') -> 'QRect': ... + def __radd__(self, lhs: int) -> 'QMargins': ... + @typing.overload + def __sub__(self, m2: 'QMargins') -> 'QMargins': ... + @typing.overload + def __sub__(self, rhs: int) -> 'QMargins': ... + @typing.overload + def __mul__(self, factor: int) -> 'QMargins': ... + @typing.overload + def __mul__(self, factor: float) -> 'QMargins': ... + @typing.overload + def __truediv__(self, divisor: int) -> 'QMargins': ... + @typing.overload + def __truediv__(self, divisor: float) -> 'QMargins': ... + def __pos__(self) -> 'QMargins': ... + def __neg__(self) -> 'QMargins': ... + def toMarginsF(self) -> 'QMarginsF': ... + @typing.overload + def __itruediv__(self, divisor: int) -> 'QMargins': ... + @typing.overload + def __itruediv__(self, divisor: float) -> 'QMargins': ... + @typing.overload + def __imul__(self, factor: int) -> 'QMargins': ... + @typing.overload + def __imul__(self, factor: float) -> 'QMargins': ... + @typing.overload + def __isub__(self, margins: 'QMargins') -> 'QMargins': ... + @typing.overload + def __isub__(self, margin: int) -> 'QMargins': ... + @typing.overload + def __iadd__(self, margins: 'QMargins') -> 'QMargins': ... + @typing.overload + def __iadd__(self, margin: int) -> '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(PyQt6.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 __or__(self, m2: 'QMarginsF') -> 'QMarginsF': ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @typing.overload + def __add__(self, rhs: 'QMarginsF') -> 'QMarginsF': ... + @typing.overload + def __add__(self, rhs: float) -> 'QMarginsF': ... + @typing.overload + def __add__(self, rhs: 'QRectF') -> 'QRectF': ... + def __radd__(self, lhs: float) -> 'QMarginsF': ... + @typing.overload + def __sub__(self, rhs: 'QMarginsF') -> 'QMarginsF': ... + @typing.overload + def __sub__(self, rhs: float) -> 'QMarginsF': ... + def __mul__(self, rhs: float) -> 'QMarginsF': ... + def __rmul__(self, lhs: float) -> 'QMarginsF': ... + def __truediv__(self, divisor: float) -> 'QMarginsF': ... + def __pos__(self) -> 'QMarginsF': ... + def __neg__(self) -> 'QMarginsF': ... + def toMargins(self) -> QMargins: ... + def __itruediv__(self, divisor: float) -> 'QMarginsF': ... + def __imul__(self, factor: float) -> 'QMarginsF': ... + @typing.overload + def __isub__(self, margins: 'QMarginsF') -> 'QMarginsF': ... + @typing.overload + def __isub__(self, subtrahend: float) -> 'QMarginsF': ... + @typing.overload + def __iadd__(self, margins: 'QMarginsF') -> 'QMarginsF': ... + @typing.overload + def __iadd__(self, addend: float) -> 'QMarginsF': ... + 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(PyQt6.sip.simplewrapper): + + def __init__(self, method: QCryptographicHash.Algorithm, key: QByteArray|bytes|bytearray|memoryview = ...) -> None: ... + + def swap(self, other: 'QMessageAuthenticationCode') -> None: ... + @staticmethod + def hash(message: QByteArray|bytes|bytearray|memoryview, key: QByteArray|bytes|bytearray|memoryview, method: QCryptographicHash.Algorithm) -> QByteArray: ... + def result(self) -> QByteArray: ... + @typing.overload + def addData(self, data: QByteArray|bytes|bytearray|memoryview) -> None: ... + @typing.overload + def addData(self, device: QIODevice|None) -> bool: ... + def setKey(self, key: QByteArray|bytes|bytearray|memoryview) -> None: ... + def reset(self) -> None: ... + + +class QMetaMethod(PyQt6.sip.simplewrapper): + + class MethodType(enum.Enum): + Method = ... # type: QMetaMethod.MethodType + Signal = ... # type: QMetaMethod.MethodType + Slot = ... # type: QMetaMethod.MethodType + Constructor = ... # type: QMetaMethod.MethodType + + class Access(enum.Enum): + 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 __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def isConst(self) -> bool: ... + def relativeMethodIndex(self) -> int: ... + def parameterTypeName(self, index: int) -> QByteArray: ... + def parameterMetaType(self, index: int) -> 'QMetaType': ... + def returnMetaType(self) -> 'QMetaType': ... + 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 revision(self) -> int: ... + def methodIndex(self) -> int: ... + @typing.overload + def invoke(self, object: QObject|None, 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|None, 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|None, 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|None, 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: ... + def methodType(self) -> 'QMetaMethod.MethodType': ... + def access(self) -> 'QMetaMethod.Access': ... + def tag(self) -> str: ... + def parameterNames(self) -> list[QByteArray]: ... + def parameterTypes(self) -> list[QByteArray]: ... + def typeName(self) -> str: ... + + +class QMetaEnum(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QMetaEnum') -> None: ... + + def is64Bit(self) -> bool: ... + def metaType(self) -> 'QMetaType': ... + 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(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QMetaProperty') -> None: ... + + def isOverride(self) -> bool: ... + def isVirtual(self) -> bool: ... + def typeId(self) -> int: ... + def isBindable(self) -> bool: ... + def metaType(self) -> 'QMetaType': ... + def isRequired(self) -> bool: ... + def relativePropertyIndex(self) -> int: ... + def revision(self) -> int: ... + 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) -> bool: ... + def isResettable(self) -> bool: ... + def isValid(self) -> bool: ... + def hasStdCppSet(self) -> bool: ... + def reset(self, obj: QObject|None) -> bool: ... + def write(self, obj: QObject|None, value: typing.Any) -> bool: ... + def read(self, obj: QObject|None) -> typing.Any: ... + def enumerator(self) -> QMetaEnum: ... + def isEnumType(self) -> bool: ... + def isFlagType(self) -> bool: ... + def isStored(self) -> bool: ... + def isScriptable(self) -> bool: ... + def isDesignable(self) -> bool: ... + def isWritable(self) -> bool: ... + def isReadable(self) -> bool: ... + def typeName(self) -> str: ... + def name(self) -> str: ... + + +class QMetaClassInfo(PyQt6.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(PyQt6.sip.simplewrapper): + + class TypeFlag(enum.Flag): + NeedsConstruction = ... # type: QMetaType.TypeFlag + NeedsDestruction = ... # type: QMetaType.TypeFlag + PointerToQObject = ... # type: QMetaType.TypeFlag + IsEnumeration = ... # type: QMetaType.TypeFlag + IsUnsignedEnumeration = ... # type: QMetaType.TypeFlag + IsPointer = ... # type: QMetaType.TypeFlag + RelocatableType = ... # type: QMetaType.TypeFlag + IsQmlList = ... # type: QMetaType.TypeFlag + IsConst = ... # type: QMetaType.TypeFlag + NeedsCopyConstruction = ... # type: QMetaType.TypeFlag + NeedsMoveConstruction = ... # type: QMetaType.TypeFlag + + class Type(enum.Enum): + 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 + 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 + QTransform = ... # type: QMetaType.Type + VoidStar = ... # type: QMetaType.Type + Long = ... # type: QMetaType.Type + Short = ... # type: QMetaType.Type + Char = ... # type: QMetaType.Type + Char16 = ... # type: QMetaType.Type + Char32 = ... # type: QMetaType.Type + ULong = ... # type: QMetaType.Type + UShort = ... # type: QMetaType.Type + UChar = ... # type: QMetaType.Type + Float = ... # type: QMetaType.Type + Float16 = ... # 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 + QColorSpace = ... # type: QMetaType.Type + QVariantPair = ... # type: QMetaType.Type + User = ... # type: QMetaType.Type + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, type: int) -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def underlyingType(self) -> 'QMetaType': ... + def isDestructible(self) -> bool: ... + def isMoveConstructible(self) -> bool: ... + def isCopyConstructible(self) -> bool: ... + def isDefaultConstructible(self) -> bool: ... + def registerType(self) -> None: ... + def __hash__(self) -> int: ... + @staticmethod + def canView(fromType: 'QMetaType', toType: 'QMetaType') -> bool: ... + @staticmethod + def canConvert(fromType: 'QMetaType', toType: 'QMetaType') -> bool: ... + @staticmethod + def fromName(name: QByteArray|bytes|bytearray|memoryview) -> 'QMetaType': ... + def isOrdered(self) -> bool: ... + def isEqualityComparable(self) -> bool: ... + def alignOf(self) -> int: ... + def name(self) -> bytes: ... + def hasRegisteredDebugStreamOperator(self) -> bool: ... + def hasRegisteredDataStreamOperators(self) -> bool: ... + def id(self) -> int: ... + def isValid(self) -> bool: ... + def flags(self) -> 'QMetaType.TypeFlag': ... + def sizeOf(self) -> int: ... + @typing.overload + @staticmethod + def isRegistered(type: int) -> bool: ... + @typing.overload + def isRegistered(self) -> bool: ... + + +class QMimeData(QObject): + + def __init__(self) -> None: ... + + def retrieveData(self, mimetype: str|None, preferredType: QMetaType) -> typing.Any: ... + def removeFormat(self, mimetype: str|None) -> None: ... + def clear(self) -> None: ... + def formats(self) -> list[str]: ... + def hasFormat(self, mimetype: str|None) -> bool: ... + def setData(self, mimetype: str|None, data: QByteArray|bytes|bytearray|memoryview) -> None: ... + def data(self, mimetype: str|None) -> 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) -> None: ... + def html(self) -> str: ... + def hasText(self) -> bool: ... + def setText(self, text: str|None) -> None: ... + def text(self) -> str: ... + def hasUrls(self) -> bool: ... + def setUrls(self, urls: collections.abc.Iterable['QUrl']) -> None: ... + def urls(self) -> list['QUrl']: ... + + +class QMimeDatabase(PyQt6.sip.simplewrapper): + + class MatchMode(enum.Enum): + MatchDefault = ... # type: QMimeDatabase.MatchMode + MatchExtension = ... # type: QMimeDatabase.MatchMode + MatchContent = ... # type: QMimeDatabase.MatchMode + + def __init__(self) -> None: ... + + def allMimeTypes(self) -> list['QMimeType']: ... + def suffixForFileName(self, fileName: str|None) -> str: ... + @typing.overload + def mimeTypeForFileNameAndData(self, fileName: str|None, device: QIODevice|None) -> 'QMimeType': ... + @typing.overload + def mimeTypeForFileNameAndData(self, fileName: str|None, data: QByteArray|bytes|bytearray|memoryview) -> 'QMimeType': ... + def mimeTypeForUrl(self, url: 'QUrl') -> 'QMimeType': ... + @typing.overload + def mimeTypeForData(self, data: QByteArray|bytes|bytearray|memoryview) -> 'QMimeType': ... + @typing.overload + def mimeTypeForData(self, device: QIODevice|None) -> 'QMimeType': ... + def mimeTypesForFileName(self, fileName: str|None) -> list['QMimeType']: ... + @typing.overload + def mimeTypeForFile(self, fileName: str|None, mode: 'QMimeDatabase.MatchMode' = ...) -> 'QMimeType': ... + @typing.overload + def mimeTypeForFile(self, fileInfo: QFileInfo, mode: 'QMimeDatabase.MatchMode' = ...) -> 'QMimeType': ... + def mimeTypeForName(self, nameOrAlias: str|None) -> 'QMimeType': ... + + +class QMimeType(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMimeType') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __hash__(self) -> int: ... + def filterString(self) -> str: ... + def inherits(self, mimeTypeName: str|None) -> bool: ... + def preferredSuffix(self) -> str: ... + def suffixes(self) -> list[str]: ... + def aliases(self) -> list[str]: ... + def allAncestors(self) -> list[str]: ... + def parentMimeTypes(self) -> list[str]: ... + def globPatterns(self) -> 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 QMutex(PyQt6.sip.simplewrapper): + + def __init__(self) -> None: ... + + def unlock(self) -> None: ... + @typing.overload + def tryLock(self) -> bool: ... + @typing.overload + def tryLock(self, timeout: QDeadlineTimer) -> bool: ... + @typing.overload + def tryLock(self, timeout: int) -> bool: ... + def lock(self) -> None: ... + + +class QRecursiveMutex(PyQt6.sip.simplewrapper): + + def __init__(self) -> None: ... + + def unlock(self) -> None: ... + @typing.overload + def tryLock(self, a0: QDeadlineTimer) -> bool: ... + @typing.overload + def tryLock(self, timeout: int = ...) -> bool: ... + def lock(self) -> None: ... + + +class QSignalBlocker(PyQt6.sip.simplewrapper): + + def __init__(self, o: QObject|None) -> 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: ... + def dismiss(self) -> None: ... + + +class QObjectCleanupHandler(QObject): + + def __init__(self) -> None: ... + + def clear(self) -> None: ... + def isEmpty(self) -> bool: ... + def remove(self, object: QObject|None) -> None: ... + def add(self, object: QObject|None) -> QObject|None: ... + + +class QMetaObject(PyQt6.sip.simplewrapper): + + class Connection(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMetaObject.Connection') -> None: ... + + def swap(self, o: 'QMetaObject.Connection') -> None: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QMetaObject') -> None: ... + + def inherits(self, metaObject: 'QMetaObject|None') -> bool: ... + def constructor(self, index: int) -> QMetaMethod: ... + def indexOfConstructor(self, constructor: str) -> int: ... + def constructorCount(self) -> int: ... + def newInstance(self, value0: 'QGenericArgument', value1: 'QGenericArgument' = ..., value2: 'QGenericArgument' = ..., value3: 'QGenericArgument' = ..., value4: 'QGenericArgument' = ..., value5: 'QGenericArgument' = ..., value6: 'QGenericArgument' = ..., value7: 'QGenericArgument' = ..., value8: 'QGenericArgument' = ..., value9: 'QGenericArgument' = ...) -> QObject|None: ... + @typing.overload + @staticmethod + def invokeMethod(obj: QObject|None, member: str, a2: 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|None, 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|None, 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|None, 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) -> 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|None': ... + def className(self) -> str: ... + def metaType(self) -> QMetaType: ... + + +class QGenericArgument(PyQt6.sip.simplewrapper): ... + + +class QGenericReturnArgument(PyQt6.sip.simplewrapper): ... + + +class QOperatingSystemVersionBase(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QOperatingSystemVersionBase') -> None: ... + + def __ge__(self, rhs: 'QOperatingSystemVersionBase') -> bool: ... + def __le__(self, rhs: 'QOperatingSystemVersionBase') -> bool: ... + def __gt__(self, rhs: 'QOperatingSystemVersionBase') -> bool: ... + def __lt__(self, rhs: 'QOperatingSystemVersionBase') -> bool: ... + def name(self) -> str: ... + def segmentCount(self) -> int: ... + def microVersion(self) -> int: ... + def minorVersion(self) -> int: ... + def majorVersion(self) -> int: ... + def version(self) -> 'QVersionNumber': ... + + +class QOperatingSystemVersion(QOperatingSystemVersionBase): + + class OSType(enum.Enum): + 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 + + Android10 = ... # type: 'QOperatingSystemVersion' + Android11 = ... # type: 'QOperatingSystemVersion' + Android12 = ... # type: QOperatingSystemVersionBase + Android12L = ... # type: QOperatingSystemVersionBase + Android13 = ... # type: QOperatingSystemVersionBase + 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' + AndroidOreo_MR1 = ... # type: 'QOperatingSystemVersion' + AndroidPie = ... # type: 'QOperatingSystemVersion' + MacOSBigSur = ... # type: 'QOperatingSystemVersion' + MacOSCatalina = ... # type: 'QOperatingSystemVersion' + MacOSHighSierra = ... # type: 'QOperatingSystemVersion' + MacOSMojave = ... # type: 'QOperatingSystemVersion' + MacOSMonterey = ... # type: 'QOperatingSystemVersion' + MacOSSierra = ... # type: 'QOperatingSystemVersion' + MacOSSonoma = ... # type: QOperatingSystemVersionBase + MacOSVentura = ... # type: QOperatingSystemVersionBase + OSXElCapitan = ... # type: 'QOperatingSystemVersion' + OSXMavericks = ... # type: 'QOperatingSystemVersion' + OSXYosemite = ... # type: 'QOperatingSystemVersion' + Windows10 = ... # type: 'QOperatingSystemVersion' + Windows10_1809 = ... # type: QOperatingSystemVersionBase + Windows10_1903 = ... # type: QOperatingSystemVersionBase + Windows10_1909 = ... # type: QOperatingSystemVersionBase + Windows10_2004 = ... # type: QOperatingSystemVersionBase + Windows10_20H2 = ... # type: QOperatingSystemVersionBase + Windows10_21H1 = ... # type: QOperatingSystemVersionBase + Windows10_21H2 = ... # type: QOperatingSystemVersionBase + Windows10_22H2 = ... # type: QOperatingSystemVersionBase + Windows11 = ... # type: QOperatingSystemVersionBase + Windows11_21H2 = ... # type: QOperatingSystemVersionBase + Windows11_22H2 = ... # type: QOperatingSystemVersionBase + 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 type(self) -> 'QOperatingSystemVersion.OSType': ... + @staticmethod + def currentType() -> 'QOperatingSystemVersion.OSType': ... + @staticmethod + def current() -> 'QOperatingSystemVersion': ... + + +class QParallelAnimationGroup(QAnimationGroup): + + def __init__(self, parent: QObject|None = ...) -> 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|None) -> bool: ... + def duration(self) -> int: ... + + +class QPauseAnimation(QAbstractAnimation): + + @typing.overload + def __init__(self, parent: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, msecs: int, parent: QObject|None = ...) -> None: ... + + def updateCurrentTime(self, a0: int) -> None: ... + def event(self, e: QEvent|None) -> bool: ... + def setDuration(self, msecs: int) -> None: ... + def duration(self) -> int: ... + + +class QPermission(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QPermission') -> None: ... + + def value(self) -> typing.Any: ... + def type(self) -> QMetaType: ... + def status(self) -> Qt.PermissionStatus: ... + + +class QLocationPermission(PyQt6.sip.simplewrapper): + + class Availability(enum.Enum): + WhenInUse = ... # type: QLocationPermission.Availability + Always = ... # type: QLocationPermission.Availability + + class Accuracy(enum.Enum): + Approximate = ... # type: QLocationPermission.Accuracy + Precise = ... # type: QLocationPermission.Accuracy + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QLocationPermission') -> None: ... + + def availability(self) -> 'QLocationPermission.Availability': ... + def setAvailability(self, availability: 'QLocationPermission.Availability') -> None: ... + def accuracy(self) -> 'QLocationPermission.Accuracy': ... + def setAccuracy(self, accuracy: 'QLocationPermission.Accuracy') -> None: ... + + +class QCalendarPermission(PyQt6.sip.simplewrapper): + + class AccessMode(enum.Enum): + ReadOnly = ... # type: QCalendarPermission.AccessMode + ReadWrite = ... # type: QCalendarPermission.AccessMode + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QCalendarPermission') -> None: ... + + def accessMode(self) -> 'QCalendarPermission.AccessMode': ... + def setAccessMode(self, mode: 'QCalendarPermission.AccessMode') -> None: ... + + +class QContactsPermission(PyQt6.sip.simplewrapper): + + class AccessMode(enum.Enum): + ReadOnly = ... # type: QContactsPermission.AccessMode + ReadWrite = ... # type: QContactsPermission.AccessMode + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QContactsPermission') -> None: ... + + def accessMode(self) -> 'QContactsPermission.AccessMode': ... + def setAccessMode(self, mode: 'QContactsPermission.AccessMode') -> None: ... + + +class QCameraPermission(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QCameraPermission') -> None: ... + + +class QMicrophonePermission(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMicrophonePermission') -> None: ... + + +class QBluetoothPermission(PyQt6.sip.simplewrapper): + + class CommunicationMode(enum.Enum): + Access = ... # type: QBluetoothPermission.CommunicationMode + Advertise = ... # type: QBluetoothPermission.CommunicationMode + Default = ... # type: QBluetoothPermission.CommunicationMode + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QBluetoothPermission') -> None: ... + + def communicationModes(self) -> 'QBluetoothPermission.CommunicationMode': ... + def setCommunicationModes(self, modes: 'QBluetoothPermission.CommunicationMode') -> None: ... + + +class QVariantAnimation(QAbstractAnimation): + + def __init__(self, parent: QObject|None = ...) -> 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|None) -> bool: ... + valueChanged: typing.ClassVar[pyqtSignal] + def setEasingCurve(self, easing: 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: collections.abc.Iterable[tuple[float, typing.Any]]) -> None: ... + def keyValues(self) -> list[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: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, target: QObject|None, propertyName: QByteArray|bytes|bytearray|memoryview, parent: QObject|None = ...) -> None: ... + + def updateState(self, newState: QAbstractAnimation.State, oldState: QAbstractAnimation.State) -> None: ... + def updateCurrentValue(self, value: typing.Any) -> None: ... + def event(self, event: QEvent|None) -> bool: ... + def setPropertyName(self, propertyName: QByteArray|bytes|bytearray|memoryview) -> None: ... + def propertyName(self) -> QByteArray: ... + def setTargetObject(self, target: QObject|None) -> None: ... + def targetObject(self) -> QObject|None: ... + + +class QPluginLoader(QObject): + + @typing.overload + def __init__(self, parent: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, fileName: str|None, parent: QObject|None = ...) -> None: ... + + def loadHints(self) -> QLibrary.LoadHint: ... + def setLoadHints(self, loadHints: QLibrary.LoadHint) -> None: ... + def errorString(self) -> str: ... + def fileName(self) -> str: ... + def setFileName(self, fileName: str|None) -> None: ... + def isLoaded(self) -> bool: ... + def unload(self) -> bool: ... + def load(self) -> bool: ... + @staticmethod + def staticInstances() -> list[QObject]: ... + def instance(self) -> QObject|None: ... + + +class QPoint(PyQt6.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 __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __add__(self, p2: 'QPoint') -> 'QPoint': ... + def __sub__(self, p2: 'QPoint') -> 'QPoint': ... + @typing.overload + def __mul__(self, factor: int) -> 'QPoint': ... + @typing.overload + def __mul__(self, factor: float) -> 'QPoint': ... + @typing.overload + def __rmul__(self, factor: int) -> 'QPoint': ... + @typing.overload + def __rmul__(self, factor: float) -> 'QPoint': ... + def __truediv__(self, c: float) -> 'QPoint': ... + def __pos__(self) -> 'QPoint': ... + def __neg__(self) -> 'QPoint': ... + def toPointF(self) -> 'QPointF': ... + def transposed(self) -> 'QPoint': ... + @staticmethod + def dotProduct(p1: 'QPoint', p2: 'QPoint') -> int: ... + def __itruediv__(self, c: float) -> 'QPoint': ... + @typing.overload + def __imul__(self, c: int) -> 'QPoint': ... + @typing.overload + def __imul__(self, c: float) -> 'QPoint': ... + def __isub__(self, p: 'QPoint') -> 'QPoint': ... + def __iadd__(self, p: 'QPoint') -> 'QPoint': ... + def setY(self, ypos: int) -> None: ... + def setX(self, xpos: int) -> None: ... + def y(self) -> int: ... + def x(self) -> int: ... + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def isNull(self) -> bool: ... + def __repr__(self) -> str: ... + def manhattanLength(self) -> int: ... + + +class QPointF(PyQt6.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 __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __add__(self, p2: 'QPointF') -> 'QPointF': ... + def __sub__(self, p2: 'QPointF') -> 'QPointF': ... + def __mul__(self, c: float) -> 'QPointF': ... + def __rmul__(self, c: float) -> 'QPointF': ... + def __truediv__(self, divisor: float) -> 'QPointF': ... + def __pos__(self) -> 'QPointF': ... + def __neg__(self) -> 'QPointF': ... + def transposed(self) -> 'QPointF': ... + @staticmethod + def dotProduct(p1: 'QPointF', p2: 'QPointF') -> float: ... + def manhattanLength(self) -> float: ... + def toPoint(self) -> QPoint: ... + def __itruediv__(self, c: float) -> 'QPointF': ... + def __imul__(self, c: float) -> 'QPointF': ... + def __isub__(self, p: 'QPointF') -> 'QPointF': ... + def __iadd__(self, p: 'QPointF') -> 'QPointF': ... + 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(enum.Enum): + ManagedInputChannel = ... # type: QProcess.InputChannelMode + ForwardedInputChannel = ... # type: QProcess.InputChannelMode + + class ProcessChannelMode(enum.Enum): + SeparateChannels = ... # type: QProcess.ProcessChannelMode + MergedChannels = ... # type: QProcess.ProcessChannelMode + ForwardedChannels = ... # type: QProcess.ProcessChannelMode + ForwardedOutputChannel = ... # type: QProcess.ProcessChannelMode + ForwardedErrorChannel = ... # type: QProcess.ProcessChannelMode + + class ProcessChannel(enum.Enum): + StandardOutput = ... # type: QProcess.ProcessChannel + StandardError = ... # type: QProcess.ProcessChannel + + class ProcessState(enum.Enum): + NotRunning = ... # type: QProcess.ProcessState + Starting = ... # type: QProcess.ProcessState + Running = ... # type: QProcess.ProcessState + + class ProcessError(enum.Enum): + 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(enum.Enum): + NormalExit = ... # type: QProcess.ExitStatus + CrashExit = ... # type: QProcess.ExitStatus + + def __init__(self, parent: QObject|None = ...) -> 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: QIODeviceBase.OpenModeFlag = ...) -> bool: ... + def nativeArguments(self) -> str: ... + def setNativeArguments(self, arguments: str|None) -> None: ... + def setArguments(self, arguments: collections.abc.Iterable[str|None]) -> None: ... + def arguments(self) -> list[str]: ... + def setProgram(self, program: str|None) -> None: ... + def program(self) -> str: ... + def processEnvironment(self) -> 'QProcessEnvironment': ... + def setProcessEnvironment(self, environment: 'QProcessEnvironment') -> None: ... + def writeData(self, a0: PyQt6.sip.Buffer) -> int: ... + def readData(self, maxlen: int) -> bytes: ... + def setProcessState(self, state: 'QProcess.ProcessState') -> None: ... + errorOccurred: typing.ClassVar[pyqtSignal] + readyReadStandardError: typing.ClassVar[pyqtSignal] + readyReadStandardOutput: typing.ClassVar[pyqtSignal] + stateChanged: typing.ClassVar[pyqtSignal] + finished: typing.ClassVar[pyqtSignal] + started: typing.ClassVar[pyqtSignal] + def kill(self) -> None: ... + def terminate(self) -> None: ... + def setStandardOutputProcess(self, destination: 'QProcess|None') -> None: ... + def setStandardErrorFile(self, fileName: str|None, mode: QIODeviceBase.OpenModeFlag = ...) -> None: ... + def setStandardOutputFile(self, fileName: str|None, mode: QIODeviceBase.OpenModeFlag = ...) -> None: ... + def setStandardInputFile(self, fileName: str|None) -> None: ... + def setProcessChannelMode(self, mode: 'QProcess.ProcessChannelMode') -> None: ... + def processChannelMode(self) -> 'QProcess.ProcessChannelMode': ... + @staticmethod + def systemEnvironment() -> list[str]: ... + @typing.overload + @staticmethod + def startDetached(program: str|None, arguments: collections.abc.Iterable[str|None] = ..., workingDirectory: str|None = ...) -> typing.Tuple[bool, int]: ... + @typing.overload + def startDetached(self) -> typing.Tuple[bool, int]: ... + @staticmethod + def execute(program: str|None, arguments: collections.abc.Iterable[str|None] = ...) -> int: ... + def close(self) -> None: ... + def isSequential(self) -> bool: ... + def bytesToWrite(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 state(self) -> 'QProcess.ProcessState': ... + def error(self) -> 'QProcess.ProcessError': ... + def setWorkingDirectory(self, dir: str|None) -> 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': ... + def startCommand(self, command: str|None, mode: QIODeviceBase.OpenModeFlag = ...) -> None: ... + @typing.overload + def start(self, program: str|None, arguments: collections.abc.Iterable[str|None] = ..., mode: QIODeviceBase.OpenModeFlag = ...) -> None: ... + @typing.overload + def start(self, mode: QIODeviceBase.OpenModeFlag = ...) -> None: ... + + +class QProcessEnvironment(PyQt6.sip.simplewrapper): + + class Initialization(enum.Enum): + InheritFromParent = ... # type: QProcessEnvironment.Initialization + + @typing.overload + def __init__(self, a0: 'QProcessEnvironment.Initialization') -> None: ... + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QProcessEnvironment') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def inheritsFromParent(self) -> bool: ... + def swap(self, other: 'QProcessEnvironment') -> None: ... + def keys(self) -> list[str]: ... + @staticmethod + def systemEnvironment() -> 'QProcessEnvironment': ... + def toStringList(self) -> list[str]: ... + def value(self, name: str|None, defaultValue: str|None = ...) -> str: ... + def remove(self, name: str|None) -> None: ... + @typing.overload + def insert(self, name: str|None, value: str|None) -> None: ... + @typing.overload + def insert(self, e: 'QProcessEnvironment') -> None: ... + def contains(self, name: str|None) -> bool: ... + def clear(self) -> None: ... + def isEmpty(self) -> bool: ... + + +class QRandomGenerator(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self, seed: int = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QRandomGenerator') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @staticmethod + def securelySeeded() -> 'QRandomGenerator': ... + @staticmethod + def global_() -> 'QRandomGenerator|None': ... + @staticmethod + def system() -> 'QRandomGenerator|None': ... + @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, lowest: int, highest: int) -> int: ... + @typing.overload + def bounded(self, highest: int) -> int: ... + def generateDouble(self) -> float: ... + def generate64(self) -> int: ... + def generate(self) -> int: ... + + +class QRangeModel(QAbstractItemModel): + + class AutoConnectPolicy(enum.Enum): + None_ = ... # type: QRangeModel.AutoConnectPolicy + Full = ... # type: QRangeModel.AutoConnectPolicy + OnRead = ... # type: QRangeModel.AutoConnectPolicy + + def __init__(self, range: 'QPyAbstractRange|None', parent: QObject|None = ...) -> None: ... + + autoConnectPolicyChanged: typing.ClassVar[pyqtSignal] + def setAutoConnectPolicy(self, policy: 'QRangeModel.AutoConnectPolicy') -> None: ... + def autoConnectPolicy(self) -> 'QRangeModel.AutoConnectPolicy': ... + def eventFilter(self, a0: QObject|None, a1: QEvent|None) -> bool: ... + def event(self, a0: QEvent|None) -> bool: ... + def resetInternalData(self) -> None: ... + roleNamesChanged: typing.ClassVar[pyqtSignal] + def supportedDropActions(self) -> Qt.DropAction: ... + def supportedDragActions(self) -> Qt.DropAction: ... + def span(self, index: QModelIndex) -> 'QSize': ... + def sort(self, column: int, order: Qt.SortOrder = ...) -> None: ... + def multiData(self, index: QModelIndex, roleDataSpan: QModelRoleDataSpan) -> None: ... + def match(self, start: QModelIndex, role: int, value: typing.Any, hits: int, flags: Qt.MatchFlag) -> list[QModelIndex]: ... + def mimeTypes(self) -> list[str]: ... + def mimeData(self, indexes: collections.abc.Iterable[QModelIndex]) -> QMimeData|None: ... + def dropMimeData(self, data: QMimeData|None, action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def canDropMimeData(self, data: QMimeData|None, action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def buddy(self, index: QModelIndex) -> QModelIndex: ... + def hasChildren(self, parent: QModelIndex = ...) -> bool: ... + def fetchMore(self, parent: QModelIndex) -> None: ... + def canFetchMore(self, parent: QModelIndex) -> bool: ... + def resetRoleNames(self) -> None: ... + def setRoleNames(self, names: dict[int, QByteArray|bytes|bytearray|memoryview]) -> None: ... + def roleNames(self) -> dict[int, QByteArray]: ... + def moveRows(self, sourceParent: QModelIndex, sourceRow: int, count: int, destParent: QModelIndex, destRow: int) -> bool: ... + def removeRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... + def insertRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... + def moveColumns(self, sourceParent: QModelIndex, sourceColumn: int, count: int, destParent: QModelIndex, destColumn: int) -> bool: ... + def removeColumns(self, column: int, count: int, parent: QModelIndex = ...) -> bool: ... + def insertColumns(self, column: int, count: int, parent: QModelIndex = ...) -> bool: ... + def clearItemData(self, index: QModelIndex) -> bool: ... + def setItemData(self, index: QModelIndex, data: dict[int, typing.Any]) -> bool: ... + def itemData(self, index: QModelIndex) -> dict[int, typing.Any]: ... + def setData(self, index: QModelIndex, data: typing.Any, role: int = ...) -> bool: ... + def data(self, index: QModelIndex, role: int = ...) -> typing.Any: ... + def setHeaderData(self, section: int, orientation: Qt.Orientation, data: typing.Any, role: int = ...) -> bool: ... + def headerData(self, section: int, orientation: Qt.Orientation, role: int = ...) -> typing.Any: ... + def flags(self, index: QModelIndex) -> Qt.ItemFlag: ... + def columnCount(self, parent: QModelIndex = ...) -> int: ... + def rowCount(self, parent: QModelIndex = ...) -> int: ... + def sibling(self, row: int, column: int, index: QModelIndex) -> QModelIndex: ... + def parent(self, child: QModelIndex) -> QModelIndex: ... + def index(self, row: int, column: int, parent: QModelIndex = ...) -> QModelIndex: ... + + +class QReadWriteLock(PyQt6.sip.simplewrapper): + + class RecursionMode(enum.Enum): + NonRecursive = ... # type: QReadWriteLock.RecursionMode + Recursive = ... # type: QReadWriteLock.RecursionMode + + def __init__(self, recursionMode: 'QReadWriteLock.RecursionMode' = ...) -> None: ... + + def unlock(self) -> None: ... + @typing.overload + def tryLockForWrite(self, timeout: QDeadlineTimer = ...) -> bool: ... + @typing.overload + def tryLockForWrite(self, timeout: int) -> bool: ... + def lockForWrite(self) -> None: ... + @typing.overload + def tryLockForRead(self, timeout: QDeadlineTimer = ...) -> bool: ... + @typing.overload + def tryLockForRead(self, timeout: int) -> bool: ... + def lockForRead(self) -> None: ... + + +class QReadLocker(PyQt6.sip.simplewrapper): + + def __init__(self, areadWriteLock: QReadWriteLock|None) -> None: ... + + def __exit__(self, type: typing.Any, value: typing.Any, traceback: typing.Any) -> None: ... + def __enter__(self) -> typing.Any: ... + def readWriteLock(self) -> QReadWriteLock|None: ... + def relock(self) -> None: ... + def unlock(self) -> None: ... + + +class QWriteLocker(PyQt6.sip.simplewrapper): + + def __init__(self, areadWriteLock: QReadWriteLock|None) -> None: ... + + def __exit__(self, type: typing.Any, value: typing.Any, traceback: typing.Any) -> None: ... + def __enter__(self) -> typing.Any: ... + def readWriteLock(self) -> QReadWriteLock|None: ... + def relock(self) -> None: ... + def unlock(self) -> None: ... + + +class QRect(PyQt6.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 __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __add__(self, margins: QMargins) -> 'QRect': ... + def __sub__(self, rhs: QMargins) -> 'QRect': ... + def toRectF(self) -> 'QRectF': ... + @staticmethod + def span(p1: QPoint, p2: QPoint) -> 'QRect': ... + def transposed(self) -> 'QRect': ... + def __isub__(self, margins: QMargins) -> 'QRect': ... + def __iadd__(self, margins: QMargins) -> '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 __iand__(self, r: 'QRect') -> 'QRect': ... + def __ior__(self, r: '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 __hash__(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 __and__(self, r: 'QRect') -> 'QRect': ... + def __or__(self, r: 'QRect') -> 'QRect': ... + def moveCenter(self, p: QPoint) -> None: ... + def normalized(self) -> 'QRect': ... + + +class QRectF(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, atopLeft: QPointF, asize: 'QSizeF') -> None: ... + @typing.overload + def __init__(self, atopLeft: QPointF, abottomRight: QPointF) -> 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 __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __add__(self, rhs: QMarginsF) -> 'QRectF': ... + def __sub__(self, rhs: QMarginsF) -> 'QRectF': ... + def transposed(self) -> 'QRectF': ... + def __isub__(self, margins: QMarginsF) -> 'QRectF': ... + def __iadd__(self, margins: QMarginsF) -> '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 __iand__(self, r: 'QRectF') -> 'QRectF': ... + def __ior__(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: QPointF) -> 'QRectF': ... + @typing.overload + def moveTo(self, ax: float, ay: float) -> None: ... + @typing.overload + def moveTo(self, p: QPointF) -> None: ... + @typing.overload + def translate(self, dx: float, dy: float) -> None: ... + @typing.overload + def translate(self, p: QPointF) -> None: ... + def size(self) -> 'QSizeF': ... + def height(self) -> float: ... + def width(self) -> float: ... + def moveCenter(self, p: QPointF) -> None: ... + def moveBottomRight(self, p: QPointF) -> None: ... + def moveBottomLeft(self, p: QPointF) -> None: ... + def moveTopRight(self, p: QPointF) -> None: ... + def moveTopLeft(self, p: QPointF) -> 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: QPointF) -> None: ... + def setBottomLeft(self, p: QPointF) -> None: ... + def setTopRight(self, p: QPointF) -> None: ... + def setTopLeft(self, p: QPointF) -> 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: QPointF) -> int: ... + @typing.overload + def __contains__(self, r: 'QRectF') -> int: ... + @typing.overload + def contains(self, p: QPointF) -> bool: ... + @typing.overload + def contains(self, r: 'QRectF') -> bool: ... + @typing.overload + def contains(self, ax: float, ay: float) -> bool: ... + def __and__(self, r: 'QRectF') -> 'QRectF': ... + def __or__(self, r: 'QRectF') -> 'QRectF': ... + 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 QRegularExpression(PyQt6.sip.simplewrapper): + + class WildcardConversionOption(enum.Flag): + DefaultWildcardConversion = ... # type: QRegularExpression.WildcardConversionOption + UnanchoredWildcardConversion = ... # type: QRegularExpression.WildcardConversionOption + NonPathWildcardConversion = ... # type: QRegularExpression.WildcardConversionOption + + class MatchOption(enum.Flag): + NoMatchOption = ... # type: QRegularExpression.MatchOption + AnchorAtOffsetMatchOption = ... # type: QRegularExpression.MatchOption + DontCheckSubjectStringMatchOption = ... # type: QRegularExpression.MatchOption + + class MatchType(enum.Enum): + NormalMatch = ... # type: QRegularExpression.MatchType + PartialPreferCompleteMatch = ... # type: QRegularExpression.MatchType + PartialPreferFirstMatch = ... # type: QRegularExpression.MatchType + NoMatch = ... # type: QRegularExpression.MatchType + + class PatternOption(enum.Flag): + 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 + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, pattern: str|None, options: 'QRegularExpression.PatternOption' = ...) -> None: ... + @typing.overload + def __init__(self, re: 'QRegularExpression') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @staticmethod + def fromWildcard(pattern: str, cs: Qt.CaseSensitivity = ..., options: 'QRegularExpression.WildcardConversionOption' = ...) -> 'QRegularExpression': ... + @staticmethod + def anchoredPattern(expression: str|None) -> str: ... + @staticmethod + def wildcardToRegularExpression(str: str, options: 'QRegularExpression.WildcardConversionOption' = ...) -> str: ... + def __hash__(self) -> int: ... + def optimize(self) -> None: ... + def namedCaptureGroups(self) -> list[str]: ... + @staticmethod + def escape(str: str|None) -> str: ... + def globalMatchView(self, subjectView: str, offset: int = ..., matchType: 'QRegularExpression.MatchType' = ..., matchOptions: 'QRegularExpression.MatchOption' = ...) -> 'QRegularExpressionMatchIterator': ... + def globalMatch(self, subject: str|None, offset: int = ..., matchType: 'QRegularExpression.MatchType' = ..., matchOptions: 'QRegularExpression.MatchOption' = ...) -> 'QRegularExpressionMatchIterator': ... + def matchView(self, subjectView: str, offset: int = ..., matchType: 'QRegularExpression.MatchType' = ..., matchOptions: 'QRegularExpression.MatchOption' = ...) -> 'QRegularExpressionMatch': ... + def match(self, subject: str|None, offset: int = ..., matchType: 'QRegularExpression.MatchType' = ..., 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) -> None: ... + def pattern(self) -> str: ... + def swap(self, re: 'QRegularExpression') -> None: ... + def __repr__(self) -> str: ... + def setPatternOptions(self, options: 'QRegularExpression.PatternOption') -> None: ... + def patternOptions(self) -> 'QRegularExpression.PatternOption': ... + + +class QRegularExpressionMatch(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, match: 'QRegularExpressionMatch') -> None: ... + + @typing.overload + def hasCaptured(self, nth: int) -> bool: ... + @typing.overload + def hasCaptured(self, name: QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ... + @typing.overload + def capturedEnd(self, name: QByteArray|bytes|bytearray|memoryview|str|None) -> int: ... + @typing.overload + def capturedEnd(self, nth: int = ...) -> int: ... + @typing.overload + def capturedLength(self, name: QByteArray|bytes|bytearray|memoryview|str|None) -> int: ... + @typing.overload + def capturedLength(self, nth: int = ...) -> int: ... + @typing.overload + def capturedStart(self, name: QByteArray|bytes|bytearray|memoryview|str|None) -> int: ... + @typing.overload + def capturedStart(self, nth: int = ...) -> int: ... + def capturedTexts(self) -> list[str]: ... + @typing.overload + def captured(self, nth: int = ...) -> str: ... + @typing.overload + def captured(self, name: QByteArray|bytes|bytearray|memoryview|str|None) -> str: ... + def lastCapturedIndex(self) -> int: ... + def isValid(self) -> bool: ... + def hasPartialMatch(self) -> bool: ... + def hasMatch(self) -> bool: ... + def matchOptions(self) -> QRegularExpression.MatchOption: ... + def matchType(self) -> QRegularExpression.MatchType: ... + def regularExpression(self) -> QRegularExpression: ... + def swap(self, match: 'QRegularExpressionMatch') -> None: ... + + +class QRegularExpressionMatchIterator(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, iterator: 'QRegularExpressionMatchIterator') -> None: ... + + def matchOptions(self) -> QRegularExpression.MatchOption: ... + 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(PyQt6.sip.simplewrapper): + + class Compression(enum.Enum): + NoCompression = ... # type: QResource.Compression + ZlibCompression = ... # type: QResource.Compression + ZstdCompression = ... # type: QResource.Compression + + def __init__(self, fileName: str|None = ..., locale: QLocale = ...) -> None: ... + + def uncompressedData(self) -> QByteArray: ... + def uncompressedSize(self) -> int: ... + def compressionAlgorithm(self) -> 'QResource.Compression': ... + def lastModified(self) -> QDateTime: ... + def isFile(self) -> bool: ... + def isDir(self) -> bool: ... + def children(self) -> list[str]: ... + @staticmethod + def unregisterResourceData(rccData: bytes, mapRoot: str|None = ...) -> bool: ... + @staticmethod + def unregisterResource(rccFileName: str|None, mapRoot: str|None = ...) -> bool: ... + @staticmethod + def registerResourceData(rccData: bytes, mapRoot: str|None = ...) -> bool: ... + @staticmethod + def registerResource(rccFileName: str|None, mapRoot: str|None = ...) -> bool: ... + def size(self) -> int: ... + def setLocale(self, locale: QLocale) -> None: ... + def setFileName(self, file: str|None) -> None: ... + def locale(self) -> QLocale: ... + def isValid(self) -> bool: ... + def fileName(self) -> str: ... + def data(self) -> bytes: ... + def absoluteFilePath(self) -> str: ... + + +class QRunnable(PyQt6.sip.wrapper): + + def __init__(self) -> None: ... + + @staticmethod + def create(functionToRun: collections.abc.Callable[[], None]) -> '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, parent: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, parent: QObject|None = ...) -> None: ... + + def writeData(self, a0: PyQt6.sip.Buffer) -> int: ... + def directWriteFallback(self) -> bool: ... + def setDirectWriteFallback(self, enabled: bool) -> None: ... + def cancelWriting(self) -> None: ... + def commit(self) -> bool: ... + def open(self, flags: QIODeviceBase.OpenModeFlag) -> bool: ... + def setFileName(self, name: str|None) -> None: ... + def fileName(self) -> str: ... + + +class QSemaphore(PyQt6.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: QDeadlineTimer) -> bool: ... + @typing.overload + def tryAcquire(self, n: int, timeout: int) -> bool: ... + def acquire(self, n: int = ...) -> None: ... + + +class QSemaphoreReleaser(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, sem: QSemaphore|None, n: int = ...) -> None: ... + + def cancel(self) -> QSemaphore|None: ... + def semaphore(self) -> QSemaphore|None: ... + def swap(self, other: 'QSemaphoreReleaser') -> None: ... + + +class QSequentialAnimationGroup(QAnimationGroup): + + def __init__(self, parent: QObject|None = ...) -> 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|None) -> bool: ... + currentAnimationChanged: typing.ClassVar[pyqtSignal] + def duration(self) -> int: ... + def currentAnimation(self) -> QAbstractAnimation|None: ... + def insertPause(self, index: int, msecs: int) -> QPauseAnimation|None: ... + def addPause(self, msecs: int) -> QPauseAnimation|None: ... + + +class QSettings(QObject): + + class Scope(enum.Enum): + UserScope = ... # type: QSettings.Scope + SystemScope = ... # type: QSettings.Scope + + class Format(enum.Enum): + NativeFormat = ... # type: QSettings.Format + IniFormat = ... # type: QSettings.Format + InvalidFormat = ... # type: QSettings.Format + + class Status(enum.Enum): + NoError = ... # type: QSettings.Status + AccessError = ... # type: QSettings.Status + FormatError = ... # type: QSettings.Status + + @typing.overload + def __init__(self, organization: str|None, application: str|None = ..., parent: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, scope: 'QSettings.Scope', organization: str|None, application: str|None = ..., parent: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, format: 'QSettings.Format', scope: 'QSettings.Scope', organization: str|None, application: str|None = ..., parent: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, fileName: str|None, format: 'QSettings.Format', parent: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, scope: 'QSettings.Scope', parent: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, parent: QObject|None = ...) -> None: ... + + def event(self, event: QEvent|None) -> bool: ... + def setAtomicSyncRequired(self, enable: bool) -> None: ... + def isAtomicSyncRequired(self) -> bool: ... + @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) -> None: ... + def fileName(self) -> str: ... + def fallbacksEnabled(self) -> bool: ... + def setFallbacksEnabled(self, b: bool) -> None: ... + def contains(self, key: QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ... + def remove(self, key: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + def value(self, key: QByteArray|bytes|bytearray|memoryview|str|None, defaultValue: typing.Any = ..., type: type = ...) -> typing.Any: ... + def setValue(self, key: QByteArray|bytes|bytearray|memoryview|str|None, value: typing.Any) -> None: ... + def isWritable(self) -> bool: ... + def childGroups(self) -> list[str]: ... + def childKeys(self) -> list[str]: ... + def allKeys(self) -> list[str]: ... + def setArrayIndex(self, i: int) -> None: ... + def endArray(self) -> None: ... + def beginWriteArray(self, prefix: QByteArray|bytes|bytearray|memoryview|str|None, size: int = ...) -> None: ... + def beginReadArray(self, prefix: QByteArray|bytes|bytearray|memoryview|str|None) -> int: ... + def group(self) -> str: ... + def endGroup(self) -> None: ... + def beginGroup(self, prefix: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + def status(self) -> 'QSettings.Status': ... + def sync(self) -> None: ... + def clear(self) -> None: ... + + +class QSharedMemory(QObject): + + class SharedMemoryError(enum.Enum): + 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(enum.Enum): + ReadOnly = ... # type: QSharedMemory.AccessMode + ReadWrite = ... # type: QSharedMemory.AccessMode + + @typing.overload + def __init__(self, parent: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, key: 'QNativeIpcKey', parent: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, key: str|None, parent: QObject|None = ...) -> None: ... + + @staticmethod + def legacyNativeKey(key: str|None, type: 'QNativeIpcKey.Type' = ...) -> 'QNativeIpcKey': ... + @staticmethod + def platformSafeKey(key: str|None, type: 'QNativeIpcKey.Type' = ...) -> 'QNativeIpcKey': ... + @staticmethod + def isKeyTypeSupported(type: 'QNativeIpcKey.Type') -> bool: ... + def nativeIpcKey(self) -> 'QNativeIpcKey': ... + def nativeKey(self) -> str: ... + @typing.overload + def setNativeKey(self, key: 'QNativeIpcKey') -> None: ... + @typing.overload + def setNativeKey(self, key: str|None, type: 'QNativeIpcKey.Type' = ...) -> None: ... + def errorString(self) -> str: ... + def error(self) -> 'QSharedMemory.SharedMemoryError': ... + def unlock(self) -> bool: ... + def lock(self) -> bool: ... + def constData(self) -> PyQt6.sip.voidptr: ... + def data(self) -> PyQt6.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) -> None: ... + + +class QSignalMapper(QObject): + + def __init__(self, parent: QObject|None = ...) -> None: ... + + @typing.overload + def map(self) -> None: ... + @typing.overload + def map(self, sender: QObject|None) -> None: ... + mappedObject: typing.ClassVar[pyqtSignal] + mappedString: typing.ClassVar[pyqtSignal] + mappedInt: typing.ClassVar[pyqtSignal] + @typing.overload + def mapping(self, id: int) -> QObject|None: ... + @typing.overload + def mapping(self, text: str|None) -> QObject|None: ... + @typing.overload + def mapping(self, object: QObject|None) -> QObject|None: ... + def removeMappings(self, sender: QObject|None) -> None: ... + @typing.overload + def setMapping(self, sender: QObject|None, id: int) -> None: ... + @typing.overload + def setMapping(self, sender: QObject|None, text: str|None) -> None: ... + @typing.overload + def setMapping(self, sender: QObject|None, object: QObject|None) -> None: ... + + +class QSize(PyQt6.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 __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __add__(self, s2: 'QSize') -> 'QSize': ... + def __sub__(self, s2: 'QSize') -> 'QSize': ... + def __mul__(self, c: float) -> 'QSize': ... + def __rmul__(self, c: float) -> 'QSize': ... + def __truediv__(self, c: float) -> 'QSize': ... + def toSizeF(self) -> 'QSizeF': ... + def shrunkBy(self, m: QMargins) -> 'QSize': ... + def grownBy(self, m: QMargins) -> 'QSize': ... + 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 __itruediv__(self, c: float) -> 'QSize': ... + def __imul__(self, c: float) -> 'QSize': ... + def __isub__(self, s: 'QSize') -> 'QSize': ... + def __iadd__(self, s: 'QSize') -> 'QSize': ... + def setHeight(self, h: int) -> None: ... + def setWidth(self, w: int) -> None: ... + def height(self) -> int: ... + def width(self) -> int: ... + def __hash__(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(PyQt6.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 __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __add__(self, s2: 'QSizeF') -> 'QSizeF': ... + def __sub__(self, s2: 'QSizeF') -> 'QSizeF': ... + def __mul__(self, c: float) -> 'QSizeF': ... + def __rmul__(self, c: float) -> 'QSizeF': ... + def __truediv__(self, c: float) -> 'QSizeF': ... + def shrunkBy(self, m: QMarginsF) -> 'QSizeF': ... + def grownBy(self, m: QMarginsF) -> 'QSizeF': ... + 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 __itruediv__(self, c: float) -> 'QSizeF': ... + def __imul__(self, c: float) -> 'QSizeF': ... + def __isub__(self, s: 'QSizeF') -> 'QSizeF': ... + def __iadd__(self, s: '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(enum.Enum): + Read = ... # type: QSocketNotifier.Type + Write = ... # type: QSocketNotifier.Type + Exception = ... # type: QSocketNotifier.Type + + @typing.overload + def __init__(self, a0: 'QSocketNotifier.Type', parent: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, socket: PyQt6.sip.voidptr, a1: 'QSocketNotifier.Type', parent: QObject|None = ...) -> None: ... + + def event(self, a0: QEvent|None) -> bool: ... + activated: typing.ClassVar[pyqtSignal] + def isValid(self) -> bool: ... + def setSocket(self, socket: PyQt6.sip.voidptr) -> None: ... + def setEnabled(self, a0: bool) -> None: ... + def isEnabled(self) -> bool: ... + def type(self) -> 'QSocketNotifier.Type': ... + def socket(self) -> PyQt6.sip.voidptr: ... + + +class QSortFilterProxyModel(QAbstractProxyModel): + + class Direction(enum.Enum): + Rows = ... # type: QSortFilterProxyModel.Direction + Columns = ... # type: QSortFilterProxyModel.Direction + Both = ... # type: QSortFilterProxyModel.Direction + + def __init__(self, parent: QObject|None = ...) -> None: ... + + def endFilterChange(self, directions: 'QSortFilterProxyModel.Direction' = ...) -> None: ... + autoAcceptChildRowsChanged: typing.ClassVar[pyqtSignal] + def setAutoAcceptChildRows(self, accept: bool) -> None: ... + def autoAcceptChildRows(self) -> bool: ... + recursiveFilteringEnabledChanged: typing.ClassVar[pyqtSignal] + filterRoleChanged: typing.ClassVar[pyqtSignal] + sortRoleChanged: typing.ClassVar[pyqtSignal] + sortLocaleAwareChanged: typing.ClassVar[pyqtSignal] + sortCaseSensitivityChanged: typing.ClassVar[pyqtSignal] + filterCaseSensitivityChanged: typing.ClassVar[pyqtSignal] + dynamicSortFilterChanged: typing.ClassVar[pyqtSignal] + def invalidateColumnsFilter(self) -> None: ... + def invalidateRowsFilter(self) -> None: ... + def invalidateFilter(self) -> None: ... + def beginFilterChange(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.DropAction: ... + def mimeTypes(self) -> 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: Qt.MatchFlag = ...) -> list[QModelIndex]: ... + def span(self, index: QModelIndex) -> QSize: ... + def buddy(self, index: QModelIndex) -> QModelIndex: ... + def flags(self, index: QModelIndex) -> Qt.ItemFlag: ... + 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|None, action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def mimeData(self, indexes: collections.abc.Iterable[QModelIndex]) -> QMimeData|None: ... + 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|None: ... + 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) -> None: ... + @typing.overload + def setFilterRegularExpression(self, regularExpression: QRegularExpression) -> None: ... + @typing.overload + def setFilterRegularExpression(self, pattern: str|None) -> None: ... + def setFilterFixedString(self, pattern: str|None) -> 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 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) -> None: ... + + +class QStandardPaths(PyQt6.sip.simplewrapper): + + class LocateOption(enum.Flag): + LocateFile = ... # type: QStandardPaths.LocateOption + LocateDirectory = ... # type: QStandardPaths.LocateOption + + class StandardLocation(enum.Enum): + 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 + 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 + PublicShareLocation = ... # type: QStandardPaths.StandardLocation + TemplatesLocation = ... # type: QStandardPaths.StandardLocation + StateLocation = ... # type: QStandardPaths.StandardLocation + GenericStateLocation = ... # type: QStandardPaths.StandardLocation + + def __init__(self, a0: 'QStandardPaths') -> None: ... + + @staticmethod + def setTestModeEnabled(testMode: bool) -> None: ... + @staticmethod + def findExecutable(executableName: str|None, paths: collections.abc.Iterable[str|None] = ...) -> str: ... + @staticmethod + def displayName(type: 'QStandardPaths.StandardLocation') -> str: ... + @staticmethod + def locateAll(type: 'QStandardPaths.StandardLocation', fileName: str|None, options: 'QStandardPaths.LocateOption' = ...) -> list[str]: ... + @staticmethod + def locate(type: 'QStandardPaths.StandardLocation', fileName: str|None, options: 'QStandardPaths.LocateOption' = ...) -> str: ... + @staticmethod + def standardLocations(type: 'QStandardPaths.StandardLocation') -> list[str]: ... + @staticmethod + def writableLocation(type: 'QStandardPaths.StandardLocation') -> str: ... + + +class QStorageInfo(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, path: str|None) -> None: ... + @typing.overload + def __init__(self, dir: QDir) -> None: ... + @typing.overload + def __init__(self, other: 'QStorageInfo') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def subvolume(self) -> QByteArray: ... + def blockSize(self) -> int: ... + def isRoot(self) -> bool: ... + @staticmethod + def root() -> 'QStorageInfo': ... + @staticmethod + def mountedVolumes() -> 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) -> None: ... + def swap(self, other: 'QStorageInfo') -> None: ... + + +class QStringConverterBase(PyQt6.sip.simplewrapper): + + class Flag(enum.Flag): + Default = ... # type: QStringConverterBase.Flag + Stateless = ... # type: QStringConverterBase.Flag + ConvertInvalidToNull = ... # type: QStringConverterBase.Flag + WriteBom = ... # type: QStringConverterBase.Flag + ConvertInitialBom = ... # type: QStringConverterBase.Flag + UsesIcu = ... # type: QStringConverterBase.Flag + + def __init__(self) -> None: ... + + +class QStringConverter(QStringConverterBase): + + class FinalizeResultError(enum.Enum): + NoError = ... # type: QStringConverter.FinalizeResultError + InvalidCharacters = ... # type: QStringConverter.FinalizeResultError + NotEnoughSpace = ... # type: QStringConverter.FinalizeResultError + + class Encoding(enum.Enum): + Utf8 = ... # type: QStringConverter.Encoding + Utf16 = ... # type: QStringConverter.Encoding + Utf16LE = ... # type: QStringConverter.Encoding + Utf16BE = ... # type: QStringConverter.Encoding + Utf32 = ... # type: QStringConverter.Encoding + Utf32LE = ... # type: QStringConverter.Encoding + Utf32BE = ... # type: QStringConverter.Encoding + Latin1 = ... # type: QStringConverter.Encoding + System = ... # type: QStringConverter.Encoding + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, encoding: 'QStringConverter.Encoding', f: QStringConverterBase.Flag) -> None: ... + @typing.overload + def __init__(self, name: QByteArray|bytes|bytearray|memoryview|str|None, f: QStringConverterBase.Flag) -> None: ... + + @staticmethod + def availableCodecs() -> list[str]: ... + @staticmethod + def nameForEncoding(e: 'QStringConverter.Encoding') -> str: ... + def name(self) -> str: ... + def hasError(self) -> bool: ... + def resetState(self) -> None: ... + def isValid(self) -> bool: ... + + +class QStringEncoder(QStringConverter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, encoding: QStringConverter.Encoding, flags: QStringConverterBase.Flag = ...) -> None: ... + @typing.overload + def __init__(self, name: QByteArray|bytes|bytearray|memoryview|str|None, flags: QStringConverterBase.Flag = ...) -> None: ... + + def encode(self, in_: str) -> QByteArray: ... + def __call__(self, in_: str) -> QByteArray: ... + + +class QStringDecoder(QStringConverter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, encoding: QStringConverter.Encoding, flags: QStringConverterBase.Flag = ...) -> None: ... + @typing.overload + def __init__(self, name: QByteArray|bytes|bytearray|memoryview|str|None, flags: QStringConverterBase.Flag = ...) -> None: ... + + @staticmethod + def decoderForHtml(data: QByteArray|bytes|bytearray|memoryview) -> 'QStringDecoder': ... + def decode(self, ba: QByteArray|bytes|bytearray|memoryview) -> str: ... + def __call__(self, ba: QByteArray|bytes|bytearray|memoryview) -> str: ... + + +class QStringListModel(QAbstractListModel): + + @typing.overload + def __init__(self, parent: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, strings: collections.abc.Iterable[str|None], parent: QObject|None = ...) -> None: ... + + def clearItemData(self, index: QModelIndex) -> bool: ... + def setItemData(self, index: QModelIndex, roles: dict[int, typing.Any]) -> bool: ... + def itemData(self, index: QModelIndex) -> 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.DropAction: ... + def sort(self, column: int, order: Qt.SortOrder = ...) -> None: ... + def setStringList(self, strings: collections.abc.Iterable[str|None]) -> None: ... + def stringList(self) -> 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.ItemFlag: ... + 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 QSysInfo(PyQt6.sip.simplewrapper): + + class Endian(enum.Enum): + BigEndian = ... # type: QSysInfo.Endian + LittleEndian = ... # type: QSysInfo.Endian + ByteOrder = ... # type: QSysInfo.Endian + + class Sizes(enum.Enum): + WordSize = ... # type: QSysInfo.Sizes + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSysInfo') -> None: ... + + @staticmethod + def bootUniqueId() -> QByteArray: ... + @staticmethod + def machineUniqueId() -> QByteArray: ... + @staticmethod + def machineHostName() -> str: ... + @staticmethod + def prettyProductName() -> str: ... + @staticmethod + def productVersion() -> str: ... + @staticmethod + def productType() -> str: ... + @staticmethod + def kernelVersion() -> str: ... + @staticmethod + def kernelType() -> str: ... + @staticmethod + def buildAbi() -> str: ... + @staticmethod + def currentCpuArchitecture() -> str: ... + @staticmethod + def buildCpuArchitecture() -> str: ... + + +class QSystemSemaphore(PyQt6.sip.simplewrapper): + + class SystemSemaphoreError(enum.Enum): + 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(enum.Enum): + Open = ... # type: QSystemSemaphore.AccessMode + Create = ... # type: QSystemSemaphore.AccessMode + + @typing.overload + def __init__(self, key: 'QNativeIpcKey', initialValue: int = ..., mode: 'QSystemSemaphore.AccessMode' = ...) -> None: ... + @typing.overload + def __init__(self, key: str|None, initialValue: int = ..., mode: 'QSystemSemaphore.AccessMode' = ...) -> None: ... + + @staticmethod + def legacyNativeKey(key: str|None, type: 'QNativeIpcKey.Type' = ...) -> 'QNativeIpcKey': ... + @staticmethod + def platformSafeKey(key: str|None, type: 'QNativeIpcKey.Type' = ...) -> 'QNativeIpcKey': ... + @staticmethod + def isKeyTypeSupported(type: 'QNativeIpcKey.Type') -> bool: ... + def nativeIpcKey(self) -> 'QNativeIpcKey': ... + @typing.overload + def setNativeKey(self, key: 'QNativeIpcKey', initialValue: int = ..., mode: 'QSystemSemaphore.AccessMode' = ...) -> None: ... + @typing.overload + def setNativeKey(self, key: str|None, initialValue: int = ..., mode: 'QSystemSemaphore.AccessMode' = ..., type: 'QNativeIpcKey.Type' = ...) -> 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|None, initialValue: int = ..., mode: 'QSystemSemaphore.AccessMode' = ...) -> None: ... + + +class QTemporaryDir(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, templateName: str|None) -> None: ... + + def swap(self, other: 'QTemporaryDir') -> None: ... + def filePath(self, fileName: str|None) -> 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) -> None: ... + @typing.overload + def __init__(self, parent: QObject|None) -> None: ... + @typing.overload + def __init__(self, templateName: str|None, parent: QObject|None) -> None: ... + + def renameOverwrite(self, newName: str|None) -> bool: ... + def rename(self, newName: str|None) -> bool: ... + @typing.overload + @staticmethod + def createNativeFile(fileName: str|None) -> 'QTemporaryFile|None': ... + @typing.overload + @staticmethod + def createNativeFile(file: QFile) -> 'QTemporaryFile|None': ... + def setFileTemplate(self, name: str|None) -> None: ... + def fileTemplate(self) -> str: ... + def fileName(self) -> str: ... + @typing.overload + def open(self) -> bool: ... + @typing.overload + def open(self, flags: QIODeviceBase.OpenModeFlag) -> bool: ... + def setAutoRemove(self, b: bool) -> None: ... + def autoRemove(self) -> bool: ... + + +class QTextBoundaryFinder(PyQt6.sip.simplewrapper): + + class BoundaryType(enum.Enum): + Grapheme = ... # type: QTextBoundaryFinder.BoundaryType + Word = ... # type: QTextBoundaryFinder.BoundaryType + Line = ... # type: QTextBoundaryFinder.BoundaryType + Sentence = ... # type: QTextBoundaryFinder.BoundaryType + + class BoundaryReason(enum.Flag): + NotAtBoundary = ... # type: QTextBoundaryFinder.BoundaryReason + SoftHyphen = ... # type: QTextBoundaryFinder.BoundaryReason + BreakOpportunity = ... # type: QTextBoundaryFinder.BoundaryReason + StartOfItem = ... # type: QTextBoundaryFinder.BoundaryReason + EndOfItem = ... # type: QTextBoundaryFinder.BoundaryReason + MandatoryBreak = ... # type: QTextBoundaryFinder.BoundaryReason + + @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) -> None: ... + + def swap(self, other: 'QTextBoundaryFinder') -> None: ... + def boundaryReasons(self) -> 'QTextBoundaryFinder.BoundaryReason': ... + 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 QTextStream(QIODeviceBase): + + class NumberFlag(enum.Flag): + ShowBase = ... # type: QTextStream.NumberFlag + ForcePoint = ... # type: QTextStream.NumberFlag + ForceSign = ... # type: QTextStream.NumberFlag + UppercaseBase = ... # type: QTextStream.NumberFlag + UppercaseDigits = ... # type: QTextStream.NumberFlag + + class Status(enum.Enum): + Ok = ... # type: QTextStream.Status + ReadPastEnd = ... # type: QTextStream.Status + ReadCorruptData = ... # type: QTextStream.Status + WriteFailed = ... # type: QTextStream.Status + + class FieldAlignment(enum.Enum): + AlignLeft = ... # type: QTextStream.FieldAlignment + AlignRight = ... # type: QTextStream.FieldAlignment + AlignCenter = ... # type: QTextStream.FieldAlignment + AlignAccountingStyle = ... # type: QTextStream.FieldAlignment + + class RealNumberNotation(enum.Enum): + SmartNotation = ... # type: QTextStream.RealNumberNotation + FixedNotation = ... # type: QTextStream.RealNumberNotation + ScientificNotation = ... # type: QTextStream.RealNumberNotation + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, device: QIODevice|None) -> None: ... + @typing.overload + def __init__(self, array: QByteArray|None, mode: QIODeviceBase.OpenModeFlag = ...) -> None: ... + + def __int__(self) -> bool: ... + @typing.overload + def __lshift__(self, s: str) -> 'QTextStream': ... + @typing.overload + def __lshift__(self, array: QByteArray|bytes|bytearray|memoryview) -> 'QTextStream': ... + @typing.overload + def __lshift__(self, f: float) -> 'QTextStream': ... + @typing.overload + def __lshift__(self, i: int) -> 'QTextStream': ... + @typing.overload + def __lshift__(self, m: 'QTextStreamManipulator') -> 'QTextStream': ... + def __rshift__(self, array: QByteArray) -> 'QTextStream': ... + 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.NumberFlag': ... + def setNumberFlags(self, flags: '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 read(self, maxlen: int) -> str: ... + def readAll(self) -> str: ... + def readLine(self, maxLength: int = ...) -> str: ... + def skipWhiteSpace(self) -> None: ... + def pos(self) -> int: ... + def seek(self, pos: int) -> bool: ... + def flush(self) -> None: ... + def reset(self) -> None: ... + def atEnd(self) -> bool: ... + def resetStatus(self) -> None: ... + def setStatus(self, status: 'QTextStream.Status') -> None: ... + def status(self) -> 'QTextStream.Status': ... + def device(self) -> QIODevice|None: ... + def setDevice(self, device: QIODevice|None) -> None: ... + def locale(self) -> QLocale: ... + def setLocale(self, locale: QLocale) -> None: ... + def generateByteOrderMark(self) -> bool: ... + def setGenerateByteOrderMark(self, generate: bool) -> None: ... + def autoDetectUnicode(self) -> bool: ... + def setAutoDetectUnicode(self, enabled: bool) -> None: ... + def encoding(self) -> QStringConverter.Encoding: ... + def setEncoding(self, encoding: QStringConverter.Encoding) -> None: ... + + +class QTextStreamManipulator(PyQt6.sip.simplewrapper): ... + + +class QThread(QObject): + + class QualityOfService(enum.Enum): + Auto = ... # type: QThread.QualityOfService + High = ... # type: QThread.QualityOfService + Eco = ... # type: QThread.QualityOfService + + class Priority(enum.Enum): + 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: QObject|None = ...) -> None: ... + + def serviceLevel(self) -> 'QThread.QualityOfService': ... + def setServiceLevel(self, serviceLevel: 'QThread.QualityOfService') -> None: ... + def isCurrentThread(self) -> bool: ... + @staticmethod + def isMainThread() -> bool: ... + def loopLevel(self) -> int: ... + def isInterruptionRequested(self) -> bool: ... + def requestInterruption(self) -> None: ... + def setEventDispatcher(self, eventDispatcher: QAbstractEventDispatcher|None) -> None: ... + def eventDispatcher(self) -> QAbstractEventDispatcher|None: ... + @staticmethod + def usleep(a0: int) -> None: ... + @staticmethod + def msleep(a0: int) -> None: ... + @staticmethod + def sleep(a0: int) -> None: ... + def event(self, event: QEvent|None) -> bool: ... + @staticmethod + def setTerminationEnabled(enabled: bool = ...) -> None: ... + def exec(self) -> int: ... + def run(self) -> None: ... + finished: typing.ClassVar[pyqtSignal] + started: typing.ClassVar[pyqtSignal] + @typing.overload + def wait(self, deadline: QDeadlineTimer = ...) -> bool: ... + @typing.overload + def wait(self, time: 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() -> PyQt6.sip.voidptr: ... + @staticmethod + def currentThread() -> 'QThread|None': ... + + +class QThreadPool(QObject): + + def __init__(self, parent: QObject|None = ...) -> None: ... + + def serviceLevel(self) -> QThread.QualityOfService: ... + def setServiceLevel(self, serviceLevel: QThread.QualityOfService) -> None: ... + @typing.overload + def startOnReservedThread(self, runnable: QRunnable|None) -> None: ... + @typing.overload + def startOnReservedThread(self, functionToRun: collections.abc.Callable[[], None]) -> None: ... + def threadPriority(self) -> QThread.Priority: ... + def setThreadPriority(self, priority: QThread.Priority) -> None: ... + def contains(self, thread: QThread|None) -> bool: ... + def stackSize(self) -> int: ... + def setStackSize(self, stackSize: int) -> None: ... + def clear(self) -> None: ... + @typing.overload + def waitForDone(self, deadline: QDeadlineTimer) -> bool: ... + @typing.overload + 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|None) -> bool: ... + @typing.overload + def tryStart(self, runnable: QRunnable|None) -> bool: ... + @typing.overload + def tryStart(self, functionToRun: collections.abc.Callable[[], None]) -> bool: ... + @typing.overload + def start(self, runnable: QRunnable|None, priority: int = ...) -> None: ... + @typing.overload + def start(self, functionToRun: collections.abc.Callable[[], None], priority: int = ...) -> None: ... + @staticmethod + def globalInstance() -> 'QThreadPool|None': ... + + +class QTimeLine(QObject): + + class State(enum.Enum): + NotRunning = ... # type: QTimeLine.State + Paused = ... # type: QTimeLine.State + Running = ... # type: QTimeLine.State + + class Direction(enum.Enum): + Forward = ... # type: QTimeLine.Direction + Backward = ... # type: QTimeLine.Direction + + def __init__(self, duration: int = ..., parent: QObject|None = ...) -> None: ... + + def setEasingCurve(self, curve: QEasingCurve|QEasingCurve.Type) -> None: ... + def easingCurve(self) -> QEasingCurve: ... + def timerEvent(self, event: QTimerEvent|None) -> None: ... + valueChanged: typing.ClassVar[pyqtSignal] + stateChanged: typing.ClassVar[pyqtSignal] + frameChanged: typing.ClassVar[pyqtSignal] + finished: typing.ClassVar[pyqtSignal] + 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 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: QObject|None = ...) -> None: ... + + def id(self) -> int: ... + def remainingTime(self) -> int: ... + def timerType(self) -> Qt.TimerType: ... + def setTimerType(self, atype: Qt.TimerType) -> None: ... + def timerEvent(self, a0: QTimerEvent|None) -> None: ... + timeout: typing.ClassVar[pyqtSignal] + 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(PyQt6.sip.simplewrapper): + + class Initialization(enum.Enum): + LocalTime = ... # type: QTimeZone.Initialization + UTC = ... # type: QTimeZone.Initialization + + class NameType(enum.Enum): + DefaultName = ... # type: QTimeZone.NameType + LongName = ... # type: QTimeZone.NameType + ShortName = ... # type: QTimeZone.NameType + OffsetName = ... # type: QTimeZone.NameType + + class TimeType(enum.Enum): + StandardTime = ... # type: QTimeZone.TimeType + DaylightTime = ... # type: QTimeZone.TimeType + GenericTime = ... # type: QTimeZone.TimeType + + class OffsetData(PyQt6.sip.simplewrapper): + + abbreviation = ... # type: str|None + atUtc = ... # type: 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: ... + + MaxUtcOffsetSecs = ... # type: int + MinUtcOffsetSecs = ... # type: int + + @typing.overload + def __init__(self, spec: 'QTimeZone.Initialization') -> None: ... + @typing.overload + def __init__(self, zoneId: QByteArray|bytes|bytearray|memoryview, offsetSeconds: int, name: str|None, abbreviation: str|None, territory: QLocale.Country = ..., comment: str|None = ...) -> None: ... + @typing.overload + def __init__(self, ianaId: QByteArray|bytes|bytearray|memoryview) -> None: ... + @typing.overload + def __init__(self, offsetSeconds: int) -> None: ... + @typing.overload + def __init__(self, other: 'QTimeZone') -> None: ... + @typing.overload + def __init__(self) -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def hasAlternativeName(self, alias: QByteArray|bytes|bytearray|memoryview) -> bool: ... + def asBackendZone(self) -> 'QTimeZone': ... + @typing.overload + def isUtcOrFixedOffset(self) -> bool: ... + @typing.overload + @staticmethod + def isUtcOrFixedOffset(spec: Qt.TimeSpec) -> bool: ... + def fixedSecondsAheadOfUtc(self) -> int: ... + def timeSpec(self) -> Qt.TimeSpec: ... + @staticmethod + def fromSecondsAheadOfUtc(offset: int) -> 'QTimeZone': ... + @staticmethod + def utc() -> 'QTimeZone': ... + @staticmethod + def systemTimeZone() -> 'QTimeZone': ... + @typing.overload + @staticmethod + def windowsIdToIanaIds(windowsId: QByteArray|bytes|bytearray|memoryview) -> list[QByteArray]: ... + @typing.overload + @staticmethod + def windowsIdToIanaIds(windowsId: QByteArray|bytes|bytearray|memoryview, territory: QLocale.Country) -> list[QByteArray]: ... + @typing.overload + @staticmethod + def windowsIdToDefaultIanaId(windowsId: QByteArray|bytes|bytearray|memoryview) -> QByteArray: ... + @typing.overload + @staticmethod + def windowsIdToDefaultIanaId(windowsId: QByteArray|bytes|bytearray|memoryview, territory: QLocale.Country) -> QByteArray: ... + @staticmethod + def ianaIdToWindowsId(ianaId: QByteArray|bytes|bytearray|memoryview) -> QByteArray: ... + @typing.overload + @staticmethod + def availableTimeZoneIds(territory: QLocale.Country) -> list[QByteArray]: ... + @typing.overload + @staticmethod + def availableTimeZoneIds(offsetSeconds: int) -> list[QByteArray]: ... + @typing.overload + @staticmethod + def availableTimeZoneIds() -> list[QByteArray]: ... + @staticmethod + def isTimeZoneIdAvailable(ianaId: QByteArray|bytes|bytearray|memoryview) -> bool: ... + @staticmethod + def systemTimeZoneId() -> QByteArray: ... + def transitions(self, fromDateTime: QDateTime|datetime.datetime, toDateTime: QDateTime|datetime.datetime) -> list['QTimeZone.OffsetData']: ... + def previousTransition(self, beforeDateTime: QDateTime|datetime.datetime) -> 'QTimeZone.OffsetData': ... + def nextTransition(self, afterDateTime: QDateTime|datetime.datetime) -> 'QTimeZone.OffsetData': ... + def hasTransitions(self) -> bool: ... + def offsetData(self, forDateTime: QDateTime|datetime.datetime) -> 'QTimeZone.OffsetData': ... + def isDaylightTime(self, atDateTime: QDateTime|datetime.datetime) -> bool: ... + def hasDaylightTime(self) -> bool: ... + def daylightTimeOffset(self, atDateTime: QDateTime|datetime.datetime) -> int: ... + def standardTimeOffset(self, atDateTime: QDateTime|datetime.datetime) -> int: ... + def offsetFromUtc(self, atDateTime: QDateTime|datetime.datetime) -> int: ... + def abbreviation(self, atDateTime: QDateTime|datetime.datetime) -> str: ... + @typing.overload + def displayName(self, atDateTime: 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 territory(self) -> QLocale.Country: ... + def country(self) -> QLocale.Country: ... + def id(self) -> QByteArray: ... + def isValid(self) -> bool: ... + def swap(self, other: 'QTimeZone') -> None: ... + + +class QNativeIpcKey(PyQt6.sip.simplewrapper): + + class Type(enum.Enum): + SystemV = ... # type: QNativeIpcKey.Type + PosixRealtime = ... # type: QNativeIpcKey.Type + Windows = ... # type: QNativeIpcKey.Type + + DefaultTypeForOs = ... # type: 'QNativeIpcKey.Type' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, type: 'QNativeIpcKey.Type') -> None: ... + @typing.overload + def __init__(self, k: str|None, type: 'QNativeIpcKey.Type' = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QNativeIpcKey') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __hash__(self) -> int: ... + @staticmethod + def fromString(string: str|None) -> 'QNativeIpcKey': ... + def toString(self) -> str: ... + def setNativeKey(self, newKey: str|None) -> None: ... + def nativeKey(self) -> str: ... + def setType(self, type: 'QNativeIpcKey.Type') -> None: ... + def type(self) -> 'QNativeIpcKey.Type': ... + def isValid(self) -> bool: ... + def isEmpty(self) -> bool: ... + def swap(self, other: 'QNativeIpcKey') -> None: ... + @staticmethod + def legacyDefaultTypeForOs() -> 'QNativeIpcKey.Type': ... + + +class QTranslator(QObject): + + def __init__(self, parent: QObject|None = ...) -> None: ... + + def filePath(self) -> str: ... + def language(self) -> str: ... + def loadFromData(self, data: PyQt6.sip.array[bytes], directory: str|None = ...) -> bool: ... + @typing.overload + def load(self, fileName: str|None, directory: str|None = ..., searchDelimiters: str|None = ..., suffix: str|None = ...) -> bool: ... + @typing.overload + def load(self, locale: QLocale, fileName: str|None, prefix: str|None = ..., directory: str|None = ..., suffix: str|None = ...) -> bool: ... + def isEmpty(self) -> bool: ... + def translate(self, context: str, sourceText: str, disambiguation: str = ..., n: int = ...) -> str: ... + + +class QTransposeProxyModel(QAbstractProxyModel): + + def __init__(self, parent: QObject|None = ...) -> 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) -> dict[int, typing.Any]: ... + def span(self, index: QModelIndex) -> QSize: ... + def setItemData(self, index: QModelIndex, roles: 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) -> None: ... + + +class QTypeRevision(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTypeRevision') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __ge__(self, rhs: 'QTypeRevision') -> bool: ... + def __le__(self, rhs: 'QTypeRevision') -> bool: ... + def __gt__(self, rhs: 'QTypeRevision') -> bool: ... + def __lt__(self, rhs: 'QTypeRevision') -> bool: ... + @staticmethod + def zero() -> 'QTypeRevision': ... + @staticmethod + def fromEncodedVersion(value: int) -> 'QTypeRevision': ... + def __hash__(self) -> int: ... + def toEncodedVersion(self) -> int: ... + def isValid(self) -> bool: ... + def minorVersion(self) -> int: ... + def hasMinorVersion(self) -> bool: ... + def majorVersion(self) -> int: ... + def hasMajorVersion(self) -> bool: ... + + +class QUrl(PyQt6.sip.simplewrapper): + + class AceProcessingOption(enum.Flag): + IgnoreIDNWhitelist = ... # type: QUrl.AceProcessingOption + AceTransitionalProcessing = ... # type: QUrl.AceProcessingOption + + class UserInputResolutionOption(enum.Flag): + DefaultResolution = ... # type: QUrl.UserInputResolutionOption + AssumeLocalFile = ... # type: QUrl.UserInputResolutionOption + + class ComponentFormattingOption(enum.IntFlag): + 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(enum.IntFlag): + 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(enum.Enum): + TolerantMode = ... # type: QUrl.ParsingMode + StrictMode = ... # type: QUrl.ParsingMode + DecodedMode = ... # type: QUrl.ParsingMode + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, url: str|None, mode: 'QUrl.ParsingMode' = ...) -> None: ... + @typing.overload + def __init__(self, copy: 'QUrl') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __ge__(self, rhs: 'QUrl') -> bool: ... + def __le__(self, rhs: 'QUrl') -> bool: ... + def __gt__(self, rhs: 'QUrl') -> bool: ... + def __lt__(self, rhs: 'QUrl') -> bool: ... + def matches(self, url: 'QUrl', options: 'QUrl.UrlFormattingOption') -> bool: ... + def fileName(self, options: 'QUrl.ComponentFormattingOption' = ...) -> str: ... + def adjusted(self, options: 'QUrl.UrlFormattingOption') -> 'QUrl': ... + @staticmethod + def fromStringList(uris: collections.abc.Iterable[str|None], mode: 'QUrl.ParsingMode' = ...) -> list['QUrl']: ... + @staticmethod + def toStringList(uris: collections.abc.Iterable['QUrl'], options: 'QUrl.UrlFormattingOption' = ...) -> list[str]: ... + def query(self, options: 'QUrl.ComponentFormattingOption' = ...) -> str: ... + @typing.overload + def setQuery(self, query: str|None, mode: 'QUrl.ParsingMode' = ...) -> None: ... + @typing.overload + def setQuery(self, query: 'QUrlQuery') -> None: ... + @typing.overload + def toDisplayString(self, options: 'QUrl.UrlFormattingOption' = ...) -> str: ... + @typing.overload + def toDisplayString(self, options: 'QUrl.ComponentFormattingOption') -> str: ... + def isLocalFile(self) -> bool: ... + def swap(self, other: 'QUrl') -> None: ... + @staticmethod + def fromUserInput(userInput: str|None, workingDirectory: str|None = ..., options: 'QUrl.UserInputResolutionOption' = ...) -> 'QUrl': ... + @staticmethod + def setIdnWhitelist(a0: collections.abc.Iterable[str|None]) -> None: ... + @staticmethod + def idnWhitelist() -> list[str]: ... + @staticmethod + def toAce(domain: str|None, options: 'QUrl.AceProcessingOption' = ...) -> QByteArray: ... + @staticmethod + def fromAce(domain: QByteArray|bytes|bytearray|memoryview, options: 'QUrl.AceProcessingOption' = ...) -> str: ... + def errorString(self) -> str: ... + def hasFragment(self) -> bool: ... + def hasQuery(self) -> bool: ... + @staticmethod + def toPercentEncoding(input: str|None, exclude: QByteArray|bytes|bytearray|memoryview = ..., include: QByteArray|bytes|bytearray|memoryview = ...) -> QByteArray: ... + @staticmethod + def fromPercentEncoding(a0: QByteArray|bytes|bytearray|memoryview) -> str: ... + def isDetached(self) -> bool: ... + def detach(self) -> None: ... + @staticmethod + def fromEncoded(input: QByteArray|bytes|bytearray|memoryview, mode: 'QUrl.ParsingMode' = ...) -> 'QUrl': ... + @typing.overload + def toEncoded(self, options: 'QUrl.UrlFormattingOption' = ...) -> QByteArray: ... + @typing.overload + def toEncoded(self, options: 'QUrl.ComponentFormattingOption') -> QByteArray: ... + @typing.overload + def toString(self, options: 'QUrl.UrlFormattingOption' = ...) -> str: ... + @typing.overload + def toString(self, options: 'QUrl.ComponentFormattingOption') -> str: ... + def toLocalFile(self) -> str: ... + @staticmethod + def fromLocalFile(localfile: str|None) -> 'QUrl': ... + def isParentOf(self, url: 'QUrl') -> bool: ... + def isRelative(self) -> bool: ... + def resolved(self, relative: 'QUrl') -> 'QUrl': ... + def fragment(self, options: 'QUrl.ComponentFormattingOption' = ...) -> str: ... + def setFragment(self, fragment: str|None, mode: 'QUrl.ParsingMode' = ...) -> None: ... + def path(self, options: 'QUrl.ComponentFormattingOption' = ...) -> str: ... + def setPath(self, path: str|None, mode: 'QUrl.ParsingMode' = ...) -> None: ... + def port(self, defaultPort: int = ...) -> int: ... + def setPort(self, port: int) -> None: ... + def host(self, a0: 'QUrl.ComponentFormattingOption' = ...) -> str: ... + def setHost(self, host: str|None, mode: 'QUrl.ParsingMode' = ...) -> None: ... + def password(self, options: 'QUrl.ComponentFormattingOption' = ...) -> str: ... + def setPassword(self, password: str|None, mode: 'QUrl.ParsingMode' = ...) -> None: ... + def userName(self, options: 'QUrl.ComponentFormattingOption' = ...) -> str: ... + def setUserName(self, userName: str|None, mode: 'QUrl.ParsingMode' = ...) -> None: ... + def userInfo(self, options: 'QUrl.ComponentFormattingOption' = ...) -> str: ... + def setUserInfo(self, userInfo: str|None, mode: 'QUrl.ParsingMode' = ...) -> None: ... + def authority(self, options: 'QUrl.ComponentFormattingOption' = ...) -> str: ... + def setAuthority(self, authority: str|None, mode: 'QUrl.ParsingMode' = ...) -> None: ... + def scheme(self) -> str: ... + def setScheme(self, scheme: str|None) -> None: ... + def clear(self) -> None: ... + def isEmpty(self) -> bool: ... + def isValid(self) -> bool: ... + def setUrl(self, url: str|None, mode: 'QUrl.ParsingMode' = ...) -> None: ... + def url(self, options: 'QUrl.UrlFormattingOption' = ...) -> str: ... + def __repr__(self) -> str: ... + def __hash__(self) -> int: ... + + +class QUrlQuery(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, url: QUrl) -> None: ... + @typing.overload + def __init__(self, queryString: str|None) -> None: ... + @typing.overload + def __init__(self, other: 'QUrlQuery') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __hash__(self) -> int: ... + @staticmethod + def defaultQueryPairDelimiter() -> str: ... + @staticmethod + def defaultQueryValueDelimiter() -> str: ... + def removeAllQueryItems(self, key: str|None) -> None: ... + def allQueryItemValues(self, key: str|None, options: QUrl.ComponentFormattingOption = ...) -> list[str]: ... + def queryItemValue(self, key: str|None, options: QUrl.ComponentFormattingOption = ...) -> str: ... + def removeQueryItem(self, key: str|None) -> None: ... + def addQueryItem(self, key: str|None, value: str|None) -> None: ... + def hasQueryItem(self, key: str|None) -> bool: ... + def queryItems(self, options: QUrl.ComponentFormattingOption = ...) -> list[tuple[str, str]]: ... + def setQueryItems(self, query: collections.abc.Iterable[tuple[str|None, str|None]]) -> None: ... + def queryPairDelimiter(self) -> str: ... + def queryValueDelimiter(self) -> str: ... + def setQueryDelimiters(self, valueDelimiter: str, pairDelimiter: str) -> None: ... + def toString(self, options: QUrl.ComponentFormattingOption = ...) -> str: ... + def setQuery(self, queryString: str|None) -> None: ... + def query(self, options: QUrl.ComponentFormattingOption = ...) -> str: ... + def clear(self) -> None: ... + def isDetached(self) -> bool: ... + def isEmpty(self) -> bool: ... + def swap(self, other: 'QUrlQuery') -> None: ... + + +class QUuid(PyQt6.sip.simplewrapper): + + class StringFormat(enum.Enum): + WithBraces = ... # type: QUuid.StringFormat + WithoutBraces = ... # type: QUuid.StringFormat + Id128 = ... # type: QUuid.StringFormat + + class Version(enum.Enum): + 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 + UnixEpoch = ... # type: QUuid.Version + + class Variant(enum.Enum): + VarUnknown = ... # type: QUuid.Variant + NCS = ... # type: QUuid.Variant + DCE = ... # type: QUuid.Variant + Microsoft = ... # type: QUuid.Variant + Reserved = ... # type: QUuid.Variant + + class Id128Bytes(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QUuid.Id128Bytes') -> None: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, id128: 'QUuid.Id128Bytes', order: QSysInfo.Endian = ...) -> 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, string: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + @typing.overload + def __init__(self, a0: 'QUuid') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __ge__(self, rhs: 'QUuid') -> bool: ... + def __le__(self, rhs: 'QUuid') -> bool: ... + def __gt__(self, rhs: 'QUuid') -> bool: ... + def __lt__(self, rhs: 'QUuid') -> bool: ... + @staticmethod + def fromString(string: QByteArray|bytes|bytearray|memoryview|str|None) -> 'QUuid': ... + @staticmethod + def fromRfc4122(a0: QByteArray|bytes|bytearray|memoryview) -> 'QUuid': ... + def toRfc4122(self) -> QByteArray: ... + def toByteArray(self, mode: 'QUuid.StringFormat' = ...) -> QByteArray: ... + def version(self) -> 'QUuid.Version': ... + def variant(self) -> 'QUuid.Variant': ... + @staticmethod + def createUuidV7() -> 'QUuid': ... + @typing.overload + @staticmethod + def createUuidV5(ns: 'QUuid', baseData: QByteArray|bytes|bytearray|memoryview) -> 'QUuid': ... + @typing.overload + @staticmethod + def createUuidV5(ns: 'QUuid', baseData: str|None) -> 'QUuid': ... + @typing.overload + @staticmethod + def createUuidV3(ns: 'QUuid', baseData: QByteArray|bytes|bytearray|memoryview) -> 'QUuid': ... + @typing.overload + @staticmethod + def createUuidV3(ns: 'QUuid', baseData: str|None) -> 'QUuid': ... + @staticmethod + def createUuid() -> 'QUuid': ... + def isNull(self) -> bool: ... + def toString(self, mode: 'QUuid.StringFormat' = ...) -> str: ... + def __repr__(self) -> str: ... + def __hash__(self) -> int: ... + + +class QVariant(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, obj: typing.Any) -> None: ... + @typing.overload + def __init__(self, a0: 'QVariant|None') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def typeId(self) -> int: ... + def canView(self, targetType: QMetaType) -> bool: ... + def metaType(self) -> QMetaType: ... + def swap(self, other: 'QVariant|None') -> None: ... + 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, type: QMetaType) -> bool: ... + def canConvert(self, targetType: QMetaType) -> bool: ... + def typeName(self) -> str: ... + def userType(self) -> int: ... + def value(self) -> typing.Any: ... + + +class QVersionNumber(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, seg: collections.abc.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 __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __ge__(self, rhs: 'QVersionNumber') -> bool: ... + def __le__(self, rhs: 'QVersionNumber') -> bool: ... + def __gt__(self, rhs: 'QVersionNumber') -> bool: ... + def __lt__(self, rhs: 'QVersionNumber') -> bool: ... + def __hash__(self) -> int: ... + @staticmethod + def fromString(string: QByteArray|bytes|bytearray|memoryview|str|None) -> 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) -> 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(PyQt6.sip.simplewrapper): + + def __init__(self) -> None: ... + + def wakeAll(self) -> None: ... + def wakeOne(self) -> None: ... + @typing.overload + def wait(self, lockedMutex: QMutex|None, deadline: QDeadlineTimer = ...) -> bool: ... + @typing.overload + def wait(self, lockedMutex: QMutex|None, time: int) -> bool: ... + @typing.overload + def wait(self, lockedReadWriteLock: QReadWriteLock|None, deadline: QDeadlineTimer = ...) -> bool: ... + @typing.overload + def wait(self, lockedReadWriteLock: QReadWriteLock|None, time: int) -> bool: ... + + +class QXmlStreamAttribute(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, qualifiedName: str|None, value: str|None) -> None: ... + @typing.overload + def __init__(self, namespaceUri: str|None, name: str|None, value: str|None) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlStreamAttribute') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + 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 QXmlStreamNamespaceDeclaration(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, prefix: str|None, namespaceUri: str|None) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlStreamNamespaceDeclaration') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def namespaceUri(self) -> str: ... + def prefix(self) -> str: ... + + +class QXmlStreamNotationDeclaration(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlStreamNotationDeclaration') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def publicId(self) -> str: ... + def systemId(self) -> str: ... + def name(self) -> str: ... + + +class QXmlStreamEntityDeclaration(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QXmlStreamEntityDeclaration') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def value(self) -> str: ... + def publicId(self) -> str: ... + def systemId(self) -> str: ... + def notationName(self) -> str: ... + def name(self) -> str: ... + + +class QXmlStreamEntityResolver(PyQt6.sip.simplewrapper): + + def __init__(self) -> None: ... + + def resolveUndeclaredEntity(self, name: str|None) -> str: ... + + +class QXmlStreamReader(PyQt6.sip.simplewrapper): + + class Error(enum.Enum): + NoError = ... # type: QXmlStreamReader.Error + UnexpectedElementError = ... # type: QXmlStreamReader.Error + CustomError = ... # type: QXmlStreamReader.Error + NotWellFormedError = ... # type: QXmlStreamReader.Error + PrematureEndOfDocumentError = ... # type: QXmlStreamReader.Error + + class ReadElementTextBehaviour(enum.Enum): + ErrorOnUnexpectedElement = ... # type: QXmlStreamReader.ReadElementTextBehaviour + IncludeChildElements = ... # type: QXmlStreamReader.ReadElementTextBehaviour + SkipChildElements = ... # type: QXmlStreamReader.ReadElementTextBehaviour + + class TokenType(enum.Enum): + 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) -> None: ... + @typing.overload + def __init__(self, data: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + + def readRawInnerData(self) -> str: ... + def hasStandaloneDeclaration(self) -> bool: ... + def setEntityExpansionLimit(self, limit: int) -> None: ... + def entityExpansionLimit(self) -> int: ... + def skipCurrentElement(self) -> None: ... + def readNextStartElement(self) -> bool: ... + def entityResolver(self) -> QXmlStreamEntityResolver|None: ... + def setEntityResolver(self, resolver: QXmlStreamEntityResolver|None) -> None: ... + def hasError(self) -> bool: ... + def error(self) -> 'QXmlStreamReader.Error': ... + def errorString(self) -> str: ... + def raiseError(self, message: str|None = ...) -> None: ... + def dtdSystemId(self) -> str: ... + def dtdPublicId(self) -> str: ... + def dtdName(self) -> str: ... + def entityDeclarations(self) -> list[QXmlStreamEntityDeclaration]: ... + def notationDeclarations(self) -> list[QXmlStreamNotationDeclaration]: ... + def addExtraNamespaceDeclarations(self, extraNamespaceDeclaractions: collections.abc.Iterable[QXmlStreamNamespaceDeclaration]) -> None: ... + def addExtraNamespaceDeclaration(self, extraNamespaceDeclaraction: QXmlStreamNamespaceDeclaration) -> None: ... + def namespaceDeclarations(self) -> 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: ... + def addData(self, data: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + def device(self) -> QIODevice|None: ... + def setDevice(self, device: QIODevice|None) -> None: ... + + +class QXmlStreamWriter(PyQt6.sip.simplewrapper): + + class Error(enum.Enum): + None_ = ... # type: QXmlStreamWriter.Error + IO = ... # type: QXmlStreamWriter.Error + Encoding = ... # type: QXmlStreamWriter.Error + InvalidCharacter = ... # type: QXmlStreamWriter.Error + Custom = ... # type: QXmlStreamWriter.Error + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, device: QIODevice|None) -> None: ... + @typing.overload + def __init__(self, array: QByteArray|bytes|bytearray|memoryview) -> None: ... + + def error(self) -> 'QXmlStreamWriter.Error': ... + def errorString(self) -> str: ... + def raiseError(self, message: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + def stopWritingOnError(self) -> bool: ... + def setStopWritingOnError(self, stop: bool) -> None: ... + def hasError(self) -> bool: ... + def writeCurrentToken(self, reader: QXmlStreamReader) -> None: ... + @typing.overload + def writeStartElement(self, namespaceUri: QByteArray|bytes|bytearray|memoryview|str|None, name: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + @typing.overload + def writeStartElement(self, qualifiedName: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + @typing.overload + def writeStartDocument(self, version: QByteArray|bytes|bytearray|memoryview|str|None, standalone: bool) -> None: ... + @typing.overload + def writeStartDocument(self, version: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + @typing.overload + def writeStartDocument(self) -> None: ... + def writeProcessingInstruction(self, target: QByteArray|bytes|bytearray|memoryview|str|None, data: QByteArray|bytes|bytearray|memoryview|str|None = ...) -> None: ... + def writeDefaultNamespace(self, namespaceUri: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + def writeNamespace(self, namespaceUri: QByteArray|bytes|bytearray|memoryview|str|None, prefix: QByteArray|bytes|bytearray|memoryview|str|None = ...) -> None: ... + def writeEntityReference(self, name: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + def writeEndElement(self) -> None: ... + def writeEndDocument(self) -> None: ... + @typing.overload + def writeTextElement(self, namespaceUri: QByteArray|bytes|bytearray|memoryview|str|None, name: QByteArray|bytes|bytearray|memoryview|str|None, text: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + @typing.overload + def writeTextElement(self, qualifiedName: QByteArray|bytes|bytearray|memoryview|str|None, text: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + @typing.overload + def writeEmptyElement(self, namespaceUri: QByteArray|bytes|bytearray|memoryview|str|None, name: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + @typing.overload + def writeEmptyElement(self, qualifiedName: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + def writeDTD(self, dtd: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + def writeComment(self, text: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + def writeCharacters(self, text: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + def writeCDATA(self, text: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + def writeAttributes(self, attributes: 'QXmlStreamAttributes') -> None: ... + @typing.overload + def writeAttribute(self, namespaceUri: QByteArray|bytes|bytearray|memoryview|str|None, name: QByteArray|bytes|bytearray|memoryview|str|None, value: QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + @typing.overload + def writeAttribute(self, qualifiedName: QByteArray|bytes|bytearray|memoryview|str|None, value: QByteArray|bytes|bytearray|memoryview|str|None) -> 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 device(self) -> QIODevice|None: ... + def setDevice(self, device: QIODevice|None) -> None: ... + + +class QXmlStreamAttributes(PyQt6.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 __eq__(self, other: object): ... + @typing.overload + def __iadd__(self, other: 'QXmlStreamAttributes') -> 'QXmlStreamAttributes': ... + @typing.overload + def __iadd__(self, value: QXmlStreamAttribute) -> 'QXmlStreamAttributes': ... + def __ne__(self, other: object): ... + def size(self) -> int: ... + def replace(self, i: int, value: QXmlStreamAttribute) -> None: ... + def resize(self, size: int) -> 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) -> PyQt6.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, namespaceUri: QByteArray|bytes|bytearray|memoryview|str|None, name: QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ... + @typing.overload + def hasAttribute(self, qualifiedName: QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ... + @typing.overload + def append(self, namespaceUri: str|None, name: str|None, value: str|None) -> None: ... + @typing.overload + def append(self, qualifiedName: str|None, value: str|None) -> None: ... + @typing.overload + def append(self, value: QXmlStreamAttribute) -> None: ... + @typing.overload + def value(self, namespaceUri: QByteArray|bytes|bytearray|memoryview|str|None, name: QByteArray|bytes|bytearray|memoryview|str|None) -> str: ... + @typing.overload + def value(self, qualifiedName: QByteArray|bytes|bytearray|memoryview|str|None) -> str: ... + + +class QMutexLocker(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self, mutex: QMutex|None) -> None: ... + @typing.overload + def __init__(self, mutex: QRecursiveMutex|None) -> None: ... + + def __exit__(self, type: typing.Any, value: typing.Any, traceback: typing.Any) -> None: ... + def __enter__(self) -> typing.Any: ... + def relock(self) -> None: ... + def unlock(self) -> None: ... + def mutex(self) -> QMutex|QRecursiveMutex: ... + + +class QNativeInterface(PyQt6.sip.simplewrapper): ... + + +class QPyAbstractRange(QObject): + + def __init__(self, data: typing.Any, editable: bool) -> None: ... + + def editable(self) -> bool: ... + def data(self) -> typing.Any: ... + + +class QPySequenceRange(QPyAbstractRange): + + def __init__(self, data: typing.Any, editable: bool = ...) -> None: ... + + dataChanged: typing.ClassVar[pyqtSignal] + + +class QPyTableRange(QPyAbstractRange): + + def __init__(self, data: typing.Any, editable: bool = ...) -> None: ... + + dataChanged: typing.ClassVar[pyqtSignal] + + +class QWinEventNotifier(QObject): + + @typing.overload + def __init__(self, parent: QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, hEvent: PyQt6.sip.voidptr, parent: QObject|None = ...) -> None: ... + + def event(self, e: QEvent|None) -> bool: ... + activated: typing.ClassVar[pyqtSignal] + def setEnabled(self, enable: bool) -> None: ... + def setHandle(self, hEvent: PyQt6.sip.voidptr) -> None: ... + def isEnabled(self) -> bool: ... + def handle(self) -> PyQt6.sip.voidptr: ... + + +PYQT_VERSION = ... # type: int +PYQT_VERSION_STR = ... # type: str +QT_VERSION = ... # type: int +QT_VERSION_STR = ... # type: str + + +def qYieldCpu() -> None: ... +def qSetRealNumberPrecision(precision: int) -> QTextStreamManipulator: ... +def qSetPadChar(ch: str) -> QTextStreamManipulator: ... +def qSetFieldWidth(width: int) -> QTextStreamManipulator: ... +def Q_RETURN_ARG(type: typing.Any) -> QGenericReturnArgument: ... +def Q_ARG(type: typing.Any, data: typing.Any) -> QGenericArgument: ... +def QT_TRANSLATE_NOOP(a0: str, a1: str) -> str: ... +def QT_TR_NOOP(a0: str) -> str: ... +def pyqtEnum(a0: enum.Enum = ...) -> None: ... +def pyqtClassInfo(a0: str, a1: str) -> None: ... +def qRound64(d: float) -> int: ... +def qRound(d: float) -> int: ... +def qAbs(t: float) -> float: ... +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|None) -> str: ... +def qSetMessagePattern(messagePattern: str|None) -> None: ... +def qInstallMessageHandler(a0: collections.abc.Callable[[QtMsgType, QMessageLogContext, str|None], None]|None) -> collections.abc.Callable[[QtMsgType, QMessageLogContext, str|None], None]|None: ... +def qWarning(msg: str) -> None: ... +def qInfo(msg: str) -> None: ... +def qFatal(msg: str) -> None: ... +def qDebug(msg: str) -> None: ... +def qCritical(msg: str) -> None: ... +@typing.overload +def qFuzzyIsNull(line: QLineF) -> bool: ... +@typing.overload +def qFuzzyIsNull(m: QMarginsF) -> bool: ... +@typing.overload +def qFuzzyIsNull(d: float) -> bool: ... +@typing.overload +def qFuzzyIsNull(point: QPointF) -> bool: ... +@typing.overload +def qFuzzyIsNull(rect: QRectF) -> bool: ... +@typing.overload +def qFuzzyIsNull(size: QSizeF) -> bool: ... +@typing.overload +def qFuzzyCompare(lhs: QLineF, rhs: QLineF) -> bool: ... +@typing.overload +def qFuzzyCompare(lhs: QMarginsF, rhs: QMarginsF) -> bool: ... +@typing.overload +def qFuzzyCompare(p1: float, p2: float) -> bool: ... +@typing.overload +def qFuzzyCompare(p1: QPointF, p2: QPointF) -> bool: ... +@typing.overload +def qFuzzyCompare(lhs: QRectF, rhs: QRectF) -> bool: ... +@typing.overload +def qFuzzyCompare(s1: QSizeF, s2: QSizeF) -> bool: ... +def pyqtRestoreInputHook() -> None: ... +def pyqtRemoveInputHook() -> None: ... +def qAddPreRoutine(routine: collections.abc.Callable[[], None]) -> None: ... +def qRemovePostRoutine(a0: typing.Callable[..., None]) -> None: ... +def qAddPostRoutine(a0: typing.Callable[..., None]) -> None: ... +def qChecksum(data: QByteArray|bytes|bytearray|memoryview, standard: Qt.ChecksumType = ...) -> int: ... +@typing.overload +def qUncompress(data: PyQt6.sip.array[bytes]) -> QByteArray: ... +@typing.overload +def qUncompress(data: QByteArray|bytes|bytearray|memoryview) -> QByteArray: ... +@typing.overload +def qCompress(data: PyQt6.sip.array[bytes], compressionLevel: int = ...) -> QByteArray: ... +@typing.overload +def qCompress(data: QByteArray|bytes|bytearray|memoryview, compressionLevel: int = ...) -> QByteArray: ... +def qVersion() -> str: ... +def qEnvironmentVariableIntegerValue(varName: str) -> int|None: ... +def qEnvironmentVariableIntValue(varName: str) -> typing.Tuple[int, bool]: ... +def qEnvironmentVariableIsSet(varName: str) -> bool: ... +def qEnvironmentVariableIsEmpty(varName: str) -> bool: ... +@typing.overload +def qEnvironmentVariable(varName: str, defaultValue: str|None) -> str: ... +@typing.overload +def qEnvironmentVariable(varName: str) -> str: ... +def pyqtPickleProtocol() -> int|None: ... +def pyqtSetPickleProtocol(a0: int|None) -> None: ... +def qUnregisterResourceData(a0: int, a1: bytes, a2: bytes, a3: bytes) -> bool: ... +def qRegisterResourceData(a0: int, a1: bytes, a2: bytes, a3: bytes) -> bool: ... diff --git a/typings/PyQt6/QtDBus.pyi b/typings/PyQt6/QtDBus.pyi new file mode 100644 index 00000000..94a36d6c --- /dev/null +++ b/typings/PyQt6/QtDBus.pyi @@ -0,0 +1,497 @@ +# The PEP 484 type hints stub file for the QtDBus module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 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[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QDBusAbstractAdaptor(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None) -> None: ... + + def autoRelaySignals(self) -> bool: ... + def setAutoRelaySignals(self, enable: bool) -> None: ... + + +class QDBusAbstractInterface(QtCore.QObject): + + def __init__(self, service: str|None, path: str|None, interface: str, connection: 'QDBusConnection', parent: QtCore.QObject|None) -> None: ... + + def isInteractiveAuthorizationAllowed(self) -> bool: ... + def setInteractiveAuthorizationAllowed(self, enable: bool) -> None: ... + def disconnectNotify(self, signal: QtCore.QMetaMethod) -> None: ... + def connectNotify(self, signal: QtCore.QMetaMethod) -> None: ... + def asyncCallWithArgumentList(self, method: str|None, args: collections.abc.Iterable[typing.Any]) -> 'QDBusPendingCall': ... + def asyncCall(self, method: str|None, *args: typing.Any) -> 'QDBusPendingCall': ... + @typing.overload + def callWithCallback(self, method: str|None, args: collections.abc.Iterable[typing.Any], returnMethod: PYQT_SLOT, errorMethod: PYQT_SLOT) -> bool: ... + @typing.overload + def callWithCallback(self, method: str|None, args: collections.abc.Iterable[typing.Any], slot: PYQT_SLOT) -> bool: ... + def callWithArgumentList(self, mode: 'QDBus.CallMode', method: str|None, args: collections.abc.Iterable[typing.Any]) -> 'QDBusMessage': ... + @typing.overload + def call(self, method: str|None, *args: typing.Any) -> 'QDBusMessage': ... + @typing.overload + def call(self, mode: 'QDBus.CallMode', method: str|None, *args: 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(PyQt6.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: ... + @typing.overload + def beginMap(self, keyMetaType: QtCore.QMetaType, valueMetaType: QtCore.QMetaType) -> None: ... + @typing.overload + def beginMap(self, kid: int, vid: int) -> None: ... + def endArray(self) -> None: ... + @typing.overload + def beginArray(self, elementMetaType: QtCore.QMetaType) -> None: ... + @typing.overload + 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(PyQt6.sip.simplewrapper): + + class CallMode(enum.Enum): + NoBlock = ... # type: QDBus.CallMode + Block = ... # type: QDBus.CallMode + BlockWithGui = ... # type: QDBus.CallMode + AutoDetect = ... # type: QDBus.CallMode + + +class QDBusConnection(PyQt6.sip.simplewrapper): + + class ConnectionCapability(enum.Flag): + UnixFileDescriptorPassing = ... # type: QDBusConnection.ConnectionCapability + + class UnregisterMode(enum.Enum): + UnregisterNode = ... # type: QDBusConnection.UnregisterMode + UnregisterTree = ... # type: QDBusConnection.UnregisterMode + + class RegisterOption(enum.Flag): + 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(enum.Enum): + SessionBus = ... # type: QDBusConnection.BusType + SystemBus = ... # type: QDBusConnection.BusType + ActivationBus = ... # type: QDBusConnection.BusType + + @typing.overload + def __init__(self, name: str|None) -> None: ... + @typing.overload + def __init__(self, other: 'QDBusConnection') -> None: ... + + def swap(self, other: 'QDBusConnection') -> None: ... + @staticmethod + def systemBus() -> 'QDBusConnection': ... + @staticmethod + def sessionBus() -> 'QDBusConnection': ... + @staticmethod + def localMachineId() -> QtCore.QByteArray: ... + @staticmethod + def disconnectFromPeer(name: str|None) -> None: ... + @staticmethod + def disconnectFromBus(name: str|None) -> None: ... + @staticmethod + def connectToPeer(address: str|None, name: str|None) -> 'QDBusConnection': ... + @typing.overload + @staticmethod + def connectToBus(type: 'QDBusConnection.BusType', name: str|None) -> 'QDBusConnection': ... + @typing.overload + @staticmethod + def connectToBus(address: str|None, name: str|None) -> 'QDBusConnection': ... + def interface(self) -> 'QDBusConnectionInterface|None': ... + def unregisterService(self, serviceName: str|None) -> bool: ... + def registerService(self, serviceName: str|None) -> bool: ... + def objectRegisteredAt(self, path: str|None) -> QtCore.QObject|None: ... + def unregisterObject(self, path: str|None, mode: 'QDBusConnection.UnregisterMode' = ...) -> None: ... + @typing.overload + def registerObject(self, path: str|None, object: QtCore.QObject|None, options: 'QDBusConnection.RegisterOption' = ...) -> bool: ... + @typing.overload + def registerObject(self, path: str|None, interface: str|None, object: QtCore.QObject|None, options: 'QDBusConnection.RegisterOption' = ...) -> bool: ... + @typing.overload + def disconnect(self, service: str|None, path: str|None, interface: str|None, name: str|None, slot: PYQT_SLOT) -> bool: ... + @typing.overload + def disconnect(self, service: str|None, path: str|None, interface: str|None, name: str|None, signature: str|None, slot: PYQT_SLOT) -> bool: ... + @typing.overload + def disconnect(self, service: str|None, path: str|None, interface: str|None, name: str|None, argumentMatch: collections.abc.Iterable[str|None], signature: str|None, slot: PYQT_SLOT) -> bool: ... + @typing.overload + def connect(self, service: str|None, path: str|None, interface: str|None, name: str|None, slot: PYQT_SLOT) -> bool: ... + @typing.overload + def connect(self, service: str|None, path: str|None, interface: str|None, name: str|None, signature: str|None, slot: PYQT_SLOT) -> bool: ... + @typing.overload + def connect(self, service: str|None, path: str|None, interface: str|None, name: str|None, argumentMatch: collections.abc.Iterable[str|None], signature: str|None, 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.ConnectionCapability': ... + def name(self) -> str: ... + def lastError(self) -> 'QDBusError': ... + def baseService(self) -> str: ... + def isConnected(self) -> bool: ... + + +class QDBusConnectionInterface(QDBusAbstractInterface): + + class RegisterServiceReply(enum.Enum): + ServiceNotRegistered = ... # type: QDBusConnectionInterface.RegisterServiceReply + ServiceRegistered = ... # type: QDBusConnectionInterface.RegisterServiceReply + ServiceQueued = ... # type: QDBusConnectionInterface.RegisterServiceReply + + class ServiceReplacementOptions(enum.Enum): + DontAllowReplacement = ... # type: QDBusConnectionInterface.ServiceReplacementOptions + AllowReplacement = ... # type: QDBusConnectionInterface.ServiceReplacementOptions + + class ServiceQueueOptions(enum.Enum): + 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: ... + callWithCallbackFailed: typing.ClassVar[QtCore.pyqtSignal] + serviceOwnerChanged: typing.ClassVar[QtCore.pyqtSignal] + serviceUnregistered: typing.ClassVar[QtCore.pyqtSignal] + serviceRegistered: typing.ClassVar[QtCore.pyqtSignal] + def serviceCredentials(self, serviceName: str|None) -> QDBusReply: ... + def startService(self, name: str|None) -> QDBusReply: ... + def serviceUid(self, serviceName: str|None) -> QDBusReply: ... + def servicePid(self, serviceName: str|None) -> QDBusReply: ... + def registerService(self, serviceName: str|None, qoption: 'QDBusConnectionInterface.ServiceQueueOptions' = ..., roption: 'QDBusConnectionInterface.ServiceReplacementOptions' = ...) -> QDBusReply: ... + def unregisterService(self, serviceName: str|None) -> QDBusReply: ... + def serviceOwner(self, name: str|None) -> QDBusReply: ... + def isServiceRegistered(self, serviceName: str|None) -> QDBusReply: ... + def activatableServiceNames(self) -> QDBusReply: ... + def registeredServiceNames(self) -> QDBusReply: ... + + +class QDBusError(PyQt6.sip.simplewrapper): + + class ErrorType(enum.Enum): + 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(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, objectPath: str|None) -> None: ... + @typing.overload + def __init__(self, a0: 'QDBusObjectPath') -> None: ... + + def __ge__(self, rhs: 'QDBusObjectPath') -> bool: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __lt__(self, rhs: 'QDBusObjectPath') -> bool: ... + def swap(self, other: 'QDBusObjectPath') -> None: ... + def __hash__(self) -> int: ... + def setPath(self, objectPath: str|None) -> None: ... + def path(self) -> str: ... + + +class QDBusSignature(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, dBusSignature: str|None) -> None: ... + @typing.overload + def __init__(self, a0: 'QDBusSignature') -> None: ... + + def __ge__(self, rhs: 'QDBusSignature') -> bool: ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __lt__(self, rhs: 'QDBusSignature') -> bool: ... + def swap(self, other: 'QDBusSignature') -> None: ... + def __hash__(self) -> int: ... + def setSignature(self, dBusSignature: str|None) -> None: ... + def signature(self) -> str: ... + + +class QDBusVariant(PyQt6.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 __ne__(self, other: object): ... + def __eq__(self, other: object): ... + 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|None, path: str|None, interface: str|None = ..., connection: QDBusConnection = ..., parent: QtCore.QObject|None = ...) -> None: ... + + +class QDBusMessage(PyQt6.sip.simplewrapper): + + class MessageType(enum.Enum): + 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|None, path: str|None, interface: str|None, name: str|None) -> 'QDBusMessage': ... + def swap(self, other: 'QDBusMessage') -> None: ... + def __lshift__(self, arg: typing.Any) -> 'QDBusMessage': ... + def arguments(self) -> list[typing.Any]: ... + def setArguments(self, arguments: collections.abc.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|None, msg: str|None) -> 'QDBusMessage': ... + @typing.overload + def createErrorReply(self, error: QDBusError) -> 'QDBusMessage': ... + @typing.overload + def createErrorReply(self, type: QDBusError.ErrorType, msg: str|None) -> 'QDBusMessage': ... + @typing.overload + def createReply(self, arguments: collections.abc.Iterable[typing.Any] = ...) -> 'QDBusMessage': ... + @typing.overload + def createReply(self, argument: typing.Any) -> 'QDBusMessage': ... + @typing.overload + @staticmethod + def createError(name: str|None, msg: str|None) -> 'QDBusMessage': ... + @typing.overload + @staticmethod + def createError(error: QDBusError) -> 'QDBusMessage': ... + @typing.overload + @staticmethod + def createError(type: QDBusError.ErrorType, msg: str|None) -> 'QDBusMessage': ... + @staticmethod + def createMethodCall(service: str|None, path: str|None, interface: str|None, method: str|None) -> 'QDBusMessage': ... + @staticmethod + def createSignal(path: str|None, interface: str|None, name: str|None) -> 'QDBusMessage': ... + + +class QDBusPendingCall(PyQt6.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: QtCore.QObject|None = ...) -> None: ... + + finished: typing.ClassVar[QtCore.pyqtSignal] + def waitForFinished(self) -> None: ... + def isFinished(self) -> bool: ... + + +class QDBusServiceWatcher(QtCore.QObject): + + class WatchModeFlag(enum.Flag): + WatchForRegistration = ... # type: QDBusServiceWatcher.WatchModeFlag + WatchForUnregistration = ... # type: QDBusServiceWatcher.WatchModeFlag + WatchForOwnerChange = ... # type: QDBusServiceWatcher.WatchModeFlag + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, service: str|None, connection: QDBusConnection, watchMode: 'QDBusServiceWatcher.WatchModeFlag' = ..., parent: QtCore.QObject|None = ...) -> None: ... + + serviceOwnerChanged: typing.ClassVar[QtCore.pyqtSignal] + serviceUnregistered: typing.ClassVar[QtCore.pyqtSignal] + serviceRegistered: typing.ClassVar[QtCore.pyqtSignal] + def setConnection(self, connection: QDBusConnection) -> None: ... + def connection(self) -> QDBusConnection: ... + def setWatchMode(self, mode: 'QDBusServiceWatcher.WatchModeFlag') -> None: ... + def watchMode(self) -> 'QDBusServiceWatcher.WatchModeFlag': ... + def removeWatchedService(self, service: str|None) -> bool: ... + def addWatchedService(self, newService: str|None) -> None: ... + def setWatchedServices(self, services: collections.abc.Iterable[str|None]) -> None: ... + def watchedServices(self) -> list[str]: ... + + +class QDBusUnixFileDescriptor(PyQt6.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 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: ... + + +class QDBusReply(PyQt6.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: ... diff --git a/typings/PyQt6/QtDesigner.pyi b/typings/PyQt6/QtDesigner.pyi new file mode 100644 index 00000000..707e168f --- /dev/null +++ b/typings/PyQt6/QtDesigner.pyi @@ -0,0 +1,453 @@ +# The PEP 484 type hints stub file for the QtDesigner module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui +from PyQt6 import QtWidgets + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QDesignerActionEditorInterface(QtWidgets.QWidget): + + def __init__(self, parent: QtWidgets.QWidget|None, flags: QtCore.Qt.WindowType = ...) -> None: ... + + def setFormWindow(self, formWindow: 'QDesignerFormWindowInterface|None') -> None: ... + def unmanageAction(self, action: QtGui.QAction|None) -> None: ... + def manageAction(self, action: QtGui.QAction|None) -> None: ... + def core(self) -> 'QDesignerFormEditorInterface|None': ... + + +class QAbstractFormBuilder(PyQt6.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|None, widget: QtWidgets.QWidget|None) -> None: ... + def load(self, device: QtCore.QIODevice|None, parent: QtWidgets.QWidget|None = ...) -> QtWidgets.QWidget|None: ... + + +class QDesignerFormEditorInterface(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def setActionEditor(self, actionEditor: QDesignerActionEditorInterface|None) -> None: ... + def setObjectInspector(self, objectInspector: 'QDesignerObjectInspectorInterface|None') -> None: ... + def setPropertyEditor(self, propertyEditor: 'QDesignerPropertyEditorInterface|None') -> None: ... + def setWidgetBox(self, widgetBox: 'QDesignerWidgetBoxInterface|None') -> None: ... + def actionEditor(self) -> QDesignerActionEditorInterface|None: ... + def formWindowManager(self) -> 'QDesignerFormWindowManagerInterface|None': ... + def objectInspector(self) -> 'QDesignerObjectInspectorInterface|None': ... + def propertyEditor(self) -> 'QDesignerPropertyEditorInterface|None': ... + def widgetBox(self) -> 'QDesignerWidgetBoxInterface|None': ... + def topLevel(self) -> QtWidgets.QWidget|None: ... + def extensionManager(self) -> 'QExtensionManager|None': ... + + +class QDesignerFormWindowInterface(QtWidgets.QWidget): + + class FeatureFlag(enum.Flag): + EditFeature = ... # type: QDesignerFormWindowInterface.FeatureFlag + GridFeature = ... # type: QDesignerFormWindowInterface.FeatureFlag + TabOrderFeature = ... # type: QDesignerFormWindowInterface.FeatureFlag + DefaultFeature = ... # type: QDesignerFormWindowInterface.FeatureFlag + + def __init__(self, parent: QtWidgets.QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + def activateResourceFilePaths(self, paths: collections.abc.Iterable[str|None]) -> typing.Tuple[int, str]: ... + def formContainer(self) -> QtWidgets.QWidget|None: ... + def activeResourceFilePaths(self) -> list[str]: ... + def checkContents(self) -> list[str]: ... + objectRemoved: typing.ClassVar[QtCore.pyqtSignal] + widgetRemoved: typing.ClassVar[QtCore.pyqtSignal] + changed: typing.ClassVar[QtCore.pyqtSignal] + activated: typing.ClassVar[QtCore.pyqtSignal] + aboutToUnmanageWidget: typing.ClassVar[QtCore.pyqtSignal] + widgetUnmanaged: typing.ClassVar[QtCore.pyqtSignal] + widgetManaged: typing.ClassVar[QtCore.pyqtSignal] + resourceFilesChanged: typing.ClassVar[QtCore.pyqtSignal] + geometryChanged: typing.ClassVar[QtCore.pyqtSignal] + selectionChanged: typing.ClassVar[QtCore.pyqtSignal] + featureChanged: typing.ClassVar[QtCore.pyqtSignal] + fileNameChanged: typing.ClassVar[QtCore.pyqtSignal] + mainContainerChanged: typing.ClassVar[QtCore.pyqtSignal] + def setFileName(self, fileName: str|None) -> None: ... + def setGrid(self, grid: QtCore.QPoint) -> None: ... + def selectWidget(self, widget: QtWidgets.QWidget|None, select: bool = ...) -> None: ... + def clearSelection(self, update: bool = ...) -> None: ... + def setDirty(self, dirty: bool) -> None: ... + def setFeatures(self, f: 'QDesignerFormWindowInterface.FeatureFlag') -> None: ... + def unmanageWidget(self, widget: QtWidgets.QWidget|None) -> None: ... + def manageWidget(self, widget: QtWidgets.QWidget|None) -> None: ... + def removeResourceFile(self, path: str|None) -> None: ... + def addResourceFile(self, path: str|None) -> None: ... + def resourceFiles(self) -> list[str]: ... + def emitSelectionChanged(self) -> None: ... + @typing.overload + @staticmethod + def findFormWindow(w: QtWidgets.QWidget|None) -> 'QDesignerFormWindowInterface|None': ... + @typing.overload + @staticmethod + def findFormWindow(obj: QtCore.QObject|None) -> 'QDesignerFormWindowInterface|None': ... + def isDirty(self) -> bool: ... + def isManaged(self, widget: QtWidgets.QWidget|None) -> bool: ... + def setMainContainer(self, mainContainer: QtWidgets.QWidget|None) -> None: ... + def mainContainer(self) -> QtWidgets.QWidget|None: ... + def grid(self) -> QtCore.QPoint: ... + def cursor(self) -> 'QDesignerFormWindowCursorInterface|None': ... + def core(self) -> QDesignerFormEditorInterface|None: ... + def setIncludeHints(self, includeHints: collections.abc.Iterable[str|None]) -> None: ... + def includeHints(self) -> list[str]: ... + def setExportMacro(self, exportMacro: str|None) -> None: ... + def exportMacro(self) -> str: ... + def setPixmapFunction(self, pixmapFunction: str|None) -> None: ... + def pixmapFunction(self) -> str: ... + def setLayoutFunction(self, margin: str|None, spacing: str|None) -> 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) -> None: ... + def comment(self) -> str: ... + def setAuthor(self, author: str|None) -> None: ... + def author(self) -> str: ... + def hasFeature(self, f: 'QDesignerFormWindowInterface.FeatureFlag') -> bool: ... + def features(self) -> 'QDesignerFormWindowInterface.FeatureFlag': ... + @typing.overload + def setContents(self, dev: QtCore.QIODevice|None, errorMessage: str|None = ...) -> bool: ... + @typing.overload + def setContents(self, contents: str|None) -> bool: ... + def contents(self) -> str: ... + def absoluteDir(self) -> QtCore.QDir: ... + def fileName(self) -> str: ... + + +class QDesignerFormWindowCursorInterface(PyQt6.sip.simplewrapper): + + class MoveMode(enum.Enum): + MoveAnchor = ... # type: QDesignerFormWindowCursorInterface.MoveMode + KeepAnchor = ... # type: QDesignerFormWindowCursorInterface.MoveMode + + class MoveOperation(enum.Enum): + 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 + + def __init__(self) -> None: ... + + def isWidgetSelected(self, widget: QtWidgets.QWidget|None) -> bool: ... + def resetWidgetProperty(self, widget: QtWidgets.QWidget|None, name: str|None) -> None: ... + def setWidgetProperty(self, widget: QtWidgets.QWidget|None, name: str|None, value: typing.Any) -> None: ... + def setProperty(self, name: str|None, value: typing.Any) -> None: ... + def selectedWidget(self, index: int) -> QtWidgets.QWidget|None: ... + def selectedWidgetCount(self) -> int: ... + def hasSelection(self) -> bool: ... + def widget(self, index: int) -> QtWidgets.QWidget|None: ... + def widgetCount(self) -> int: ... + def current(self) -> QtWidgets.QWidget|None: ... + 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|None: ... + + +class QDesignerFormWindowManagerInterface(QtCore.QObject): + + class ActionGroup(enum.Enum): + StyledPreviewActionGroup = ... # type: QDesignerFormWindowManagerInterface.ActionGroup + + class Action(enum.Enum): + 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: QtCore.QObject|None = ...) -> None: ... + + def showPluginDialog(self) -> None: ... + def closeAllPreviews(self) -> None: ... + def showPreview(self) -> None: ... + def actionGroup(self, actionGroup: 'QDesignerFormWindowManagerInterface.ActionGroup') -> QtGui.QActionGroup|None: ... + def action(self, action: 'QDesignerFormWindowManagerInterface.Action') -> QtGui.QAction|None: ... + def setActiveFormWindow(self, formWindow: QDesignerFormWindowInterface|None) -> None: ... + def removeFormWindow(self, formWindow: QDesignerFormWindowInterface|None) -> None: ... + def addFormWindow(self, formWindow: QDesignerFormWindowInterface|None) -> None: ... + formWindowSettingsChanged: typing.ClassVar[QtCore.pyqtSignal] + activeFormWindowChanged: typing.ClassVar[QtCore.pyqtSignal] + formWindowRemoved: typing.ClassVar[QtCore.pyqtSignal] + formWindowAdded: typing.ClassVar[QtCore.pyqtSignal] + def core(self) -> QDesignerFormEditorInterface|None: ... + def createFormWindow(self, parent: QtWidgets.QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> QDesignerFormWindowInterface|None: ... + def formWindow(self, index: int) -> QDesignerFormWindowInterface|None: ... + def formWindowCount(self) -> int: ... + def activeFormWindow(self) -> QDesignerFormWindowInterface|None: ... + def actionSimplifyLayout(self) -> QtGui.QAction|None: ... + def actionFormLayout(self) -> QtGui.QAction|None: ... + + +class QDesignerObjectInspectorInterface(QtWidgets.QWidget): + + def __init__(self, parent: QtWidgets.QWidget|None, flags: QtCore.Qt.WindowType = ...) -> None: ... + + def setFormWindow(self, formWindow: QDesignerFormWindowInterface|None) -> None: ... + def core(self) -> QDesignerFormEditorInterface|None: ... + + +class QDesignerPropertyEditorInterface(QtWidgets.QWidget): + + def __init__(self, parent: QtWidgets.QWidget|None, flags: QtCore.Qt.WindowType = ...) -> None: ... + + def setReadOnly(self, readOnly: bool) -> None: ... + def setPropertyValue(self, name: str|None, value: typing.Any, changed: bool = ...) -> None: ... + def setObject(self, object: QtCore.QObject|None) -> None: ... + propertyChanged: typing.ClassVar[QtCore.pyqtSignal] + def currentPropertyName(self) -> str: ... + def object(self) -> QtCore.QObject|None: ... + def isReadOnly(self) -> bool: ... + def core(self) -> QDesignerFormEditorInterface|None: ... + + +class QDesignerWidgetBoxInterface(QtWidgets.QWidget): + + def __init__(self, parent: QtWidgets.QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + def save(self) -> bool: ... + def load(self) -> bool: ... + def fileName(self) -> str: ... + def setFileName(self, file_name: str|None) -> None: ... + + +class QDesignerContainerExtension(PyQt6.sip.simplewrapper): + + def __init__(self) -> 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) -> None: ... + def addWidget(self, widget: QtWidgets.QWidget|None) -> None: ... + def setCurrentIndex(self, index: int) -> None: ... + def currentIndex(self) -> int: ... + def widget(self, index: int) -> QtWidgets.QWidget|None: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + + +class QDesignerCustomWidgetInterface(PyQt6.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) -> None: ... + def isInitialized(self) -> bool: ... + def createWidget(self, parent: QtWidgets.QWidget|None) -> QtWidgets.QWidget|None: ... + 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(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesignerCustomWidgetCollectionInterface') -> None: ... + + def customWidgets(self) -> list[QDesignerCustomWidgetInterface]: ... + + +class QAbstractExtensionFactory(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstractExtensionFactory') -> None: ... + + def extension(self, object: QtCore.QObject|None, iid: str|None) -> QtCore.QObject|None: ... + + +class QExtensionFactory(QtCore.QObject, QAbstractExtensionFactory): + + def __init__(self, parent: 'QExtensionManager|None' = ...) -> None: ... + + def createExtension(self, object: QtCore.QObject|None, iid: str|None, parent: QtCore.QObject|None) -> QtCore.QObject|None: ... + def extensionManager(self) -> 'QExtensionManager|None': ... + def extension(self, object: QtCore.QObject|None, iid: str|None) -> QtCore.QObject|None: ... + + +class QAbstractExtensionManager(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstractExtensionManager') -> None: ... + + def extension(self, object: QtCore.QObject|None, iid: str|None) -> QtCore.QObject|None: ... + def unregisterExtensions(self, factory: QAbstractExtensionFactory|None, iid: str|None) -> None: ... + def registerExtensions(self, factory: QAbstractExtensionFactory|None, iid: str|None) -> None: ... + + +class QFormBuilder(QAbstractFormBuilder): + + def __init__(self) -> None: ... + + def customWidgets(self) -> list[QDesignerCustomWidgetInterface]: ... + def setPluginPath(self, pluginPaths: collections.abc.Iterable[str|None]) -> None: ... + def addPluginPath(self, pluginPath: str|None) -> None: ... + def clearPluginPaths(self) -> None: ... + def pluginPaths(self) -> list[str]: ... + + +class QDesignerMemberSheetExtension(PyQt6.sip.simplewrapper): + + def __init__(self) -> None: ... + + def parameterNames(self, index: int) -> list[QtCore.QByteArray]: ... + def parameterTypes(self, index: int) -> 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) -> None: ... + def memberGroup(self, index: int) -> str: ... + def memberName(self, index: int) -> str: ... + def indexOf(self, name: str|None) -> int: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + + +class QDesignerPropertySheetExtension(PyQt6.sip.simplewrapper): + + def __init__(self) -> 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) -> None: ... + def propertyGroup(self, index: int) -> str: ... + def propertyName(self, index: int) -> str: ... + def indexOf(self, name: str|None) -> int: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + + +class QExtensionManager(QtCore.QObject, QAbstractExtensionManager): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def extension(self, object: QtCore.QObject|None, iid: str|None) -> QtCore.QObject|None: ... + def unregisterExtensions(self, factory: QAbstractExtensionFactory|None, iid: str|None = ...) -> None: ... + def registerExtensions(self, factory: QAbstractExtensionFactory|None, iid: str|None = ...) -> None: ... + + +class QDesignerTaskMenuExtension(PyQt6.sip.simplewrapper): + + def __init__(self) -> None: ... + + def preferredEditAction(self) -> QtGui.QAction|None: ... + def taskActions(self) -> list[QtGui.QAction]: ... + + +class QPyDesignerContainerExtension(QtCore.QObject, QDesignerContainerExtension): + + def __init__(self, parent: QtCore.QObject|None) -> None: ... + + +class QPyDesignerCustomWidgetCollectionPlugin(QtCore.QObject, QDesignerCustomWidgetCollectionInterface): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + +class QPyDesignerCustomWidgetPlugin(QtCore.QObject, QDesignerCustomWidgetInterface): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + +class QPyDesignerMemberSheetExtension(QtCore.QObject, QDesignerMemberSheetExtension): + + def __init__(self, parent: QtCore.QObject|None) -> None: ... + + +class QPyDesignerPropertySheetExtension(QtCore.QObject, QDesignerPropertySheetExtension): + + def __init__(self, parent: QtCore.QObject|None) -> None: ... + + +class QPyDesignerTaskMenuExtension(QtCore.QObject, QDesignerTaskMenuExtension): + + def __init__(self, parent: QtCore.QObject|None) -> None: ... diff --git a/typings/PyQt6/QtGui.pyi b/typings/PyQt6/QtGui.pyi new file mode 100644 index 00000000..0a7bfbac --- /dev/null +++ b/typings/PyQt6/QtGui.pyi @@ -0,0 +1,8415 @@ +# The PEP 484 type hints stub file for the QtGui module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 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[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QAbstractFileIconProvider(PyQt6.sip.simplewrapper): + + class Option(enum.Flag): + DontUseCustomDirectoryIcons = ... # type: QAbstractFileIconProvider.Option + + class IconType(enum.Enum): + Computer = ... # type: QAbstractFileIconProvider.IconType + Desktop = ... # type: QAbstractFileIconProvider.IconType + Trashcan = ... # type: QAbstractFileIconProvider.IconType + Network = ... # type: QAbstractFileIconProvider.IconType + Drive = ... # type: QAbstractFileIconProvider.IconType + Folder = ... # type: QAbstractFileIconProvider.IconType + File = ... # type: QAbstractFileIconProvider.IconType + + def __init__(self) -> None: ... + + def options(self) -> 'QAbstractFileIconProvider.Option': ... + def setOptions(self, a0: 'QAbstractFileIconProvider.Option') -> None: ... + def type(self, a0: QtCore.QFileInfo) -> str: ... + @typing.overload + def icon(self, a0: 'QAbstractFileIconProvider.IconType') -> 'QIcon': ... + @typing.overload + def icon(self, a0: QtCore.QFileInfo) -> 'QIcon': ... + + +class QAbstractTextDocumentLayout(QtCore.QObject): + + class Selection(PyQt6.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(PyQt6.sip.simplewrapper): + + clip = ... # type: QtCore.QRectF + cursorPosition = ... # type: int + palette = ... # type: 'QPalette' + selections = ... # type: collections.abc.Iterable['QAbstractTextDocumentLayout.Selection'] + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstractTextDocumentLayout.PaintContext') -> None: ... + + def __init__(self, doc: 'QTextDocument|None') -> None: ... + + def blockWithMarkerAt(self, pos: QtCore.QPointF) -> 'QTextBlock': ... + def formatAt(self, pos: QtCore.QPointF) -> 'QTextFormat': ... + def imageAt(self, pos: QtCore.QPointF) -> str: ... + def format(self, pos: int) -> 'QTextCharFormat': ... + def drawInlineObject(self, painter: 'QPainter|None', 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: ... + updateBlock: typing.ClassVar[QtCore.pyqtSignal] + pageCountChanged: typing.ClassVar[QtCore.pyqtSignal] + documentSizeChanged: typing.ClassVar[QtCore.pyqtSignal] + update: typing.ClassVar[QtCore.pyqtSignal] + def handlerForObject(self, objectType: int) -> 'QTextObjectInterface|None': ... + def unregisterHandler(self, objectType: int, component: QtCore.QObject|None = ...) -> None: ... + def registerHandler(self, objectType: int, component: QtCore.QObject|None) -> None: ... + def document(self) -> 'QTextDocument|None': ... + def paintDevice(self) -> 'QPaintDevice|None': ... + def setPaintDevice(self, device: 'QPaintDevice|None') -> None: ... + def blockBoundingRect(self, block: 'QTextBlock') -> QtCore.QRectF: ... + def frameBoundingRect(self, frame: 'QTextFrame|None') -> QtCore.QRectF: ... + def documentSize(self) -> QtCore.QSizeF: ... + def pageCount(self) -> int: ... + def anchorAt(self, pos: QtCore.QPointF) -> str: ... + def hitTest(self, point: QtCore.QPointF, accuracy: QtCore.Qt.HitTestAccuracy) -> int: ... + def draw(self, painter: 'QPainter|None', context: 'QAbstractTextDocumentLayout.PaintContext') -> None: ... + + +class QTextObjectInterface(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextObjectInterface') -> None: ... + + def drawObject(self, painter: 'QPainter|None', rect: QtCore.QRectF, doc: 'QTextDocument|None', posInDocument: int, format: 'QTextFormat') -> None: ... + def intrinsicSize(self, doc: 'QTextDocument|None', posInDocument: int, format: 'QTextFormat') -> QtCore.QSizeF: ... + + +class QAccessibilityHints(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def event(self, event: QtCore.QEvent|None) -> bool: ... + def contrastPreferenceChanged(self, contrastPreference: QtCore.Qt.ContrastPreference) -> None: ... + def contrastPreference(self) -> QtCore.Qt.ContrastPreference: ... + + +class QAction(QtCore.QObject): + + class Priority(enum.Enum): + LowPriority = ... # type: QAction.Priority + NormalPriority = ... # type: QAction.Priority + HighPriority = ... # type: QAction.Priority + + class MenuRole(enum.Enum): + 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(enum.Enum): + Trigger = ... # type: QAction.ActionEvent + Hover = ... # type: QAction.ActionEvent + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, text: str|None, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, icon: 'QIcon', text: str|None, parent: QtCore.QObject|None = ...) -> None: ... + + visibleChanged: typing.ClassVar[QtCore.pyqtSignal] + checkableChanged: typing.ClassVar[QtCore.pyqtSignal] + enabledChanged: typing.ClassVar[QtCore.pyqtSignal] + def resetEnabled(self) -> None: ... + def associatedObjects(self) -> list[QtCore.QObject]: ... + 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 setMenu(self, menu: QMenu|None) -> None: ... + def menu(self) -> QMenu|None: ... + 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) -> list['QKeySequence']: ... + @typing.overload + def setShortcuts(self, shortcuts: collections.abc.Iterable['QKeySequence'|'QKeySequence.StandardKey'|str|None|int]) -> None: ... + @typing.overload + def setShortcuts(self, a0: 'QKeySequence.StandardKey') -> None: ... + toggled: typing.ClassVar[QtCore.pyqtSignal] + hovered: typing.ClassVar[QtCore.pyqtSignal] + triggered: typing.ClassVar[QtCore.pyqtSignal] + changed: typing.ClassVar[QtCore.pyqtSignal] + 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|None) -> bool: ... + def showStatusText(self, object: QtCore.QObject|None = ...) -> 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) -> 'QFont': ... + def setFont(self, font: 'QFont') -> None: ... + def shortcutContext(self) -> QtCore.Qt.ShortcutContext: ... + def setShortcutContext(self, context: QtCore.Qt.ShortcutContext) -> None: ... + def shortcut(self) -> 'QKeySequence': ... + def setShortcut(self, shortcut: 'QKeySequence'|'QKeySequence.StandardKey'|str|None|int) -> None: ... + def isSeparator(self) -> bool: ... + def setSeparator(self, b: bool) -> None: ... + def whatsThis(self) -> str: ... + def setWhatsThis(self, what: str|None) -> None: ... + def statusTip(self) -> str: ... + def setStatusTip(self, statusTip: str|None) -> None: ... + def toolTip(self) -> str: ... + def setToolTip(self, tip: str|None) -> None: ... + def iconText(self) -> str: ... + def setIconText(self, text: str|None) -> None: ... + def text(self) -> str: ... + def setText(self, text: str|None) -> None: ... + def icon(self) -> 'QIcon': ... + def setIcon(self, icon: 'QIcon') -> None: ... + def actionGroup(self) -> 'QActionGroup|None': ... + def setActionGroup(self, group: 'QActionGroup|None') -> None: ... + + +class QActionGroup(QtCore.QObject): + + class ExclusionPolicy(enum.Enum): + None_ = ... # type: QActionGroup.ExclusionPolicy + Exclusive = ... # type: QActionGroup.ExclusionPolicy + ExclusiveOptional = ... # type: QActionGroup.ExclusionPolicy + + def __init__(self, parent: QtCore.QObject|None) -> None: ... + + hovered: typing.ClassVar[QtCore.pyqtSignal] + triggered: typing.ClassVar[QtCore.pyqtSignal] + def setExclusionPolicy(self, policy: 'QActionGroup.ExclusionPolicy') -> 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 exclusionPolicy(self) -> 'QActionGroup.ExclusionPolicy': ... + def isVisible(self) -> bool: ... + def isEnabled(self) -> bool: ... + def isExclusive(self) -> bool: ... + def checkedAction(self) -> QAction|None: ... + def actions(self) -> list[QAction]: ... + def removeAction(self, a: QAction|None) -> None: ... + @typing.overload + def addAction(self, a: QAction|None) -> QAction|None: ... + @typing.overload + def addAction(self, text: str|None) -> QAction|None: ... + @typing.overload + def addAction(self, icon: 'QIcon', text: str|None) -> QAction|None: ... + + +class QBackingStore(PyQt6.sip.simplewrapper): + + def __init__(self, window: 'QWindow|None') -> 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: 'QWindow|None' = ..., offset: QtCore.QPoint = ...) -> None: ... + def paintDevice(self) -> 'QPaintDevice|None': ... + def window(self) -> 'QWindow|None': ... + + +class QPaintDevice(PyQt6.sip.simplewrapper): + + class PaintDeviceMetric(enum.Enum): + 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 + PdmDevicePixelRatioF_EncodedA = ... # type: QPaintDevice.PaintDeviceMetric + PdmDevicePixelRatioF_EncodedB = ... # 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) -> float: ... + 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|None': ... + + +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|None, format: str = ..., flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ... + @typing.overload + def __init__(self, xpm: list[str]) -> None: ... + @typing.overload + def __init__(self, a0: 'QPixmap') -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + def deviceIndependentSize(self) -> QtCore.QSizeF: ... + 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|None': ... + @typing.overload + def scroll(self, dx: int, dy: int, x: int, y: int, width: int, height: int) -> 'QRegion|None': ... + 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|None': ... + 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|None, format: str = ..., quality: int = ...) -> bool: ... + @typing.overload + def save(self, device: QtCore.QIODevice|None, format: str = ..., quality: int = ...) -> bool: ... + @typing.overload + def loadFromData(self, buf: PyQt6.sip.array[bytes], format: str = ..., flags: QtCore.Qt.ImageConversionFlag = ...) -> bool: ... + @typing.overload + def loadFromData(self, buf: QtCore.QByteArray|bytes|bytearray|memoryview, format: str = ..., flags: QtCore.Qt.ImageConversionFlag = ...) -> bool: ... + def load(self, fileName: str|None, format: str = ..., flags: QtCore.Qt.ImageConversionFlag = ...) -> bool: ... + def convertFromImage(self, img: 'QImage', flags: QtCore.Qt.ImageConversionFlag = ...) -> bool: ... + @staticmethod + def fromImageReader(imageReader: 'QImageReader|None', flags: QtCore.Qt.ImageConversionFlag = ...) -> 'QPixmap': ... + @staticmethod + def fromImage(image: 'QImage', flags: 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: 'QColor'|QtCore.Qt.GlobalColor|int, 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: 'QColor'|QtCore.Qt.GlobalColor|int = ...) -> 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, w: int, h: int) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QSize) -> None: ... + @typing.overload + def __init__(self, fileName: str|None, format: str = ...) -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + @typing.overload + def __init__(self, a0: 'QBitmap') -> 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 fromPixmap(pixmap: QPixmap) -> 'QBitmap': ... + @staticmethod + def fromImage(image: 'QImage', flags: QtCore.Qt.ImageConversionFlag = ...) -> 'QBitmap': ... + def clear(self) -> None: ... + + +class QColor(PyQt6.sip.simplewrapper): + + class NameFormat(enum.Enum): + HexRgb = ... # type: QColor.NameFormat + HexArgb = ... # type: QColor.NameFormat + + class Spec(enum.Enum): + Invalid = ... # type: QColor.Spec + Rgb = ... # type: QColor.Spec + Hsv = ... # type: QColor.Spec + Cmyk = ... # type: QColor.Spec + Hsl = ... # type: QColor.Spec + ExtendedRgb = ... # 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, name: str) -> None: ... + @typing.overload + def __init__(self, a0: 'QColor') -> None: ... + + @staticmethod + def isValidColorName(a0: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ... + @staticmethod + def fromString(name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> 'QColor': ... + def toExtendedRgb(self) -> 'QColor': ... + @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|None) -> 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: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + @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() -> list[str]: ... + def setNamedColor(self, name: str) -> None: ... + def name(self, format: 'QColor.NameFormat' = ...) -> str: ... + + +class QColorConstants(PyQt6.sip.simplewrapper): + + class Svg(PyQt6.sip.simplewrapper): + + aliceblue = ... # type: QColor|QtCore.Qt.GlobalColor|int + antiquewhite = ... # type: QColor|QtCore.Qt.GlobalColor|int + aqua = ... # type: QColor|QtCore.Qt.GlobalColor|int + aquamarine = ... # type: QColor|QtCore.Qt.GlobalColor|int + azure = ... # type: QColor|QtCore.Qt.GlobalColor|int + beige = ... # type: QColor|QtCore.Qt.GlobalColor|int + bisque = ... # type: QColor|QtCore.Qt.GlobalColor|int + black = ... # type: QColor|QtCore.Qt.GlobalColor|int + blanchedalmond = ... # type: QColor|QtCore.Qt.GlobalColor|int + blue = ... # type: QColor|QtCore.Qt.GlobalColor|int + blueviolet = ... # type: QColor|QtCore.Qt.GlobalColor|int + brown = ... # type: QColor|QtCore.Qt.GlobalColor|int + burlywood = ... # type: QColor|QtCore.Qt.GlobalColor|int + cadetblue = ... # type: QColor|QtCore.Qt.GlobalColor|int + chartreuse = ... # type: QColor|QtCore.Qt.GlobalColor|int + chocolate = ... # type: QColor|QtCore.Qt.GlobalColor|int + coral = ... # type: QColor|QtCore.Qt.GlobalColor|int + cornflowerblue = ... # type: QColor|QtCore.Qt.GlobalColor|int + cornsilk = ... # type: QColor|QtCore.Qt.GlobalColor|int + crimson = ... # type: QColor|QtCore.Qt.GlobalColor|int + cyan = ... # type: QColor|QtCore.Qt.GlobalColor|int + darkblue = ... # type: QColor|QtCore.Qt.GlobalColor|int + darkcyan = ... # type: QColor|QtCore.Qt.GlobalColor|int + darkgoldenrod = ... # type: QColor|QtCore.Qt.GlobalColor|int + darkgray = ... # type: QColor|QtCore.Qt.GlobalColor|int + darkgreen = ... # type: QColor|QtCore.Qt.GlobalColor|int + darkgrey = ... # type: QColor|QtCore.Qt.GlobalColor|int + darkkhaki = ... # type: QColor|QtCore.Qt.GlobalColor|int + darkmagenta = ... # type: QColor|QtCore.Qt.GlobalColor|int + darkolivegreen = ... # type: QColor|QtCore.Qt.GlobalColor|int + darkorange = ... # type: QColor|QtCore.Qt.GlobalColor|int + darkorchid = ... # type: QColor|QtCore.Qt.GlobalColor|int + darkred = ... # type: QColor|QtCore.Qt.GlobalColor|int + darksalmon = ... # type: QColor|QtCore.Qt.GlobalColor|int + darkseagreen = ... # type: QColor|QtCore.Qt.GlobalColor|int + darkslateblue = ... # type: QColor|QtCore.Qt.GlobalColor|int + darkslategray = ... # type: QColor|QtCore.Qt.GlobalColor|int + darkslategrey = ... # type: QColor|QtCore.Qt.GlobalColor|int + darkturquoise = ... # type: QColor|QtCore.Qt.GlobalColor|int + darkviolet = ... # type: QColor|QtCore.Qt.GlobalColor|int + deeppink = ... # type: QColor|QtCore.Qt.GlobalColor|int + deepskyblue = ... # type: QColor|QtCore.Qt.GlobalColor|int + dimgray = ... # type: QColor|QtCore.Qt.GlobalColor|int + dimgrey = ... # type: QColor|QtCore.Qt.GlobalColor|int + dodgerblue = ... # type: QColor|QtCore.Qt.GlobalColor|int + firebrick = ... # type: QColor|QtCore.Qt.GlobalColor|int + floralwhite = ... # type: QColor|QtCore.Qt.GlobalColor|int + forestgreen = ... # type: QColor|QtCore.Qt.GlobalColor|int + fuchsia = ... # type: QColor|QtCore.Qt.GlobalColor|int + gainsboro = ... # type: QColor|QtCore.Qt.GlobalColor|int + ghostwhite = ... # type: QColor|QtCore.Qt.GlobalColor|int + gold = ... # type: QColor|QtCore.Qt.GlobalColor|int + goldenrod = ... # type: QColor|QtCore.Qt.GlobalColor|int + gray = ... # type: QColor|QtCore.Qt.GlobalColor|int + green = ... # type: QColor|QtCore.Qt.GlobalColor|int + greenyellow = ... # type: QColor|QtCore.Qt.GlobalColor|int + grey = ... # type: QColor|QtCore.Qt.GlobalColor|int + honeydew = ... # type: QColor|QtCore.Qt.GlobalColor|int + hotpink = ... # type: QColor|QtCore.Qt.GlobalColor|int + indianred = ... # type: QColor|QtCore.Qt.GlobalColor|int + indigo = ... # type: QColor|QtCore.Qt.GlobalColor|int + ivory = ... # type: QColor|QtCore.Qt.GlobalColor|int + khaki = ... # type: QColor|QtCore.Qt.GlobalColor|int + lavender = ... # type: QColor|QtCore.Qt.GlobalColor|int + lavenderblush = ... # type: QColor|QtCore.Qt.GlobalColor|int + lawngreen = ... # type: QColor|QtCore.Qt.GlobalColor|int + lemonchiffon = ... # type: QColor|QtCore.Qt.GlobalColor|int + lightblue = ... # type: QColor|QtCore.Qt.GlobalColor|int + lightcoral = ... # type: QColor|QtCore.Qt.GlobalColor|int + lightcyan = ... # type: QColor|QtCore.Qt.GlobalColor|int + lightgoldenrodyellow = ... # type: QColor|QtCore.Qt.GlobalColor|int + lightgray = ... # type: QColor|QtCore.Qt.GlobalColor|int + lightgreen = ... # type: QColor|QtCore.Qt.GlobalColor|int + lightgrey = ... # type: QColor|QtCore.Qt.GlobalColor|int + lightpink = ... # type: QColor|QtCore.Qt.GlobalColor|int + lightsalmon = ... # type: QColor|QtCore.Qt.GlobalColor|int + lightseagreen = ... # type: QColor|QtCore.Qt.GlobalColor|int + lightskyblue = ... # type: QColor|QtCore.Qt.GlobalColor|int + lightslategray = ... # type: QColor|QtCore.Qt.GlobalColor|int + lightslategrey = ... # type: QColor|QtCore.Qt.GlobalColor|int + lightsteelblue = ... # type: QColor|QtCore.Qt.GlobalColor|int + lightyellow = ... # type: QColor|QtCore.Qt.GlobalColor|int + lime = ... # type: QColor|QtCore.Qt.GlobalColor|int + limegreen = ... # type: QColor|QtCore.Qt.GlobalColor|int + linen = ... # type: QColor|QtCore.Qt.GlobalColor|int + magenta = ... # type: QColor|QtCore.Qt.GlobalColor|int + maroon = ... # type: QColor|QtCore.Qt.GlobalColor|int + mediumaquamarine = ... # type: QColor|QtCore.Qt.GlobalColor|int + mediumblue = ... # type: QColor|QtCore.Qt.GlobalColor|int + mediumorchid = ... # type: QColor|QtCore.Qt.GlobalColor|int + mediumpurple = ... # type: QColor|QtCore.Qt.GlobalColor|int + mediumseagreen = ... # type: QColor|QtCore.Qt.GlobalColor|int + mediumslateblue = ... # type: QColor|QtCore.Qt.GlobalColor|int + mediumspringgreen = ... # type: QColor|QtCore.Qt.GlobalColor|int + mediumturquoise = ... # type: QColor|QtCore.Qt.GlobalColor|int + mediumvioletred = ... # type: QColor|QtCore.Qt.GlobalColor|int + midnightblue = ... # type: QColor|QtCore.Qt.GlobalColor|int + mintcream = ... # type: QColor|QtCore.Qt.GlobalColor|int + mistyrose = ... # type: QColor|QtCore.Qt.GlobalColor|int + moccasin = ... # type: QColor|QtCore.Qt.GlobalColor|int + navajowhite = ... # type: QColor|QtCore.Qt.GlobalColor|int + navy = ... # type: QColor|QtCore.Qt.GlobalColor|int + oldlace = ... # type: QColor|QtCore.Qt.GlobalColor|int + olive = ... # type: QColor|QtCore.Qt.GlobalColor|int + olivedrab = ... # type: QColor|QtCore.Qt.GlobalColor|int + orange = ... # type: QColor|QtCore.Qt.GlobalColor|int + orangered = ... # type: QColor|QtCore.Qt.GlobalColor|int + orchid = ... # type: QColor|QtCore.Qt.GlobalColor|int + palegoldenrod = ... # type: QColor|QtCore.Qt.GlobalColor|int + palegreen = ... # type: QColor|QtCore.Qt.GlobalColor|int + paleturquoise = ... # type: QColor|QtCore.Qt.GlobalColor|int + palevioletred = ... # type: QColor|QtCore.Qt.GlobalColor|int + papayawhip = ... # type: QColor|QtCore.Qt.GlobalColor|int + peachpuff = ... # type: QColor|QtCore.Qt.GlobalColor|int + peru = ... # type: QColor|QtCore.Qt.GlobalColor|int + pink = ... # type: QColor|QtCore.Qt.GlobalColor|int + plum = ... # type: QColor|QtCore.Qt.GlobalColor|int + powderblue = ... # type: QColor|QtCore.Qt.GlobalColor|int + purple = ... # type: QColor|QtCore.Qt.GlobalColor|int + red = ... # type: QColor|QtCore.Qt.GlobalColor|int + rosybrown = ... # type: QColor|QtCore.Qt.GlobalColor|int + royalblue = ... # type: QColor|QtCore.Qt.GlobalColor|int + saddlebrown = ... # type: QColor|QtCore.Qt.GlobalColor|int + salmon = ... # type: QColor|QtCore.Qt.GlobalColor|int + sandybrown = ... # type: QColor|QtCore.Qt.GlobalColor|int + seagreen = ... # type: QColor|QtCore.Qt.GlobalColor|int + seashell = ... # type: QColor|QtCore.Qt.GlobalColor|int + sienna = ... # type: QColor|QtCore.Qt.GlobalColor|int + silver = ... # type: QColor|QtCore.Qt.GlobalColor|int + skyblue = ... # type: QColor|QtCore.Qt.GlobalColor|int + slateblue = ... # type: QColor|QtCore.Qt.GlobalColor|int + slategray = ... # type: QColor|QtCore.Qt.GlobalColor|int + slategrey = ... # type: QColor|QtCore.Qt.GlobalColor|int + snow = ... # type: QColor|QtCore.Qt.GlobalColor|int + springgreen = ... # type: QColor|QtCore.Qt.GlobalColor|int + steelblue = ... # type: QColor|QtCore.Qt.GlobalColor|int + tan = ... # type: QColor|QtCore.Qt.GlobalColor|int + teal = ... # type: QColor|QtCore.Qt.GlobalColor|int + thistle = ... # type: QColor|QtCore.Qt.GlobalColor|int + tomato = ... # type: QColor|QtCore.Qt.GlobalColor|int + turquoise = ... # type: QColor|QtCore.Qt.GlobalColor|int + violet = ... # type: QColor|QtCore.Qt.GlobalColor|int + wheat = ... # type: QColor|QtCore.Qt.GlobalColor|int + white = ... # type: QColor|QtCore.Qt.GlobalColor|int + whitesmoke = ... # type: QColor|QtCore.Qt.GlobalColor|int + yellow = ... # type: QColor|QtCore.Qt.GlobalColor|int + yellowgreen = ... # type: QColor|QtCore.Qt.GlobalColor|int + + Black = ... # type: QColor|QtCore.Qt.GlobalColor|int + Blue = ... # type: QColor|QtCore.Qt.GlobalColor|int + Color0 = ... # type: QColor|QtCore.Qt.GlobalColor|int + Color1 = ... # type: QColor|QtCore.Qt.GlobalColor|int + Cyan = ... # type: QColor|QtCore.Qt.GlobalColor|int + DarkBlue = ... # type: QColor|QtCore.Qt.GlobalColor|int + DarkCyan = ... # type: QColor|QtCore.Qt.GlobalColor|int + DarkGray = ... # type: QColor|QtCore.Qt.GlobalColor|int + DarkGreen = ... # type: QColor|QtCore.Qt.GlobalColor|int + DarkMagenta = ... # type: QColor|QtCore.Qt.GlobalColor|int + DarkRed = ... # type: QColor|QtCore.Qt.GlobalColor|int + DarkYellow = ... # type: QColor|QtCore.Qt.GlobalColor|int + Gray = ... # type: QColor|QtCore.Qt.GlobalColor|int + Green = ... # type: QColor|QtCore.Qt.GlobalColor|int + LightGray = ... # type: QColor|QtCore.Qt.GlobalColor|int + Magenta = ... # type: QColor|QtCore.Qt.GlobalColor|int + Red = ... # type: QColor|QtCore.Qt.GlobalColor|int + Transparent = ... # type: QColor|QtCore.Qt.GlobalColor|int + White = ... # type: QColor|QtCore.Qt.GlobalColor|int + Yellow = ... # type: QColor|QtCore.Qt.GlobalColor|int + + +class QBrush(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, bs: QtCore.Qt.BrushStyle) -> None: ... + @typing.overload + def __init__(self, color: QColor|QtCore.Qt.GlobalColor|int, style: QtCore.Qt.BrushStyle = ...) -> None: ... + @typing.overload + def __init__(self, color: QColor|QtCore.Qt.GlobalColor|int, 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: 'QBrush'|QColor|QtCore.Qt.GlobalColor|int|'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 __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def isOpaque(self) -> bool: ... + def gradient(self) -> 'QGradient|None': ... + @typing.overload + def setColor(self, color: QColor|QtCore.Qt.GlobalColor|int) -> 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(PyQt6.sip.simplewrapper): + + class Preset(enum.Enum): + 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 + NumPresets = ... # type: QGradient.Preset + + class Spread(enum.Enum): + PadSpread = ... # type: QGradient.Spread + ReflectSpread = ... # type: QGradient.Spread + RepeatSpread = ... # type: QGradient.Spread + + class Type(enum.Enum): + LinearGradient = ... # type: QGradient.Type + RadialGradient = ... # type: QGradient.Type + ConicalGradient = ... # type: QGradient.Type + NoGradient = ... # type: QGradient.Type + + class CoordinateMode(enum.Enum): + 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 __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def stops(self) -> list[tuple[float, QColor]]: ... + def setStops(self, stops: collections.abc.Iterable[tuple[float, QColor|QtCore.Qt.GlobalColor|int]]) -> None: ... + def setColorAt(self, pos: float, color: QColor|QtCore.Qt.GlobalColor|int) -> 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: QtCore.QPointF, finalStop: QtCore.QPointF) -> 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: QtCore.QPointF) -> None: ... + @typing.overload + def setFinalStop(self, x: float, y: float) -> None: ... + @typing.overload + def setStart(self, start: QtCore.QPointF) -> 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: QtCore.QPointF, radius: float, focalPoint: QtCore.QPointF) -> None: ... + @typing.overload + def __init__(self, center: QtCore.QPointF, centerRadius: float, focalPoint: QtCore.QPointF, focalRadius: float) -> None: ... + @typing.overload + def __init__(self, center: QtCore.QPointF, 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: QtCore.QPointF) -> None: ... + @typing.overload + def setFocalPoint(self, x: float, y: float) -> None: ... + @typing.overload + def setCenter(self, center: QtCore.QPointF) -> 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: QtCore.QPointF, 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: QtCore.QPointF) -> 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(enum.Enum): + Clipboard = ... # type: QClipboard.Mode + Selection = ... # type: QClipboard.Mode + FindBuffer = ... # type: QClipboard.Mode + + selectionChanged: typing.ClassVar[QtCore.pyqtSignal] + findBufferChanged: typing.ClassVar[QtCore.pyqtSignal] + dataChanged: typing.ClassVar[QtCore.pyqtSignal] + changed: typing.ClassVar[QtCore.pyqtSignal] + 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|None, mode: 'QClipboard.Mode' = ...) -> None: ... + def mimeData(self, mode: 'QClipboard.Mode' = ...) -> QtCore.QMimeData|None: ... + def setText(self, a0: str|None, mode: 'QClipboard.Mode' = ...) -> None: ... + @typing.overload + def text(self, mode: 'QClipboard.Mode' = ...) -> str: ... + @typing.overload + def text(self, subtype: str|None, mode: 'QClipboard.Mode' = ...) -> 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 QColorSpace(PyQt6.sip.simplewrapper): + + class TransformModel(enum.Enum): + ThreeComponentMatrix = ... # type: QColorSpace.TransformModel + ElementListProcessing = ... # type: QColorSpace.TransformModel + + class TransferFunction(enum.Enum): + Custom = ... # type: QColorSpace.TransferFunction + Linear = ... # type: QColorSpace.TransferFunction + Gamma = ... # type: QColorSpace.TransferFunction + SRgb = ... # type: QColorSpace.TransferFunction + ProPhotoRgb = ... # type: QColorSpace.TransferFunction + Bt2020 = ... # type: QColorSpace.TransferFunction + St2084 = ... # type: QColorSpace.TransferFunction + Hlg = ... # type: QColorSpace.TransferFunction + + class Primaries(enum.Enum): + Custom = ... # type: QColorSpace.Primaries + SRgb = ... # type: QColorSpace.Primaries + AdobeRgb = ... # type: QColorSpace.Primaries + DciP3D65 = ... # type: QColorSpace.Primaries + ProPhotoRgb = ... # type: QColorSpace.Primaries + Bt2020 = ... # type: QColorSpace.Primaries + + class NamedColorSpace(enum.Enum): + SRgb = ... # type: QColorSpace.NamedColorSpace + SRgbLinear = ... # type: QColorSpace.NamedColorSpace + AdobeRgb = ... # type: QColorSpace.NamedColorSpace + DisplayP3 = ... # type: QColorSpace.NamedColorSpace + ProPhotoRgb = ... # type: QColorSpace.NamedColorSpace + Bt2020 = ... # type: QColorSpace.NamedColorSpace + Bt2100Pq = ... # type: QColorSpace.NamedColorSpace + Bt2100Hlg = ... # type: QColorSpace.NamedColorSpace + + class ColorModel(enum.Enum): + Undefined = ... # type: QColorSpace.ColorModel + Rgb = ... # type: QColorSpace.ColorModel + Gray = ... # type: QColorSpace.ColorModel + Cmyk = ... # type: QColorSpace.ColorModel + + class PrimaryPoints(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QColorSpace.PrimaryPoints') -> None: ... + + def isValid(self) -> bool: ... + @staticmethod + def fromPrimaries(primaries: 'QColorSpace.Primaries') -> 'QColorSpace.PrimaryPoints': ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, namedColorSpace: 'QColorSpace.NamedColorSpace') -> None: ... + @typing.overload + def __init__(self, primaries: 'QColorSpace.Primaries', fun: 'QColorSpace.TransferFunction', gamma: float = ...) -> None: ... + @typing.overload + def __init__(self, primaries: 'QColorSpace.Primaries', gamma: float) -> None: ... + @typing.overload + def __init__(self, primaries: 'QColorSpace.Primaries', transferFunctionTable: collections.abc.Iterable[int]) -> None: ... + @typing.overload + def __init__(self, whitePoint: QtCore.QPointF, redPoint: QtCore.QPointF, greenPoint: QtCore.QPointF, bluePoint: QtCore.QPointF, fun: 'QColorSpace.TransferFunction', gamma: float = ...) -> None: ... + @typing.overload + def __init__(self, whitePoint: QtCore.QPointF, redPoint: QtCore.QPointF, greenPoint: QtCore.QPointF, bluePoint: QtCore.QPointF, redTransferFunctionTable: collections.abc.Iterable[int], greenTransferFunctionTable: collections.abc.Iterable[int], blueTransferFunctionTable: collections.abc.Iterable[int]) -> None: ... + @typing.overload + def __init__(self, whitePoint: QtCore.QPointF, redPoint: QtCore.QPointF, greenPoint: QtCore.QPointF, bluePoint: QtCore.QPointF, transferFunctionTable: collections.abc.Iterable[int]) -> None: ... + @typing.overload + def __init__(self, whitePoint: QtCore.QPointF, transferFunctionTable: collections.abc.Iterable[int]) -> None: ... + @typing.overload + def __init__(self, whitePoint: QtCore.QPointF, transferFunction: 'QColorSpace.TransferFunction', gamma: float = ...) -> None: ... + @typing.overload + def __init__(self, colorSpace: 'QColorSpace') -> None: ... + @typing.overload + def __init__(self, primaryPoints: 'QColorSpace.PrimaryPoints', transferFunction: 'QColorSpace.TransferFunction', gamma: float = ...) -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def primaryPoints(self) -> 'QColorSpace.PrimaryPoints': ... + def setPrimaryPoints(self, primaryPoints: 'QColorSpace.PrimaryPoints') -> None: ... + def isValidTarget(self) -> bool: ... + def colorModel(self) -> 'QColorSpace.ColorModel': ... + def transformModel(self) -> 'QColorSpace.TransformModel': ... + def whitePoint(self) -> QtCore.QPointF: ... + def setWhitePoint(self, whitePoint: QtCore.QPointF) -> None: ... + def setDescription(self, description: str|None) -> None: ... + def description(self) -> str: ... + def transformationToColorSpace(self, colorspace: 'QColorSpace') -> 'QColorTransform': ... + def iccProfile(self) -> QtCore.QByteArray: ... + @staticmethod + def fromIccProfile(iccProfile: QtCore.QByteArray|bytes|bytearray|memoryview) -> 'QColorSpace': ... + def isValid(self) -> bool: ... + @typing.overload + def setPrimaries(self, primariesId: 'QColorSpace.Primaries') -> None: ... + @typing.overload + def setPrimaries(self, whitePoint: QtCore.QPointF, redPoint: QtCore.QPointF, greenPoint: QtCore.QPointF, bluePoint: QtCore.QPointF) -> None: ... + def withTransferFunctions(self, redTransferFunctionTable: collections.abc.Iterable[int], greenTransferFunctionTable: collections.abc.Iterable[int], blueTransferFunctionTable: collections.abc.Iterable[int]) -> 'QColorSpace': ... + @typing.overload + def withTransferFunction(self, transferFunctionTable: collections.abc.Iterable[int]) -> 'QColorSpace': ... + @typing.overload + def withTransferFunction(self, transferFunction: 'QColorSpace.TransferFunction', gamma: float = ...) -> 'QColorSpace': ... + def setTransferFunctions(self, redTransferFunctionTable: collections.abc.Iterable[int], greenTransferFunctionTable: collections.abc.Iterable[int], blueTransferFunctionTable: collections.abc.Iterable[int]) -> None: ... + @typing.overload + def setTransferFunction(self, transferFunction: 'QColorSpace.TransferFunction', gamma: float = ...) -> None: ... + @typing.overload + def setTransferFunction(self, transferFunctionTable: collections.abc.Iterable[int]) -> None: ... + def gamma(self) -> float: ... + def transferFunction(self) -> 'QColorSpace.TransferFunction': ... + def primaries(self) -> 'QColorSpace.Primaries': ... + def swap(self, colorSpace: 'QColorSpace') -> None: ... + + +class QColorTransform(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, colorTransform: 'QColorTransform') -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def isIdentity(self) -> bool: ... + @typing.overload + def map(self, argb: int) -> int: ... + @typing.overload + def map(self, rgba64: 'QRgba64') -> 'QRgba64': ... + @typing.overload + def map(self, color: QColor|QtCore.Qt.GlobalColor|int) -> QColor: ... + def swap(self, other: 'QColorTransform') -> None: ... + + +class QCursor(PyQt6.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: 'QCursor'|QtCore.Qt.CursorShape) -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def swap(self, other: '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|None', x: int, y: int) -> None: ... + @typing.overload + @staticmethod + def setPos(screen: 'QScreen|None', p: QtCore.QPoint) -> None: ... + @typing.overload + @staticmethod + def pos() -> QtCore.QPoint: ... + @typing.overload + @staticmethod + def pos(screen: 'QScreen|None') -> 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(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDesktopServices') -> None: ... + + @staticmethod + def unsetUrlHandler(scheme: str|None) -> None: ... + @typing.overload + @staticmethod + def setUrlHandler(scheme: str|None, receiver: QtCore.QObject|None, method: str) -> None: ... + @typing.overload + @staticmethod + def setUrlHandler(scheme: str|None, method: collections.abc.Callable[[QtCore.QUrl], None]) -> None: ... + @staticmethod + def openUrl(url: QtCore.QUrl) -> bool: ... + + +class QDrag(QtCore.QObject): + + def __init__(self, dragSource: QtCore.QObject|None) -> None: ... + + @staticmethod + def cancel() -> None: ... + def defaultAction(self) -> QtCore.Qt.DropAction: ... + def supportedActions(self) -> QtCore.Qt.DropAction: ... + def dragCursor(self, action: QtCore.Qt.DropAction) -> QPixmap: ... + targetChanged: typing.ClassVar[QtCore.pyqtSignal] + actionChanged: typing.ClassVar[QtCore.pyqtSignal] + def setDragCursor(self, cursor: QPixmap, action: QtCore.Qt.DropAction) -> None: ... + def target(self) -> QtCore.QObject|None: ... + def source(self) -> QtCore.QObject|None: ... + 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|None: ... + def setMimeData(self, data: QtCore.QMimeData|None) -> None: ... + @typing.overload + def exec(self, supportedActions: QtCore.Qt.DropAction = ...) -> QtCore.Qt.DropAction: ... + @typing.overload + def exec(self, supportedActions: QtCore.Qt.DropAction, defaultDropAction: QtCore.Qt.DropAction) -> QtCore.Qt.DropAction: ... + + +class QInputEvent(QtCore.QEvent): + + def clone(self) -> 'QInputEvent|None': ... + def deviceType(self) -> 'QInputDevice.DeviceType': ... + def device(self) -> 'QInputDevice|None': ... + def timestamp(self) -> int: ... + def modifiers(self) -> QtCore.Qt.KeyboardModifier: ... + + +class QKeyEvent(QInputEvent): + + @typing.overload + def __init__(self, type: QtCore.QEvent.Type, key: int, modifiers: QtCore.Qt.KeyboardModifier, nativeScanCode: int, nativeVirtualKey: int, nativeModifiers: int, text: str|None = ..., autorep: bool = ..., count: int = ..., device: 'QInputDevice|None' = ...) -> None: ... + @typing.overload + def __init__(self, type: QtCore.QEvent.Type, key: int, modifiers: QtCore.Qt.KeyboardModifier, text: str|None = ..., autorep: bool = ..., count: int = ...) -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def clone(self) -> 'QKeyEvent|None': ... + def keyCombination(self) -> QtCore.QKeyCombination: ... + 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.KeyboardModifier: ... + def key(self) -> int: ... + + +class QFocusEvent(QtCore.QEvent): + + def __init__(self, type: QtCore.QEvent.Type, reason: QtCore.Qt.FocusReason = ...) -> None: ... + + def clone(self) -> '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: ... + + def clone(self) -> 'QPaintEvent|None': ... + def region(self) -> 'QRegion': ... + def rect(self) -> QtCore.QRect: ... + + +class QMoveEvent(QtCore.QEvent): + + def __init__(self, pos: QtCore.QPoint, oldPos: QtCore.QPoint) -> None: ... + + def clone(self) -> 'QMoveEvent|None': ... + def oldPos(self) -> QtCore.QPoint: ... + def pos(self) -> QtCore.QPoint: ... + + +class QResizeEvent(QtCore.QEvent): + + def __init__(self, size: QtCore.QSize, oldSize: QtCore.QSize) -> None: ... + + def clone(self) -> 'QResizeEvent|None': ... + def oldSize(self) -> QtCore.QSize: ... + def size(self) -> QtCore.QSize: ... + + +class QCloseEvent(QtCore.QEvent): + + def __init__(self) -> None: ... + + def clone(self) -> 'QCloseEvent|None': ... + + +class QIconDragEvent(QtCore.QEvent): + + def __init__(self) -> None: ... + + def clone(self) -> 'QIconDragEvent|None': ... + + +class QShowEvent(QtCore.QEvent): + + def __init__(self) -> None: ... + + def clone(self) -> 'QShowEvent|None': ... + + +class QHideEvent(QtCore.QEvent): + + def __init__(self) -> None: ... + + def clone(self) -> 'QHideEvent|None': ... + + +class QContextMenuEvent(QInputEvent): + + class Reason(enum.Enum): + 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: QtCore.Qt.KeyboardModifier = ...) -> None: ... + @typing.overload + def __init__(self, reason: 'QContextMenuEvent.Reason', pos: QtCore.QPoint) -> None: ... + + def clone(self) -> '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(enum.Enum): + TextFormat = ... # type: QInputMethodEvent.AttributeType + Cursor = ... # type: QInputMethodEvent.AttributeType + Language = ... # type: QInputMethodEvent.AttributeType + Ruby = ... # type: QInputMethodEvent.AttributeType + Selection = ... # type: QInputMethodEvent.AttributeType + MimeData = ... # type: QInputMethodEvent.AttributeType + + class Attribute(PyQt6.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: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, preeditText: str|None, attributes: collections.abc.Iterable['QInputMethodEvent.Attribute']) -> None: ... + + def clone(self) -> 'QInputMethodEvent|None': ... + def replacementLength(self) -> int: ... + def replacementStart(self) -> int: ... + def commitString(self) -> str: ... + def preeditString(self) -> str: ... + def attributes(self) -> list['QInputMethodEvent.Attribute']: ... + def setCommitString(self, commitString: str|None, from_: int = ..., length: int = ...) -> None: ... + + +class QInputMethodQueryEvent(QtCore.QEvent): + + def __init__(self, queries: QtCore.Qt.InputMethodQuery) -> None: ... + + def clone(self) -> '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.InputMethodQuery: ... + + +class QDropEvent(QtCore.QEvent): + + def __init__(self, pos: QtCore.QPointF, actions: QtCore.Qt.DropAction, data: QtCore.QMimeData|None, buttons: QtCore.Qt.MouseButton, modifiers: QtCore.Qt.KeyboardModifier, type: QtCore.QEvent.Type = ...) -> None: ... + + def clone(self) -> 'QDropEvent|None': ... + def modifiers(self) -> QtCore.Qt.KeyboardModifier: ... + def buttons(self) -> QtCore.Qt.MouseButton: ... + def position(self) -> QtCore.QPointF: ... + def mimeData(self) -> QtCore.QMimeData|None: ... + def source(self) -> QtCore.QObject|None: ... + 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.DropAction: ... + + +class QDragMoveEvent(QDropEvent): + + def __init__(self, pos: QtCore.QPoint, actions: QtCore.Qt.DropAction, data: QtCore.QMimeData|None, buttons: QtCore.Qt.MouseButton, modifiers: QtCore.Qt.KeyboardModifier, type: QtCore.QEvent.Type = ...) -> None: ... + + def clone(self) -> '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): + + def __init__(self, pos: QtCore.QPoint, actions: QtCore.Qt.DropAction, data: QtCore.QMimeData|None, buttons: QtCore.Qt.MouseButton, modifiers: QtCore.Qt.KeyboardModifier) -> None: ... + + def clone(self) -> 'QDragEnterEvent|None': ... + + +class QDragLeaveEvent(QtCore.QEvent): + + def __init__(self) -> None: ... + + def clone(self) -> 'QDragLeaveEvent|None': ... + + +class QHelpEvent(QtCore.QEvent): + + def __init__(self, type: QtCore.QEvent.Type, pos: QtCore.QPoint, globalPos: QtCore.QPoint) -> None: ... + + def clone(self) -> '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): + + def __init__(self, tip: str|None) -> None: ... + + def clone(self) -> 'QStatusTipEvent|None': ... + def tip(self) -> str: ... + + +class QWhatsThisClickedEvent(QtCore.QEvent): + + def __init__(self, href: str|None) -> None: ... + + def clone(self) -> 'QWhatsThisClickedEvent|None': ... + def href(self) -> str: ... + + +class QActionEvent(QtCore.QEvent): + + def __init__(self, type: int, action: QAction|None, before: QAction|None = ...) -> None: ... + + def clone(self) -> 'QActionEvent|None': ... + def before(self) -> QAction|None: ... + def action(self) -> QAction|None: ... + + +class QFileOpenEvent(QtCore.QEvent): + + def clone(self) -> 'QFileOpenEvent|None': ... + def openFile(self, file: QtCore.QFile, flags: QtCore.QIODeviceBase.OpenModeFlag) -> bool: ... + def url(self) -> QtCore.QUrl: ... + def file(self) -> str: ... + + +class QShortcutEvent(QtCore.QEvent): + + @typing.overload + def __init__(self, key: 'QKeySequence'|'QKeySequence.StandardKey'|str|None|int, id: int, ambiguous: bool = ...) -> None: ... + @typing.overload + def __init__(self, key: 'QKeySequence'|'QKeySequence.StandardKey'|str|None|int, shortcut: 'QShortcut|None' = ..., ambiguous: bool = ...) -> None: ... + + def clone(self) -> 'QShortcutEvent|None': ... + def shortcutId(self) -> int: ... + def key(self) -> 'QKeySequence': ... + def isAmbiguous(self) -> bool: ... + + +class QWindowStateChangeEvent(QtCore.QEvent): + + def clone(self) -> 'QWindowStateChangeEvent|None': ... + def oldState(self) -> QtCore.Qt.WindowState: ... + + +class QExposeEvent(QtCore.QEvent): + + def __init__(self, rgn: 'QRegion') -> None: ... + + def clone(self) -> 'QExposeEvent|None': ... + + +class QScrollPrepareEvent(QtCore.QEvent): + + def __init__(self, startPos: QtCore.QPointF) -> None: ... + + def clone(self) -> 'QScrollPrepareEvent|None': ... + def setContentPos(self, pos: QtCore.QPointF) -> 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(enum.Enum): + ScrollStarted = ... # type: QScrollEvent.ScrollState + ScrollUpdated = ... # type: QScrollEvent.ScrollState + ScrollFinished = ... # type: QScrollEvent.ScrollState + + def __init__(self, contentPos: QtCore.QPointF, overshoot: QtCore.QPointF, scrollState: 'QScrollEvent.ScrollState') -> None: ... + + def clone(self) -> 'QScrollEvent|None': ... + def scrollState(self) -> 'QScrollEvent.ScrollState': ... + def overshootDistance(self) -> QtCore.QPointF: ... + def contentPos(self) -> QtCore.QPointF: ... + + +class QPlatformSurfaceEvent(QtCore.QEvent): + + class SurfaceEventType(enum.Enum): + SurfaceCreated = ... # type: QPlatformSurfaceEvent.SurfaceEventType + SurfaceAboutToBeDestroyed = ... # type: QPlatformSurfaceEvent.SurfaceEventType + + def __init__(self, surfaceEventType: 'QPlatformSurfaceEvent.SurfaceEventType') -> None: ... + + def clone(self) -> 'QPlatformSurfaceEvent|None': ... + def surfaceEventType(self) -> 'QPlatformSurfaceEvent.SurfaceEventType': ... + + +class QPointerEvent(QInputEvent): + + def clone(self) -> 'QPointerEvent|None': ... + def setAccepted(self, accepted: bool) -> None: ... + def allPointsAccepted(self) -> bool: ... + def isEndEvent(self) -> bool: ... + def isUpdateEvent(self) -> bool: ... + def isBeginEvent(self) -> bool: ... + def pointById(self, id: int) -> 'QEventPoint|None': ... + def points(self) -> list['QEventPoint']: ... + def point(self, i: int) -> 'QEventPoint': ... + def pointCount(self) -> int: ... + def pointerType(self) -> 'QPointingDevice.PointerType': ... + def pointingDevice(self) -> 'QPointingDevice|None': ... + + +class QSinglePointEvent(QPointerEvent): + + def clone(self) -> 'QSinglePointEvent|None': ... + def setExclusivePointGrabber(self, exclusiveGrabber: QtCore.QObject|None) -> None: ... + def exclusivePointGrabber(self) -> QtCore.QObject|None: ... + def isEndEvent(self) -> bool: ... + def isUpdateEvent(self) -> bool: ... + def isBeginEvent(self) -> bool: ... + def globalPosition(self) -> QtCore.QPointF: ... + def scenePosition(self) -> QtCore.QPointF: ... + def position(self) -> QtCore.QPointF: ... + def buttons(self) -> QtCore.Qt.MouseButton: ... + def button(self) -> QtCore.Qt.MouseButton: ... + + +class QEnterEvent(QSinglePointEvent): + + def __init__(self, localPos: QtCore.QPointF, scenePos: QtCore.QPointF, globalPos: QtCore.QPointF, device: 'QPointingDevice|None' = ...) -> None: ... + + def clone(self) -> 'QEnterEvent|None': ... + + +class QMouseEvent(QSinglePointEvent): + + @typing.overload + def __init__(self, type: QtCore.QEvent.Type, localPos: QtCore.QPointF, button: QtCore.Qt.MouseButton, buttons: QtCore.Qt.MouseButton, modifiers: QtCore.Qt.KeyboardModifier, device: 'QPointingDevice|None' = ...) -> None: ... + @typing.overload + def __init__(self, type: QtCore.QEvent.Type, localPos: QtCore.QPointF, globalPos: QtCore.QPointF, button: QtCore.Qt.MouseButton, buttons: QtCore.Qt.MouseButton, modifiers: QtCore.Qt.KeyboardModifier, device: 'QPointingDevice|None' = ...) -> None: ... + @typing.overload + def __init__(self, type: QtCore.QEvent.Type, localPos: QtCore.QPointF, scenePos: QtCore.QPointF, globalPos: QtCore.QPointF, button: QtCore.Qt.MouseButton, buttons: QtCore.Qt.MouseButton, modifiers: QtCore.Qt.KeyboardModifier, device: 'QPointingDevice|None' = ...) -> None: ... + + def clone(self) -> 'QMouseEvent|None': ... + def flags(self) -> QtCore.Qt.MouseEventFlag: ... + def pos(self) -> QtCore.QPoint: ... + + +class QHoverEvent(QSinglePointEvent): + + @typing.overload + def __init__(self, type: QtCore.QEvent.Type, pos: QtCore.QPointF, globalPos: QtCore.QPointF, oldPos: QtCore.QPointF, modifiers: QtCore.Qt.KeyboardModifier = ..., device: 'QPointingDevice|None' = ...) -> None: ... + @typing.overload + def __init__(self, type: QtCore.QEvent.Type, pos: QtCore.QPointF, oldPos: QtCore.QPointF, modifiers: QtCore.Qt.KeyboardModifier = ..., device: 'QPointingDevice|None' = ...) -> None: ... + + def clone(self) -> 'QHoverEvent|None': ... + def oldPosF(self) -> QtCore.QPointF: ... + def oldPos(self) -> QtCore.QPoint: ... + def isUpdateEvent(self) -> bool: ... + + +class QWheelEvent(QSinglePointEvent): + + def __init__(self, pos: QtCore.QPointF, globalPos: QtCore.QPointF, pixelDelta: QtCore.QPoint, angleDelta: QtCore.QPoint, buttons: QtCore.Qt.MouseButton, modifiers: QtCore.Qt.KeyboardModifier, phase: QtCore.Qt.ScrollPhase, inverted: bool, source: QtCore.Qt.MouseEventSource = ..., device: 'QPointingDevice|None' = ...) -> None: ... + + def clone(self) -> 'QWheelEvent|None': ... + def isEndEvent(self) -> bool: ... + def isUpdateEvent(self) -> bool: ... + def isBeginEvent(self) -> bool: ... + def inverted(self) -> bool: ... + def phase(self) -> QtCore.Qt.ScrollPhase: ... + def angleDelta(self) -> QtCore.QPoint: ... + def pixelDelta(self) -> QtCore.QPoint: ... + + +class QTabletEvent(QSinglePointEvent): + + def __init__(self, t: QtCore.QEvent.Type, device: 'QPointingDevice|None', pos: QtCore.QPointF, globalPos: QtCore.QPointF, pressure: float, xTilt: float, yTilt: float, tangentialPressure: float, rotation: float, z: float, keyState: QtCore.Qt.KeyboardModifier, button: QtCore.Qt.MouseButton, buttons: QtCore.Qt.MouseButton) -> None: ... + + def clone(self) -> 'QTabletEvent|None': ... + def yTilt(self) -> float: ... + def xTilt(self) -> float: ... + def tangentialPressure(self) -> float: ... + def z(self) -> float: ... + def rotation(self) -> float: ... + def pressure(self) -> float: ... + + +class QNativeGestureEvent(QSinglePointEvent): + + @typing.overload + def __init__(self, type: QtCore.Qt.NativeGestureType, dev: 'QPointingDevice|None', fingerCount: int, localPos: QtCore.QPointF, scenePos: QtCore.QPointF, globalPos: QtCore.QPointF, value: float, delta: QtCore.QPointF, sequenceId: int = ...) -> None: ... + @typing.overload + def __init__(self, type: QtCore.Qt.NativeGestureType, dev: 'QPointingDevice|None', localPos: QtCore.QPointF, scenePos: QtCore.QPointF, globalPos: QtCore.QPointF, value: float, sequenceId: int, intArgument: int) -> None: ... + + def delta(self) -> QtCore.QPointF: ... + def fingerCount(self) -> int: ... + def clone(self) -> 'QNativeGestureEvent|None': ... + def value(self) -> float: ... + def gestureType(self) -> QtCore.Qt.NativeGestureType: ... + + +class QTouchEvent(QPointerEvent): + + def __init__(self, eventType: QtCore.QEvent.Type, device: 'QPointingDevice|None' = ..., modifiers: QtCore.Qt.KeyboardModifier = ..., touchPoints: collections.abc.Iterable['QEventPoint'] = ...) -> None: ... + + def clone(self) -> 'QTouchEvent|None': ... + def isEndEvent(self) -> bool: ... + def isUpdateEvent(self) -> bool: ... + def isBeginEvent(self) -> bool: ... + def touchPointStates(self) -> 'QEventPoint.State': ... + def target(self) -> QtCore.QObject|None: ... + + +class QChildWindowEvent(QtCore.QEvent): + + def __init__(self, type: QtCore.QEvent.Type, childWindow: 'QWindow|None') -> None: ... + + def clone(self) -> 'QChildWindowEvent|None': ... + def child(self) -> 'QWindow|None': ... + + +class QEventPoint(PyQt6.sip.simplewrapper): + + class State(enum.Flag): + Unknown = ... # type: QEventPoint.State + Stationary = ... # type: QEventPoint.State + Pressed = ... # type: QEventPoint.State + Updated = ... # type: QEventPoint.State + Released = ... # type: QEventPoint.State + + @typing.overload + def __init__(self, pointId: int, state: 'QEventPoint.State', scenePosition: QtCore.QPointF, globalPosition: QtCore.QPointF) -> None: ... + @typing.overload + def __init__(self, other: 'QEventPoint') -> None: ... + + def setAccepted(self, accepted: bool = ...) -> None: ... + def isAccepted(self) -> bool: ... + def ellipseDiameters(self) -> QtCore.QSizeF: ... + def rotation(self) -> float: ... + def pressure(self) -> float: ... + def timeHeld(self) -> float: ... + def pressTimestamp(self) -> int: ... + def lastTimestamp(self) -> int: ... + def timestamp(self) -> int: ... + def uniqueId(self) -> 'QPointingDeviceUniqueId': ... + def id(self) -> int: ... + def device(self) -> 'QPointingDevice|None': ... + def state(self) -> 'QEventPoint.State': ... + def velocity(self) -> 'QVector2D': ... + def normalizedPosition(self) -> QtCore.QPointF: ... + def globalLastPosition(self) -> QtCore.QPointF: ... + def globalGrabPosition(self) -> QtCore.QPointF: ... + def globalPressPosition(self) -> QtCore.QPointF: ... + def globalPosition(self) -> QtCore.QPointF: ... + def sceneLastPosition(self) -> QtCore.QPointF: ... + def sceneGrabPosition(self) -> QtCore.QPointF: ... + def scenePressPosition(self) -> QtCore.QPointF: ... + def scenePosition(self) -> QtCore.QPointF: ... + def lastPosition(self) -> QtCore.QPointF: ... + def grabPosition(self) -> QtCore.QPointF: ... + def pressPosition(self) -> QtCore.QPointF: ... + def position(self) -> QtCore.QPointF: ... + def swap(self, other: 'QEventPoint') -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + +class QFileSystemModel(QtCore.QAbstractItemModel): + + class Option(enum.Flag): + DontWatchForChanges = ... # type: QFileSystemModel.Option + DontResolveSymlinks = ... # type: QFileSystemModel.Option + DontUseCustomDirectoryIcons = ... # type: QFileSystemModel.Option + + class Roles(enum.IntEnum): + FileIconRole = ... # type: QFileSystemModel.Roles + FilePathRole = ... # type: QFileSystemModel.Roles + FileNameRole = ... # type: QFileSystemModel.Roles + FilePermissions = ... # type: QFileSystemModel.Roles + FileInfoRole = ... # type: QFileSystemModel.Roles + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def roleNames(self) -> dict[int, QtCore.QByteArray]: ... + def options(self) -> 'QFileSystemModel.Option': ... + def setOptions(self, options: 'QFileSystemModel.Option') -> None: ... + def testOption(self, option: 'QFileSystemModel.Option') -> bool: ... + def setOption(self, option: 'QFileSystemModel.Option', on: bool = ...) -> None: ... + def sibling(self, row: int, column: int, idx: QtCore.QModelIndex) -> QtCore.QModelIndex: ... + def timerEvent(self, event: QtCore.QTimerEvent|None) -> None: ... + def event(self, event: QtCore.QEvent|None) -> bool: ... + directoryLoaded: typing.ClassVar[QtCore.pyqtSignal] + rootPathChanged: typing.ClassVar[QtCore.pyqtSignal] + fileRenamed: typing.ClassVar[QtCore.pyqtSignal] + def remove(self, index: QtCore.QModelIndex) -> bool: ... + def fileInfo(self, aindex: QtCore.QModelIndex) -> QtCore.QFileInfo: ... + def fileIcon(self, aindex: QtCore.QModelIndex) -> 'QIcon': ... + def fileName(self, aindex: QtCore.QModelIndex) -> str: ... + def rmdir(self, index: QtCore.QModelIndex) -> bool: ... + def permissions(self, index: QtCore.QModelIndex) -> QtCore.QFileDevice.Permission: ... + def mkdir(self, parent: QtCore.QModelIndex, name: str|None) -> QtCore.QModelIndex: ... + @typing.overload + def lastModified(self, index: QtCore.QModelIndex) -> QtCore.QDateTime: ... + @typing.overload + def lastModified(self, index: QtCore.QModelIndex, tz: QtCore.QTimeZone) -> 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) -> list[str]: ... + def setNameFilters(self, filters: collections.abc.Iterable[str|None]) -> 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.Filter: ... + def setFilter(self, filters: QtCore.QDir.Filter) -> None: ... + def iconProvider(self) -> QAbstractFileIconProvider|None: ... + def setIconProvider(self, provider: QAbstractFileIconProvider|None) -> None: ... + def rootDirectory(self) -> QtCore.QDir: ... + def rootPath(self) -> str: ... + def setRootPath(self, path: str|None) -> QtCore.QModelIndex: ... + def supportedDropActions(self) -> QtCore.Qt.DropAction: ... + def dropMimeData(self, data: QtCore.QMimeData|None, action: QtCore.Qt.DropAction, row: int, column: int, parent: QtCore.QModelIndex) -> bool: ... + def mimeData(self, indexes: collections.abc.Iterable[QtCore.QModelIndex]) -> QtCore.QMimeData|None: ... + def mimeTypes(self) -> list[str]: ... + def sort(self, column: int, order: QtCore.Qt.SortOrder = ...) -> None: ... + def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ... + 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 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|None, column: int = ...) -> QtCore.QModelIndex: ... + + +class QFont(PyQt6.sip.simplewrapper): + + class HintingPreference(enum.Enum): + PreferDefaultHinting = ... # type: QFont.HintingPreference + PreferNoHinting = ... # type: QFont.HintingPreference + PreferVerticalHinting = ... # type: QFont.HintingPreference + PreferFullHinting = ... # type: QFont.HintingPreference + + class SpacingType(enum.Enum): + PercentageSpacing = ... # type: QFont.SpacingType + AbsoluteSpacing = ... # type: QFont.SpacingType + + class Capitalization(enum.Enum): + MixedCase = ... # type: QFont.Capitalization + AllUppercase = ... # type: QFont.Capitalization + AllLowercase = ... # type: QFont.Capitalization + SmallCaps = ... # type: QFont.Capitalization + Capitalize = ... # type: QFont.Capitalization + + class Stretch(enum.IntEnum): + 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(enum.Enum): + StyleNormal = ... # type: QFont.Style + StyleItalic = ... # type: QFont.Style + StyleOblique = ... # type: QFont.Style + + class Weight(enum.IntEnum): + 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(enum.Flag): + 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 + NoFontMerging = ... # type: QFont.StyleStrategy + PreferNoShaping = ... # type: QFont.StyleStrategy + ContextFontMerging = ... # type: QFont.StyleStrategy + PreferTypoLineMetrics = ... # type: QFont.StyleStrategy + + class StyleHint(enum.Enum): + 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 + + class Tag(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, view: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + @typing.overload + def __init__(self, a0: 'QFont.Tag') -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __ge__(self, rhs: 'QFont.Tag') -> bool: ... + def __le__(self, rhs: 'QFont.Tag') -> bool: ... + def __gt__(self, rhs: 'QFont.Tag') -> bool: ... + def __lt__(self, rhs: 'QFont.Tag') -> bool: ... + def __hash__(self) -> int: ... + @staticmethod + def fromString(view: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> 'QFont.Tag'|None: ... + @staticmethod + def fromValue(value: int) -> 'QFont.Tag'|None: ... + def toString(self) -> QtCore.QByteArray: ... + def value(self) -> int: ... + def isValid(self) -> bool: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, families: collections.abc.Iterable[str|None], pointSize: int = ..., weight: int = ..., italic: bool = ...) -> None: ... + @typing.overload + def __init__(self, family: str|None, pointSize: int = ..., weight: int = ..., italic: bool = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QFont') -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + def __ge__(self, a0: 'QFont') -> bool: ... + def variableAxisTags(self) -> list['QFont.Tag']: ... + def clearVariableAxes(self) -> None: ... + def variableAxisValue(self, tag: 'QFont.Tag') -> float: ... + def isVariableAxisSet(self, tag: 'QFont.Tag') -> bool: ... + def unsetVariableAxis(self, tag: 'QFont.Tag') -> None: ... + def setVariableAxis(self, tag: 'QFont.Tag', value: float) -> None: ... + def clearFeatures(self) -> None: ... + def featureTags(self) -> list['QFont.Tag']: ... + def isFeatureSet(self, tag: 'QFont.Tag') -> bool: ... + def featureValue(self, tag: 'QFont.Tag') -> int: ... + def unsetFeature(self, tag: 'QFont.Tag') -> None: ... + def setFeature(self, tag: 'QFont.Tag', value: int) -> None: ... + def setFamilies(self, a0: collections.abc.Iterable[str|None]) -> None: ... + def families(self) -> 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) -> 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 defaultFamily(self) -> str: ... + @staticmethod + def cacheStatistics() -> None: ... + @staticmethod + def cleanup() -> None: ... + @staticmethod + def initialize() -> None: ... + @staticmethod + def removeSubstitutions(a0: str|None) -> None: ... + @staticmethod + def insertSubstitutions(a0: str|None, a1: collections.abc.Iterable[str|None]) -> None: ... + @staticmethod + def insertSubstitution(a0: str|None, a1: str|None) -> None: ... + @staticmethod + def substitutions() -> list[str]: ... + @staticmethod + def substitutes(a0: str|None) -> list[str]: ... + @staticmethod + def substitute(a0: str|None) -> str: ... + def fromString(self, a0: str|None) -> bool: ... + def toString(self) -> str: ... + def key(self) -> str: ... + def isCopyOf(self, a0: 'QFont') -> bool: ... + def __lt__(self, a0: 'QFont') -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def exactMatch(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, weight: 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) -> None: ... + def family(self) -> str: ... + + +class QFontDatabase(PyQt6.sip.simplewrapper): + + class SystemFont(enum.Enum): + GeneralFont = ... # type: QFontDatabase.SystemFont + FixedFont = ... # type: QFontDatabase.SystemFont + TitleFont = ... # type: QFontDatabase.SystemFont + SmallestReadableFont = ... # type: QFontDatabase.SystemFont + + class WritingSystem(enum.Enum): + 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 + + def __init__(self, a0: 'QFontDatabase') -> None: ... + + @staticmethod + def applicationEmojiFontFamilies() -> list[str]: ... + @staticmethod + def setApplicationEmojiFontFamilies(familyNames: collections.abc.Iterable[str|None]) -> None: ... + @staticmethod + def removeApplicationEmojiFontFamily(familyName: str|None) -> bool: ... + @staticmethod + def addApplicationEmojiFontFamily(familyName: str|None) -> None: ... + @staticmethod + def applicationFallbackFontFamilies(script: QtCore.QChar.Script) -> list[str]: ... + @staticmethod + def setApplicationFallbackFontFamilies(a0: QtCore.QChar.Script, familyNames: collections.abc.Iterable[str|None]) -> None: ... + @staticmethod + def removeApplicationFallbackFontFamily(script: QtCore.QChar.Script, familyName: str|None) -> bool: ... + @staticmethod + def addApplicationFallbackFontFamily(script: QtCore.QChar.Script, familyName: str|None) -> None: ... + @staticmethod + def isPrivateFamily(family: str|None) -> bool: ... + @staticmethod + def systemFont(type: 'QFontDatabase.SystemFont') -> QFont: ... + @staticmethod + def removeAllApplicationFonts() -> bool: ... + @staticmethod + def removeApplicationFont(id: int) -> bool: ... + @staticmethod + def applicationFontFamilies(id: int) -> list[str]: ... + @staticmethod + def addApplicationFontFromData(fontData: QtCore.QByteArray|bytes|bytearray|memoryview) -> int: ... + @staticmethod + def addApplicationFont(fileName: str|None) -> int: ... + @staticmethod + def writingSystemSample(writingSystem: 'QFontDatabase.WritingSystem') -> str: ... + @staticmethod + def writingSystemName(writingSystem: 'QFontDatabase.WritingSystem') -> str: ... + @staticmethod + def weight(family: str|None, style: str|None) -> int: ... + @staticmethod + def bold(family: str|None, style: str|None) -> bool: ... + @staticmethod + def italic(family: str|None, style: str|None) -> bool: ... + @staticmethod + def isFixedPitch(family: str|None, style: str|None = ...) -> bool: ... + @staticmethod + def isScalable(family: str|None, style: str|None = ...) -> bool: ... + @staticmethod + def isSmoothlyScalable(family: str|None, style: str|None = ...) -> bool: ... + @staticmethod + def isBitmapScalable(family: str|None, style: str|None = ...) -> bool: ... + @staticmethod + def font(family: str|None, style: str|None, pointSize: int) -> QFont: ... + @typing.overload + @staticmethod + def styleString(fontInfo: 'QFontInfo') -> str: ... + @typing.overload + @staticmethod + def styleString(font: QFont) -> str: ... + @staticmethod + def smoothSizes(family: str|None, style: str|None) -> list[int]: ... + @staticmethod + def pointSizes(family: str|None, style: str|None = ...) -> list[int]: ... + @staticmethod + def styles(family: str|None) -> list[str]: ... + @staticmethod + def families(writingSystem: 'QFontDatabase.WritingSystem' = ...) -> list[str]: ... + @typing.overload + @staticmethod + def writingSystems(family: str|None) -> list['QFontDatabase.WritingSystem']: ... + @typing.overload + @staticmethod + def writingSystems() -> list['QFontDatabase.WritingSystem']: ... + @staticmethod + def standardSizes() -> list[int]: ... + + +class QFontInfo(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self, a0: QFont) -> None: ... + @typing.overload + def __init__(self, a0: 'QFontInfo') -> None: ... + + def variableAxes(self) -> list['QFontVariableAxis']: ... + def swap(self, other: 'QFontInfo') -> None: ... + def styleName(self) -> str: ... + def exactMatch(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(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self, a0: QFont) -> None: ... + @typing.overload + def __init__(self, font: QFont, pd: QPaintDevice|None) -> None: ... + @typing.overload + def __init__(self, a0: 'QFontMetrics') -> None: ... + + def fontDpi(self) -> float: ... + @typing.overload + def horizontalAdvance(self, a0: str|None, textOption: 'QTextOption') -> int: ... + @typing.overload + def horizontalAdvance(self, a0: str|None, length: int = ...) -> int: ... + def capHeight(self) -> int: ... + def swap(self, other: 'QFontMetrics') -> None: ... + def inFontUcs4(self, character: int) -> bool: ... + @typing.overload + def tightBoundingRect(self, text: str|None, textOption: 'QTextOption') -> QtCore.QRect: ... + @typing.overload + def tightBoundingRect(self, text: str|None) -> QtCore.QRect: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def elidedText(self, text: str|None, 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|None, tabStops: int = ..., tabArray: list[int]|None = ...) -> QtCore.QSize: ... + def boundingRectChar(self, a0: str) -> QtCore.QRect: ... + @typing.overload + def boundingRect(self, text: str|None, textOption: 'QTextOption') -> QtCore.QRect: ... + @typing.overload + def boundingRect(self, text: str|None) -> QtCore.QRect: ... + @typing.overload + def boundingRect(self, rect: QtCore.QRect, flags: int, text: str|None, tabStops: int = ..., tabArray: list[int]|None = ...) -> QtCore.QRect: ... + @typing.overload + def boundingRect(self, x: int, y: int, width: int, height: int, flags: int, text: str|None, tabStops: int = ..., tabArray: list[int]|None = ...) -> QtCore.QRect: ... + 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(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self, a0: QFont) -> None: ... + @typing.overload + def __init__(self, font: QFont, pd: QPaintDevice|None) -> None: ... + @typing.overload + def __init__(self, a0: QFontMetrics) -> None: ... + @typing.overload + def __init__(self, a0: 'QFontMetricsF') -> None: ... + + def fontDpi(self) -> float: ... + @typing.overload + def horizontalAdvance(self, string: str|None, textOption: 'QTextOption') -> float: ... + @typing.overload + def horizontalAdvance(self, string: str|None, length: int = ...) -> float: ... + def capHeight(self) -> float: ... + def swap(self, other: 'QFontMetricsF') -> None: ... + def inFontUcs4(self, character: int) -> bool: ... + @typing.overload + def tightBoundingRect(self, text: str|None, textOption: 'QTextOption') -> QtCore.QRectF: ... + @typing.overload + def tightBoundingRect(self, text: str|None) -> QtCore.QRectF: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def elidedText(self, text: str|None, 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|None, tabStops: int = ..., tabArray: list[int]|None = ...) -> QtCore.QSizeF: ... + def boundingRectChar(self, a0: str) -> QtCore.QRectF: ... + @typing.overload + def boundingRect(self, text: str|None, textOption: 'QTextOption') -> QtCore.QRectF: ... + @typing.overload + def boundingRect(self, string: str|None) -> QtCore.QRectF: ... + @typing.overload + def boundingRect(self, rect: QtCore.QRectF, flags: int, text: str|None, tabStops: int = ..., tabArray: list[int]|None = ...) -> QtCore.QRectF: ... + 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 QFontVariableAxis(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, axis: 'QFontVariableAxis') -> None: ... + + def setDefaultValue(self, defaultValue: float) -> None: ... + def defaultValue(self) -> float: ... + def setMaximumValue(self, maximumValue: float) -> None: ... + def maximumValue(self) -> float: ... + def setMinimumValue(self, minimumValue: float) -> None: ... + def minimumValue(self) -> float: ... + def setName(self, name: str|None) -> None: ... + def name(self) -> str: ... + def setTag(self, tag: QFont.Tag) -> None: ... + def tag(self) -> QFont.Tag: ... + def swap(self, other: 'QFontVariableAxis') -> None: ... + + +class QMatrix4x3(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMatrix4x3') -> None: ... + @typing.overload + def __init__(self, values: collections.abc.Sequence[float]) -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __itruediv__(self, a0: float) -> 'QMatrix4x3': ... + def __imul__(self, a0: float) -> 'QMatrix4x3': ... + def __isub__(self, a0: 'QMatrix4x3') -> 'QMatrix4x3': ... + def __iadd__(self, a0: 'QMatrix4x3') -> 'QMatrix4x3': ... + 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) -> list[float]: ... + def data(self) -> list[float]: ... + def __repr__(self) -> str: ... + + +class QMatrix4x2(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMatrix4x2') -> None: ... + @typing.overload + def __init__(self, values: collections.abc.Sequence[float]) -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __itruediv__(self, a0: float) -> 'QMatrix4x2': ... + def __imul__(self, a0: float) -> 'QMatrix4x2': ... + def __isub__(self, a0: 'QMatrix4x2') -> 'QMatrix4x2': ... + def __iadd__(self, a0: 'QMatrix4x2') -> 'QMatrix4x2': ... + 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) -> list[float]: ... + def data(self) -> list[float]: ... + def __repr__(self) -> str: ... + + +class QMatrix3x4(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMatrix3x4') -> None: ... + @typing.overload + def __init__(self, values: collections.abc.Sequence[float]) -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __itruediv__(self, a0: float) -> 'QMatrix3x4': ... + def __imul__(self, a0: float) -> 'QMatrix3x4': ... + def __isub__(self, a0: 'QMatrix3x4') -> 'QMatrix3x4': ... + def __iadd__(self, a0: 'QMatrix3x4') -> 'QMatrix3x4': ... + 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) -> list[float]: ... + def data(self) -> list[float]: ... + def __repr__(self) -> str: ... + + +class QMatrix3x3(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMatrix3x3') -> None: ... + @typing.overload + def __init__(self, values: collections.abc.Sequence[float]) -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __itruediv__(self, a0: float) -> 'QMatrix3x3': ... + def __imul__(self, a0: float) -> 'QMatrix3x3': ... + def __isub__(self, a0: 'QMatrix3x3') -> 'QMatrix3x3': ... + def __iadd__(self, a0: 'QMatrix3x3') -> 'QMatrix3x3': ... + 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) -> list[float]: ... + def data(self) -> list[float]: ... + def __repr__(self) -> str: ... + + +class QMatrix3x2(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMatrix3x2') -> None: ... + @typing.overload + def __init__(self, values: collections.abc.Sequence[float]) -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __itruediv__(self, a0: float) -> 'QMatrix3x2': ... + def __imul__(self, a0: float) -> 'QMatrix3x2': ... + def __isub__(self, a0: 'QMatrix3x2') -> 'QMatrix3x2': ... + def __iadd__(self, a0: 'QMatrix3x2') -> 'QMatrix3x2': ... + 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) -> list[float]: ... + def data(self) -> list[float]: ... + def __repr__(self) -> str: ... + + +class QMatrix2x4(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMatrix2x4') -> None: ... + @typing.overload + def __init__(self, values: collections.abc.Sequence[float]) -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __itruediv__(self, a0: float) -> 'QMatrix2x4': ... + def __imul__(self, a0: float) -> 'QMatrix2x4': ... + def __isub__(self, a0: 'QMatrix2x4') -> 'QMatrix2x4': ... + def __iadd__(self, a0: 'QMatrix2x4') -> 'QMatrix2x4': ... + 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) -> list[float]: ... + def data(self) -> list[float]: ... + def __repr__(self) -> str: ... + + +class QMatrix2x3(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMatrix2x3') -> None: ... + @typing.overload + def __init__(self, values: collections.abc.Sequence[float]) -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __itruediv__(self, a0: float) -> 'QMatrix2x3': ... + def __imul__(self, a0: float) -> 'QMatrix2x3': ... + def __isub__(self, a0: 'QMatrix2x3') -> 'QMatrix2x3': ... + def __iadd__(self, a0: 'QMatrix2x3') -> 'QMatrix2x3': ... + 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) -> list[float]: ... + def data(self) -> list[float]: ... + def __repr__(self) -> str: ... + + +class QMatrix2x2(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QMatrix2x2') -> None: ... + @typing.overload + def __init__(self, values: collections.abc.Sequence[float]) -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __itruediv__(self, a0: float) -> 'QMatrix2x2': ... + def __imul__(self, a0: float) -> 'QMatrix2x2': ... + def __isub__(self, a0: 'QMatrix2x2') -> 'QMatrix2x2': ... + def __iadd__(self, a0: 'QMatrix2x2') -> 'QMatrix2x2': ... + 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) -> list[float]: ... + def data(self) -> list[float]: ... + def __repr__(self) -> str: ... + + +class QGlyphRun(PyQt6.sip.simplewrapper): + + class GlyphRunFlag(enum.Flag): + Overline = ... # type: QGlyphRun.GlyphRunFlag + Underline = ... # type: QGlyphRun.GlyphRunFlag + StrikeOut = ... # type: QGlyphRun.GlyphRunFlag + RightToLeft = ... # type: QGlyphRun.GlyphRunFlag + SplitLigature = ... # type: QGlyphRun.GlyphRunFlag + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGlyphRun') -> None: ... + + def sourceString(self) -> str: ... + def setSourceString(self, sourceString: str|None) -> None: ... + def setStringIndexes(self, stringIndexes: collections.abc.Iterable[int]) -> None: ... + def stringIndexes(self) -> list[int]: ... + 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.GlyphRunFlag': ... + def setFlags(self, flags: '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 __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def clear(self) -> None: ... + def setPositions(self, positions: collections.abc.Iterable[QtCore.QPointF]) -> None: ... + def positions(self) -> list[QtCore.QPointF]: ... + def setGlyphIndexes(self, glyphIndexes: collections.abc.Iterable[int]) -> None: ... + def glyphIndexes(self) -> list[int]: ... + def setRawFont(self, rawFont: 'QRawFont') -> None: ... + def rawFont(self) -> 'QRawFont': ... + + +class QGuiApplication(QtCore.QCoreApplication): + + def __init__(self, argv: list[str]) -> None: ... + + def event(self, a0: QtCore.QEvent|None) -> bool: ... + def nativeInterface(self, platform: type) -> typing.Any: ... + def setBadgeNumber(self, number: int) -> None: ... + @staticmethod + def highDpiScaleFactorRoundingPolicy() -> QtCore.Qt.HighDpiScaleFactorRoundingPolicy: ... + @staticmethod + def setHighDpiScaleFactorRoundingPolicy(policy: QtCore.Qt.HighDpiScaleFactorRoundingPolicy) -> None: ... + @staticmethod + def screenAt(point: QtCore.QPoint) -> 'QScreen|None': ... + @staticmethod + def desktopFileName() -> str: ... + @staticmethod + def setDesktopFileName(name: str|None) -> None: ... + primaryScreenChanged: typing.ClassVar[QtCore.pyqtSignal] + layoutDirectionChanged: typing.ClassVar[QtCore.pyqtSignal] + screenRemoved: typing.ClassVar[QtCore.pyqtSignal] + @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|None': ... + @staticmethod + def styleHints() -> 'QStyleHints|None': ... + @staticmethod + def modalWindow() -> 'QWindow|None': ... + @staticmethod + def applicationDisplayName() -> str: ... + @staticmethod + def setApplicationDisplayName(name: str|None) -> None: ... + applicationDisplayNameChanged: typing.ClassVar[QtCore.pyqtSignal] + applicationStateChanged: typing.ClassVar[QtCore.pyqtSignal] + focusWindowChanged: typing.ClassVar[QtCore.pyqtSignal] + saveStateRequest: typing.ClassVar[QtCore.pyqtSignal] + commitDataRequest: typing.ClassVar[QtCore.pyqtSignal] + focusObjectChanged: typing.ClassVar[QtCore.pyqtSignal] + lastWindowClosed: typing.ClassVar[QtCore.pyqtSignal] + screenAdded: typing.ClassVar[QtCore.pyqtSignal] + fontDatabaseChanged: typing.ClassVar[QtCore.pyqtSignal] + def notify(self, a0: QtCore.QObject|None, a1: QtCore.QEvent|None) -> bool: ... + @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.MouseButton: ... + @staticmethod + def queryKeyboardModifiers() -> QtCore.Qt.KeyboardModifier: ... + @staticmethod + def keyboardModifiers() -> QtCore.Qt.KeyboardModifier: ... + @staticmethod + def setPalette(pal: 'QPalette') -> None: ... + @staticmethod + def palette() -> 'QPalette': ... + @staticmethod + def clipboard() -> QClipboard|None: ... + @staticmethod + def setFont(a0: QFont) -> None: ... + @staticmethod + def font() -> QFont: ... + @staticmethod + def restoreOverrideCursor() -> None: ... + @staticmethod + def changeOverrideCursor(a0: QCursor|QtCore.Qt.CursorShape) -> None: ... + @staticmethod + def setOverrideCursor(a0: QCursor|QtCore.Qt.CursorShape) -> None: ... + @staticmethod + def overrideCursor() -> QCursor|None: ... + @staticmethod + def screens() -> list['QScreen']: ... + @staticmethod + def primaryScreen() -> 'QScreen|None': ... + @staticmethod + def focusObject() -> QtCore.QObject|None: ... + @staticmethod + def focusWindow() -> 'QWindow|None': ... + @staticmethod + def platformName() -> str: ... + @staticmethod + def topLevelAt(pos: QtCore.QPoint) -> 'QWindow|None': ... + @staticmethod + def topLevelWindows() -> list['QWindow']: ... + @staticmethod + def allWindows() -> list['QWindow']: ... + + +class QIcon(PyQt6.sip.wrapper): + + class ThemeIcon(enum.Enum): + AddressBookNew = ... # type: QIcon.ThemeIcon + ApplicationExit = ... # type: QIcon.ThemeIcon + AppointmentNew = ... # type: QIcon.ThemeIcon + CallStart = ... # type: QIcon.ThemeIcon + CallStop = ... # type: QIcon.ThemeIcon + ContactNew = ... # type: QIcon.ThemeIcon + DocumentNew = ... # type: QIcon.ThemeIcon + DocumentOpen = ... # type: QIcon.ThemeIcon + DocumentOpenRecent = ... # type: QIcon.ThemeIcon + DocumentPageSetup = ... # type: QIcon.ThemeIcon + DocumentPrint = ... # type: QIcon.ThemeIcon + DocumentPrintPreview = ... # type: QIcon.ThemeIcon + DocumentProperties = ... # type: QIcon.ThemeIcon + DocumentRevert = ... # type: QIcon.ThemeIcon + DocumentSave = ... # type: QIcon.ThemeIcon + DocumentSaveAs = ... # type: QIcon.ThemeIcon + DocumentSend = ... # type: QIcon.ThemeIcon + EditClear = ... # type: QIcon.ThemeIcon + EditCopy = ... # type: QIcon.ThemeIcon + EditCut = ... # type: QIcon.ThemeIcon + EditDelete = ... # type: QIcon.ThemeIcon + EditFind = ... # type: QIcon.ThemeIcon + EditPaste = ... # type: QIcon.ThemeIcon + EditRedo = ... # type: QIcon.ThemeIcon + EditSelectAll = ... # type: QIcon.ThemeIcon + EditUndo = ... # type: QIcon.ThemeIcon + FolderNew = ... # type: QIcon.ThemeIcon + FormatIndentLess = ... # type: QIcon.ThemeIcon + FormatIndentMore = ... # type: QIcon.ThemeIcon + FormatJustifyCenter = ... # type: QIcon.ThemeIcon + FormatJustifyFill = ... # type: QIcon.ThemeIcon + FormatJustifyLeft = ... # type: QIcon.ThemeIcon + FormatJustifyRight = ... # type: QIcon.ThemeIcon + FormatTextDirectionLtr = ... # type: QIcon.ThemeIcon + FormatTextDirectionRtl = ... # type: QIcon.ThemeIcon + FormatTextBold = ... # type: QIcon.ThemeIcon + FormatTextItalic = ... # type: QIcon.ThemeIcon + FormatTextUnderline = ... # type: QIcon.ThemeIcon + FormatTextStrikethrough = ... # type: QIcon.ThemeIcon + GoDown = ... # type: QIcon.ThemeIcon + GoHome = ... # type: QIcon.ThemeIcon + GoNext = ... # type: QIcon.ThemeIcon + GoPrevious = ... # type: QIcon.ThemeIcon + GoUp = ... # type: QIcon.ThemeIcon + HelpAbout = ... # type: QIcon.ThemeIcon + HelpFaq = ... # type: QIcon.ThemeIcon + InsertImage = ... # type: QIcon.ThemeIcon + InsertLink = ... # type: QIcon.ThemeIcon + InsertText = ... # type: QIcon.ThemeIcon + ListAdd = ... # type: QIcon.ThemeIcon + ListRemove = ... # type: QIcon.ThemeIcon + MailForward = ... # type: QIcon.ThemeIcon + MailMarkImportant = ... # type: QIcon.ThemeIcon + MailMarkRead = ... # type: QIcon.ThemeIcon + MailMarkUnread = ... # type: QIcon.ThemeIcon + MailMessageNew = ... # type: QIcon.ThemeIcon + MailReplyAll = ... # type: QIcon.ThemeIcon + MailReplySender = ... # type: QIcon.ThemeIcon + MailSend = ... # type: QIcon.ThemeIcon + MediaEject = ... # type: QIcon.ThemeIcon + MediaPlaybackPause = ... # type: QIcon.ThemeIcon + MediaPlaybackStart = ... # type: QIcon.ThemeIcon + MediaPlaybackStop = ... # type: QIcon.ThemeIcon + MediaRecord = ... # type: QIcon.ThemeIcon + MediaSeekBackward = ... # type: QIcon.ThemeIcon + MediaSeekForward = ... # type: QIcon.ThemeIcon + MediaSkipBackward = ... # type: QIcon.ThemeIcon + MediaSkipForward = ... # type: QIcon.ThemeIcon + ObjectRotateLeft = ... # type: QIcon.ThemeIcon + ObjectRotateRight = ... # type: QIcon.ThemeIcon + ProcessStop = ... # type: QIcon.ThemeIcon + SystemLockScreen = ... # type: QIcon.ThemeIcon + SystemLogOut = ... # type: QIcon.ThemeIcon + SystemSearch = ... # type: QIcon.ThemeIcon + SystemReboot = ... # type: QIcon.ThemeIcon + SystemShutdown = ... # type: QIcon.ThemeIcon + ToolsCheckSpelling = ... # type: QIcon.ThemeIcon + ViewFullscreen = ... # type: QIcon.ThemeIcon + ViewRefresh = ... # type: QIcon.ThemeIcon + ViewRestore = ... # type: QIcon.ThemeIcon + WindowClose = ... # type: QIcon.ThemeIcon + WindowNew = ... # type: QIcon.ThemeIcon + ZoomFitBest = ... # type: QIcon.ThemeIcon + ZoomIn = ... # type: QIcon.ThemeIcon + ZoomOut = ... # type: QIcon.ThemeIcon + AudioCard = ... # type: QIcon.ThemeIcon + AudioInputMicrophone = ... # type: QIcon.ThemeIcon + Battery = ... # type: QIcon.ThemeIcon + CameraPhoto = ... # type: QIcon.ThemeIcon + CameraVideo = ... # type: QIcon.ThemeIcon + CameraWeb = ... # type: QIcon.ThemeIcon + Computer = ... # type: QIcon.ThemeIcon + DriveHarddisk = ... # type: QIcon.ThemeIcon + DriveOptical = ... # type: QIcon.ThemeIcon + InputGaming = ... # type: QIcon.ThemeIcon + InputKeyboard = ... # type: QIcon.ThemeIcon + InputMouse = ... # type: QIcon.ThemeIcon + InputTablet = ... # type: QIcon.ThemeIcon + MediaFlash = ... # type: QIcon.ThemeIcon + MediaOptical = ... # type: QIcon.ThemeIcon + MediaTape = ... # type: QIcon.ThemeIcon + MultimediaPlayer = ... # type: QIcon.ThemeIcon + NetworkWired = ... # type: QIcon.ThemeIcon + NetworkWireless = ... # type: QIcon.ThemeIcon + Phone = ... # type: QIcon.ThemeIcon + Printer = ... # type: QIcon.ThemeIcon + Scanner = ... # type: QIcon.ThemeIcon + VideoDisplay = ... # type: QIcon.ThemeIcon + AppointmentMissed = ... # type: QIcon.ThemeIcon + AppointmentSoon = ... # type: QIcon.ThemeIcon + AudioVolumeHigh = ... # type: QIcon.ThemeIcon + AudioVolumeLow = ... # type: QIcon.ThemeIcon + AudioVolumeMedium = ... # type: QIcon.ThemeIcon + AudioVolumeMuted = ... # type: QIcon.ThemeIcon + BatteryCaution = ... # type: QIcon.ThemeIcon + BatteryLow = ... # type: QIcon.ThemeIcon + DialogError = ... # type: QIcon.ThemeIcon + DialogInformation = ... # type: QIcon.ThemeIcon + DialogPassword = ... # type: QIcon.ThemeIcon + DialogQuestion = ... # type: QIcon.ThemeIcon + DialogWarning = ... # type: QIcon.ThemeIcon + FolderDragAccept = ... # type: QIcon.ThemeIcon + FolderOpen = ... # type: QIcon.ThemeIcon + FolderVisiting = ... # type: QIcon.ThemeIcon + ImageLoading = ... # type: QIcon.ThemeIcon + ImageMissing = ... # type: QIcon.ThemeIcon + MailAttachment = ... # type: QIcon.ThemeIcon + MailUnread = ... # type: QIcon.ThemeIcon + MailRead = ... # type: QIcon.ThemeIcon + MailReplied = ... # type: QIcon.ThemeIcon + MediaPlaylistRepeat = ... # type: QIcon.ThemeIcon + MediaPlaylistShuffle = ... # type: QIcon.ThemeIcon + NetworkOffline = ... # type: QIcon.ThemeIcon + PrinterPrinting = ... # type: QIcon.ThemeIcon + SecurityHigh = ... # type: QIcon.ThemeIcon + SecurityLow = ... # type: QIcon.ThemeIcon + SoftwareUpdateAvailable = ... # type: QIcon.ThemeIcon + SoftwareUpdateUrgent = ... # type: QIcon.ThemeIcon + SyncError = ... # type: QIcon.ThemeIcon + SyncSynchronizing = ... # type: QIcon.ThemeIcon + UserAvailable = ... # type: QIcon.ThemeIcon + UserOffline = ... # type: QIcon.ThemeIcon + WeatherClear = ... # type: QIcon.ThemeIcon + WeatherClearNight = ... # type: QIcon.ThemeIcon + WeatherFewClouds = ... # type: QIcon.ThemeIcon + WeatherFewCloudsNight = ... # type: QIcon.ThemeIcon + WeatherFog = ... # type: QIcon.ThemeIcon + WeatherShowers = ... # type: QIcon.ThemeIcon + WeatherSnow = ... # type: QIcon.ThemeIcon + WeatherStorm = ... # type: QIcon.ThemeIcon + + class State(enum.Enum): + On = ... # type: QIcon.State + Off = ... # type: QIcon.State + + class Mode(enum.Enum): + 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) -> None: ... + @typing.overload + def __init__(self, engine: 'QIconEngine|None') -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + @staticmethod + def setFallbackThemeName(name: str|None) -> None: ... + @staticmethod + def fallbackThemeName() -> str: ... + @staticmethod + def setFallbackSearchPaths(paths: collections.abc.Iterable[str|None]) -> None: ... + @staticmethod + def fallbackSearchPaths() -> 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) -> None: ... + @staticmethod + def themeName() -> str: ... + @staticmethod + def setThemeSearchPaths(searchpath: collections.abc.Iterable[str|None]) -> None: ... + @staticmethod + def themeSearchPaths() -> list[str]: ... + @typing.overload + @staticmethod + def hasThemeIcon(name: str|None) -> bool: ... + @typing.overload + @staticmethod + def hasThemeIcon(icon: 'QIcon.ThemeIcon') -> bool: ... + @typing.overload + @staticmethod + def fromTheme(name: str|None) -> 'QIcon': ... + @typing.overload + @staticmethod + def fromTheme(name: str|None, fallback: 'QIcon') -> 'QIcon': ... + @typing.overload + @staticmethod + def fromTheme(icon: 'QIcon.ThemeIcon') -> 'QIcon': ... + @typing.overload + @staticmethod + def fromTheme(icon: 'QIcon.ThemeIcon', fallback: 'QIcon') -> 'QIcon': ... + def cacheKey(self) -> int: ... + def addFile(self, fileName: str|None, 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|None', rect: QtCore.QRect, alignment: QtCore.Qt.AlignmentFlag = ..., mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> None: ... + @typing.overload + def paint(self, painter: 'QPainter|None', x: int, y: int, w: int, h: int, alignment: QtCore.Qt.AlignmentFlag = ..., mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> None: ... + def availableSizes(self, mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> list[QtCore.QSize]: ... + def actualSize(self, size: QtCore.QSize, mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> QtCore.QSize: ... + @typing.overload + def pixmap(self, size: QtCore.QSize, devicePixelRatio: float, mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> QPixmap: ... + @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: ... + + +class QIconEngine(PyQt6.sip.wrapper): + + class IconEngineHook(enum.Enum): + IsNullHook = ... # type: QIconEngine.IconEngineHook + ScaledPixmapHook = ... # type: QIconEngine.IconEngineHook + + class ScaledPixmapArgument(PyQt6.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 = ...) -> list[QtCore.QSize]: ... + def write(self, out: QtCore.QDataStream) -> bool: ... + def read(self, in_: QtCore.QDataStream) -> bool: ... + def clone(self) -> 'QIconEngine|None': ... + def key(self) -> str: ... + def addFile(self, fileName: str|None, 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|None', rect: QtCore.QRect, mode: QIcon.Mode, state: QIcon.State) -> None: ... + + +class QImage(QPaintDevice): + + class Format(enum.Enum): + 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 + Format_BGR888 = ... # type: QImage.Format + Format_RGBX16FPx4 = ... # type: QImage.Format + Format_RGBA16FPx4 = ... # type: QImage.Format + Format_RGBA16FPx4_Premultiplied = ... # type: QImage.Format + Format_RGBX32FPx4 = ... # type: QImage.Format + Format_RGBA32FPx4 = ... # type: QImage.Format + Format_RGBA32FPx4_Premultiplied = ... # type: QImage.Format + Format_CMYK8888 = ... # type: QImage.Format + + class InvertMode(enum.Enum): + 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', cleanupFunction: typing.Callable[..., None] = ..., cleanupInfo: typing.Any = ...) -> None: ... + @typing.overload + def __init__(self, data: bytes, width: int, height: int, bytesPerLine: int, format: 'QImage.Format', cleanupFunction: typing.Callable[..., None] = ..., cleanupInfo: typing.Any = ...) -> None: ... + @typing.overload + def __init__(self, xpm: list[str]) -> None: ... + @typing.overload + def __init__(self, fileName: str|None, format: str = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QImage') -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + def flip(self, orient: QtCore.Qt.Orientation = ...) -> None: ... + def flipped(self, orient: QtCore.Qt.Orientation = ...) -> 'QImage': ... + @typing.overload + def colorTransformed(self, transform: QColorTransform) -> 'QImage': ... + @typing.overload + def colorTransformed(self, transform: QColorTransform, format: 'QImage.Format', flags: QtCore.Qt.ImageConversionFlag = ...) -> 'QImage': ... + def deviceIndependentSize(self) -> QtCore.QSizeF: ... + @typing.overload + def applyColorTransform(self, transform: QColorTransform) -> None: ... + @typing.overload + def applyColorTransform(self, transform: QColorTransform, format: 'QImage.Format', flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ... + @typing.overload + def convertToColorSpace(self, a0: QColorSpace) -> None: ... + @typing.overload + def convertToColorSpace(self, colorSpace: QColorSpace, format: 'QImage.Format', flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ... + @typing.overload + def convertedToColorSpace(self, a0: QColorSpace) -> 'QImage': ... + @typing.overload + def convertedToColorSpace(self, colorSpace: QColorSpace, format: 'QImage.Format', flags: QtCore.Qt.ImageConversionFlag = ...) -> 'QImage': ... + def setColorSpace(self, a0: QColorSpace) -> None: ... + def colorSpace(self) -> QColorSpace: ... + def convertTo(self, f: 'QImage.Format', flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ... + def convertedTo(self, f: 'QImage.Format', flags: QtCore.Qt.ImageConversionFlag = ...) -> 'QImage': ... + def sizeInBytes(self) -> int: ... + def reinterpretAsFormat(self, f: 'QImage.Format') -> bool: ... + @typing.overload + def setPixelColor(self, x: int, y: int, c: QColor|QtCore.Qt.GlobalColor|int) -> None: ... + @typing.overload + def setPixelColor(self, pt: QtCore.QPoint, c: QColor|QtCore.Qt.GlobalColor|int) -> 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 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 setText(self, key: str|None, value: str|None) -> None: ... + def text(self, key: str|None = ...) -> str: ... + def textKeys(self) -> 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|None': ... + @typing.overload + @staticmethod + def fromData(data: PyQt6.sip.array[bytes], format: str = ...) -> 'QImage': ... + @typing.overload + @staticmethod + def fromData(data: QtCore.QByteArray|bytes|bytearray|memoryview, format: str = ...) -> 'QImage': ... + @typing.overload + def save(self, fileName: str|None, format: str = ..., quality: int = ...) -> bool: ... + @typing.overload + def save(self, device: QtCore.QIODevice|None, format: str = ..., quality: int = ...) -> bool: ... + @typing.overload + def loadFromData(self, data: PyQt6.sip.array[bytes], format: str = ...) -> bool: ... + @typing.overload + def loadFromData(self, data: QtCore.QByteArray|bytes|bytearray|memoryview, format: str = ...) -> bool: ... + @typing.overload + def load(self, device: QtCore.QIODevice|None, format: str) -> bool: ... + @typing.overload + def load(self, fileName: str|None, format: str = ...) -> bool: ... + def invertPixels(self, mode: 'QImage.InvertMode' = ...) -> None: ... + def rgbSwap(self) -> None: ... + def rgbSwapped(self) -> 'QImage': ... + def mirror(self, horizontal: bool = ..., vertical: bool = ...) -> None: ... + 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: QtCore.Qt.ImageConversionFlag = ...) -> 'QImage': ... + def setAlphaChannel(self, alphaChannel: 'QImage') -> None: ... + def hasAlphaChannel(self) -> bool: ... + @typing.overload + def fill(self, pixel: int) -> None: ... + @typing.overload + def fill(self, color: QtCore.Qt.GlobalColor) -> None: ... + @typing.overload + def fill(self, color: QColor|QtCore.Qt.GlobalColor|int) -> None: ... + def setColorTable(self, colors: collections.abc.Iterable[int]) -> None: ... + def colorTable(self) -> 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) -> PyQt6.sip.voidptr: ... + def scanLine(self, a0: int) -> PyQt6.sip.voidptr: ... + def constBits(self) -> PyQt6.sip.voidptr: ... + def bits(self) -> PyQt6.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: ... + @staticmethod + def fromHICON(hicon: PyQt6.sip.voidptr) -> 'QImage': ... + def toHICON(self, mask: 'QImage' = ...) -> PyQt6.sip.voidptr: ... + @staticmethod + def fromHBITMAP(hbitmap: PyQt6.sip.voidptr) -> 'QImage': ... + def toHBITMAP(self) -> PyQt6.sip.voidptr: ... + @typing.overload + def convertToFormat(self, f: 'QImage.Format', flags: QtCore.Qt.ImageConversionFlag = ...) -> 'QImage': ... + @typing.overload + def convertToFormat(self, f: 'QImage.Format', colorTable: collections.abc.Iterable[int], flags: 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 __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def isNull(self) -> bool: ... + + +class QImageIOHandler(PyQt6.sip.simplewrapper): + + class Transformation(enum.Flag): + 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(enum.Enum): + 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 + + 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|None) -> bool: ... + def canRead(self) -> bool: ... + def format(self) -> QtCore.QByteArray: ... + def setFormat(self, format: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def device(self) -> QtCore.QIODevice|None: ... + def setDevice(self, device: QtCore.QIODevice|None) -> None: ... + + +class QImageReader(PyQt6.sip.simplewrapper): + + class ImageReaderError(enum.Enum): + 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|None, format: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> None: ... + @typing.overload + def __init__(self, fileName: str|None, format: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> None: ... + + @staticmethod + def setAllocationLimit(mbLimit: int) -> None: ... + @staticmethod + def allocationLimit() -> int: ... + @staticmethod + def imageFormatsForMimeType(mimeType: QtCore.QByteArray|bytes|bytearray|memoryview) -> list[QtCore.QByteArray]: ... + def autoTransform(self) -> bool: ... + def setAutoTransform(self, enabled: bool) -> None: ... + def transformation(self) -> QImageIOHandler.Transformation: ... + def supportedSubTypes(self) -> list[QtCore.QByteArray]: ... + def subType(self) -> QtCore.QByteArray: ... + @staticmethod + def supportedMimeTypes() -> 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: QColor|QtCore.Qt.GlobalColor|int) -> None: ... + def text(self, key: str|None) -> str: ... + def textKeys(self) -> list[str]: ... + @staticmethod + def supportedImageFormats() -> list[QtCore.QByteArray]: ... + @typing.overload + @staticmethod + def imageFormat(fileName: str|None) -> QtCore.QByteArray: ... + @typing.overload + @staticmethod + def imageFormat(device: QtCore.QIODevice|None) -> 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|None) -> 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) -> None: ... + def device(self) -> QtCore.QIODevice|None: ... + def setDevice(self, device: QtCore.QIODevice|None) -> None: ... + def format(self) -> QtCore.QByteArray: ... + def setFormat(self, format: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + + +class QImageWriter(PyQt6.sip.simplewrapper): + + class ImageWriterError(enum.Enum): + 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|None, format: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + @typing.overload + def __init__(self, fileName: str|None, format: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> None: ... + + @staticmethod + def imageFormatsForMimeType(mimeType: QtCore.QByteArray|bytes|bytearray|memoryview) -> list[QtCore.QByteArray]: ... + def setTransformation(self, orientation: QImageIOHandler.Transformation) -> None: ... + def transformation(self) -> QImageIOHandler.Transformation: ... + def progressiveScanWrite(self) -> bool: ... + def setProgressiveScanWrite(self, progressive: bool) -> None: ... + def optimizedWrite(self) -> bool: ... + def setOptimizedWrite(self, optimize: bool) -> None: ... + def supportedSubTypes(self) -> list[QtCore.QByteArray]: ... + def subType(self) -> QtCore.QByteArray: ... + def setSubType(self, type: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + @staticmethod + def supportedMimeTypes() -> 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|None, text: str|None) -> None: ... + @staticmethod + def supportedImageFormats() -> list[QtCore.QByteArray]: ... + def errorString(self) -> str: ... + def error(self) -> 'QImageWriter.ImageWriterError': ... + def write(self, image: QImage) -> bool: ... + def canWrite(self) -> bool: ... + def quality(self) -> int: ... + def setQuality(self, quality: int) -> None: ... + def fileName(self) -> str: ... + def setFileName(self, fileName: str|None) -> None: ... + def device(self) -> QtCore.QIODevice|None: ... + def setDevice(self, device: QtCore.QIODevice|None) -> None: ... + def format(self) -> QtCore.QByteArray: ... + def setFormat(self, format: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + + +class QInputDevice(QtCore.QObject): + + class Capability(enum.Flag): + None_ = ... # type: QInputDevice.Capability + Position = ... # type: QInputDevice.Capability + Area = ... # type: QInputDevice.Capability + Pressure = ... # type: QInputDevice.Capability + Velocity = ... # type: QInputDevice.Capability + NormalizedPosition = ... # type: QInputDevice.Capability + MouseEmulation = ... # type: QInputDevice.Capability + PixelScroll = ... # type: QInputDevice.Capability + Scroll = ... # type: QInputDevice.Capability + Hover = ... # type: QInputDevice.Capability + Rotation = ... # type: QInputDevice.Capability + XTilt = ... # type: QInputDevice.Capability + YTilt = ... # type: QInputDevice.Capability + TangentialPressure = ... # type: QInputDevice.Capability + ZPosition = ... # type: QInputDevice.Capability + All = ... # type: QInputDevice.Capability + + class DeviceType(enum.Flag): + Unknown = ... # type: QInputDevice.DeviceType + Mouse = ... # type: QInputDevice.DeviceType + TouchScreen = ... # type: QInputDevice.DeviceType + TouchPad = ... # type: QInputDevice.DeviceType + Puck = ... # type: QInputDevice.DeviceType + Stylus = ... # type: QInputDevice.DeviceType + Airbrush = ... # type: QInputDevice.DeviceType + Keyboard = ... # type: QInputDevice.DeviceType + AllDevices = ... # type: QInputDevice.DeviceType + + @typing.overload + def __init__(self, name: str|None, systemId: int, type: 'QInputDevice.DeviceType', seatName: str|None = ..., parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def __ne__(self, other: object): ... + @staticmethod + def seatNames() -> list[str]: ... + capabilitiesChanged: typing.ClassVar[QtCore.pyqtSignal] + availableVirtualGeometryChanged: typing.ClassVar[QtCore.pyqtSignal] + def __eq__(self, other: object): ... + @staticmethod + def primaryKeyboard(seatName: str|None = ...) -> 'QInputDevice|None': ... + @staticmethod + def devices() -> list['QInputDevice']: ... + def availableVirtualGeometry(self) -> QtCore.QRect: ... + def seatName(self) -> str: ... + def systemId(self) -> int: ... + def hasCapability(self, cap: 'QInputDevice.Capability') -> bool: ... + def capabilities(self) -> 'QInputDevice.Capability': ... + def type(self) -> 'QInputDevice.DeviceType': ... + def name(self) -> str: ... + + +class QInputMethod(QtCore.QObject): + + class Action(enum.Enum): + Click = ... # type: QInputMethod.Action + ContextMenu = ... # type: QInputMethod.Action + + inputItemClipRectangleChanged: typing.ClassVar[QtCore.pyqtSignal] + anchorRectangleChanged: typing.ClassVar[QtCore.pyqtSignal] + def inputItemClipRectangle(self) -> QtCore.QRectF: ... + def anchorRectangle(self) -> QtCore.QRectF: ... + inputDirectionChanged: typing.ClassVar[QtCore.pyqtSignal] + localeChanged: typing.ClassVar[QtCore.pyqtSignal] + animatingChanged: typing.ClassVar[QtCore.pyqtSignal] + visibleChanged: typing.ClassVar[QtCore.pyqtSignal] + keyboardRectangleChanged: typing.ClassVar[QtCore.pyqtSignal] + cursorRectangleChanged: typing.ClassVar[QtCore.pyqtSignal] + def invokeAction(self, a: 'QInputMethod.Action', cursorPosition: int) -> None: ... + def commit(self) -> None: ... + def reset(self) -> None: ... + def update(self, queries: 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(PyQt6.sip.simplewrapper): + + class StandardKey(enum.Enum): + 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(enum.Enum): + NoMatch = ... # type: QKeySequence.SequenceMatch + PartialMatch = ... # type: QKeySequence.SequenceMatch + ExactMatch = ... # type: QKeySequence.SequenceMatch + + class SequenceFormat(enum.Enum): + NativeText = ... # type: QKeySequence.SequenceFormat + PortableText = ... # type: QKeySequence.SequenceFormat + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, ks: 'QKeySequence') -> None: ... + @typing.overload + def __init__(self, key: 'QKeySequence.StandardKey') -> None: ... + @typing.overload + def __init__(self, key: str|None, format: 'QKeySequence.SequenceFormat' = ...) -> None: ... + @typing.overload + def __init__(self, k1: int, key2: int = ..., key3: int = ..., key4: int = ...) -> None: ... + @typing.overload + def __init__(self, k1: QtCore.QKeyCombination, key2: QtCore.QKeyCombination = ..., key3: QtCore.QKeyCombination = ..., key4: QtCore.QKeyCombination = ...) -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + def __hash__(self) -> int: ... + @staticmethod + def listToString(list: collections.abc.Iterable['QKeySequence'|'QKeySequence.StandardKey'|str|None|int], format: 'QKeySequence.SequenceFormat' = ...) -> str: ... + @staticmethod + def listFromString(str: str|None, format: 'QKeySequence.SequenceFormat' = ...) -> list['QKeySequence']: ... + @staticmethod + def keyBindings(key: 'QKeySequence.StandardKey') -> list['QKeySequence']: ... + @staticmethod + def fromString(str: str|None, format: 'QKeySequence.SequenceFormat' = ...) -> 'QKeySequence': ... + def toString(self, format: 'QKeySequence.SequenceFormat' = ...) -> str: ... + def swap(self, other: 'QKeySequence') -> None: ... + def isDetached(self) -> bool: ... + def __ge__(self, other: 'QKeySequence'|'QKeySequence.StandardKey'|str|None|int) -> bool: ... + def __le__(self, other: 'QKeySequence'|'QKeySequence.StandardKey'|str|None|int) -> bool: ... + def __gt__(self, other: 'QKeySequence'|'QKeySequence.StandardKey'|str|None|int) -> bool: ... + def __lt__(self, ks: 'QKeySequence'|'QKeySequence.StandardKey'|str|None|int) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __getitem__(self, i: int) -> QtCore.QKeyCombination: ... + @staticmethod + def mnemonic(text: str|None) -> 'QKeySequence': ... + def matches(self, seq: 'QKeySequence'|'QKeySequence.StandardKey'|str|None|int) -> 'QKeySequence.SequenceMatch': ... + def isEmpty(self) -> bool: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + + +class QMatrix4x4(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, values: collections.abc.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 __truediv__(self, divisor: float) -> 'QMatrix4x4': ... + def __add__(self, m2: 'QMatrix4x4') -> 'QMatrix4x4': ... + def __sub__(self, m2: 'QMatrix4x4') -> 'QMatrix4x4': ... + @typing.overload + def __mul__(self, m2: 'QMatrix4x4') -> 'QMatrix4x4': ... + @typing.overload + def __mul__(self, point: QtCore.QPoint) -> QtCore.QPoint: ... + @typing.overload + def __mul__(self, point: QtCore.QPointF) -> QtCore.QPointF: ... + @typing.overload + def __mul__(self, factor: float) -> 'QMatrix4x4': ... + @typing.overload + def __mul__(self, vector: 'QVector4D') -> 'QVector4D': ... + @typing.overload + def __mul__(self, vector: 'QVector3D') -> 'QVector3D': ... + def __rmul__(self, factor: float) -> 'QMatrix4x4': ... + def __matmul__(self, m2: 'QMatrix4x4') -> 'QMatrix4x4': ... + 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: QtCore.QPointF) -> QtCore.QPointF: ... + @typing.overload + def map(self, point: 'QVector3D') -> 'QVector3D': ... + @typing.overload + def map(self, point: 'QVector4D') -> 'QVector4D': ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __itruediv__(self, divisor: float) -> 'QMatrix4x4': ... + def __imatmul__(self, other: 'QMatrix4x4') -> 'QMatrix4x4': ... + @typing.overload + def __imul__(self, other: 'QMatrix4x4') -> 'QMatrix4x4': ... + @typing.overload + def __imul__(self, factor: float) -> 'QMatrix4x4': ... + def __isub__(self, other: 'QMatrix4x4') -> 'QMatrix4x4': ... + def __iadd__(self, other: 'QMatrix4x4') -> 'QMatrix4x4': ... + 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) -> 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) -> 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(enum.Enum): + CacheNone = ... # type: QMovie.CacheMode + CacheAll = ... # type: QMovie.CacheMode + + class MovieState(enum.Enum): + NotRunning = ... # type: QMovie.MovieState + Paused = ... # type: QMovie.MovieState + Running = ... # type: QMovie.MovieState + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, device: QtCore.QIODevice|None, format: QtCore.QByteArray|bytes|bytearray|memoryview = ..., parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, fileName: str|None, format: QtCore.QByteArray|bytes|bytearray|memoryview = ..., parent: QtCore.QObject|None = ...) -> 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: ... + frameChanged: typing.ClassVar[QtCore.pyqtSignal] + finished: typing.ClassVar[QtCore.pyqtSignal] + error: typing.ClassVar[QtCore.pyqtSignal] + stateChanged: typing.ClassVar[QtCore.pyqtSignal] + updated: typing.ClassVar[QtCore.pyqtSignal] + resized: typing.ClassVar[QtCore.pyqtSignal] + started: typing.ClassVar[QtCore.pyqtSignal] + 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: QColor|QtCore.Qt.GlobalColor|int) -> None: ... + def format(self) -> QtCore.QByteArray: ... + def setFormat(self, format: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def fileName(self) -> str: ... + def setFileName(self, fileName: str|None) -> None: ... + def device(self) -> QtCore.QIODevice|None: ... + def setDevice(self, device: QtCore.QIODevice|None) -> None: ... + @staticmethod + def supportedFormats() -> list[QtCore.QByteArray]: ... + + +class QSurface(PyQt6.sip.simplewrapper): + + class SurfaceType(enum.Enum): + RasterSurface = ... # type: QSurface.SurfaceType + OpenGLSurface = ... # type: QSurface.SurfaceType + RasterGLSurface = ... # type: QSurface.SurfaceType + OpenVGSurface = ... # type: QSurface.SurfaceType + VulkanSurface = ... # type: QSurface.SurfaceType + MetalSurface = ... # type: QSurface.SurfaceType + Direct3DSurface = ... # type: QSurface.SurfaceType + + class SurfaceClass(enum.Enum): + 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): + + def __init__(self, screen: 'QScreen|None' = ..., parent: QtCore.QObject|None = ...) -> None: ... + + screenChanged: typing.ClassVar[QtCore.pyqtSignal] + def setScreen(self, screen: 'QScreen|None') -> None: ... + def screen(self) -> 'QScreen|None': ... + 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 QOpenGLContextGroup(QtCore.QObject): + + @staticmethod + def currentContextGroup() -> 'QOpenGLContextGroup|None': ... + def shares(self) -> list['QOpenGLContext']: ... + + +class QOpenGLContext(QtCore.QObject): + + class OpenGLModuleType(enum.Enum): + LibGL = ... # type: QOpenGLContext.OpenGLModuleType + LibGLES = ... # type: QOpenGLContext.OpenGLModuleType + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + @staticmethod + def globalShareContext() -> 'QOpenGLContext|None': ... + @staticmethod + def supportsThreadedOpenGL() -> bool: ... + def isOpenGLES(self) -> bool: ... + @staticmethod + def openGLModuleType() -> 'QOpenGLContext.OpenGLModuleType': ... + aboutToBeDestroyed: typing.ClassVar[QtCore.pyqtSignal] + def hasExtension(self, extension: QtCore.QByteArray|bytes|bytearray|memoryview) -> bool: ... + def extensions(self) -> set[QtCore.QByteArray]: ... + @staticmethod + def areSharing(first: 'QOpenGLContext|None', second: 'QOpenGLContext|None') -> bool: ... + @staticmethod + def currentContext() -> 'QOpenGLContext|None': ... + def surface(self) -> QSurface|None: ... + def getProcAddress(self, procName: QtCore.QByteArray|bytes|bytearray|memoryview) -> PyQt6.sip.voidptr: ... + def swapBuffers(self, surface: QSurface|None) -> None: ... + def doneCurrent(self) -> None: ... + def makeCurrent(self, surface: QSurface|None) -> bool: ... + def defaultFramebufferObject(self) -> int: ... + def screen(self) -> 'QScreen|None': ... + def shareGroup(self) -> QOpenGLContextGroup|None: ... + def shareContext(self) -> 'QOpenGLContext|None': ... + def format(self) -> 'QSurfaceFormat': ... + def isValid(self) -> bool: ... + def create(self) -> bool: ... + def setScreen(self, screen: 'QScreen|None') -> None: ... + def setShareContext(self, shareContext: 'QOpenGLContext|None') -> None: ... + def setFormat(self, format: 'QSurfaceFormat') -> None: ... + + +class QPagedPaintDevice(QPaintDevice): + + class PdfVersion(enum.Enum): + PdfVersion_1_4 = ... # type: QPagedPaintDevice.PdfVersion + PdfVersion_A1b = ... # type: QPagedPaintDevice.PdfVersion + PdfVersion_1_6 = ... # type: QPagedPaintDevice.PdfVersion + PdfVersion_X4 = ... # type: QPagedPaintDevice.PdfVersion + + def pageRanges(self) -> 'QPageRanges': ... + def setPageRanges(self, ranges: 'QPageRanges') -> None: ... + def setPageMargins(self, margins: QtCore.QMarginsF, units: 'QPageLayout.Unit' = ...) -> bool: ... + def setPageOrientation(self, orientation: 'QPageLayout.Orientation') -> bool: ... + def pageLayout(self) -> 'QPageLayout': ... + def setPageLayout(self, pageLayout: 'QPageLayout') -> bool: ... + def setPageSize(self, pageSize: 'QPageSize') -> bool: ... + def newPage(self) -> bool: ... + + +class QPageLayout(PyQt6.sip.simplewrapper): + + class OutOfBoundsPolicy(enum.Enum): + Reject = ... # type: QPageLayout.OutOfBoundsPolicy + Clamp = ... # type: QPageLayout.OutOfBoundsPolicy + + class Mode(enum.Enum): + StandardMode = ... # type: QPageLayout.Mode + FullPageMode = ... # type: QPageLayout.Mode + + class Orientation(enum.Enum): + Portrait = ... # type: QPageLayout.Orientation + Landscape = ... # type: QPageLayout.Orientation + + class Unit(enum.Enum): + 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 __ne__(self, other: object): ... + def __eq__(self, other: object): ... + 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, outOfBoundsPolicy: 'QPageLayout.OutOfBoundsPolicy' = ...) -> bool: ... + def setTopMargin(self, topMargin: float, outOfBoundsPolicy: 'QPageLayout.OutOfBoundsPolicy' = ...) -> bool: ... + def setRightMargin(self, rightMargin: float, outOfBoundsPolicy: 'QPageLayout.OutOfBoundsPolicy' = ...) -> bool: ... + def setLeftMargin(self, leftMargin: float, outOfBoundsPolicy: 'QPageLayout.OutOfBoundsPolicy' = ...) -> bool: ... + def setMargins(self, margins: QtCore.QMarginsF, outOfBoundsPolicy: 'QPageLayout.OutOfBoundsPolicy' = ...) -> 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 QPageRanges(PyQt6.sip.simplewrapper): + + class Range(PyQt6.sip.simplewrapper): + + from_ = ... # type: int + to = ... # type: int + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QPageRanges.Range') -> None: ... + + def __ge__(self, rhs: 'QPageRanges.Range') -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __lt__(self, rhs: 'QPageRanges.Range') -> bool: ... + def contains(self, pageNumber: int) -> bool: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPageRanges') -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def lastPage(self) -> int: ... + def firstPage(self) -> int: ... + def isEmpty(self) -> bool: ... + def contains(self, pageNumber: int) -> bool: ... + @staticmethod + def fromString(ranges: str|None) -> 'QPageRanges': ... + def toString(self) -> str: ... + def clear(self) -> None: ... + def toRangeList(self) -> list['QPageRanges.Range']: ... + def addRange(self, from_: int, to: int) -> None: ... + def addPage(self, pageNumber: int) -> None: ... + def swap(self, other: 'QPageRanges') -> None: ... + + +class QPageSize(PyQt6.sip.simplewrapper): + + class SizeMatchPolicy(enum.Enum): + FuzzyMatch = ... # type: QPageSize.SizeMatchPolicy + FuzzyOrientationMatch = ... # type: QPageSize.SizeMatchPolicy + ExactMatch = ... # type: QPageSize.SizeMatchPolicy + + class Unit(enum.Enum): + 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(enum.Enum): + 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 + 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|None = ..., matchPolicy: 'QPageSize.SizeMatchPolicy' = ...) -> None: ... + @typing.overload + def __init__(self, size: QtCore.QSizeF, units: 'QPageSize.Unit', name: str|None = ..., matchPolicy: 'QPageSize.SizeMatchPolicy' = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QPageSize') -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + 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 QWindow(QtCore.QObject, QSurface): + + class Visibility(enum.Enum): + 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(enum.Enum): + ExcludeTransients = ... # type: QWindow.AncestorMode + IncludeTransients = ... # type: QWindow.AncestorMode + + @typing.overload + def __init__(self, screen: 'QScreen|None' = ...) -> None: ... + @typing.overload + def __init__(self, parent: 'QWindow|None') -> None: ... + + flagsChanged: typing.ClassVar[QtCore.pyqtSignal] + safeAreaMarginsChanged: typing.ClassVar[QtCore.pyqtSignal] + def safeAreaMargins(self) -> QtCore.QMargins: ... + def nativeEvent(self, eventType: QtCore.QByteArray|bytes|bytearray|memoryview, message: PyQt6.sip.voidptr) -> typing.Tuple[bool, PyQt6.sip.voidptr]: ... + def closeEvent(self, a0: QCloseEvent|None) -> None: ... + def paintEvent(self, a0: QPaintEvent|None) -> None: ... + def startSystemMove(self) -> bool: ... + def startSystemResize(self, edges: QtCore.Qt.Edge) -> bool: ... + def setWindowStates(self, states: QtCore.Qt.WindowState) -> None: ... + def windowStates(self) -> QtCore.Qt.WindowState: ... + def setFlag(self, a0: QtCore.Qt.WindowType, on: bool = ...) -> None: ... + opacityChanged: typing.ClassVar[QtCore.pyqtSignal] + activeChanged: typing.ClassVar[QtCore.pyqtSignal] + visibilityChanged: typing.ClassVar[QtCore.pyqtSignal] + @staticmethod + def fromWinId(id: PyQt6.sip.voidptr) -> 'QWindow|None': ... + 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) -> None: ... + def touchEvent(self, a0: QTouchEvent|None) -> None: ... + def wheelEvent(self, a0: QWheelEvent|None) -> None: ... + def mouseMoveEvent(self, a0: QMouseEvent|None) -> None: ... + def mouseDoubleClickEvent(self, a0: QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, a0: QMouseEvent|None) -> None: ... + def mousePressEvent(self, a0: QMouseEvent|None) -> None: ... + def keyReleaseEvent(self, a0: QKeyEvent|None) -> None: ... + def keyPressEvent(self, a0: QKeyEvent|None) -> None: ... + def event(self, a0: QtCore.QEvent|None) -> bool: ... + def hideEvent(self, a0: QHideEvent|None) -> None: ... + def showEvent(self, a0: QShowEvent|None) -> None: ... + def focusOutEvent(self, a0: QFocusEvent|None) -> None: ... + def focusInEvent(self, a0: QFocusEvent|None) -> None: ... + def moveEvent(self, a0: QMoveEvent|None) -> None: ... + def resizeEvent(self, a0: QResizeEvent|None) -> None: ... + def exposeEvent(self, a0: QExposeEvent|None) -> None: ... + windowTitleChanged: typing.ClassVar[QtCore.pyqtSignal] + focusObjectChanged: typing.ClassVar[QtCore.pyqtSignal] + contentOrientationChanged: typing.ClassVar[QtCore.pyqtSignal] + visibleChanged: typing.ClassVar[QtCore.pyqtSignal] + maximumHeightChanged: typing.ClassVar[QtCore.pyqtSignal] + maximumWidthChanged: typing.ClassVar[QtCore.pyqtSignal] + minimumHeightChanged: typing.ClassVar[QtCore.pyqtSignal] + minimumWidthChanged: typing.ClassVar[QtCore.pyqtSignal] + heightChanged: typing.ClassVar[QtCore.pyqtSignal] + widthChanged: typing.ClassVar[QtCore.pyqtSignal] + yChanged: typing.ClassVar[QtCore.pyqtSignal] + xChanged: typing.ClassVar[QtCore.pyqtSignal] + windowStateChanged: typing.ClassVar[QtCore.pyqtSignal] + modalityChanged: typing.ClassVar[QtCore.pyqtSignal] + screenChanged: typing.ClassVar[QtCore.pyqtSignal] + 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) -> 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: QCursor|QtCore.Qt.CursorShape) -> None: ... + def cursor(self) -> QCursor: ... + @typing.overload + def mapFromGlobal(self, pos: QtCore.QPoint) -> QtCore.QPoint: ... + @typing.overload + def mapFromGlobal(self, pos: QtCore.QPointF) -> QtCore.QPointF: ... + @typing.overload + def mapToGlobal(self, pos: QtCore.QPoint) -> QtCore.QPoint: ... + @typing.overload + def mapToGlobal(self, pos: QtCore.QPointF) -> QtCore.QPointF: ... + def focusObject(self) -> QtCore.QObject|None: ... + def setScreen(self, screen: 'QScreen|None') -> None: ... + def screen(self) -> 'QScreen|None': ... + 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) -> 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|None', mode: 'QWindow.AncestorMode' = ...) -> bool: ... + def transientParent(self) -> 'QWindow|None': ... + def setTransientParent(self, parent: 'QWindow|None') -> 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.WindowType: ... + def setFlags(self, flags: 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') -> None: ... + def parent(self, mode: 'QWindow.AncestorMode' = ...) -> 'QWindow|None': ... + def winId(self) -> PyQt6.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|None) -> bool: ... + def exposeEvent(self, a0: QExposeEvent|None) -> None: ... + def metric(self, metric: QPaintDevice.PaintDeviceMetric) -> int: ... + def paintEvent(self, event: QPaintEvent|None) -> 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 QTextItem(PyQt6.sip.simplewrapper): + + class RenderFlag(enum.Flag): + RightToLeft = ... # type: QTextItem.RenderFlag + Overline = ... # type: QTextItem.RenderFlag + Underline = ... # type: QTextItem.RenderFlag + StrikeOut = ... # type: QTextItem.RenderFlag + + @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.RenderFlag': ... + def width(self) -> float: ... + def ascent(self) -> float: ... + def descent(self) -> float: ... + + +class QPaintEngine(PyQt6.sip.simplewrapper): + + class Type(enum.Enum): + X11 = ... # type: QPaintEngine.Type + Windows = ... # type: QPaintEngine.Type + QuickDraw = ... # type: QPaintEngine.Type + CoreGraphics = ... # type: QPaintEngine.Type + MacPrinter = ... # type: QPaintEngine.Type + QWindowSystem = ... # 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(enum.Enum): + OddEvenMode = ... # type: QPaintEngine.PolygonDrawMode + WindingMode = ... # type: QPaintEngine.PolygonDrawMode + ConvexMode = ... # type: QPaintEngine.PolygonDrawMode + PolylineMode = ... # type: QPaintEngine.PolygonDrawMode + + class DirtyFlag(enum.Flag): + 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(enum.Flag): + 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 + + def __init__(self, features: 'QPaintEngine.PaintEngineFeature' = ...) -> None: ... + + def hasFeature(self, feature: 'QPaintEngine.PaintEngineFeature') -> bool: ... + def painter(self) -> 'QPainter|None': ... + def type(self) -> 'QPaintEngine.Type': ... + def paintDevice(self) -> QPaintDevice|None: ... + def setPaintDevice(self, device: QPaintDevice|None) -> None: ... + def drawImage(self, r: QtCore.QRectF, pm: QImage, sr: QtCore.QRectF, flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ... + def drawTiledPixmap(self, r: QtCore.QRectF, pixmap: QPixmap, s: QtCore.QPointF) -> None: ... + def drawTextItem(self, p: QtCore.QPointF, textItem: QTextItem) -> None: ... + def drawPixmap(self, r: QtCore.QRectF, pm: QPixmap, sr: QtCore.QRectF) -> None: ... + @typing.overload + def drawPolygon(self, points: PyQt6.sip.array[QtCore.QPointF|None], mode: 'QPaintEngine.PolygonDrawMode') -> None: ... + @typing.overload + def drawPolygon(self, points: PyQt6.sip.array[QtCore.QPoint|None], mode: 'QPaintEngine.PolygonDrawMode') -> None: ... + @typing.overload + def drawPoints(self, points: PyQt6.sip.array[QtCore.QPointF|None]) -> None: ... + @typing.overload + def drawPoints(self, points: PyQt6.sip.array[QtCore.QPoint|None]) -> 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: PyQt6.sip.array[QtCore.QLine|None]) -> None: ... + @typing.overload + def drawLines(self, lines: PyQt6.sip.array[QtCore.QLineF|None]) -> None: ... + @typing.overload + def drawRects(self, rects: PyQt6.sip.array[QtCore.QRect|None]) -> None: ... + @typing.overload + def drawRects(self, rects: PyQt6.sip.array[QtCore.QRectF|None]) -> None: ... + def updateState(self, state: 'QPaintEngineState') -> None: ... + def end(self) -> bool: ... + def begin(self, pdev: QPaintDevice|None) -> bool: ... + def setActive(self, newState: bool) -> None: ... + def isActive(self) -> bool: ... + + +class QPaintEngineState(PyQt6.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|None': ... + def compositionMode(self) -> 'QPainter.CompositionMode': ... + def renderHints(self) -> 'QPainter.RenderHint': ... + 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.DirtyFlag: ... + + +class QPainter(PyQt6.sip.simplewrapper): + + class PixmapFragmentHint(enum.Flag): + OpaqueHint = ... # type: QPainter.PixmapFragmentHint + + class CompositionMode(enum.Enum): + 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(enum.Flag): + Antialiasing = ... # type: QPainter.RenderHint + TextAntialiasing = ... # type: QPainter.RenderHint + SmoothPixmapTransform = ... # type: QPainter.RenderHint + LosslessImageRendering = ... # type: QPainter.RenderHint + VerticalSubpixelPositioning = ... # type: QPainter.RenderHint + NonCosmeticBrushPatterns = ... # type: QPainter.RenderHint + + class PixmapFragment(PyQt6.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: QtCore.QPointF, sourceRect: QtCore.QRectF, scaleX: float = ..., scaleY: float = ..., rotation: float = ..., opacity: float = ...) -> 'QPainter.PixmapFragment': ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: QPaintDevice|None) -> None: ... + + def brushOriginF(self) -> QtCore.QPointF: ... + def drawGlyphRun(self, position: QtCore.QPointF, glyphRun: QGlyphRun) -> None: ... + def clipBoundingRect(self) -> QtCore.QRectF: ... + @typing.overload + def drawStaticText(self, topLeftPosition: QtCore.QPointF, 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: PyQt6.sip.array['QPainter.PixmapFragment|None'], pixmap: QPixmap, hints: 'QPainter.PixmapFragmentHint' = ...) -> 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, targetRect: QtCore.QRectF, image: QImage, sourceRect: QtCore.QRectF, flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ... + @typing.overload + def drawImage(self, r: QtCore.QRect, image: QImage) -> None: ... + @typing.overload + def drawImage(self, targetRect: QtCore.QRect, image: QImage, sourceRect: QtCore.QRect, flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ... + @typing.overload + def drawImage(self, p: QtCore.QPointF, image: QImage) -> None: ... + @typing.overload + def drawImage(self, p: QtCore.QPointF, image: QImage, sr: QtCore.QRectF, flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ... + @typing.overload + def drawImage(self, p: QtCore.QPoint, image: QImage) -> None: ... + @typing.overload + def drawImage(self, p: QtCore.QPoint, image: QImage, sr: QtCore.QRect, flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ... + @typing.overload + def drawImage(self, x: int, y: int, image: QImage, sx: int = ..., sy: int = ..., sw: int = ..., sh: int = ..., flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ... + @typing.overload + def drawPoint(self, p: QtCore.QPointF) -> 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: QtCore.QPointF, p2: QtCore.QPointF) -> None: ... + def paintEngine(self) -> QPaintEngine|None: ... + def setRenderHints(self, hints: 'QPainter.RenderHint', on: bool = ...) -> None: ... + def renderHints(self) -> 'QPainter.RenderHint': ... + 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: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + @typing.overload + def fillRect(self, a0: QtCore.QRect, a1: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + @typing.overload + def fillRect(self, x: int, y: int, w: int, h: int, b: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + @typing.overload + def fillRect(self, a0: QtCore.QRectF, color: QColor|QtCore.Qt.GlobalColor|int) -> None: ... + @typing.overload + def fillRect(self, a0: QtCore.QRect, color: QColor|QtCore.Qt.GlobalColor|int) -> None: ... + @typing.overload + def fillRect(self, x: int, y: int, w: int, h: int, b: QColor|QtCore.Qt.GlobalColor|int) -> 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|None) -> QtCore.QRectF: ... + @typing.overload + def boundingRect(self, rect: QtCore.QRect, flags: int, text: str|None) -> QtCore.QRect: ... + @typing.overload + def boundingRect(self, rectangle: QtCore.QRectF, text: str|None, option: 'QTextOption' = ...) -> QtCore.QRectF: ... + @typing.overload + def boundingRect(self, x: int, y: int, w: int, h: int, flags: int, text: str|None) -> QtCore.QRect: ... + @typing.overload + def drawText(self, p: QtCore.QPointF, s: str|None) -> None: ... + @typing.overload + def drawText(self, rectangle: QtCore.QRectF, flags: int, text: str|None) -> QtCore.QRectF|None: ... + @typing.overload + def drawText(self, rectangle: QtCore.QRect, flags: int, text: str|None) -> QtCore.QRect|None: ... + @typing.overload + def drawText(self, rectangle: QtCore.QRectF, text: str|None, option: 'QTextOption' = ...) -> None: ... + @typing.overload + def drawText(self, p: QtCore.QPoint, s: str|None) -> None: ... + @typing.overload + def drawText(self, x: int, y: int, width: int, height: int, flags: int, text: str|None) -> QtCore.QRect|None: ... + @typing.overload + def drawText(self, x: int, y: int, s: str|None) -> 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: QtCore.QPointF, 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: QtCore.QPointF, 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: QtCore.QPointF, 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: QtCore.QPointF = ...) -> 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, poly: 'QPolygonF') -> None: ... + @typing.overload + def drawConvexPolygon(self, poly: 'QPolygon') -> None: ... + @typing.overload + def drawConvexPolygon(self, points: PyQt6.sip.array[QtCore.QPointF|None]) -> None: ... + @typing.overload + def drawConvexPolygon(self, point: QtCore.QPointF|None, *args: QtCore.QPointF) -> None: ... + @typing.overload + def drawConvexPolygon(self, points: PyQt6.sip.array[QtCore.QPoint|None]) -> None: ... + @typing.overload + def drawConvexPolygon(self, point: QtCore.QPoint|None, *args: QtCore.QPoint) -> None: ... + @typing.overload + def drawPolygon(self, points: 'QPolygonF', fillRule: QtCore.Qt.FillRule = ...) -> None: ... + @typing.overload + def drawPolygon(self, points: 'QPolygon', fillRule: QtCore.Qt.FillRule = ...) -> None: ... + @typing.overload + def drawPolygon(self, points: PyQt6.sip.array[QtCore.QPointF|None], fillRule: QtCore.Qt.FillRule = ...) -> None: ... + @typing.overload + def drawPolygon(self, point: QtCore.QPointF|None, *args: QtCore.QPointF) -> None: ... + @typing.overload + def drawPolygon(self, points: PyQt6.sip.array[QtCore.QPoint|None], fillRule: QtCore.Qt.FillRule = ...) -> None: ... + @typing.overload + def drawPolygon(self, point: QtCore.QPoint|None, *args: QtCore.QPoint) -> None: ... + @typing.overload + def drawPolyline(self, polyline: 'QPolygonF') -> None: ... + @typing.overload + def drawPolyline(self, polyline: 'QPolygon') -> None: ... + @typing.overload + def drawPolyline(self, points: PyQt6.sip.array[QtCore.QPointF|None]) -> None: ... + @typing.overload + def drawPolyline(self, point: QtCore.QPointF|None, *args: QtCore.QPointF) -> None: ... + @typing.overload + def drawPolyline(self, points: PyQt6.sip.array[QtCore.QPoint|None]) -> None: ... + @typing.overload + def drawPolyline(self, point: QtCore.QPoint|None, *args: QtCore.QPoint) -> 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: QtCore.QPointF, rx: float, ry: float) -> None: ... + @typing.overload + def drawEllipse(self, center: QtCore.QPoint, rx: int, ry: int) -> None: ... + @typing.overload + def drawRects(self, rects: PyQt6.sip.array[QtCore.QRectF|None]) -> None: ... + @typing.overload + def drawRects(self, rect: QtCore.QRectF|None, *args: QtCore.QRectF) -> None: ... + @typing.overload + def drawRects(self, rects: PyQt6.sip.array[QtCore.QRect|None]) -> None: ... + @typing.overload + def drawRects(self, rect: QtCore.QRect|None, *args: QtCore.QRect) -> None: ... + @typing.overload + def drawLines(self, lines: PyQt6.sip.array[QtCore.QLineF|None]) -> None: ... + @typing.overload + def drawLines(self, line: QtCore.QLineF|None, *args: QtCore.QLineF) -> None: ... + @typing.overload + def drawLines(self, pointPairs: PyQt6.sip.array[QtCore.QPointF|None]) -> None: ... + @typing.overload + def drawLines(self, pointPair: QtCore.QPointF|None, *args: QtCore.QPointF) -> None: ... + @typing.overload + def drawLines(self, lines: PyQt6.sip.array[QtCore.QLine|None]) -> None: ... + @typing.overload + def drawLines(self, line: QtCore.QLine|None, *args: QtCore.QLine) -> None: ... + @typing.overload + def drawLines(self, pointPairs: PyQt6.sip.array[QtCore.QPoint|None]) -> None: ... + @typing.overload + def drawLines(self, pointPair: QtCore.QPoint|None, *args: QtCore.QPoint) -> None: ... + @typing.overload + def drawPoints(self, points: 'QPolygonF') -> None: ... + @typing.overload + def drawPoints(self, points: 'QPolygon') -> None: ... + @typing.overload + def drawPoints(self, points: PyQt6.sip.array[QtCore.QPointF|None]) -> None: ... + @typing.overload + def drawPoints(self, point: QtCore.QPointF|None, *args: QtCore.QPointF) -> None: ... + @typing.overload + def drawPoints(self, points: PyQt6.sip.array[QtCore.QPoint|None]) -> None: ... + @typing.overload + def drawPoints(self, point: QtCore.QPoint|None, *args: QtCore.QPoint) -> None: ... + def drawPath(self, path: 'QPainterPath') -> None: ... + def fillPath(self, path: 'QPainterPath', brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + def strokePath(self, path: 'QPainterPath', pen: 'QPen'|QColor|QtCore.Qt.GlobalColor|int) -> 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: QtCore.QPointF) -> 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: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + @typing.overload + def setBrushOrigin(self, a0: QtCore.QPointF) -> 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: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + @typing.overload + def setBrush(self, style: QtCore.Qt.BrushStyle) -> None: ... + def pen(self) -> 'QPen': ... + @typing.overload + def setPen(self, color: QColor|QtCore.Qt.GlobalColor|int) -> None: ... + @typing.overload + def setPen(self, pen: 'QPen'|QColor|QtCore.Qt.GlobalColor|int) -> 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|None) -> bool: ... + def device(self) -> QPaintDevice|None: ... + def __exit__(self, type: typing.Any, value: typing.Any, traceback: typing.Any) -> None: ... + def __enter__(self) -> typing.Any: ... + + +class QPainterPath(PyQt6.sip.simplewrapper): + + class ElementType(enum.Enum): + MoveToElement = ... # type: QPainterPath.ElementType + LineToElement = ... # type: QPainterPath.ElementType + CurveToElement = ... # type: QPainterPath.ElementType + CurveToDataElement = ... # type: QPainterPath.ElementType + + class Element(PyQt6.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 __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def isCurveTo(self) -> bool: ... + def isLineTo(self) -> bool: ... + def isMoveTo(self) -> bool: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, startPoint: QtCore.QPointF) -> None: ... + @typing.overload + def __init__(self, other: 'QPainterPath') -> None: ... + + def trimmed(self, fromFraction: float, toFraction: float, offset: float = ...) -> 'QPainterPath': ... + def setCachingEnabled(self, enabled: bool) -> None: ... + def isCachingEnabled(self) -> bool: ... + 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: QtCore.QPointF) -> 'QPainterPath': ... + @typing.overload + def translate(self, dx: float, dy: float) -> None: ... + @typing.overload + def translate(self, offset: QtCore.QPointF) -> None: ... + def __isub__(self, other: 'QPainterPath') -> 'QPainterPath': ... + def __iadd__(self, other: 'QPainterPath') -> 'QPainterPath': ... + def __ior__(self, other: 'QPainterPath') -> 'QPainterPath': ... + def __iand__(self, other: 'QPainterPath') -> 'QPainterPath': ... + def __sub__(self, other: 'QPainterPath') -> 'QPainterPath': ... + def __add__(self, other: 'QPainterPath') -> 'QPainterPath': ... + def __or__(self, other: 'QPainterPath') -> 'QPainterPath': ... + def __and__(self, other: 'QPainterPath') -> 'QPainterPath': ... + 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: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def toFillPolygon(self, matrix: 'QTransform' = ...) -> 'QPolygonF': ... + def toFillPolygons(self, matrix: 'QTransform' = ...) -> list['QPolygonF']: ... + def toSubpathPolygons(self, matrix: 'QTransform' = ...) -> 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: QtCore.QPointF) -> 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: QtCore.QPointF, f: QFont, text: str|None) -> None: ... + @typing.overload + def addText(self, x: float, y: float, f: QFont, text: str|None) -> 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: QtCore.QPointF, 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: QtCore.QPointF, endPt: QtCore.QPointF) -> None: ... + @typing.overload + def quadTo(self, ctrlPtx: float, ctrlPty: float, endPtx: float, endPty: float) -> None: ... + @typing.overload + def cubicTo(self, ctrlPt1: QtCore.QPointF, ctrlPt2: QtCore.QPointF, endPt: QtCore.QPointF) -> 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: QtCore.QPointF) -> None: ... + @typing.overload + def lineTo(self, x: float, y: float) -> None: ... + @typing.overload + def moveTo(self, p: QtCore.QPointF) -> None: ... + @typing.overload + def moveTo(self, x: float, y: float) -> None: ... + def closeSubpath(self) -> None: ... + + +class QPainterPathStroker(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, pen: 'QPen'|QColor|QtCore.Qt.GlobalColor|int) -> None: ... + + def dashOffset(self) -> float: ... + def setDashOffset(self, offset: float) -> None: ... + def createStroke(self, path: QPainterPath) -> QPainterPath: ... + def dashPattern(self) -> list[float]: ... + @typing.overload + def setDashPattern(self, a0: QtCore.Qt.PenStyle) -> None: ... + @typing.overload + def setDashPattern(self, dashPattern: collections.abc.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 QPainterStateGuard(PyQt6.sip.simplewrapper): + + class InitialState(enum.Enum): + Save = ... # type: QPainterStateGuard.InitialState + NoSave = ... # type: QPainterStateGuard.InitialState + + def __init__(self, painter: QPainter|None, state: 'QPainterStateGuard.InitialState' = ...) -> None: ... + + def restore(self) -> None: ... + def save(self) -> None: ... + def swap(self, other: 'QPainterStateGuard') -> None: ... + + +class QPalette(PyQt6.sip.simplewrapper): + + class ColorRole(enum.Enum): + WindowText = ... # 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 + 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 + Accent = ... # type: QPalette.ColorRole + NoRole = ... # type: QPalette.ColorRole + NColorRoles = ... # type: QPalette.ColorRole + + class ColorGroup(enum.Enum): + 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: QColor|QtCore.Qt.GlobalColor|int) -> None: ... + @typing.overload + def __init__(self, button: QtCore.Qt.GlobalColor) -> None: ... + @typing.overload + def __init__(self, button: QColor|QtCore.Qt.GlobalColor|int, background: QColor|QtCore.Qt.GlobalColor|int) -> None: ... + @typing.overload + def __init__(self, foreground: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, button: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, light: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, dark: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, mid: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, text: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, bright_text: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, base: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, background: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + @typing.overload + def __init__(self, palette: 'QPalette') -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + + def accent(self) -> QBrush: ... + 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: QColor|QtCore.Qt.GlobalColor|int) -> None: ... + @typing.overload + def setColor(self, acr: 'QPalette.ColorRole', acolor: QColor|QtCore.Qt.GlobalColor|int) -> None: ... + def resolve(self, a0: 'QPalette') -> 'QPalette': ... + def isCopyOf(self, p: 'QPalette') -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + 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: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, button: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, light: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, dark: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, mid: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, text: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, bright_text: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, base: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, background: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + @typing.overload + def setBrush(self, cg: 'QPalette.ColorGroup', cr: 'QPalette.ColorRole', brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + @typing.overload + def setBrush(self, acr: 'QPalette.ColorRole', abrush: QBrush|QColor|QtCore.Qt.GlobalColor|int|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 QPdfOutputIntent(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPdfOutputIntent') -> None: ... + + def setOutputProfile(self, profile: QColorSpace) -> None: ... + def outputProfile(self) -> QColorSpace: ... + def setRegistryName(self, name: QtCore.QUrl) -> None: ... + def registryName(self) -> QtCore.QUrl: ... + def setOutputCondition(self, condition: str|None) -> None: ... + def outputCondition(self) -> str: ... + def setOutputConditionIdentifier(self, identifier: str|None) -> None: ... + def outputConditionIdentifier(self) -> str: ... + def swap(self, other: 'QPdfOutputIntent') -> None: ... + + +class QPdfWriter(QtCore.QObject, QPagedPaintDevice): + + class ColorModel(enum.Enum): + RGB = ... # type: QPdfWriter.ColorModel + Grayscale = ... # type: QPdfWriter.ColorModel + CMYK = ... # type: QPdfWriter.ColorModel + Auto = ... # type: QPdfWriter.ColorModel + + @typing.overload + def __init__(self, filename: str|None) -> None: ... + @typing.overload + def __init__(self, device: QtCore.QIODevice|None) -> None: ... + + def setAuthor(self, author: str|None) -> None: ... + def author(self) -> str: ... + def setOutputIntent(self, intent: QPdfOutputIntent) -> None: ... + def outputIntent(self) -> QPdfOutputIntent: ... + def setColorModel(self, model: 'QPdfWriter.ColorModel') -> None: ... + def colorModel(self) -> 'QPdfWriter.ColorModel': ... + def setDocumentId(self, documentId: QtCore.QUuid) -> None: ... + def documentId(self) -> QtCore.QUuid: ... + def addFileAttachment(self, fileName: str|None, data: QtCore.QByteArray|bytes|bytearray|memoryview, mimeType: str|None = ...) -> None: ... + def documentXmpMetadata(self) -> QtCore.QByteArray: ... + def setDocumentXmpMetadata(self, xmpMetadata: QtCore.QByteArray|bytes|bytearray|memoryview) -> 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|None: ... + def newPage(self) -> bool: ... + def setCreator(self, creator: str|None) -> None: ... + def creator(self) -> str: ... + def setTitle(self, title: str|None) -> None: ... + def title(self) -> str: ... + + +class QPen(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.Qt.PenStyle) -> None: ... + @typing.overload + def __init__(self, brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, width: float, style: QtCore.Qt.PenStyle = ..., cap: QtCore.Qt.PenCapStyle = ..., join: QtCore.Qt.PenJoinStyle = ...) -> None: ... + @typing.overload + def __init__(self, pen: 'QPen'|QColor|QtCore.Qt.GlobalColor|int) -> 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 __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def setMiterLimit(self, limit: float) -> None: ... + def miterLimit(self) -> float: ... + def setDashPattern(self, pattern: collections.abc.Iterable[float]) -> None: ... + def dashPattern(self) -> 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: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + def brush(self) -> QBrush: ... + def setColor(self, color: QColor|QtCore.Qt.GlobalColor|int) -> 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|None: ... + 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, fileName: str|None) -> bool: ... + @typing.overload + def save(self, dev: QtCore.QIODevice|None) -> bool: ... + @typing.overload + def load(self, fileName: str|None) -> bool: ... + @typing.overload + def load(self, dev: QtCore.QIODevice|None) -> bool: ... + def play(self, p: QPainter|None) -> bool: ... + def setData(self, data: PyQt6.sip.array[bytes]) -> None: ... + def data(self) -> bytes: ... + def size(self) -> int: ... + def devType(self) -> int: ... + def isNull(self) -> bool: ... + + +class QPixelFormat(PyQt6.sip.simplewrapper): + + class ByteOrder(enum.Enum): + LittleEndian = ... # type: QPixelFormat.ByteOrder + BigEndian = ... # type: QPixelFormat.ByteOrder + CurrentSystemEndian = ... # type: QPixelFormat.ByteOrder + + class YUVLayout(enum.Enum): + 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(enum.Enum): + UnsignedInteger = ... # type: QPixelFormat.TypeInterpretation + UnsignedShort = ... # type: QPixelFormat.TypeInterpretation + UnsignedByte = ... # type: QPixelFormat.TypeInterpretation + FloatingPoint = ... # type: QPixelFormat.TypeInterpretation + + class AlphaPremultiplied(enum.Enum): + NotPremultiplied = ... # type: QPixelFormat.AlphaPremultiplied + Premultiplied = ... # type: QPixelFormat.AlphaPremultiplied + + class AlphaPosition(enum.Enum): + AtBeginning = ... # type: QPixelFormat.AlphaPosition + AtEnd = ... # type: QPixelFormat.AlphaPosition + + class AlphaUsage(enum.Enum): + UsesAlpha = ... # type: QPixelFormat.AlphaUsage + IgnoresAlpha = ... # type: QPixelFormat.AlphaUsage + + class ColorModel(enum.Enum): + 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 __ne__(self, other: object): ... + def __eq__(self, other: object): ... + 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(PyQt6.sip.simplewrapper): + + class Key(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPixmapCache.Key') -> None: ... + + def __hash__(self) -> int: ... + def isValid(self) -> bool: ... + def swap(self, other: 'QPixmapCache.Key') -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + @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) -> None: ... + @typing.overload + @staticmethod + def remove(key: 'QPixmapCache.Key') -> None: ... + @typing.overload + @staticmethod + def insert(key: str|None, a1: QPixmap) -> bool: ... + @typing.overload + @staticmethod + def insert(pixmap: QPixmap) -> 'QPixmapCache.Key': ... + @typing.overload + @staticmethod + def find(key: str|None) -> QPixmap: ... + @typing.overload + @staticmethod + def find(key: 'QPixmapCache.Key') -> QPixmap: ... + @staticmethod + def clear() -> None: ... + @staticmethod + def cacheLimit() -> int: ... + + +class QPointingDeviceUniqueId(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QPointingDeviceUniqueId') -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __hash__(self) -> int: ... + def numericId(self) -> int: ... + def isValid(self) -> bool: ... + @staticmethod + def fromNumericId(id: int) -> 'QPointingDeviceUniqueId': ... + + +class QPointingDevice(QInputDevice): + + class PointerType(enum.Flag): + Unknown = ... # type: QPointingDevice.PointerType + Generic = ... # type: QPointingDevice.PointerType + Finger = ... # type: QPointingDevice.PointerType + Pen = ... # type: QPointingDevice.PointerType + Eraser = ... # type: QPointingDevice.PointerType + Cursor = ... # type: QPointingDevice.PointerType + AllPointerTypes = ... # type: QPointingDevice.PointerType + + @typing.overload + def __init__(self, name: str|None, systemId: int, devType: QInputDevice.DeviceType, pType: 'QPointingDevice.PointerType', caps: QInputDevice.Capability, maxPoints: int, buttonCount: int, seatName: str|None = ..., uniqueId: QPointingDeviceUniqueId = ..., parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + @staticmethod + def primaryPointingDevice(seatName: str|None = ...) -> 'QPointingDevice|None': ... + def uniqueId(self) -> QPointingDeviceUniqueId: ... + def buttonCount(self) -> int: ... + def maximumPoints(self) -> int: ... + def pointerType(self) -> 'QPointingDevice.PointerType': ... + + +class QPolygon(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, r: QtCore.QRect, closed: bool = ...) -> None: ... + @typing.overload + def __init__(self, v: collections.abc.Iterable[QtCore.QPoint]) -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + @typing.overload + def __init__(self, a0: 'QPolygon') -> None: ... + + def __mul__(self, m: 'QTransform') -> 'QPolygon': ... + def toPolygonF(self) -> 'QPolygonF': ... + 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': ... + def __lshift__(self, value: QtCore.QPoint) -> typing.Any: ... + def __eq__(self, other: object): ... + @typing.overload + def __iadd__(self, other: 'QPolygon') -> 'QPolygon': ... + @typing.overload + def __iadd__(self, value: QtCore.QPoint) -> 'QPolygon': ... + def __add__(self, other: 'QPolygon') -> 'QPolygon': ... + def __ne__(self, other: object): ... + @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 resize(self, size: int) -> None: ... + 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) -> PyQt6.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: ... + def intersects(self, r: 'QPolygon') -> bool: ... + 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 putPoints(self, index: int, firstx: int, firsty: int, *args: int) -> None: ... + @typing.overload + def putPoints(self, index: int, nPoints: int, fromPolygon: 'QPolygon', from_: int = ...) -> None: ... + def setPoints(self, firstx: int, firsty: int, *args: int) -> None: ... + @typing.overload + def setPoint(self, index: int, x: int, y: int) -> None: ... + @typing.overload + def setPoint(self, index: int, p: QtCore.QPoint) -> None: ... + def point(self, i: int) -> QtCore.QPoint: ... + def boundingRect(self) -> QtCore.QRect: ... + @typing.overload + def translated(self, dx: int, dy: int) -> 'QPolygon': ... + @typing.overload + def translated(self, offset: QtCore.QPoint) -> 'QPolygon': ... + @typing.overload + def translate(self, dx: int, dy: int) -> None: ... + @typing.overload + def translate(self, offset: QtCore.QPoint) -> None: ... + def swap(self, other: 'QPolygon') -> None: ... + + +class QPolygonF(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, v: collections.abc.Iterable[QtCore.QPointF]) -> None: ... + @typing.overload + def __init__(self, r: QtCore.QRectF) -> None: ... + @typing.overload + def __init__(self, a: QPolygon) -> None: ... + @typing.overload + def __init__(self, variant: typing.Any) -> None: ... + @typing.overload + def __init__(self, a0: 'QPolygonF') -> None: ... + + def __mul__(self, m: 'QTransform') -> 'QPolygonF': ... + def __contains__(self, value: QtCore.QPointF) -> 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.QPointF) -> 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': ... + def __lshift__(self, value: QtCore.QPointF) -> typing.Any: ... + def __eq__(self, other: object): ... + @typing.overload + def __iadd__(self, other: 'QPolygonF') -> 'QPolygonF': ... + @typing.overload + def __iadd__(self, value: QtCore.QPointF) -> 'QPolygonF': ... + def __add__(self, other: 'QPolygonF') -> 'QPolygonF': ... + def __ne__(self, other: object): ... + @typing.overload + def value(self, i: int) -> QtCore.QPointF: ... + @typing.overload + def value(self, i: int, defaultValue: QtCore.QPointF) -> QtCore.QPointF: ... + def size(self) -> int: ... + def resize(self, size: int) -> None: ... + def replace(self, i: int, value: QtCore.QPointF) -> None: ... + @typing.overload + def remove(self, i: int) -> None: ... + @typing.overload + def remove(self, i: int, count: int) -> None: ... + def prepend(self, value: QtCore.QPointF) -> None: ... + def mid(self, pos: int, length: int = ...) -> 'QPolygonF': ... + def lastIndexOf(self, value: QtCore.QPointF, from_: int = ...) -> int: ... + def last(self) -> QtCore.QPointF: ... + def isEmpty(self) -> bool: ... + def insert(self, i: int, value: QtCore.QPointF) -> None: ... + def indexOf(self, value: QtCore.QPointF, from_: int = ...) -> int: ... + def first(self) -> QtCore.QPointF: ... + def fill(self, value: QtCore.QPointF, size: int = ...) -> None: ... + def data(self) -> PyQt6.sip.voidptr: ... + def __len__(self) -> int: ... + @typing.overload + def count(self, value: QtCore.QPointF) -> int: ... + @typing.overload + def count(self) -> int: ... + def contains(self, value: QtCore.QPointF) -> bool: ... + def clear(self) -> None: ... + def at(self, i: int) -> QtCore.QPointF: ... + def append(self, value: QtCore.QPointF) -> None: ... + def intersects(self, r: 'QPolygonF') -> bool: ... + def subtracted(self, r: 'QPolygonF') -> 'QPolygonF': ... + def intersected(self, r: 'QPolygonF') -> 'QPolygonF': ... + def united(self, r: 'QPolygonF') -> 'QPolygonF': ... + def containsPoint(self, pt: QtCore.QPointF, fillRule: QtCore.Qt.FillRule) -> bool: ... + def boundingRect(self) -> QtCore.QRectF: ... + def isClosed(self) -> bool: ... + def toPolygon(self) -> QPolygon: ... + @typing.overload + def translated(self, dx: float, dy: float) -> 'QPolygonF': ... + @typing.overload + def translated(self, offset: QtCore.QPointF) -> 'QPolygonF': ... + @typing.overload + def translate(self, dx: float, dy: float) -> None: ... + @typing.overload + def translate(self, offset: QtCore.QPointF) -> None: ... + def swap(self, other: 'QPolygonF') -> None: ... + + +class QQuaternion(PyQt6.sip.simplewrapper): + + class Axis(PyQt6.sip.simplewrapper): + + x = ... # type: float + y = ... # type: float + z = ... # type: float + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuaternion.Axis') -> None: ... + + def toVector3D(self) -> 'QVector3D': ... + @staticmethod + def fromVector3D(v: 'QVector3D') -> 'QQuaternion.Axis': ... + + class Axes(PyQt6.sip.simplewrapper): + + x = ... # type: 'QQuaternion.Axis' + y = ... # type: 'QQuaternion.Axis' + z = ... # type: 'QQuaternion.Axis' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuaternion.Axes') -> None: ... + + @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 __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __truediv__(self, divisor: float) -> 'QQuaternion': ... + def __add__(self, q2: 'QQuaternion') -> 'QQuaternion': ... + def __sub__(self, q2: 'QQuaternion') -> 'QQuaternion': ... + @typing.overload + def __mul__(self, q2: 'QQuaternion') -> 'QQuaternion': ... + @typing.overload + def __mul__(self, factor: float) -> 'QQuaternion': ... + @typing.overload + def __mul__(self, vec: 'QVector3D') -> 'QVector3D': ... + def __rmul__(self, factor: float) -> 'QQuaternion': ... + def __neg__(self) -> 'QQuaternion': ... + def toAxes(self) -> 'QQuaternion.Axes': ... + 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': ... + @typing.overload + @staticmethod + def fromAxes(axes: 'QQuaternion.Axes') -> 'QQuaternion': ... + @typing.overload + @staticmethod + def fromAxes(xAxis: 'QVector3D', yAxis: 'QVector3D', zAxis: 'QVector3D') -> 'QQuaternion': ... + def getAxes(self) -> typing.Tuple['QVector3D|None', 'QVector3D|None', 'QVector3D|None']: ... + @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|None', 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 __itruediv__(self, divisor: float) -> 'QQuaternion': ... + @typing.overload + def __imul__(self, factor: float) -> 'QQuaternion': ... + @typing.overload + def __imul__(self, quaternion: 'QQuaternion') -> 'QQuaternion': ... + def __isub__(self, quaternion: 'QQuaternion') -> 'QQuaternion': ... + def __iadd__(self, quaternion: 'QQuaternion') -> '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: QWindow|None = ...) -> None: ... + + def resizeEvent(self, event: QResizeEvent|None) -> None: ... + def metric(self, metric: QPaintDevice.PaintDeviceMetric) -> int: ... + + +class QRawFont(PyQt6.sip.simplewrapper): + + class LayoutFlag(enum.Flag): + SeparateAdvances = ... # type: QRawFont.LayoutFlag + KernedAdvances = ... # type: QRawFont.LayoutFlag + UseDesignMetrics = ... # type: QRawFont.LayoutFlag + + class AntialiasingType(enum.Enum): + PixelAntialiasing = ... # type: QRawFont.AntialiasingType + SubPixelAntialiasing = ... # type: QRawFont.AntialiasingType + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, fileName: str|None, pixelSize: float, hintingPreference: QFont.HintingPreference = ...) -> None: ... + @typing.overload + def __init__(self, fontData: QtCore.QByteArray|bytes|bytearray|memoryview, pixelSize: float, hintingPreference: QFont.HintingPreference = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QRawFont') -> None: ... + + def glyphName(self, glyphIndex: int) -> str: ... + def glyphCount(self) -> int: ... + 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': ... + @typing.overload + def fontTable(self, tagName: str) -> QtCore.QByteArray: ... + @typing.overload + def fontTable(self, tag: QFont.Tag) -> QtCore.QByteArray: ... + def supportedWritingSystems(self) -> list[QFontDatabase.WritingSystem]: ... + @typing.overload + def supportsCharacter(self, ucs4: int) -> bool: ... + @typing.overload + def supportsCharacter(self, character: str) -> bool: ... + def loadFromData(self, fontData: QtCore.QByteArray|bytes|bytearray|memoryview, pixelSize: float, hintingPreference: QFont.HintingPreference) -> None: ... + def loadFromFile(self, fileName: str|None, 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: collections.abc.Iterable[int], layoutFlags: 'QRawFont.LayoutFlag') -> list[QtCore.QPointF]: ... + @typing.overload + def advancesForGlyphIndexes(self, glyphIndexes: collections.abc.Iterable[int]) -> list[QtCore.QPointF]: ... + def glyphIndexesForString(self, text: str|None) -> list[int]: ... + def weight(self) -> int: ... + def style(self) -> QFont.Style: ... + def styleName(self) -> str: ... + def familyName(self) -> str: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def isValid(self) -> bool: ... + + +class QRegion(PyQt6.sip.simplewrapper): + + class RegionType(enum.Enum): + 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 __mul__(self, m: 'QTransform') -> 'QRegion': ... + 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 __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __ixor__(self, r: 'QRegion') -> 'QRegion': ... + def __isub__(self, r: 'QRegion') -> 'QRegion': ... + @typing.overload + def __iand__(self, r: 'QRegion') -> 'QRegion': ... + @typing.overload + def __iand__(self, r: QtCore.QRect) -> 'QRegion': ... + @typing.overload + def __iadd__(self, r: 'QRegion') -> 'QRegion': ... + @typing.overload + def __iadd__(self, r: QtCore.QRect) -> 'QRegion': ... + def __ior__(self, r: 'QRegion') -> 'QRegion': ... + def __xor__(self, r: 'QRegion') -> 'QRegion': ... + def __sub__(self, r: 'QRegion') -> 'QRegion': ... + @typing.overload + def __and__(self, r: 'QRegion') -> 'QRegion': ... + @typing.overload + def __and__(self, r: QtCore.QRect) -> 'QRegion': ... + @typing.overload + def __add__(self, r: 'QRegion') -> 'QRegion': ... + @typing.overload + def __add__(self, r: QtCore.QRect) -> 'QRegion': ... + def setRects(self, a0: collections.abc.Iterable[QtCore.QRect]) -> None: ... + def __or__(self, r: 'QRegion') -> 'QRegion': ... + 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(PyQt6.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 virtualSiblingAt(self, point: QtCore.QPoint) -> 'QScreen|None': ... + def serialNumber(self) -> str: ... + def model(self) -> str: ... + def manufacturer(self) -> str: ... + availableGeometryChanged: typing.ClassVar[QtCore.pyqtSignal] + virtualGeometryChanged: typing.ClassVar[QtCore.pyqtSignal] + physicalSizeChanged: typing.ClassVar[QtCore.pyqtSignal] + refreshRateChanged: typing.ClassVar[QtCore.pyqtSignal] + orientationChanged: typing.ClassVar[QtCore.pyqtSignal] + primaryOrientationChanged: typing.ClassVar[QtCore.pyqtSignal] + logicalDotsPerInchChanged: typing.ClassVar[QtCore.pyqtSignal] + physicalDotsPerInchChanged: typing.ClassVar[QtCore.pyqtSignal] + geometryChanged: typing.ClassVar[QtCore.pyqtSignal] + def devicePixelRatio(self) -> float: ... + def refreshRate(self) -> float: ... + def grabWindow(self, window: PyQt6.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 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) -> 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(enum.Enum): + 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|None, value: str|None) -> None: ... + @typing.overload + def setManagerProperty(self, name: str|None, value: collections.abc.Iterable[str|None]) -> None: ... + def discardCommand(self) -> list[str]: ... + def setDiscardCommand(self, a0: collections.abc.Iterable[str|None]) -> None: ... + def restartCommand(self) -> list[str]: ... + def setRestartCommand(self, a0: collections.abc.Iterable[str|None]) -> 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 QShortcut(QtCore.QObject): + + @typing.overload + def __init__(self, key: QKeySequence.StandardKey, parent: QtCore.QObject|None, member: PYQT_SLOT = ..., ambiguousMember: PYQT_SLOT = ..., context: QtCore.Qt.ShortcutContext = ...) -> None: ... + @typing.overload + def __init__(self, key: QKeySequence|QKeySequence.StandardKey|str|None|int, parent: QtCore.QObject|None, member: PYQT_SLOT = ..., ambiguousMember: PYQT_SLOT = ..., context: QtCore.Qt.ShortcutContext = ...) -> None: ... + @typing.overload + def __init__(self, parent: QtCore.QObject|None) -> None: ... + + def event(self, e: QtCore.QEvent|None) -> bool: ... + def keys(self) -> list[QKeySequence]: ... + @typing.overload + def setKeys(self, keys: collections.abc.Iterable[QKeySequence|QKeySequence.StandardKey|str|None|int]) -> None: ... + @typing.overload + def setKeys(self, key: QKeySequence.StandardKey) -> None: ... + activatedAmbiguously: typing.ClassVar[QtCore.pyqtSignal] + activated: typing.ClassVar[QtCore.pyqtSignal] + def autoRepeat(self) -> bool: ... + def setAutoRepeat(self, on: bool) -> None: ... + def whatsThis(self) -> str: ... + def setWhatsThis(self, text: str|None) -> 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) -> QKeySequence: ... + def setKey(self, key: QKeySequence|QKeySequence.StandardKey|str|None|int) -> None: ... + + +class QStandardItemModel(QtCore.QAbstractItemModel): + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, rows: int, columns: int, parent: QtCore.QObject|None = ...) -> None: ... + + itemChanged: typing.ClassVar[QtCore.pyqtSignal] + def roleNames(self) -> dict[int, QtCore.QByteArray]: ... + def clearItemData(self, index: QtCore.QModelIndex) -> bool: ... + def setItemRoleNames(self, roleNames: dict[int, QtCore.QByteArray|bytes|bytearray|memoryview]) -> None: ... + def dropMimeData(self, data: QtCore.QMimeData|None, action: QtCore.Qt.DropAction, row: int, column: int, parent: QtCore.QModelIndex) -> bool: ... + def mimeData(self, indexes: collections.abc.Iterable[QtCore.QModelIndex]) -> QtCore.QMimeData|None: ... + def mimeTypes(self) -> list[str]: ... + def setSortRole(self, role: int) -> None: ... + def sortRole(self) -> int: ... + def findItems(self, text: str|None, flags: QtCore.Qt.MatchFlag = ..., column: int = ...) -> list['QStandardItem']: ... + def setItemPrototype(self, item: 'QStandardItem|None') -> None: ... + def itemPrototype(self) -> 'QStandardItem|None': ... + def takeVerticalHeaderItem(self, row: int) -> 'QStandardItem|None': ... + def takeHorizontalHeaderItem(self, column: int) -> 'QStandardItem|None': ... + def takeColumn(self, column: int) -> list['QStandardItem']: ... + def takeRow(self, row: int) -> list['QStandardItem']: ... + def takeItem(self, row: int, column: int = ...) -> 'QStandardItem|None': ... + @typing.overload + def insertColumn(self, column: int, items: collections.abc.Iterable['QStandardItem']) -> None: ... + @typing.overload + def insertColumn(self, column: int, parent: QtCore.QModelIndex = ...) -> bool: ... + @typing.overload + def insertRow(self, row: int, items: collections.abc.Iterable['QStandardItem']) -> None: ... + @typing.overload + def insertRow(self, arow: int, aitem: 'QStandardItem|None') -> None: ... + @typing.overload + def insertRow(self, row: int, parent: QtCore.QModelIndex = ...) -> bool: ... + def appendColumn(self, items: collections.abc.Iterable['QStandardItem']) -> None: ... + @typing.overload + def appendRow(self, items: collections.abc.Iterable['QStandardItem']) -> None: ... + @typing.overload + def appendRow(self, aitem: 'QStandardItem|None') -> None: ... + def setColumnCount(self, columns: int) -> None: ... + def setRowCount(self, rows: int) -> None: ... + def setVerticalHeaderLabels(self, labels: collections.abc.Iterable[str|None]) -> None: ... + def setHorizontalHeaderLabels(self, labels: collections.abc.Iterable[str|None]) -> None: ... + def setVerticalHeaderItem(self, row: int, item: 'QStandardItem|None') -> None: ... + def verticalHeaderItem(self, row: int) -> 'QStandardItem|None': ... + def setHorizontalHeaderItem(self, column: int, item: 'QStandardItem|None') -> None: ... + def horizontalHeaderItem(self, column: int) -> 'QStandardItem|None': ... + def invisibleRootItem(self) -> 'QStandardItem|None': ... + @typing.overload + def setItem(self, row: int, column: int, item: 'QStandardItem|None') -> None: ... + @typing.overload + def setItem(self, arow: int, aitem: 'QStandardItem|None') -> None: ... + def item(self, row: int, column: int = ...) -> 'QStandardItem|None': ... + def indexFromItem(self, item: 'QStandardItem|None') -> QtCore.QModelIndex: ... + def itemFromIndex(self, index: QtCore.QModelIndex) -> 'QStandardItem|None': ... + def sort(self, column: int, order: QtCore.Qt.SortOrder = ...) -> None: ... + def setItemData(self, index: QtCore.QModelIndex, roles: dict[int, typing.Any]) -> bool: ... + def itemData(self, index: QtCore.QModelIndex) -> dict[int, typing.Any]: ... + def supportedDropActions(self) -> QtCore.Qt.DropAction: ... + def clear(self) -> None: ... + def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ... + 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|None: ... + def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ... + + +class QStandardItem(PyQt6.sip.wrapper): + + class ItemType(enum.Enum): + Type = ... # type: QStandardItem.ItemType + UserType = ... # type: QStandardItem.ItemType + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, text: str|None) -> None: ... + @typing.overload + def __init__(self, icon: QIcon, text: str|None) -> None: ... + @typing.overload + def __init__(self, rows: int, columns: int = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QStandardItem') -> None: ... + + def __ge__(self, other: 'QStandardItem') -> bool: ... + 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: collections.abc.Iterable['QStandardItem']) -> None: ... + def appendColumn(self, items: collections.abc.Iterable['QStandardItem']) -> None: ... + @typing.overload + def appendRow(self, items: collections.abc.Iterable['QStandardItem']) -> None: ... + @typing.overload + def appendRow(self, aitem: 'QStandardItem|None') -> None: ... + def setAccessibleDescription(self, aaccessibleDescription: str|None) -> None: ... + def setAccessibleText(self, aaccessibleText: str|None) -> None: ... + def setCheckState(self, acheckState: QtCore.Qt.CheckState) -> None: ... + def setForeground(self, abrush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + def setBackground(self, abrush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + def setTextAlignment(self, atextAlignment: QtCore.Qt.AlignmentFlag) -> None: ... + def setFont(self, afont: QFont) -> None: ... + def setSizeHint(self, asizeHint: QtCore.QSize) -> None: ... + def setWhatsThis(self, awhatsThis: str|None) -> None: ... + def setStatusTip(self, astatusTip: str|None) -> None: ... + def setToolTip(self, atoolTip: str|None) -> None: ... + def setIcon(self, aicon: QIcon) -> None: ... + def setText(self, atext: str|None) -> None: ... + def __lt__(self, other: 'QStandardItem') -> bool: ... + def write(self, out: QtCore.QDataStream) -> None: ... + def read(self, in_: QtCore.QDataStream) -> None: ... + def type(self) -> int: ... + def clone(self) -> 'QStandardItem|None': ... + def sortChildren(self, column: int, order: QtCore.Qt.SortOrder = ...) -> None: ... + def takeColumn(self, column: int) -> list['QStandardItem']: ... + def takeRow(self, row: int) -> list['QStandardItem']: ... + def takeChild(self, row: int, column: int = ...) -> 'QStandardItem|None': ... + 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: collections.abc.Iterable['QStandardItem']) -> None: ... + @typing.overload + def insertRows(self, row: int, count: int) -> None: ... + @typing.overload + def insertRows(self, row: int, items: collections.abc.Iterable['QStandardItem']) -> None: ... + @typing.overload + def insertRow(self, row: int, items: collections.abc.Iterable['QStandardItem']) -> None: ... + @typing.overload + def insertRow(self, arow: int, aitem: 'QStandardItem|None') -> None: ... + @typing.overload + def setChild(self, row: int, column: int, item: 'QStandardItem|None') -> None: ... + @typing.overload + def setChild(self, arow: int, aitem: 'QStandardItem|None') -> None: ... + def child(self, row: int, column: int = ...) -> 'QStandardItem|None': ... + 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|None: ... + def index(self) -> QtCore.QModelIndex: ... + def column(self) -> int: ... + def row(self) -> int: ... + def parent(self) -> 'QStandardItem|None': ... + def setDropEnabled(self, dropEnabled: bool) -> None: ... + def isDropEnabled(self) -> bool: ... + def setDragEnabled(self, dragEnabled: bool) -> None: ... + def isDragEnabled(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: QtCore.Qt.ItemFlag) -> None: ... + def flags(self) -> QtCore.Qt.ItemFlag: ... + 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.AlignmentFlag: ... + 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(PyQt6.sip.simplewrapper): + + class PerformanceHint(enum.Enum): + ModerateCaching = ... # type: QStaticText.PerformanceHint + AggressiveCaching = ... # type: QStaticText.PerformanceHint + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, text: str|None) -> None: ... + @typing.overload + def __init__(self, other: 'QStaticText') -> None: ... + + def swap(self, other: 'QStaticText') -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + 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) -> None: ... + + +class QStyleHints(QtCore.QObject): + + def accessibility(self) -> QAccessibilityHints|None: ... + def menuSelectionWraps(self) -> bool: ... + contextMenuTriggerChanged: typing.ClassVar[QtCore.pyqtSignal] + def unsetColorScheme(self) -> None: ... + def setColorScheme(self, scheme: QtCore.Qt.ColorScheme) -> None: ... + def setContextMenuTrigger(self, contextMenuTrigger: QtCore.Qt.ContextMenuTrigger) -> None: ... + def contextMenuTrigger(self) -> QtCore.Qt.ContextMenuTrigger: ... + colorSchemeChanged: typing.ClassVar[QtCore.pyqtSignal] + def colorScheme(self) -> QtCore.Qt.ColorScheme: ... + def keyboardAutoRepeatRateF(self) -> float: ... + def touchDoubleTapDistance(self) -> int: ... + def mouseDoubleClickDistance(self) -> int: ... + showShortcutsInContextMenusChanged: typing.ClassVar[QtCore.pyqtSignal] + def setShowShortcutsInContextMenus(self, showShortcutsInContextMenus: bool) -> None: ... + mouseQuickSelectionThresholdChanged: typing.ClassVar[QtCore.pyqtSignal] + def mouseQuickSelectionThreshold(self) -> int: ... + def showShortcutsInContextMenus(self) -> bool: ... + wheelScrollLinesChanged: typing.ClassVar[QtCore.pyqtSignal] + def wheelScrollLines(self) -> int: ... + useHoverEffectsChanged: typing.ClassVar[QtCore.pyqtSignal] + def setUseHoverEffects(self, useHoverEffects: bool) -> None: ... + def useHoverEffects(self) -> bool: ... + def showIsMaximized(self) -> bool: ... + tabFocusBehaviorChanged: typing.ClassVar[QtCore.pyqtSignal] + mousePressAndHoldIntervalChanged: typing.ClassVar[QtCore.pyqtSignal] + startDragTimeChanged: typing.ClassVar[QtCore.pyqtSignal] + startDragDistanceChanged: typing.ClassVar[QtCore.pyqtSignal] + mouseDoubleClickIntervalChanged: typing.ClassVar[QtCore.pyqtSignal] + keyboardInputIntervalChanged: typing.ClassVar[QtCore.pyqtSignal] + cursorFlashTimeChanged: typing.ClassVar[QtCore.pyqtSignal] + 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(PyQt6.sip.simplewrapper): + + class OpenGLContextProfile(enum.Enum): + NoProfile = ... # type: QSurfaceFormat.OpenGLContextProfile + CoreProfile = ... # type: QSurfaceFormat.OpenGLContextProfile + CompatibilityProfile = ... # type: QSurfaceFormat.OpenGLContextProfile + + class RenderableType(enum.Enum): + DefaultRenderableType = ... # type: QSurfaceFormat.RenderableType + OpenGL = ... # type: QSurfaceFormat.RenderableType + OpenGLES = ... # type: QSurfaceFormat.RenderableType + OpenVG = ... # type: QSurfaceFormat.RenderableType + + class SwapBehavior(enum.Enum): + DefaultSwapBehavior = ... # type: QSurfaceFormat.SwapBehavior + SingleBuffer = ... # type: QSurfaceFormat.SwapBehavior + DoubleBuffer = ... # type: QSurfaceFormat.SwapBehavior + TripleBuffer = ... # type: QSurfaceFormat.SwapBehavior + + class FormatOption(enum.Flag): + StereoBuffers = ... # type: QSurfaceFormat.FormatOption + DebugContext = ... # type: QSurfaceFormat.FormatOption + DeprecatedFunctions = ... # type: QSurfaceFormat.FormatOption + ResetNotification = ... # type: QSurfaceFormat.FormatOption + ProtectedContent = ... # type: QSurfaceFormat.FormatOption + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, options: 'QSurfaceFormat.FormatOption') -> None: ... + @typing.overload + def __init__(self, other: 'QSurfaceFormat') -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def setColorSpace(self, colorSpace: QColorSpace) -> None: ... + def colorSpace(self) -> QColorSpace: ... + @staticmethod + def defaultFormat() -> 'QSurfaceFormat': ... + @staticmethod + def setDefaultFormat(format: 'QSurfaceFormat') -> None: ... + def setSwapInterval(self, interval: int) -> None: ... + def swapInterval(self) -> int: ... + def options(self) -> 'QSurfaceFormat.FormatOption': ... + def testOption(self, option: 'QSurfaceFormat.FormatOption') -> bool: ... + def setOption(self, option: 'QSurfaceFormat.FormatOption', on: bool = ...) -> None: ... + def setOptions(self, options: 'QSurfaceFormat.FormatOption') -> None: ... + def setVersion(self, major: int, minor: int) -> None: ... + def version(self) -> tuple[int, int]: ... + def stereo(self) -> bool: ... + 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') -> None: ... + @typing.overload + def __init__(self, parent: QtCore.QObject|None) -> None: ... + + def currentBlock(self) -> 'QTextBlock': ... + def currentBlockUserData(self) -> 'QTextBlockUserData|None': ... + def setCurrentBlockUserData(self, data: 'QTextBlockUserData|None') -> 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: QColor|QtCore.Qt.GlobalColor|int) -> None: ... + @typing.overload + def setFormat(self, start: int, count: int, font: QFont) -> None: ... + def highlightBlock(self, text: str|None) -> None: ... + def rehighlightBlock(self, block: 'QTextBlock') -> None: ... + def rehighlight(self) -> None: ... + def document(self) -> 'QTextDocument|None': ... + def setDocument(self, doc: 'QTextDocument|None') -> None: ... + + +class QTextCursor(PyQt6.sip.simplewrapper): + + class SelectionType(enum.Enum): + WordUnderCursor = ... # type: QTextCursor.SelectionType + LineUnderCursor = ... # type: QTextCursor.SelectionType + BlockUnderCursor = ... # type: QTextCursor.SelectionType + Document = ... # type: QTextCursor.SelectionType + + class MoveOperation(enum.Enum): + 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(enum.Enum): + MoveAnchor = ... # type: QTextCursor.MoveMode + KeepAnchor = ... # type: QTextCursor.MoveMode + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, document: 'QTextDocument|None') -> None: ... + @typing.overload + def __init__(self, frame: 'QTextFrame|None') -> None: ... + @typing.overload + def __init__(self, block: 'QTextBlock') -> None: ... + @typing.overload + def __init__(self, cursor: 'QTextCursor') -> None: ... + + def insertMarkdown(self, markdown: str|None, features: 'QTextDocument.MarkdownFeature' = ...) -> 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|None': ... + def setVisualNavigation(self, b: bool) -> None: ... + def visualNavigation(self) -> bool: ... + def isCopyOf(self, other: 'QTextCursor') -> bool: ... + def __gt__(self, rhs: 'QTextCursor') -> bool: ... + def __ge__(self, rhs: 'QTextCursor') -> bool: ... + def __eq__(self, other: object): ... + def __le__(self, rhs: 'QTextCursor') -> bool: ... + def __lt__(self, rhs: 'QTextCursor') -> bool: ... + def __ne__(self, other: object): ... + 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) -> None: ... + @typing.overload + def insertImage(self, image: QImage, name: str|None = ...) -> None: ... + def insertHtml(self, html: str|None) -> None: ... + def insertFragment(self, fragment: 'QTextDocumentFragment') -> None: ... + def currentFrame(self) -> 'QTextFrame|None': ... + def insertFrame(self, format: 'QTextFrameFormat') -> 'QTextFrame|None': ... + def currentTable(self) -> 'QTextTable|None': ... + @typing.overload + def insertTable(self, rows: int, cols: int, format: 'QTextTableFormat') -> 'QTextTable|None': ... + @typing.overload + def insertTable(self, rows: int, cols: int) -> 'QTextTable|None': ... + def currentList(self) -> 'QTextList|None': ... + @typing.overload + def createList(self, format: 'QTextListFormat') -> 'QTextList|None': ... + @typing.overload + def createList(self, style: 'QTextListFormat.Style') -> 'QTextList|None': ... + @typing.overload + def insertList(self, format: 'QTextListFormat') -> 'QTextList|None': ... + @typing.overload + def insertList(self, style: 'QTextListFormat.Style') -> 'QTextList|None': ... + @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) -> None: ... + @typing.overload + def insertText(self, text: str|None, 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 QTextDocument(QtCore.QObject): + + class MarkdownFeature(enum.Flag): + MarkdownNoHTML = ... # type: QTextDocument.MarkdownFeature + MarkdownDialectCommonMark = ... # type: QTextDocument.MarkdownFeature + MarkdownDialectGitHub = ... # type: QTextDocument.MarkdownFeature + + class Stacks(enum.Enum): + UndoStack = ... # type: QTextDocument.Stacks + RedoStack = ... # type: QTextDocument.Stacks + UndoAndRedoStacks = ... # type: QTextDocument.Stacks + + class ResourceType(enum.IntEnum): + UnknownResource = ... # type: QTextDocument.ResourceType + HtmlResource = ... # type: QTextDocument.ResourceType + ImageResource = ... # type: QTextDocument.ResourceType + StyleSheetResource = ... # type: QTextDocument.ResourceType + MarkdownResource = ... # type: QTextDocument.ResourceType + UserResource = ... # type: QTextDocument.ResourceType + + class FindFlag(enum.Flag): + FindBackward = ... # type: QTextDocument.FindFlag + FindCaseSensitively = ... # type: QTextDocument.FindFlag + FindWholeWords = ... # type: QTextDocument.FindFlag + + class MetaInformation(enum.Enum): + DocumentTitle = ... # type: QTextDocument.MetaInformation + DocumentUrl = ... # type: QTextDocument.MetaInformation + CssMedia = ... # type: QTextDocument.MetaInformation + FrontMatter = ... # type: QTextDocument.MetaInformation + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, text: str|None, parent: QtCore.QObject|None = ...) -> None: ... + + def isLayoutEnabled(self) -> bool: ... + def setLayoutEnabled(self, b: bool) -> None: ... + @staticmethod + def setDefaultResourceProvider(provider: collections.abc.Callable[[QtCore.QUrl], typing.Any]) -> None: ... + @staticmethod + def defaultResourceProvider() -> collections.abc.Callable[[QtCore.QUrl], typing.Any]: ... + def setResourceProvider(self, provider: collections.abc.Callable[[QtCore.QUrl], typing.Any]) -> None: ... + def resourceProvider(self) -> collections.abc.Callable[[QtCore.QUrl], typing.Any]: ... + def baselineOffset(self) -> float: ... + def setBaselineOffset(self, baseline: float) -> None: ... + def subScriptBaseline(self) -> float: ... + def setSubScriptBaseline(self, baseline: float) -> None: ... + def superScriptBaseline(self) -> float: ... + def setSuperScriptBaseline(self, baseline: float) -> None: ... + def setMarkdown(self, markdown: str|None, features: 'QTextDocument.MarkdownFeature' = ...) -> None: ... + def toMarkdown(self, features: 'QTextDocument.MarkdownFeature' = ...) -> str: ... + def toRawText(self) -> str: ... + baseUrlChanged: typing.ClassVar[QtCore.pyqtSignal] + 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: ... + documentLayoutChanged: typing.ClassVar[QtCore.pyqtSignal] + undoCommandAdded: typing.ClassVar[QtCore.pyqtSignal] + 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) -> 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|None, rect: QtCore.QRectF = ...) -> None: ... + def loadResource(self, type: int, name: QtCore.QUrl) -> typing.Any: ... + def createObject(self, f: 'QTextFormat') -> 'QTextObject|None': ... + def setModified(self, on: bool = ...) -> None: ... + @typing.overload + def redo(self) -> None: ... + @typing.overload + def redo(self, cursor: QTextCursor|None) -> None: ... + @typing.overload + def undo(self) -> None: ... + @typing.overload + def undo(self, cursor: QTextCursor|None) -> None: ... + undoAvailable: typing.ClassVar[QtCore.pyqtSignal] + redoAvailable: typing.ClassVar[QtCore.pyqtSignal] + modificationChanged: typing.ClassVar[QtCore.pyqtSignal] + cursorPositionChanged: typing.ClassVar[QtCore.pyqtSignal] + contentsChanged: typing.ClassVar[QtCore.pyqtSignal] + contentsChange: typing.ClassVar[QtCore.pyqtSignal] + blockCountChanged: typing.ClassVar[QtCore.pyqtSignal] + def useDesignMetrics(self) -> bool: ... + def setUseDesignMetrics(self, b: bool) -> None: ... + def markContentsDirty(self, from_: int, length: int) -> None: ... + def allFormats(self) -> 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) -> 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|None': ... + def object(self, objectIndex: int) -> 'QTextObject|None': ... + def rootFrame(self) -> 'QTextFrame|None': ... + @typing.overload + def find(self, expr: QtCore.QRegularExpression, cursor: QTextCursor, options: 'QTextDocument.FindFlag' = ...) -> QTextCursor: ... + @typing.overload + def find(self, expr: QtCore.QRegularExpression, position: int = ..., options: 'QTextDocument.FindFlag' = ...) -> QTextCursor: ... + @typing.overload + def find(self, subString: str|None, cursor: QTextCursor, options: 'QTextDocument.FindFlag' = ...) -> QTextCursor: ... + @typing.overload + def find(self, subString: str|None, position: int = ..., options: 'QTextDocument.FindFlag' = ...) -> QTextCursor: ... + def setPlainText(self, text: str|None) -> None: ... + def toPlainText(self) -> str: ... + def setHtml(self, html: str|None) -> None: ... + def toHtml(self) -> str: ... + def metaInformation(self, info: 'QTextDocument.MetaInformation') -> str: ... + def setMetaInformation(self, info: 'QTextDocument.MetaInformation', a1: str|None) -> None: ... + def documentLayout(self) -> QAbstractTextDocumentLayout|None: ... + def setDocumentLayout(self, layout: QAbstractTextDocumentLayout|None) -> 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: QtCore.QObject|None = ...) -> 'QTextDocument|None': ... + + +class QTextDocumentFragment(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, document: QTextDocument|None) -> None: ... + @typing.overload + def __init__(self, range: QTextCursor) -> None: ... + @typing.overload + def __init__(self, rhs: 'QTextDocumentFragment') -> None: ... + + @staticmethod + def fromMarkdown(markdown: str|None, features: QTextDocument.MarkdownFeature = ...) -> 'QTextDocumentFragment': ... + def toMarkdown(self, features: QTextDocument.MarkdownFeature = ...) -> str: ... + def toRawText(self) -> str: ... + @staticmethod + def fromHtml(html: str|None, resourceProvider: QTextDocument|None = ...) -> 'QTextDocumentFragment': ... + @staticmethod + def fromPlainText(plainText: str|None) -> 'QTextDocumentFragment': ... + def toHtml(self) -> str: ... + def toPlainText(self) -> str: ... + def isEmpty(self) -> bool: ... + + +class QTextDocumentWriter(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, device: QtCore.QIODevice|None, format: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + @typing.overload + def __init__(self, fileName: str|None, format: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> None: ... + + @staticmethod + def supportedDocumentFormats() -> list[QtCore.QByteArray]: ... + @typing.overload + def write(self, document: QTextDocument|None) -> bool: ... + @typing.overload + def write(self, fragment: QTextDocumentFragment) -> bool: ... + def fileName(self) -> str: ... + def setFileName(self, fileName: str|None) -> None: ... + def device(self) -> QtCore.QIODevice|None: ... + def setDevice(self, device: QtCore.QIODevice|None) -> None: ... + def format(self) -> QtCore.QByteArray: ... + def setFormat(self, format: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + + +class QTextLength(PyQt6.sip.simplewrapper): + + class Type(enum.Enum): + 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 __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def rawValue(self) -> float: ... + def value(self, maximumLength: float) -> float: ... + def type(self) -> 'QTextLength.Type': ... + + +class QTextFormat(PyQt6.sip.simplewrapper): + + class Property(enum.IntEnum): + 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 + 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 + BlockQuoteLevel = ... # type: QTextFormat.Property + BlockCodeLanguage = ... # type: QTextFormat.Property + BlockCodeFence = ... # type: QTextFormat.Property + BlockMarker = ... # type: QTextFormat.Property + TableBorderCollapse = ... # type: QTextFormat.Property + TableCellTopBorder = ... # type: QTextFormat.Property + TableCellBottomBorder = ... # type: QTextFormat.Property + TableCellLeftBorder = ... # type: QTextFormat.Property + TableCellRightBorder = ... # type: QTextFormat.Property + TableCellTopBorderStyle = ... # type: QTextFormat.Property + TableCellBottomBorderStyle = ... # type: QTextFormat.Property + TableCellLeftBorderStyle = ... # type: QTextFormat.Property + TableCellRightBorderStyle = ... # type: QTextFormat.Property + TableCellTopBorderBrush = ... # type: QTextFormat.Property + TableCellBottomBorderBrush = ... # type: QTextFormat.Property + TableCellLeftBorderBrush = ... # type: QTextFormat.Property + TableCellRightBorderBrush = ... # type: QTextFormat.Property + ImageTitle = ... # type: QTextFormat.Property + ImageAltText = ... # type: QTextFormat.Property + TextSuperScriptBaseline = ... # type: QTextFormat.Property + TextSubScriptBaseline = ... # type: QTextFormat.Property + TextBaselineOffset = ... # type: QTextFormat.Property + OldFontLetterSpacingType = ... # type: QTextFormat.Property + OldFontStretch = ... # type: QTextFormat.Property + OldTextUnderlineColor = ... # type: QTextFormat.Property + OldFontFamily = ... # type: QTextFormat.Property + ListStart = ... # type: QTextFormat.Property + ImageMaxWidth = ... # type: QTextFormat.Property + FontFeatures = ... # type: QTextFormat.Property + FontVariableAxes = ... # type: QTextFormat.Property + UserProperty = ... # type: QTextFormat.Property + + class PageBreakFlag(enum.Flag): + PageBreak_Auto = ... # type: QTextFormat.PageBreakFlag + PageBreak_AlwaysBefore = ... # type: QTextFormat.PageBreakFlag + PageBreak_AlwaysAfter = ... # type: QTextFormat.PageBreakFlag + + class ObjectTypes(enum.IntEnum): + NoObject = ... # type: QTextFormat.ObjectTypes + ImageObject = ... # type: QTextFormat.ObjectTypes + TableObject = ... # type: QTextFormat.ObjectTypes + TableCellObject = ... # type: QTextFormat.ObjectTypes + UserObject = ... # type: QTextFormat.ObjectTypes + + class FormatType(enum.IntEnum): + InvalidFormat = ... # type: QTextFormat.FormatType + BlockFormat = ... # type: QTextFormat.FormatType + CharFormat = ... # type: QTextFormat.FormatType + ListFormat = ... # type: QTextFormat.FormatType + FrameFormat = ... # type: QTextFormat.FormatType + UserFormat = ... # type: QTextFormat.FormatType + + @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: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + def clearBackground(self) -> None: ... + def background(self) -> QBrush: ... + def setBackground(self, brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + def layoutDirection(self) -> QtCore.Qt.LayoutDirection: ... + def setLayoutDirection(self, direction: QtCore.Qt.LayoutDirection) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + 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) -> dict[int, typing.Any]: ... + def lengthVectorProperty(self, propertyId: int) -> 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, lengths: collections.abc.Iterable[QTextLength]) -> None: ... + @typing.overload + def setProperty(self, propertyId: int, value: typing.Any) -> 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(enum.Enum): + FontPropertiesSpecifiedOnly = ... # type: QTextCharFormat.FontPropertiesInheritanceBehavior + FontPropertiesAll = ... # type: QTextCharFormat.FontPropertiesInheritanceBehavior + + class UnderlineStyle(enum.Enum): + 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(enum.Enum): + 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 fontVariableAxes(self) -> dict[QFont.Tag, float]: ... + def setFontVariableAxes(self, fontVariableAxes: dict[QFont.Tag, float]) -> None: ... + def fontFeatures(self) -> dict[QFont.Tag, int]: ... + def setFontFeatures(self, fontFeatures: dict[QFont.Tag, int]) -> None: ... + def baselineOffset(self) -> float: ... + def setBaselineOffset(self, baseline: float) -> None: ... + def subScriptBaseline(self) -> float: ... + def setSubScriptBaseline(self, baseline: float) -> None: ... + def superScriptBaseline(self) -> float: ... + def setSuperScriptBaseline(self, baseline: float) -> None: ... + def fontStyleName(self) -> typing.Any: ... + def setFontStyleName(self, styleName: str|None) -> None: ... + def fontFamilies(self) -> typing.Any: ... + def setFontFamilies(self, families: collections.abc.Iterable[str|None]) -> 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) -> list[str]: ... + def setAnchorNames(self, names: collections.abc.Iterable[str|None]) -> None: ... + def toolTip(self) -> str: ... + def setToolTip(self, tip: str|None) -> None: ... + def underlineStyle(self) -> 'QTextCharFormat.UnderlineStyle': ... + def setUnderlineStyle(self, style: 'QTextCharFormat.UnderlineStyle') -> None: ... + def textOutline(self) -> QPen: ... + def setTextOutline(self, pen: QPen|QColor|QtCore.Qt.GlobalColor|int) -> 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) -> 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: QColor|QtCore.Qt.GlobalColor|int) -> 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) -> None: ... + def font(self) -> QFont: ... + def setFont(self, font: QFont, behavior: 'QTextCharFormat.FontPropertiesInheritanceBehavior' = ...) -> None: ... + def isValid(self) -> bool: ... + + +class QTextBlockFormat(QTextFormat): + + class MarkerType(enum.Enum): + NoMarker = ... # type: QTextBlockFormat.MarkerType + Unchecked = ... # type: QTextBlockFormat.MarkerType + Checked = ... # type: QTextBlockFormat.MarkerType + + class LineHeightTypes(enum.Enum): + 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 marker(self) -> 'QTextBlockFormat.MarkerType': ... + def setMarker(self, marker: 'QTextBlockFormat.MarkerType') -> 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) -> list['QTextOption.Tab']: ... + def setTabPositions(self, tabs: collections.abc.Iterable['QTextOption.Tab']) -> None: ... + def pageBreakPolicy(self) -> QTextFormat.PageBreakFlag: ... + def setPageBreakPolicy(self, flags: QTextFormat.PageBreakFlag) -> None: ... + def setIndent(self, aindent: int) -> None: ... + def setAlignment(self, aalignment: 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.AlignmentFlag: ... + def isValid(self) -> bool: ... + + +class QTextListFormat(QTextFormat): + + class Style(enum.Enum): + 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 start(self) -> int: ... + def setStart(self, indent: int) -> None: ... + def setNumberSuffix(self, ns: str|None) -> None: ... + def setNumberPrefix(self, np: str|None) -> 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 maximumWidth(self) -> QTextLength: ... + def setMaximumWidth(self, maxWidth: QTextLength) -> 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) -> 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(enum.Enum): + 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(enum.Enum): + 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: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + def pageBreakPolicy(self) -> QTextFormat.PageBreakFlag: ... + def setPageBreakPolicy(self, flags: 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 borderCollapse(self) -> bool: ... + def setBorderCollapse(self, borderCollapse: bool) -> None: ... + def headerRowCount(self) -> int: ... + def setHeaderRowCount(self, count: int) -> None: ... + def setAlignment(self, aalignment: QtCore.Qt.AlignmentFlag) -> None: ... + def setCellPadding(self, apadding: float) -> None: ... + def setColumns(self, acolumns: int) -> None: ... + def alignment(self) -> QtCore.Qt.AlignmentFlag: ... + def cellPadding(self) -> float: ... + def setCellSpacing(self, spacing: float) -> None: ... + def cellSpacing(self) -> float: ... + def clearColumnWidthConstraints(self) -> None: ... + def columnWidthConstraints(self) -> list[QTextLength]: ... + def setColumnWidthConstraints(self, constraints: collections.abc.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 setBorderBrush(self, brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + def rightBorderBrush(self) -> QBrush: ... + def setRightBorderBrush(self, brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + def leftBorderBrush(self) -> QBrush: ... + def setLeftBorderBrush(self, brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + def bottomBorderBrush(self) -> QBrush: ... + def setBottomBorderBrush(self, brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + def topBorderBrush(self) -> QBrush: ... + def setTopBorderBrush(self, brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ... + def setBorderStyle(self, style: QTextFrameFormat.BorderStyle) -> None: ... + def rightBorderStyle(self) -> QTextFrameFormat.BorderStyle: ... + def setRightBorderStyle(self, style: QTextFrameFormat.BorderStyle) -> None: ... + def leftBorderStyle(self) -> QTextFrameFormat.BorderStyle: ... + def setLeftBorderStyle(self, style: QTextFrameFormat.BorderStyle) -> None: ... + def bottomBorderStyle(self) -> QTextFrameFormat.BorderStyle: ... + def setBottomBorderStyle(self, style: QTextFrameFormat.BorderStyle) -> None: ... + def topBorderStyle(self) -> QTextFrameFormat.BorderStyle: ... + def setTopBorderStyle(self, style: QTextFrameFormat.BorderStyle) -> None: ... + def setBorder(self, width: float) -> None: ... + def rightBorder(self) -> float: ... + def setRightBorder(self, width: float) -> None: ... + def leftBorder(self) -> float: ... + def setLeftBorder(self, width: float) -> None: ... + def bottomBorder(self) -> float: ... + def setBottomBorder(self, width: float) -> None: ... + def topBorder(self) -> float: ... + def setTopBorder(self, width: float) -> 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(PyQt6.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(PyQt6.sip.simplewrapper): + + class GlyphRunRetrievalFlag(enum.Enum): + RetrieveGlyphIndexes = ... # type: QTextLayout.GlyphRunRetrievalFlag + RetrieveGlyphPositions = ... # type: QTextLayout.GlyphRunRetrievalFlag + RetrieveStringIndexes = ... # type: QTextLayout.GlyphRunRetrievalFlag + RetrieveString = ... # type: QTextLayout.GlyphRunRetrievalFlag + DefaultRetrievalFlags = ... # type: QTextLayout.GlyphRunRetrievalFlag + RetrieveAll = ... # type: QTextLayout.GlyphRunRetrievalFlag + + class CursorMode(enum.Enum): + SkipCharacters = ... # type: QTextLayout.CursorMode + SkipWords = ... # type: QTextLayout.CursorMode + + class FormatRange(PyQt6.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: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, text: str|None) -> None: ... + @typing.overload + def __init__(self, text: str|None, font: QFont, paintdevice: QPaintDevice|None = ...) -> None: ... + @typing.overload + def __init__(self, b: 'QTextBlock') -> None: ... + + def clearFormats(self) -> None: ... + def formats(self) -> list['QTextLayout.FormatRange']: ... + def setFormats(self, overrides: collections.abc.Iterable['QTextLayout.FormatRange']) -> None: ... + @typing.overload + def glyphRuns(self, from_: int = ..., length: int = ...) -> list[QGlyphRun]: ... + @typing.overload + def glyphRuns(self, from_: int, length: int, flags: 'QTextLayout.GlyphRunRetrievalFlag') -> 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: QtCore.QPointF) -> None: ... + def position(self) -> QtCore.QPointF: ... + @typing.overload + def drawCursor(self, p: QPainter|None, pos: QtCore.QPointF, cursorPosition: int) -> None: ... + @typing.overload + def drawCursor(self, p: QPainter|None, pos: QtCore.QPointF, cursorPosition: int, width: int) -> None: ... + def draw(self, p: QPainter|None, pos: QtCore.QPointF, selections: collections.abc.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 preeditAreaText(self) -> str: ... + def preeditAreaPosition(self) -> int: ... + def setPreeditArea(self, position: int, text: str|None) -> None: ... + def textOption(self) -> 'QTextOption': ... + def setTextOption(self, option: 'QTextOption') -> None: ... + def text(self) -> str: ... + def setText(self, string: str|None) -> None: ... + def font(self) -> QFont: ... + def setFont(self, f: QFont) -> None: ... + + +class QTextLine(PyQt6.sip.simplewrapper): + + class CursorPosition(enum.Enum): + CursorBetweenCharacters = ... # type: QTextLine.CursorPosition + CursorOnCharacter = ... # type: QTextLine.CursorPosition + + class Edge(enum.Enum): + Leading = ... # type: QTextLine.Edge + Trailing = ... # type: QTextLine.Edge + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextLine') -> None: ... + + @typing.overload + def glyphRuns(self, from_: int = ..., length: int = ...) -> list[QGlyphRun]: ... + @typing.overload + def glyphRuns(self, from_: int, length: int, flags: QTextLayout.GlyphRunRetrievalFlag) -> 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|None, position: QtCore.QPointF) -> None: ... + def lineNumber(self) -> int: ... + def textLength(self) -> int: ... + def textStart(self) -> int: ... + def setPosition(self, pos: QtCore.QPointF) -> 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) -> None: ... + + def objectIndex(self) -> int: ... + def document(self) -> QTextDocument|None: ... + def formatIndex(self) -> int: ... + def format(self) -> QTextFormat: ... + def setFormat(self, format: QTextFormat) -> None: ... + + +class QTextBlockGroup(QTextObject): + + def __init__(self, doc: QTextDocument|None) -> None: ... + + def blockList(self) -> 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) -> 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(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextFrame.iterator') -> None: ... + + def __isub__(self, a0: int) -> 'QTextFrame.iterator': ... + def __iadd__(self, a0: int) -> 'QTextFrame.iterator': ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def atEnd(self) -> bool: ... + def currentBlock(self) -> 'QTextBlock': ... + def currentFrame(self) -> 'QTextFrame|None': ... + def parentFrame(self) -> 'QTextFrame|None': ... + + def __init__(self, doc: QTextDocument|None) -> None: ... + + def setFrameFormat(self, aformat: QTextFrameFormat) -> None: ... + def end(self) -> 'QTextFrame.iterator': ... + def begin(self) -> 'QTextFrame.iterator': ... + def parentFrame(self) -> 'QTextFrame|None': ... + def childFrames(self) -> list['QTextFrame']: ... + def lastPosition(self) -> int: ... + def firstPosition(self) -> int: ... + def lastCursorPosition(self) -> QTextCursor: ... + def firstCursorPosition(self) -> QTextCursor: ... + def frameFormat(self) -> QTextFrameFormat: ... + + +class QTextBlock(PyQt6.sip.wrapper): + + class iterator(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextBlock.iterator') -> None: ... + + def __isub__(self, a0: int) -> 'QTextBlock.iterator': ... + def __iadd__(self, a0: int) -> 'QTextBlock.iterator': ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def atEnd(self) -> bool: ... + def fragment(self) -> 'QTextFragment': ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, o: 'QTextBlock') -> None: ... + + def __ge__(self, o: 'QTextBlock') -> bool: ... + def textFormats(self) -> 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') -> None: ... + def userData(self) -> 'QTextBlockUserData|None': ... + def previous(self) -> 'QTextBlock': ... + def next(self) -> 'QTextBlock': ... + def end(self) -> 'QTextBlock.iterator': ... + def begin(self) -> 'QTextBlock.iterator': ... + def textList(self) -> QTextList|None: ... + def document(self) -> QTextDocument|None: ... + def text(self) -> str: ... + def charFormatIndex(self) -> int: ... + def charFormat(self) -> QTextCharFormat: ... + def blockFormatIndex(self) -> int: ... + def blockFormat(self) -> QTextBlockFormat: ... + def layout(self) -> QTextLayout|None: ... + def contains(self, position: int) -> bool: ... + def length(self) -> int: ... + def position(self) -> int: ... + def __lt__(self, o: 'QTextBlock') -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def isValid(self) -> bool: ... + + +class QTextFragment(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, o: 'QTextFragment') -> None: ... + + def __ge__(self, o: 'QTextFragment') -> bool: ... + def glyphRuns(self, from_: int = ..., length: int = ...) -> 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 __lt__(self, o: 'QTextFragment') -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def isValid(self) -> bool: ... + + +class QTextBlockUserData(PyQt6.sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextBlockUserData') -> None: ... + + +class QTextOption(PyQt6.sip.simplewrapper): + + class TabType(enum.Enum): + LeftTab = ... # type: QTextOption.TabType + RightTab = ... # type: QTextOption.TabType + CenterTab = ... # type: QTextOption.TabType + DelimiterTab = ... # type: QTextOption.TabType + + class Flag(enum.Flag): + IncludeTrailingSpaces = ... # type: QTextOption.Flag + ShowTabsAndSpaces = ... # type: QTextOption.Flag + ShowLineAndParagraphSeparators = ... # type: QTextOption.Flag + AddSpaceForLineAndParagraphSeparators = ... # type: QTextOption.Flag + SuppressColors = ... # type: QTextOption.Flag + ShowDocumentTerminator = ... # type: QTextOption.Flag + ShowDefaultIgnorables = ... # type: QTextOption.Flag + DisableEmojiParsing = ... # type: QTextOption.Flag + + class WrapMode(enum.Enum): + NoWrap = ... # type: QTextOption.WrapMode + WordWrap = ... # type: QTextOption.WrapMode + ManualWrap = ... # type: QTextOption.WrapMode + WrapAnywhere = ... # type: QTextOption.WrapMode + WrapAtWordBoundaryOrAnywhere = ... # type: QTextOption.WrapMode + + class Tab(PyQt6.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: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, 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) -> list['QTextOption.Tab']: ... + def setTabs(self, tabStops: collections.abc.Iterable['QTextOption.Tab']) -> None: ... + def setFlags(self, flags: 'QTextOption.Flag') -> None: ... + def setAlignment(self, aalignment: QtCore.Qt.AlignmentFlag) -> None: ... + def useDesignMetrics(self) -> bool: ... + def setUseDesignMetrics(self, b: bool) -> None: ... + def tabArray(self) -> list[float]: ... + def setTabArray(self, tabStops: collections.abc.Iterable[float]) -> None: ... + def flags(self) -> 'QTextOption.Flag': ... + 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.AlignmentFlag: ... + + +class QTextTableCell(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, o: 'QTextTableCell') -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + 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) -> 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 QTransform(PyQt6.sip.simplewrapper): + + class TransformationType(enum.Enum): + 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, h11: float, h12: float, h13: float, h21: float, h22: float, h23: float, h31: float, h32: float, h33: 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 __truediv__(self, n: float) -> 'QTransform': ... + def __add__(self, n: float) -> 'QTransform': ... + def __sub__(self, n: float) -> 'QTransform': ... + def __hash__(self) -> int: ... + def __isub__(self, num: float) -> 'QTransform': ... + def __iadd__(self, num: float) -> 'QTransform': ... + def __itruediv__(self, div: float) -> 'QTransform': ... + @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: QtCore.QPointF) -> 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: ... + def __matmul__(self, o: 'QTransform') -> 'QTransform': ... + @typing.overload + def __mul__(self, o: 'QTransform') -> 'QTransform': ... + @typing.overload + def __mul__(self, n: float) -> 'QTransform': ... + def __imatmul__(self, a0: 'QTransform') -> 'QTransform': ... + @typing.overload + def __imul__(self, a0: 'QTransform') -> 'QTransform': ... + @typing.overload + def __imul__(self, num: float) -> 'QTransform': ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + @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: ... + @typing.overload + def rotateRadians(self, angle: float, axis: QtCore.Qt.Axis = ...) -> 'QTransform': ... + @typing.overload + def rotateRadians(self, a: float, axis: QtCore.Qt.Axis, distanceToPlane: float) -> 'QTransform': ... + @typing.overload + def rotate(self, angle: float, axis: QtCore.Qt.Axis = ...) -> 'QTransform': ... + @typing.overload + def rotate(self, a: float, axis: QtCore.Qt.Axis, distanceToPlane: float) -> '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 QUndoGroup(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + undoTextChanged: typing.ClassVar[QtCore.pyqtSignal] + redoTextChanged: typing.ClassVar[QtCore.pyqtSignal] + indexChanged: typing.ClassVar[QtCore.pyqtSignal] + cleanChanged: typing.ClassVar[QtCore.pyqtSignal] + canUndoChanged: typing.ClassVar[QtCore.pyqtSignal] + canRedoChanged: typing.ClassVar[QtCore.pyqtSignal] + activeStackChanged: typing.ClassVar[QtCore.pyqtSignal] + def undo(self) -> None: ... + def setActiveStack(self, stack: 'QUndoStack|None') -> 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|None, prefix: str|None = ...) -> QAction|None: ... + def createRedoAction(self, parent: QtCore.QObject|None, prefix: str|None = ...) -> QAction|None: ... + def activeStack(self) -> 'QUndoStack|None': ... + def stacks(self) -> list['QUndoStack']: ... + def removeStack(self, stack: 'QUndoStack|None') -> None: ... + def addStack(self, stack: 'QUndoStack|None') -> None: ... + + +class QUndoCommand(PyQt6.sip.wrapper): + + @typing.overload + def __init__(self, parent: 'QUndoCommand|None' = ...) -> None: ... + @typing.overload + def __init__(self, text: str|None, parent: 'QUndoCommand|None' = ...) -> None: ... + + def setObsolete(self, obsolete: bool) -> None: ... + def isObsolete(self) -> bool: ... + def actionText(self) -> str: ... + def child(self, index: int) -> 'QUndoCommand|None': ... + def childCount(self) -> int: ... + def undo(self) -> None: ... + def text(self) -> str: ... + def setText(self, text: str|None) -> None: ... + def redo(self) -> None: ... + def mergeWith(self, other: 'QUndoCommand|None') -> bool: ... + def id(self) -> int: ... + + +class QUndoStack(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def command(self, index: int) -> QUndoCommand|None: ... + def undoLimit(self) -> int: ... + def setUndoLimit(self, limit: int) -> None: ... + undoTextChanged: typing.ClassVar[QtCore.pyqtSignal] + redoTextChanged: typing.ClassVar[QtCore.pyqtSignal] + indexChanged: typing.ClassVar[QtCore.pyqtSignal] + cleanChanged: typing.ClassVar[QtCore.pyqtSignal] + canUndoChanged: typing.ClassVar[QtCore.pyqtSignal] + canRedoChanged: typing.ClassVar[QtCore.pyqtSignal] + 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) -> None: ... + def cleanIndex(self) -> int: ... + def isClean(self) -> bool: ... + def isActive(self) -> bool: ... + def createRedoAction(self, parent: QtCore.QObject|None, prefix: str|None = ...) -> QAction|None: ... + def createUndoAction(self, parent: QtCore.QObject|None, prefix: str|None = ...) -> QAction|None: ... + 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) -> None: ... + def clear(self) -> None: ... + + +class QValidator(QtCore.QObject): + + class State(enum.Enum): + Invalid = ... # type: QValidator.State + Intermediate = ... # type: QValidator.State + Acceptable = ... # type: QValidator.State + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + changed: typing.ClassVar[QtCore.pyqtSignal] + def locale(self) -> QtCore.QLocale: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + def fixup(self, a0: str|None) -> str: ... + def validate(self, a0: str|None, a1: int) -> typing.Tuple['QValidator.State', str, int]: ... + + +class QIntValidator(QValidator): + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, bottom: int, top: int, parent: QtCore.QObject|None = ...) -> 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|None) -> str: ... + def validate(self, a0: str|None, a1: int) -> typing.Tuple[QValidator.State, str, int]: ... + + +class QDoubleValidator(QValidator): + + class Notation(enum.Enum): + StandardNotation = ... # type: QDoubleValidator.Notation + ScientificNotation = ... # type: QDoubleValidator.Notation + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, bottom: float, top: float, decimals: int, parent: QtCore.QObject|None = ...) -> None: ... + + def fixup(self, input: str|None) -> 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, bottom: float, top: float, decimals: int = ...) -> None: ... + def validate(self, a0: str|None, a1: int) -> typing.Tuple[QValidator.State, str, int]: ... + + +class QRegularExpressionValidator(QValidator): + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, re: QtCore.QRegularExpression, parent: QtCore.QObject|None = ...) -> None: ... + + def setRegularExpression(self, re: QtCore.QRegularExpression) -> None: ... + def regularExpression(self) -> QtCore.QRegularExpression: ... + def validate(self, input: str|None, pos: int) -> typing.Tuple[QValidator.State, str, int]: ... + + +class QVector2D(PyQt6.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: QtCore.QPointF) -> 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 __ne__(self, other: object): ... + def __eq__(self, other: object): ... + @typing.overload + def __truediv__(self, divisor: 'QVector2D') -> 'QVector2D': ... + @typing.overload + def __truediv__(self, divisor: float) -> 'QVector2D': ... + def __add__(self, v2: 'QVector2D') -> 'QVector2D': ... + def __sub__(self, v2: 'QVector2D') -> 'QVector2D': ... + @typing.overload + def __mul__(self, v2: 'QVector2D') -> 'QVector2D': ... + @typing.overload + def __mul__(self, factor: float) -> 'QVector2D': ... + def __rmul__(self, factor: float) -> 'QVector2D': ... + def __neg__(self) -> 'QVector2D': ... + def toPointF(self) -> QtCore.QPointF: ... + def toPoint(self) -> QtCore.QPoint: ... + def toVector4D(self) -> 'QVector4D': ... + def toVector3D(self) -> 'QVector3D': ... + @staticmethod + def dotProduct(v1: 'QVector2D', v2: 'QVector2D') -> float: ... + @typing.overload + def __itruediv__(self, divisor: float) -> 'QVector2D': ... + @typing.overload + def __itruediv__(self, vector: 'QVector2D') -> 'QVector2D': ... + @typing.overload + def __imul__(self, factor: float) -> 'QVector2D': ... + @typing.overload + def __imul__(self, vector: 'QVector2D') -> 'QVector2D': ... + def __isub__(self, vector: 'QVector2D') -> 'QVector2D': ... + def __iadd__(self, vector: 'QVector2D') -> 'QVector2D': ... + def distanceToLine(self, point: 'QVector2D', direction: 'QVector2D') -> float: ... + def distanceToPoint(self, point: 'QVector2D') -> float: ... + def normalize(self) -> None: ... + def normalized(self) -> 'QVector2D': ... + def lengthSquared(self) -> float: ... + def length(self) -> float: ... + def __getitem__(self, i: int) -> float: ... + def setY(self, y: float) -> None: ... + def setX(self, x: float) -> None: ... + def y(self) -> float: ... + def x(self) -> float: ... + def isNull(self) -> bool: ... + def __repr__(self) -> str: ... + + +class QVector3D(PyQt6.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: QtCore.QPointF) -> None: ... + @typing.overload + def __init__(self, vector: QVector2D, zpos: float) -> None: ... + @typing.overload + def __init__(self, vector: QVector2D) -> None: ... + @typing.overload + def __init__(self, vector: 'QVector4D') -> None: ... + @typing.overload + def __init__(self, a0: 'QVector3D') -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + @typing.overload + def __truediv__(self, divisor: 'QVector3D') -> 'QVector3D': ... + @typing.overload + def __truediv__(self, divisor: float) -> 'QVector3D': ... + def __add__(self, v2: 'QVector3D') -> 'QVector3D': ... + def __sub__(self, v2: 'QVector3D') -> 'QVector3D': ... + @typing.overload + def __mul__(self, matrix: QMatrix4x4) -> 'QVector3D': ... + @typing.overload + def __mul__(self, v2: 'QVector3D') -> 'QVector3D': ... + @typing.overload + def __mul__(self, factor: float) -> 'QVector3D': ... + def __rmul__(self, factor: float) -> 'QVector3D': ... + def __neg__(self) -> 'QVector3D': ... + def toPointF(self) -> QtCore.QPointF: ... + def toPoint(self) -> QtCore.QPoint: ... + 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: ... + def distanceToPoint(self, point: 'QVector3D') -> float: ... + def unproject(self, modelView: QMatrix4x4, projection: QMatrix4x4, viewport: QtCore.QRect) -> 'QVector3D': ... + def project(self, modelView: QMatrix4x4, projection: QMatrix4x4, viewport: QtCore.QRect) -> 'QVector3D': ... + @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: ... + @typing.overload + def __itruediv__(self, divisor: float) -> 'QVector3D': ... + @typing.overload + def __itruediv__(self, vector: 'QVector3D') -> 'QVector3D': ... + @typing.overload + def __imul__(self, factor: float) -> 'QVector3D': ... + @typing.overload + def __imul__(self, vector: 'QVector3D') -> 'QVector3D': ... + def __isub__(self, vector: 'QVector3D') -> 'QVector3D': ... + def __iadd__(self, vector: 'QVector3D') -> 'QVector3D': ... + def normalize(self) -> None: ... + def normalized(self) -> 'QVector3D': ... + def lengthSquared(self) -> float: ... + def length(self) -> float: ... + def __getitem__(self, i: int) -> float: ... + def setZ(self, z: float) -> None: ... + def setY(self, y: float) -> None: ... + def setX(self, x: float) -> None: ... + def z(self) -> float: ... + def y(self) -> float: ... + def x(self) -> float: ... + def isNull(self) -> bool: ... + def __repr__(self) -> str: ... + + +class QVector4D(PyQt6.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: QtCore.QPointF) -> 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 __ne__(self, other: object): ... + def __eq__(self, other: object): ... + @typing.overload + def __truediv__(self, divisor: 'QVector4D') -> 'QVector4D': ... + @typing.overload + def __truediv__(self, divisor: float) -> 'QVector4D': ... + def __add__(self, v2: 'QVector4D') -> 'QVector4D': ... + def __sub__(self, v2: 'QVector4D') -> 'QVector4D': ... + @typing.overload + def __mul__(self, matrix: QMatrix4x4) -> 'QVector4D': ... + @typing.overload + def __mul__(self, v2: 'QVector4D') -> 'QVector4D': ... + @typing.overload + def __mul__(self, factor: float) -> 'QVector4D': ... + def __rmul__(self, factor: float) -> 'QVector4D': ... + def __neg__(self) -> 'QVector4D': ... + def toPointF(self) -> QtCore.QPointF: ... + def toPoint(self) -> QtCore.QPoint: ... + def toVector3DAffine(self) -> QVector3D: ... + def toVector3D(self) -> QVector3D: ... + def toVector2DAffine(self) -> QVector2D: ... + def toVector2D(self) -> QVector2D: ... + @staticmethod + def dotProduct(v1: 'QVector4D', v2: 'QVector4D') -> float: ... + @typing.overload + def __itruediv__(self, divisor: float) -> 'QVector4D': ... + @typing.overload + def __itruediv__(self, vector: 'QVector4D') -> 'QVector4D': ... + @typing.overload + def __imul__(self, factor: float) -> 'QVector4D': ... + @typing.overload + def __imul__(self, vector: 'QVector4D') -> 'QVector4D': ... + def __isub__(self, vector: 'QVector4D') -> 'QVector4D': ... + def __iadd__(self, vector: 'QVector4D') -> 'QVector4D': ... + def normalize(self) -> None: ... + def normalized(self) -> 'QVector4D': ... + def lengthSquared(self) -> float: ... + def length(self) -> float: ... + def __getitem__(self, i: int) -> float: ... + def setW(self, w: float) -> None: ... + def setZ(self, z: float) -> None: ... + def setY(self, y: float) -> None: ... + def setX(self, x: float) -> None: ... + def w(self) -> float: ... + def z(self) -> float: ... + def y(self) -> float: ... + def x(self) -> float: ... + def isNull(self) -> bool: ... + def __repr__(self) -> str: ... + + +@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: QVector4D, v2: QVector4D) -> bool: ... +@typing.overload +def qFuzzyCompare(v1: QVector3D, v2: QVector3D) -> bool: ... +@typing.overload +def qFuzzyCompare(v1: QVector2D, v2: QVector2D) -> bool: ... +def qt_set_sequence_auto_mnemonic(b: bool) -> None: ... diff --git a/typings/PyQt6/QtHelp.pyi b/typings/PyQt6/QtHelp.pyi new file mode 100644 index 00000000..1c96f473 --- /dev/null +++ b/typings/PyQt6/QtHelp.pyi @@ -0,0 +1,306 @@ +# The PEP 484 type hints stub file for the QtHelp module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui +from PyQt6 import QtWidgets + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QCompressedHelpInfo(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QCompressedHelpInfo') -> None: ... + + def isNull(self) -> bool: ... + @staticmethod + def fromCompressedHelpFile(documentationFileName: str|None) -> 'QCompressedHelpInfo': ... + def version(self) -> QtCore.QVersionNumber: ... + def component(self) -> str: ... + def namespaceName(self) -> str: ... + def swap(self, other: 'QCompressedHelpInfo') -> None: ... + + +class QHelpContentItem(PyQt6.sip.simplewrapper): + + def childPosition(self, child: 'QHelpContentItem|None') -> int: ... + def parent(self) -> 'QHelpContentItem|None': ... + def row(self) -> int: ... + def url(self) -> QtCore.QUrl: ... + def title(self) -> str: ... + def childCount(self) -> int: ... + def child(self, row: int) -> 'QHelpContentItem|None': ... + + +class QHelpContentModel(QtCore.QAbstractItemModel): + + contentsCreated: typing.ClassVar[QtCore.pyqtSignal] + contentsCreationStarted: typing.ClassVar[QtCore.pyqtSignal] + 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|None: ... + def createContentsForCurrentFilter(self) -> None: ... + def createContents(self, customFilterName: str|None) -> None: ... + + +class QHelpContentWidget(QtWidgets.QTreeView): + + linkActivated: typing.ClassVar[QtCore.pyqtSignal] + def indexOf(self, link: QtCore.QUrl) -> QtCore.QModelIndex: ... + + +class QHelpEngineCore(QtCore.QObject): + + def __init__(self, collectionFile: str|None, parent: QtCore.QObject|None = ...) -> None: ... + + def setReadOnly(self, enable: bool) -> None: ... + def isReadOnly(self) -> bool: ... + @typing.overload + def documentsForKeyword(self, keyword: str|None) -> list['QHelpLink']: ... + @typing.overload + def documentsForKeyword(self, keyword: str|None, filterName: str|None) -> list['QHelpLink']: ... + @typing.overload + def documentsForIdentifier(self, id: str|None) -> list['QHelpLink']: ... + @typing.overload + def documentsForIdentifier(self, id: str|None, filterName: str|None) -> list['QHelpLink']: ... + def usesFilterEngine(self) -> bool: ... + def setUsesFilterEngine(self, uses: bool) -> None: ... + def files(self, namespaceName: str|None, filterName: str|None, extensionFilter: str|None = ...) -> list[QtCore.QUrl]: ... + def filterEngine(self) -> 'QHelpFilterEngine|None': ... + warning: typing.ClassVar[QtCore.pyqtSignal] + setupFinished: typing.ClassVar[QtCore.pyqtSignal] + setupStarted: typing.ClassVar[QtCore.pyqtSignal] + def setAutoSaveFilter(self, save: bool) -> None: ... + def autoSaveFilter(self) -> bool: ... + def error(self) -> str: ... + @staticmethod + def metaData(documentationFileName: str|None, name: str|None) -> typing.Any: ... + def setCustomValue(self, key: str|None, value: typing.Any) -> bool: ... + def customValue(self, key: str|None, defaultValue: typing.Any = ...) -> typing.Any: ... + def removeCustomValue(self, key: str|None) -> bool: ... + def fileData(self, url: QtCore.QUrl) -> QtCore.QByteArray: ... + def findFile(self, url: QtCore.QUrl) -> QtCore.QUrl: ... + def registeredDocumentations(self) -> list[str]: ... + def documentationFileName(self, namespaceName: str|None) -> str: ... + def unregisterDocumentation(self, namespaceName: str|None) -> bool: ... + def registerDocumentation(self, documentationFileName: str|None) -> bool: ... + @staticmethod + def namespaceName(documentationFileName: str|None) -> str: ... + def copyCollectionFile(self, fileName: str|None) -> bool: ... + def setCollectionFile(self, fileName: str|None) -> None: ... + def collectionFile(self) -> str: ... + def setupData(self) -> bool: ... + + +class QHelpEngine(QHelpEngineCore): + + def __init__(self, collectionFile: str|None, parent: QtCore.QObject|None = ...) -> None: ... + + def searchEngine(self) -> 'QHelpSearchEngine|None': ... + def indexWidget(self) -> 'QHelpIndexWidget|None': ... + def contentWidget(self) -> QHelpContentWidget|None: ... + def indexModel(self) -> 'QHelpIndexModel|None': ... + def contentModel(self) -> QHelpContentModel|None: ... + + +class QHelpFilterData(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QHelpFilterData') -> None: ... + + def __ne__(self, other: object): ... + def versions(self) -> list[QtCore.QVersionNumber]: ... + def components(self) -> list[str]: ... + def setVersions(self, versions: collections.abc.Iterable[QtCore.QVersionNumber]) -> None: ... + def setComponents(self, components: collections.abc.Iterable[str|None]) -> None: ... + def swap(self, other: 'QHelpFilterData') -> None: ... + def __eq__(self, other: object): ... + + +class QHelpFilterEngine(QtCore.QObject): + + @typing.overload + def indices(self) -> list[str]: ... + @typing.overload + def indices(self, filterName: str|None) -> list[str]: ... + def availableVersions(self) -> list[QtCore.QVersionNumber]: ... + filterActivated: typing.ClassVar[QtCore.pyqtSignal] + def namespacesForFilter(self, filterName: str|None) -> list[str]: ... + def removeFilter(self, filterName: str|None) -> bool: ... + def setFilterData(self, filterName: str|None, filterData: QHelpFilterData) -> bool: ... + def filterData(self, filterName: str|None) -> QHelpFilterData: ... + def availableComponents(self) -> list[str]: ... + def setActiveFilter(self, filterName: str|None) -> bool: ... + def activeFilter(self) -> str: ... + def filters(self) -> list[str]: ... + def namespaceToVersion(self) -> dict[str, QtCore.QVersionNumber]: ... + def namespaceToComponent(self) -> dict[str, str]: ... + + +class QHelpFilterSettingsWidget(QtWidgets.QWidget): + + def __init__(self, parent: QtWidgets.QWidget|None = ...) -> None: ... + + def applySettings(self, filterEngine: QHelpFilterEngine|None) -> bool: ... + def readSettings(self, filterEngine: QHelpFilterEngine|None) -> None: ... + def setAvailableVersions(self, versions: collections.abc.Iterable[QtCore.QVersionNumber]) -> None: ... + def setAvailableComponents(self, components: collections.abc.Iterable[str|None]) -> None: ... + + +class QHelpIndexModel(QtCore.QStringListModel): + + indexCreated: typing.ClassVar[QtCore.pyqtSignal] + indexCreationStarted: typing.ClassVar[QtCore.pyqtSignal] + def isCreatingIndex(self) -> bool: ... + def filter(self, filter: str|None, wildcard: str|None = ...) -> QtCore.QModelIndex: ... + def createIndexForCurrentFilter(self) -> None: ... + def createIndex(self, customFilterName: str|None) -> None: ... + def helpEngine(self) -> QHelpEngineCore|None: ... + + +class QHelpIndexWidget(QtWidgets.QListView): + + documentsActivated: typing.ClassVar[QtCore.pyqtSignal] + documentActivated: typing.ClassVar[QtCore.pyqtSignal] + def activateCurrentItem(self) -> None: ... + def filterIndices(self, filter: str|None, wildcard: str|None = ...) -> None: ... + + +class QHelpLink(PyQt6.sip.simplewrapper): + + title = ... # type: str|None + url = ... # type: QtCore.QUrl + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QHelpLink') -> None: ... + + +class QHelpSearchQuery(PyQt6.sip.simplewrapper): + + class FieldName(enum.Enum): + 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: collections.abc.Iterable[str|None]) -> None: ... + @typing.overload + def __init__(self, a0: 'QHelpSearchQuery') -> None: ... + + +class QHelpSearchEngine(QtCore.QObject): + + def __init__(self, helpEngine: QHelpEngineCore|None, parent: QtCore.QObject|None = ...) -> None: ... + + def search(self, searchInput: str|None) -> None: ... + def searchInput(self) -> str: ... + def searchResults(self, start: int, end: int) -> list['QHelpSearchResult']: ... + def searchResultCount(self) -> int: ... + searchingFinished: typing.ClassVar[QtCore.pyqtSignal] + searchingStarted: typing.ClassVar[QtCore.pyqtSignal] + indexingFinished: typing.ClassVar[QtCore.pyqtSignal] + indexingStarted: typing.ClassVar[QtCore.pyqtSignal] + def cancelSearching(self) -> None: ... + def cancelIndexing(self) -> None: ... + def reindexDocumentation(self) -> None: ... + def resultWidget(self) -> 'QHelpSearchResultWidget|None': ... + def queryWidget(self) -> 'QHelpSearchQueryWidget|None': ... + + +class QHelpSearchEngineCore(QtCore.QObject): + + def __init__(self, helpEngine: QHelpEngineCore|None, parent: QtCore.QObject|None = ...) -> None: ... + + searchingFinished: typing.ClassVar[QtCore.pyqtSignal] + searchingStarted: typing.ClassVar[QtCore.pyqtSignal] + indexingFinished: typing.ClassVar[QtCore.pyqtSignal] + indexingStarted: typing.ClassVar[QtCore.pyqtSignal] + def cancelSearching(self) -> None: ... + def search(self, searchInput: str|None) -> None: ... + def cancelIndexing(self) -> None: ... + def reindexDocumentation(self) -> None: ... + def searchInput(self) -> str: ... + def searchResults(self, start: int, end: int) -> list['QHelpSearchResult']: ... + def searchResultCount(self) -> int: ... + + +class QHelpSearchQueryWidget(QtWidgets.QWidget): + + def __init__(self, parent: QtWidgets.QWidget|None = ...) -> None: ... + + def setSearchInput(self, searchInput: str|None) -> None: ... + def searchInput(self) -> str: ... + def setCompactMode(self, on: bool) -> None: ... + def isCompactMode(self) -> bool: ... + search: typing.ClassVar[QtCore.pyqtSignal] + def collapseExtendedSearch(self) -> None: ... + def expandExtendedSearch(self) -> None: ... + + +class QHelpSearchResult(PyQt6.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|None, snippet: str|None) -> None: ... + + def snippet(self) -> str: ... + def url(self) -> QtCore.QUrl: ... + def title(self) -> str: ... + + +class QHelpSearchResultWidget(QtWidgets.QWidget): + + requestShowLink: typing.ClassVar[QtCore.pyqtSignal] + def linkAt(self, point: QtCore.QPoint) -> QtCore.QUrl: ... diff --git a/typings/PyQt6/QtMultimedia.pyi b/typings/PyQt6/QtMultimedia.pyi new file mode 100644 index 00000000..0e3e3fe5 --- /dev/null +++ b/typings/PyQt6/QtMultimedia.pyi @@ -0,0 +1,1434 @@ +# The PEP 484 type hints stub file for the QtMultimedia module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui +from PyQt6 import QtNetwork + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QtVideo(PyQt6.sip.simplewrapper): + + class Rotation(enum.Enum): + None_ = ... # type: QtVideo.Rotation + Clockwise90 = ... # type: QtVideo.Rotation + Clockwise180 = ... # type: QtVideo.Rotation + Clockwise270 = ... # type: QtVideo.Rotation + + +class QAudio(PyQt6.sip.simplewrapper): + + class VolumeScale(enum.Enum): + LinearVolumeScale = ... # type: QAudio.VolumeScale + CubicVolumeScale = ... # type: QAudio.VolumeScale + LogarithmicVolumeScale = ... # type: QAudio.VolumeScale + DecibelVolumeScale = ... # type: QAudio.VolumeScale + + class State(enum.Enum): + ActiveState = ... # type: QAudio.State + SuspendedState = ... # type: QAudio.State + StoppedState = ... # type: QAudio.State + IdleState = ... # type: QAudio.State + + class Error(enum.Enum): + 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(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, data: QtCore.QByteArray|bytes|bytearray|memoryview, 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) -> PyQt6.sip.voidptr: ... + def constData(self) -> PyQt6.sip.voidptr: ... + def detach(self) -> None: ... + def swap(self, other: 'QAudioBuffer') -> None: ... + 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 QAudioBufferInput(QtCore.QObject): + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, format: 'QAudioFormat', parent: QtCore.QObject|None = ...) -> None: ... + + readyToSendAudioBuffer: typing.ClassVar[QtCore.pyqtSignal] + def sendAudioBuffer(self, audioBuffer: QAudioBuffer) -> bool: ... + def format(self) -> 'QAudioFormat': ... + def captureSession(self) -> 'QMediaCaptureSession|None': ... + + +class QAudioBufferOutput(QtCore.QObject): + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, format: 'QAudioFormat', parent: QtCore.QObject|None = ...) -> None: ... + + audioBufferReceived: typing.ClassVar[QtCore.pyqtSignal] + def format(self) -> 'QAudioFormat': ... + + +class QAudioDecoder(QtCore.QObject): + + class Error(enum.Enum): + NoError = ... # type: QAudioDecoder.Error + ResourceError = ... # type: QAudioDecoder.Error + FormatError = ... # type: QAudioDecoder.Error + AccessDeniedError = ... # type: QAudioDecoder.Error + NotSupportedError = ... # type: QAudioDecoder.Error + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + formatChanged: typing.ClassVar[QtCore.pyqtSignal] + durationChanged: typing.ClassVar[QtCore.pyqtSignal] + positionChanged: typing.ClassVar[QtCore.pyqtSignal] + sourceChanged: typing.ClassVar[QtCore.pyqtSignal] + isDecodingChanged: typing.ClassVar[QtCore.pyqtSignal] + finished: typing.ClassVar[QtCore.pyqtSignal] + bufferReady: typing.ClassVar[QtCore.pyqtSignal] + bufferAvailableChanged: typing.ClassVar[QtCore.pyqtSignal] + def stop(self) -> None: ... + def start(self) -> None: ... + def setAudioFormat(self, format: 'QAudioFormat') -> None: ... + def audioFormat(self) -> 'QAudioFormat': ... + def duration(self) -> int: ... + def position(self) -> int: ... + def bufferAvailable(self) -> bool: ... + def read(self) -> QAudioBuffer: ... + def errorString(self) -> str: ... + error: typing.ClassVar[QtCore.pyqtSignal] + def setSourceDevice(self, device: QtCore.QIODevice|None) -> None: ... + def sourceDevice(self) -> QtCore.QIODevice|None: ... + def setSource(self, fileName: QtCore.QUrl) -> None: ... + def source(self) -> QtCore.QUrl: ... + def isDecoding(self) -> bool: ... + def isSupported(self) -> bool: ... + + +class QAudioDevice(PyQt6.sip.simplewrapper): + + class Mode(enum.Enum): + Null = ... # type: QAudioDevice.Mode + Input = ... # type: QAudioDevice.Mode + Output = ... # type: QAudioDevice.Mode + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QAudioDevice') -> None: ... + + def channelConfiguration(self) -> 'QAudioFormat.ChannelConfig': ... + def supportedSampleFormats(self) -> list['QAudioFormat.SampleFormat']: ... + def maximumChannelCount(self) -> int: ... + def minimumChannelCount(self) -> int: ... + def maximumSampleRate(self) -> int: ... + def minimumSampleRate(self) -> int: ... + def preferredFormat(self) -> 'QAudioFormat': ... + def isFormatSupported(self, format: 'QAudioFormat') -> bool: ... + def mode(self) -> 'QAudioDevice.Mode': ... + def isDefault(self) -> bool: ... + def description(self) -> str: ... + def id(self) -> QtCore.QByteArray: ... + def isNull(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def swap(self, other: 'QAudioDevice') -> None: ... + + +class QAudioFormat(PyQt6.sip.simplewrapper): + + class SampleFormat(enum.Enum): + Unknown = ... # type: QAudioFormat.SampleFormat + UInt8 = ... # type: QAudioFormat.SampleFormat + Int16 = ... # type: QAudioFormat.SampleFormat + Int32 = ... # type: QAudioFormat.SampleFormat + Float = ... # type: QAudioFormat.SampleFormat + + class ChannelConfig(enum.Enum): + ChannelConfigUnknown = ... # type: QAudioFormat.ChannelConfig + ChannelConfigMono = ... # type: QAudioFormat.ChannelConfig + ChannelConfigStereo = ... # type: QAudioFormat.ChannelConfig + ChannelConfig2Dot1 = ... # type: QAudioFormat.ChannelConfig + ChannelConfig3Dot0 = ... # type: QAudioFormat.ChannelConfig + ChannelConfig3Dot1 = ... # type: QAudioFormat.ChannelConfig + ChannelConfigSurround5Dot0 = ... # type: QAudioFormat.ChannelConfig + ChannelConfigSurround5Dot1 = ... # type: QAudioFormat.ChannelConfig + ChannelConfigSurround7Dot0 = ... # type: QAudioFormat.ChannelConfig + ChannelConfigSurround7Dot1 = ... # type: QAudioFormat.ChannelConfig + + class AudioChannelPosition(enum.Enum): + UnknownPosition = ... # type: QAudioFormat.AudioChannelPosition + FrontLeft = ... # type: QAudioFormat.AudioChannelPosition + FrontRight = ... # type: QAudioFormat.AudioChannelPosition + FrontCenter = ... # type: QAudioFormat.AudioChannelPosition + LFE = ... # type: QAudioFormat.AudioChannelPosition + BackLeft = ... # type: QAudioFormat.AudioChannelPosition + BackRight = ... # type: QAudioFormat.AudioChannelPosition + FrontLeftOfCenter = ... # type: QAudioFormat.AudioChannelPosition + FrontRightOfCenter = ... # type: QAudioFormat.AudioChannelPosition + BackCenter = ... # type: QAudioFormat.AudioChannelPosition + LFE2 = ... # type: QAudioFormat.AudioChannelPosition + SideLeft = ... # type: QAudioFormat.AudioChannelPosition + SideRight = ... # type: QAudioFormat.AudioChannelPosition + TopFrontLeft = ... # type: QAudioFormat.AudioChannelPosition + TopFrontRight = ... # type: QAudioFormat.AudioChannelPosition + TopFrontCenter = ... # type: QAudioFormat.AudioChannelPosition + TopCenter = ... # type: QAudioFormat.AudioChannelPosition + TopBackLeft = ... # type: QAudioFormat.AudioChannelPosition + TopBackRight = ... # type: QAudioFormat.AudioChannelPosition + TopSideLeft = ... # type: QAudioFormat.AudioChannelPosition + TopSideRight = ... # type: QAudioFormat.AudioChannelPosition + TopBackCenter = ... # type: QAudioFormat.AudioChannelPosition + BottomFrontCenter = ... # type: QAudioFormat.AudioChannelPosition + BottomFrontLeft = ... # type: QAudioFormat.AudioChannelPosition + BottomFrontRight = ... # type: QAudioFormat.AudioChannelPosition + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAudioFormat') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @staticmethod + def defaultChannelConfigForChannelCount(channelCount: int) -> 'QAudioFormat.ChannelConfig': ... + def normalizedSampleValue(self, sample: PyQt6.sip.voidptr) -> float: ... + def bytesPerSample(self) -> int: ... + def sampleFormat(self) -> 'QAudioFormat.SampleFormat': ... + def setSampleFormat(self, f: 'QAudioFormat.SampleFormat') -> None: ... + def channelOffset(self, channel: 'QAudioFormat.AudioChannelPosition') -> int: ... + def channelConfig(self) -> 'QAudioFormat.ChannelConfig': ... + def setChannelConfig(self, config: 'QAudioFormat.ChannelConfig') -> 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 isValid(self) -> bool: ... + + +class QAudioInput(QtCore.QObject): + + @typing.overload + def __init__(self, deviceInfo: QAudioDevice, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + mutedChanged: typing.ClassVar[QtCore.pyqtSignal] + volumeChanged: typing.ClassVar[QtCore.pyqtSignal] + deviceChanged: typing.ClassVar[QtCore.pyqtSignal] + def setVolume(self, volume: float) -> None: ... + def setMuted(self, muted: bool) -> None: ... + def setDevice(self, device: QAudioDevice) -> None: ... + def isMuted(self) -> bool: ... + def volume(self) -> float: ... + def device(self) -> QAudioDevice: ... + + +class QAudioOutput(QtCore.QObject): + + @typing.overload + def __init__(self, device: QAudioDevice, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + mutedChanged: typing.ClassVar[QtCore.pyqtSignal] + volumeChanged: typing.ClassVar[QtCore.pyqtSignal] + deviceChanged: typing.ClassVar[QtCore.pyqtSignal] + def setMuted(self, muted: bool) -> None: ... + def setVolume(self, volume: float) -> None: ... + def setDevice(self, device: QAudioDevice) -> None: ... + def isMuted(self) -> bool: ... + def device(self) -> QAudioDevice: ... + def volume(self) -> float: ... + + +class QAudioSink(QtCore.QObject): + + @typing.overload + def __init__(self, audioDeviceInfo: QAudioDevice, format: QAudioFormat = ..., parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, format: QAudioFormat = ..., parent: QtCore.QObject|None = ...) -> None: ... + + def framesFree(self) -> int: ... + def bufferFrameCount(self) -> int: ... + def setBufferFrameCount(self, framesCount: int) -> None: ... + stateChanged: typing.ClassVar[QtCore.pyqtSignal] + def volume(self) -> float: ... + def setVolume(self, a0: float) -> None: ... + def state(self) -> QAudio.State: ... + def error(self) -> QAudio.Error: ... + def elapsedUSecs(self) -> int: ... + def processedUSecs(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) -> None: ... + @typing.overload + def start(self) -> QtCore.QIODevice|None: ... + def format(self) -> QAudioFormat: ... + + +class QAudioSource(QtCore.QObject): + + @typing.overload + def __init__(self, audioDeviceInfo: QAudioDevice, format: QAudioFormat = ..., parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, format: QAudioFormat = ..., parent: QtCore.QObject|None = ...) -> None: ... + + def framesAvailable(self) -> int: ... + def bufferFrameCount(self) -> int: ... + def setBufferFrameCount(self, frames: int) -> None: ... + stateChanged: typing.ClassVar[QtCore.pyqtSignal] + def state(self) -> QAudio.State: ... + def error(self) -> QAudio.Error: ... + def elapsedUSecs(self) -> int: ... + def processedUSecs(self) -> int: ... + def volume(self) -> float: ... + def setVolume(self, volume: float) -> None: ... + def bytesAvailable(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) -> None: ... + @typing.overload + def start(self) -> QtCore.QIODevice|None: ... + def format(self) -> QAudioFormat: ... + + +class QCamera(QtCore.QObject): + + class Feature(enum.Enum): + ColorTemperature = ... # type: QCamera.Feature + ExposureCompensation = ... # type: QCamera.Feature + IsoSensitivity = ... # type: QCamera.Feature + ManualExposureTime = ... # type: QCamera.Feature + CustomFocusPoint = ... # type: QCamera.Feature + FocusDistance = ... # type: QCamera.Feature + + class WhiteBalanceMode(enum.Enum): + WhiteBalanceAuto = ... # type: QCamera.WhiteBalanceMode + WhiteBalanceManual = ... # type: QCamera.WhiteBalanceMode + WhiteBalanceSunlight = ... # type: QCamera.WhiteBalanceMode + WhiteBalanceCloudy = ... # type: QCamera.WhiteBalanceMode + WhiteBalanceShade = ... # type: QCamera.WhiteBalanceMode + WhiteBalanceTungsten = ... # type: QCamera.WhiteBalanceMode + WhiteBalanceFluorescent = ... # type: QCamera.WhiteBalanceMode + WhiteBalanceFlash = ... # type: QCamera.WhiteBalanceMode + WhiteBalanceSunset = ... # type: QCamera.WhiteBalanceMode + + class ExposureMode(enum.Enum): + ExposureAuto = ... # type: QCamera.ExposureMode + ExposureManual = ... # type: QCamera.ExposureMode + ExposurePortrait = ... # type: QCamera.ExposureMode + ExposureNight = ... # type: QCamera.ExposureMode + ExposureSports = ... # type: QCamera.ExposureMode + ExposureSnow = ... # type: QCamera.ExposureMode + ExposureBeach = ... # type: QCamera.ExposureMode + ExposureAction = ... # type: QCamera.ExposureMode + ExposureLandscape = ... # type: QCamera.ExposureMode + ExposureNightPortrait = ... # type: QCamera.ExposureMode + ExposureTheatre = ... # type: QCamera.ExposureMode + ExposureSunset = ... # type: QCamera.ExposureMode + ExposureSteadyPhoto = ... # type: QCamera.ExposureMode + ExposureFireworks = ... # type: QCamera.ExposureMode + ExposureParty = ... # type: QCamera.ExposureMode + ExposureCandlelight = ... # type: QCamera.ExposureMode + ExposureBarcode = ... # type: QCamera.ExposureMode + + class TorchMode(enum.Enum): + TorchOff = ... # type: QCamera.TorchMode + TorchOn = ... # type: QCamera.TorchMode + TorchAuto = ... # type: QCamera.TorchMode + + class FlashMode(enum.Enum): + FlashOff = ... # type: QCamera.FlashMode + FlashOn = ... # type: QCamera.FlashMode + FlashAuto = ... # type: QCamera.FlashMode + + class FocusMode(enum.Enum): + FocusModeAuto = ... # type: QCamera.FocusMode + FocusModeAutoNear = ... # type: QCamera.FocusMode + FocusModeAutoFar = ... # type: QCamera.FocusMode + FocusModeHyperfocal = ... # type: QCamera.FocusMode + FocusModeInfinity = ... # type: QCamera.FocusMode + FocusModeManual = ... # type: QCamera.FocusMode + + class Error(enum.Enum): + NoError = ... # type: QCamera.Error + CameraError = ... # type: QCamera.Error + + @typing.overload + def __init__(self, cameraDevice: 'QCameraDevice', parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, position: 'QCameraDevice.Position', parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + manualIsoSensitivityChanged: typing.ClassVar[QtCore.pyqtSignal] + manualExposureTimeChanged: typing.ClassVar[QtCore.pyqtSignal] + focusPointChanged: typing.ClassVar[QtCore.pyqtSignal] + colorTemperatureChanged: typing.ClassVar[QtCore.pyqtSignal] + whiteBalanceModeChanged: typing.ClassVar[QtCore.pyqtSignal] + exposureModeChanged: typing.ClassVar[QtCore.pyqtSignal] + exposureCompensationChanged: typing.ClassVar[QtCore.pyqtSignal] + isoSensitivityChanged: typing.ClassVar[QtCore.pyqtSignal] + exposureTimeChanged: typing.ClassVar[QtCore.pyqtSignal] + torchModeChanged: typing.ClassVar[QtCore.pyqtSignal] + flashModeChanged: typing.ClassVar[QtCore.pyqtSignal] + flashReady: typing.ClassVar[QtCore.pyqtSignal] + customFocusPointChanged: typing.ClassVar[QtCore.pyqtSignal] + focusDistanceChanged: typing.ClassVar[QtCore.pyqtSignal] + maximumZoomFactorChanged: typing.ClassVar[QtCore.pyqtSignal] + minimumZoomFactorChanged: typing.ClassVar[QtCore.pyqtSignal] + zoomFactorChanged: typing.ClassVar[QtCore.pyqtSignal] + focusModeChanged: typing.ClassVar[QtCore.pyqtSignal] + supportedFeaturesChanged: typing.ClassVar[QtCore.pyqtSignal] + cameraFormatChanged: typing.ClassVar[QtCore.pyqtSignal] + cameraDeviceChanged: typing.ClassVar[QtCore.pyqtSignal] + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + errorChanged: typing.ClassVar[QtCore.pyqtSignal] + activeChanged: typing.ClassVar[QtCore.pyqtSignal] + def setColorTemperature(self, colorTemperature: int) -> None: ... + def setWhiteBalanceMode(self, mode: 'QCamera.WhiteBalanceMode') -> None: ... + def setAutoExposureTime(self) -> None: ... + def setManualExposureTime(self, seconds: float) -> None: ... + def setAutoIsoSensitivity(self) -> None: ... + def setManualIsoSensitivity(self, iso: int) -> None: ... + def setExposureCompensation(self, ev: float) -> None: ... + def setExposureMode(self, mode: 'QCamera.ExposureMode') -> None: ... + def setTorchMode(self, mode: 'QCamera.TorchMode') -> None: ... + def setFlashMode(self, mode: 'QCamera.FlashMode') -> None: ... + def zoomTo(self, zoom: float, rate: float) -> None: ... + def stop(self) -> None: ... + def start(self) -> None: ... + def setActive(self, active: bool) -> None: ... + def colorTemperature(self) -> int: ... + def isWhiteBalanceModeSupported(self, mode: 'QCamera.WhiteBalanceMode') -> bool: ... + def whiteBalanceMode(self) -> 'QCamera.WhiteBalanceMode': ... + def maximumExposureTime(self) -> float: ... + def minimumExposureTime(self) -> float: ... + def maximumIsoSensitivity(self) -> int: ... + def minimumIsoSensitivity(self) -> int: ... + def manualExposureTime(self) -> float: ... + def exposureTime(self) -> float: ... + def manualIsoSensitivity(self) -> int: ... + def isoSensitivity(self) -> int: ... + def exposureCompensation(self) -> float: ... + def isExposureModeSupported(self, mode: 'QCamera.ExposureMode') -> bool: ... + def exposureMode(self) -> 'QCamera.ExposureMode': ... + def isTorchModeSupported(self, mode: 'QCamera.TorchMode') -> bool: ... + def torchMode(self) -> 'QCamera.TorchMode': ... + def isFlashReady(self) -> bool: ... + def isFlashModeSupported(self, mode: 'QCamera.FlashMode') -> bool: ... + def flashMode(self) -> 'QCamera.FlashMode': ... + def setZoomFactor(self, factor: float) -> None: ... + def zoomFactor(self) -> float: ... + def maximumZoomFactor(self) -> float: ... + def minimumZoomFactor(self) -> float: ... + def focusDistance(self) -> float: ... + def setFocusDistance(self, d: float) -> None: ... + def setCustomFocusPoint(self, point: QtCore.QPointF) -> None: ... + def customFocusPoint(self) -> QtCore.QPointF: ... + def focusPoint(self) -> QtCore.QPointF: ... + def isFocusModeSupported(self, mode: 'QCamera.FocusMode') -> bool: ... + def setFocusMode(self, mode: 'QCamera.FocusMode') -> None: ... + def focusMode(self) -> 'QCamera.FocusMode': ... + def supportedFeatures(self) -> 'QCamera.Feature': ... + def errorString(self) -> str: ... + def error(self) -> 'QCamera.Error': ... + def setCameraFormat(self, format: 'QCameraFormat') -> None: ... + def cameraFormat(self) -> 'QCameraFormat': ... + def setCameraDevice(self, cameraDevice: 'QCameraDevice') -> None: ... + def cameraDevice(self) -> 'QCameraDevice': ... + def captureSession(self) -> 'QMediaCaptureSession|None': ... + def isActive(self) -> bool: ... + def isAvailable(self) -> bool: ... + + +class QCameraFormat(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QCameraFormat') -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def isNull(self) -> bool: ... + def maxFrameRate(self) -> float: ... + def minFrameRate(self) -> float: ... + def resolution(self) -> QtCore.QSize: ... + def pixelFormat(self) -> 'QVideoFrameFormat.PixelFormat': ... + + +class QCameraDevice(PyQt6.sip.simplewrapper): + + class Position(enum.Enum): + UnspecifiedPosition = ... # type: QCameraDevice.Position + BackFace = ... # type: QCameraDevice.Position + FrontFace = ... # type: QCameraDevice.Position + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QCameraDevice') -> None: ... + + def correctionAngle(self) -> QtVideo.Rotation: ... + def videoFormats(self) -> list[QCameraFormat]: ... + def photoResolutions(self) -> list[QtCore.QSize]: ... + def position(self) -> 'QCameraDevice.Position': ... + def isDefault(self) -> bool: ... + def description(self) -> str: ... + def id(self) -> QtCore.QByteArray: ... + def isNull(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + +class QCapturableWindow(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, window: QtGui.QWindow|None) -> None: ... + @typing.overload + def __init__(self, other: 'QCapturableWindow') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def description(self) -> str: ... + def isValid(self) -> bool: ... + def swap(self, other: 'QCapturableWindow') -> None: ... + + +class QImageCapture(QtCore.QObject): + + class FileFormat(enum.Enum): + UnspecifiedFormat = ... # type: QImageCapture.FileFormat + JPEG = ... # type: QImageCapture.FileFormat + PNG = ... # type: QImageCapture.FileFormat + WebP = ... # type: QImageCapture.FileFormat + Tiff = ... # type: QImageCapture.FileFormat + + class Quality(enum.Enum): + VeryLowQuality = ... # type: QImageCapture.Quality + LowQuality = ... # type: QImageCapture.Quality + NormalQuality = ... # type: QImageCapture.Quality + HighQuality = ... # type: QImageCapture.Quality + VeryHighQuality = ... # type: QImageCapture.Quality + + class Error(enum.Enum): + NoError = ... # type: QImageCapture.Error + NotReadyError = ... # type: QImageCapture.Error + ResourceError = ... # type: QImageCapture.Error + OutOfSpaceError = ... # type: QImageCapture.Error + NotSupportedFeatureError = ... # type: QImageCapture.Error + FormatError = ... # type: QImageCapture.Error + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + imageSaved: typing.ClassVar[QtCore.pyqtSignal] + imageAvailable: typing.ClassVar[QtCore.pyqtSignal] + imageCaptured: typing.ClassVar[QtCore.pyqtSignal] + imageExposed: typing.ClassVar[QtCore.pyqtSignal] + resolutionChanged: typing.ClassVar[QtCore.pyqtSignal] + qualityChanged: typing.ClassVar[QtCore.pyqtSignal] + fileFormatChanged: typing.ClassVar[QtCore.pyqtSignal] + metaDataChanged: typing.ClassVar[QtCore.pyqtSignal] + readyForCaptureChanged: typing.ClassVar[QtCore.pyqtSignal] + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + errorChanged: typing.ClassVar[QtCore.pyqtSignal] + def capture(self) -> int: ... + def captureToFile(self, location: str|None = ...) -> int: ... + def addMetaData(self, metaData: 'QMediaMetaData') -> None: ... + def setMetaData(self, metaData: 'QMediaMetaData') -> None: ... + def metaData(self) -> 'QMediaMetaData': ... + def setQuality(self, quality: 'QImageCapture.Quality') -> None: ... + def quality(self) -> 'QImageCapture.Quality': ... + @typing.overload + def setResolution(self, a0: QtCore.QSize) -> None: ... + @typing.overload + def setResolution(self, width: int, height: int) -> None: ... + def resolution(self) -> QtCore.QSize: ... + @staticmethod + def fileFormatDescription(c: 'QImageCapture.FileFormat') -> str: ... + @staticmethod + def fileFormatName(c: 'QImageCapture.FileFormat') -> str: ... + @staticmethod + def supportedFormats() -> list['QImageCapture.FileFormat']: ... + def setFileFormat(self, format: 'QImageCapture.FileFormat') -> None: ... + def fileFormat(self) -> 'QImageCapture.FileFormat': ... + def isReadyForCapture(self) -> bool: ... + def errorString(self) -> str: ... + def error(self) -> 'QImageCapture.Error': ... + def captureSession(self) -> 'QMediaCaptureSession|None': ... + def isAvailable(self) -> bool: ... + + +class QMediaCaptureSession(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + videoFrameInputChanged: typing.ClassVar[QtCore.pyqtSignal] + audioBufferInputChanged: typing.ClassVar[QtCore.pyqtSignal] + def setVideoFrameInput(self, input: 'QVideoFrameInput|None') -> None: ... + def videoFrameInput(self) -> 'QVideoFrameInput|None': ... + def setAudioBufferInput(self, input: QAudioBufferInput|None) -> None: ... + def audioBufferInput(self) -> QAudioBufferInput|None: ... + windowCaptureChanged: typing.ClassVar[QtCore.pyqtSignal] + def setWindowCapture(self, windowCapture: 'QWindowCapture|None') -> None: ... + def windowCapture(self) -> 'QWindowCapture|None': ... + screenCaptureChanged: typing.ClassVar[QtCore.pyqtSignal] + def setScreenCapture(self, screenCapture: 'QScreenCapture|None') -> None: ... + def screenCapture(self) -> 'QScreenCapture|None': ... + audioOutputChanged: typing.ClassVar[QtCore.pyqtSignal] + videoOutputChanged: typing.ClassVar[QtCore.pyqtSignal] + recorderChanged: typing.ClassVar[QtCore.pyqtSignal] + imageCaptureChanged: typing.ClassVar[QtCore.pyqtSignal] + cameraChanged: typing.ClassVar[QtCore.pyqtSignal] + audioInputChanged: typing.ClassVar[QtCore.pyqtSignal] + def audioOutput(self) -> QAudioOutput|None: ... + def setAudioOutput(self, output: QAudioOutput|None) -> None: ... + def videoSink(self) -> 'QVideoSink|None': ... + def setVideoSink(self, sink: 'QVideoSink|None') -> None: ... + def videoOutput(self) -> QtCore.QObject|None: ... + def setVideoOutput(self, output: QtCore.QObject|None) -> None: ... + def setRecorder(self, recorder: 'QMediaRecorder|None') -> None: ... + def recorder(self) -> 'QMediaRecorder|None': ... + def setImageCapture(self, imageCapture: QImageCapture|None) -> None: ... + def imageCapture(self) -> QImageCapture|None: ... + def setCamera(self, camera: QCamera|None) -> None: ... + def camera(self) -> QCamera|None: ... + def setAudioInput(self, device: QAudioInput|None) -> None: ... + def audioInput(self) -> QAudioInput|None: ... + + +class QMediaDevices(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + videoInputsChanged: typing.ClassVar[QtCore.pyqtSignal] + audioOutputsChanged: typing.ClassVar[QtCore.pyqtSignal] + audioInputsChanged: typing.ClassVar[QtCore.pyqtSignal] + @staticmethod + def defaultVideoInput() -> QCameraDevice: ... + @staticmethod + def defaultAudioOutput() -> QAudioDevice: ... + @staticmethod + def defaultAudioInput() -> QAudioDevice: ... + @staticmethod + def videoInputs() -> list[QCameraDevice]: ... + @staticmethod + def audioOutputs() -> list[QAudioDevice]: ... + @staticmethod + def audioInputs() -> list[QAudioDevice]: ... + + +class QMediaFormat(PyQt6.sip.simplewrapper): + + class ResolveFlags(enum.Enum): + NoFlags = ... # type: QMediaFormat.ResolveFlags + RequiresVideo = ... # type: QMediaFormat.ResolveFlags + + class ConversionMode(enum.Enum): + Encode = ... # type: QMediaFormat.ConversionMode + Decode = ... # type: QMediaFormat.ConversionMode + + class VideoCodec(enum.Enum): + Unspecified = ... # type: QMediaFormat.VideoCodec + MPEG1 = ... # type: QMediaFormat.VideoCodec + MPEG2 = ... # type: QMediaFormat.VideoCodec + MPEG4 = ... # type: QMediaFormat.VideoCodec + H264 = ... # type: QMediaFormat.VideoCodec + H265 = ... # type: QMediaFormat.VideoCodec + VP8 = ... # type: QMediaFormat.VideoCodec + VP9 = ... # type: QMediaFormat.VideoCodec + AV1 = ... # type: QMediaFormat.VideoCodec + Theora = ... # type: QMediaFormat.VideoCodec + WMV = ... # type: QMediaFormat.VideoCodec + MotionJPEG = ... # type: QMediaFormat.VideoCodec + + class AudioCodec(enum.Enum): + Unspecified = ... # type: QMediaFormat.AudioCodec + MP3 = ... # type: QMediaFormat.AudioCodec + AAC = ... # type: QMediaFormat.AudioCodec + AC3 = ... # type: QMediaFormat.AudioCodec + EAC3 = ... # type: QMediaFormat.AudioCodec + FLAC = ... # type: QMediaFormat.AudioCodec + DolbyTrueHD = ... # type: QMediaFormat.AudioCodec + Opus = ... # type: QMediaFormat.AudioCodec + Vorbis = ... # type: QMediaFormat.AudioCodec + Wave = ... # type: QMediaFormat.AudioCodec + WMA = ... # type: QMediaFormat.AudioCodec + ALAC = ... # type: QMediaFormat.AudioCodec + + class FileFormat(enum.Enum): + UnspecifiedFormat = ... # type: QMediaFormat.FileFormat + WMV = ... # type: QMediaFormat.FileFormat + AVI = ... # type: QMediaFormat.FileFormat + Matroska = ... # type: QMediaFormat.FileFormat + MPEG4 = ... # type: QMediaFormat.FileFormat + Ogg = ... # type: QMediaFormat.FileFormat + QuickTime = ... # type: QMediaFormat.FileFormat + WebM = ... # type: QMediaFormat.FileFormat + Mpeg4Audio = ... # type: QMediaFormat.FileFormat + AAC = ... # type: QMediaFormat.FileFormat + WMA = ... # type: QMediaFormat.FileFormat + MP3 = ... # type: QMediaFormat.FileFormat + FLAC = ... # type: QMediaFormat.FileFormat + Wave = ... # type: QMediaFormat.FileFormat + + @typing.overload + def __init__(self, format: 'QMediaFormat.FileFormat' = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QMediaFormat') -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def resolveForEncoding(self, flags: 'QMediaFormat.ResolveFlags') -> None: ... + @staticmethod + def videoCodecDescription(c: 'QMediaFormat.VideoCodec') -> str: ... + @staticmethod + def audioCodecDescription(c: 'QMediaFormat.AudioCodec') -> str: ... + @staticmethod + def fileFormatDescription(c: 'QMediaFormat.FileFormat') -> str: ... + @staticmethod + def videoCodecName(c: 'QMediaFormat.VideoCodec') -> str: ... + @staticmethod + def audioCodecName(c: 'QMediaFormat.AudioCodec') -> str: ... + @staticmethod + def fileFormatName(c: 'QMediaFormat.FileFormat') -> str: ... + def supportedAudioCodecs(self, m: 'QMediaFormat.ConversionMode') -> list['QMediaFormat.AudioCodec']: ... + def supportedVideoCodecs(self, m: 'QMediaFormat.ConversionMode') -> list['QMediaFormat.VideoCodec']: ... + def supportedFileFormats(self, m: 'QMediaFormat.ConversionMode') -> list['QMediaFormat.FileFormat']: ... + def mimeType(self) -> QtCore.QMimeType: ... + def isSupported(self, mode: 'QMediaFormat.ConversionMode') -> bool: ... + def audioCodec(self) -> 'QMediaFormat.AudioCodec': ... + def setAudioCodec(self, codec: 'QMediaFormat.AudioCodec') -> None: ... + def videoCodec(self) -> 'QMediaFormat.VideoCodec': ... + def setVideoCodec(self, codec: 'QMediaFormat.VideoCodec') -> None: ... + def setFileFormat(self, f: 'QMediaFormat.FileFormat') -> None: ... + def fileFormat(self) -> 'QMediaFormat.FileFormat': ... + def swap(self, other: 'QMediaFormat') -> None: ... + + +class QMediaMetaData(PyQt6.sip.simplewrapper): + + class Key(enum.Enum): + Title = ... # type: QMediaMetaData.Key + Author = ... # type: QMediaMetaData.Key + Comment = ... # type: QMediaMetaData.Key + Description = ... # type: QMediaMetaData.Key + Genre = ... # type: QMediaMetaData.Key + Date = ... # type: QMediaMetaData.Key + Language = ... # type: QMediaMetaData.Key + Publisher = ... # type: QMediaMetaData.Key + Copyright = ... # type: QMediaMetaData.Key + Url = ... # type: QMediaMetaData.Key + Duration = ... # type: QMediaMetaData.Key + MediaType = ... # type: QMediaMetaData.Key + FileFormat = ... # type: QMediaMetaData.Key + AudioBitRate = ... # type: QMediaMetaData.Key + AudioCodec = ... # type: QMediaMetaData.Key + VideoBitRate = ... # type: QMediaMetaData.Key + VideoCodec = ... # type: QMediaMetaData.Key + VideoFrameRate = ... # type: QMediaMetaData.Key + AlbumTitle = ... # type: QMediaMetaData.Key + AlbumArtist = ... # type: QMediaMetaData.Key + ContributingArtist = ... # type: QMediaMetaData.Key + TrackNumber = ... # type: QMediaMetaData.Key + Composer = ... # type: QMediaMetaData.Key + LeadPerformer = ... # type: QMediaMetaData.Key + ThumbnailImage = ... # type: QMediaMetaData.Key + CoverArtImage = ... # type: QMediaMetaData.Key + Orientation = ... # type: QMediaMetaData.Key + Resolution = ... # type: QMediaMetaData.Key + HasHdrContent = ... # type: QMediaMetaData.Key + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QMediaMetaData') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + @staticmethod + def keyType(key: 'QMediaMetaData.Key') -> QtCore.QMetaType: ... + @staticmethod + def metaDataKeyToString(k: 'QMediaMetaData.Key') -> str: ... + def stringValue(self, k: 'QMediaMetaData.Key') -> str: ... + def keys(self) -> list['QMediaMetaData.Key']: ... + def insert(self, k: 'QMediaMetaData.Key', value: typing.Any) -> None: ... + def value(self, k: 'QMediaMetaData.Key') -> typing.Any: ... + + +class QMediaPlayer(QtCore.QObject): + + class PitchCompensationAvailability(enum.Enum): + AlwaysOn = ... # type: QMediaPlayer.PitchCompensationAvailability + Available = ... # type: QMediaPlayer.PitchCompensationAvailability + Unavailable = ... # type: QMediaPlayer.PitchCompensationAvailability + + class Loops(enum.IntEnum): + Infinite = ... # type: QMediaPlayer.Loops + Once = ... # type: QMediaPlayer.Loops + + class Error(enum.Enum): + NoError = ... # type: QMediaPlayer.Error + ResourceError = ... # type: QMediaPlayer.Error + FormatError = ... # type: QMediaPlayer.Error + NetworkError = ... # type: QMediaPlayer.Error + AccessDeniedError = ... # type: QMediaPlayer.Error + + class MediaStatus(enum.Enum): + 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 PlaybackState(enum.Enum): + StoppedState = ... # type: QMediaPlayer.PlaybackState + PlayingState = ... # type: QMediaPlayer.PlaybackState + PausedState = ... # type: QMediaPlayer.PlaybackState + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + playbackOptionsChanged: typing.ClassVar[QtCore.pyqtSignal] + pitchCompensationChanged: typing.ClassVar[QtCore.pyqtSignal] + def resetPlaybackOptions(self) -> None: ... + def setPlaybackOptions(self, options: 'QPlaybackOptions') -> None: ... + def setPitchCompensation(self, a0: bool) -> None: ... + def playbackOptions(self) -> 'QPlaybackOptions': ... + def pitchCompensation(self) -> bool: ... + def pitchCompensationAvailability(self) -> 'QMediaPlayer.PitchCompensationAvailability': ... + audioBufferOutputChanged: typing.ClassVar[QtCore.pyqtSignal] + def audioBufferOutput(self) -> QAudioBufferOutput|None: ... + def setAudioBufferOutput(self, output: QAudioBufferOutput|None) -> None: ... + playingChanged: typing.ClassVar[QtCore.pyqtSignal] + def isPlaying(self) -> bool: ... + loopsChanged: typing.ClassVar[QtCore.pyqtSignal] + def setLoops(self, loops: int) -> None: ... + def loops(self) -> int: ... + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + errorChanged: typing.ClassVar[QtCore.pyqtSignal] + activeTracksChanged: typing.ClassVar[QtCore.pyqtSignal] + tracksChanged: typing.ClassVar[QtCore.pyqtSignal] + audioOutputChanged: typing.ClassVar[QtCore.pyqtSignal] + videoOutputChanged: typing.ClassVar[QtCore.pyqtSignal] + metaDataChanged: typing.ClassVar[QtCore.pyqtSignal] + playbackRateChanged: typing.ClassVar[QtCore.pyqtSignal] + seekableChanged: typing.ClassVar[QtCore.pyqtSignal] + bufferProgressChanged: typing.ClassVar[QtCore.pyqtSignal] + hasVideoChanged: typing.ClassVar[QtCore.pyqtSignal] + hasAudioChanged: typing.ClassVar[QtCore.pyqtSignal] + positionChanged: typing.ClassVar[QtCore.pyqtSignal] + durationChanged: typing.ClassVar[QtCore.pyqtSignal] + mediaStatusChanged: typing.ClassVar[QtCore.pyqtSignal] + playbackStateChanged: typing.ClassVar[QtCore.pyqtSignal] + sourceChanged: typing.ClassVar[QtCore.pyqtSignal] + def setSourceDevice(self, device: QtCore.QIODevice|None, sourceUrl: QtCore.QUrl = ...) -> None: ... + def setSource(self, source: QtCore.QUrl) -> None: ... + def setPlaybackRate(self, rate: float) -> None: ... + def setPosition(self, position: int) -> None: ... + def stop(self) -> None: ... + def pause(self) -> None: ... + def play(self) -> None: ... + def metaData(self) -> QMediaMetaData: ... + def isAvailable(self) -> bool: ... + def errorString(self) -> str: ... + def error(self) -> 'QMediaPlayer.Error': ... + def playbackRate(self) -> float: ... + def isSeekable(self) -> bool: ... + def bufferedTimeRange(self) -> 'QMediaTimeRange': ... + def bufferProgress(self) -> float: ... + def hasVideo(self) -> bool: ... + def hasAudio(self) -> bool: ... + def position(self) -> int: ... + def duration(self) -> int: ... + def mediaStatus(self) -> 'QMediaPlayer.MediaStatus': ... + def playbackState(self) -> 'QMediaPlayer.PlaybackState': ... + def sourceDevice(self) -> QtCore.QIODevice|None: ... + def source(self) -> QtCore.QUrl: ... + def videoSink(self) -> 'QVideoSink|None': ... + def setVideoSink(self, sink: 'QVideoSink|None') -> None: ... + def videoOutput(self) -> QtCore.QObject|None: ... + def setVideoOutput(self, a0: QtCore.QObject|None) -> None: ... + def audioOutput(self) -> QAudioOutput|None: ... + def setAudioOutput(self, output: QAudioOutput|None) -> None: ... + def setActiveSubtitleTrack(self, index: int) -> None: ... + def setActiveVideoTrack(self, index: int) -> None: ... + def setActiveAudioTrack(self, index: int) -> None: ... + def activeSubtitleTrack(self) -> int: ... + def activeVideoTrack(self) -> int: ... + def activeAudioTrack(self) -> int: ... + def subtitleTracks(self) -> list[QMediaMetaData]: ... + def videoTracks(self) -> list[QMediaMetaData]: ... + def audioTracks(self) -> list[QMediaMetaData]: ... + + +class QMediaRecorder(QtCore.QObject): + + class Error(enum.Enum): + NoError = ... # type: QMediaRecorder.Error + ResourceError = ... # type: QMediaRecorder.Error + FormatError = ... # type: QMediaRecorder.Error + OutOfSpaceError = ... # type: QMediaRecorder.Error + LocationNotWritable = ... # type: QMediaRecorder.Error + + class RecorderState(enum.Enum): + StoppedState = ... # type: QMediaRecorder.RecorderState + RecordingState = ... # type: QMediaRecorder.RecorderState + PausedState = ... # type: QMediaRecorder.RecorderState + + class EncodingMode(enum.Enum): + ConstantQualityEncoding = ... # type: QMediaRecorder.EncodingMode + ConstantBitRateEncoding = ... # type: QMediaRecorder.EncodingMode + AverageBitRateEncoding = ... # type: QMediaRecorder.EncodingMode + TwoPassEncoding = ... # type: QMediaRecorder.EncodingMode + + class Quality(enum.Enum): + VeryLowQuality = ... # type: QMediaRecorder.Quality + LowQuality = ... # type: QMediaRecorder.Quality + NormalQuality = ... # type: QMediaRecorder.Quality + HighQuality = ... # type: QMediaRecorder.Quality + VeryHighQuality = ... # type: QMediaRecorder.Quality + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + autoStopChanged: typing.ClassVar[QtCore.pyqtSignal] + def setAutoStop(self, autoStop: bool) -> None: ... + def autoStop(self) -> bool: ... + def outputDevice(self) -> QtCore.QIODevice|None: ... + def setOutputDevice(self, device: QtCore.QIODevice|None) -> None: ... + audioSampleRateChanged: typing.ClassVar[QtCore.pyqtSignal] + audioChannelCountChanged: typing.ClassVar[QtCore.pyqtSignal] + audioBitRateChanged: typing.ClassVar[QtCore.pyqtSignal] + videoBitRateChanged: typing.ClassVar[QtCore.pyqtSignal] + videoFrameRateChanged: typing.ClassVar[QtCore.pyqtSignal] + videoResolutionChanged: typing.ClassVar[QtCore.pyqtSignal] + qualityChanged: typing.ClassVar[QtCore.pyqtSignal] + encodingModeChanged: typing.ClassVar[QtCore.pyqtSignal] + mediaFormatChanged: typing.ClassVar[QtCore.pyqtSignal] + metaDataChanged: typing.ClassVar[QtCore.pyqtSignal] + errorChanged: typing.ClassVar[QtCore.pyqtSignal] + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + actualLocationChanged: typing.ClassVar[QtCore.pyqtSignal] + durationChanged: typing.ClassVar[QtCore.pyqtSignal] + recorderStateChanged: typing.ClassVar[QtCore.pyqtSignal] + def stop(self) -> None: ... + def pause(self) -> None: ... + def record(self) -> None: ... + def captureSession(self) -> QMediaCaptureSession|None: ... + def setMetaData(self, metaData: QMediaMetaData) -> None: ... + def metaData(self) -> QMediaMetaData: ... + def setAudioSampleRate(self, sampleRate: int) -> None: ... + def audioSampleRate(self) -> int: ... + def setAudioChannelCount(self, channels: int) -> None: ... + def audioChannelCount(self) -> int: ... + def setAudioBitRate(self, bitRate: int) -> None: ... + def audioBitRate(self) -> int: ... + def setVideoBitRate(self, bitRate: int) -> None: ... + def videoBitRate(self) -> int: ... + def setVideoFrameRate(self, frameRate: float) -> None: ... + def videoFrameRate(self) -> float: ... + @typing.overload + def setVideoResolution(self, a0: QtCore.QSize) -> None: ... + @typing.overload + def setVideoResolution(self, width: int, height: int) -> None: ... + def videoResolution(self) -> QtCore.QSize: ... + def setQuality(self, quality: 'QMediaRecorder.Quality') -> None: ... + def quality(self) -> 'QMediaRecorder.Quality': ... + def setEncodingMode(self, a0: 'QMediaRecorder.EncodingMode') -> None: ... + def encodingMode(self) -> 'QMediaRecorder.EncodingMode': ... + def setMediaFormat(self, format: QMediaFormat) -> None: ... + def mediaFormat(self) -> QMediaFormat: ... + def duration(self) -> int: ... + def errorString(self) -> str: ... + def error(self) -> 'QMediaRecorder.Error': ... + def recorderState(self) -> 'QMediaRecorder.RecorderState': ... + def actualLocation(self) -> QtCore.QUrl: ... + def setOutputLocation(self, location: QtCore.QUrl) -> None: ... + def outputLocation(self) -> QtCore.QUrl: ... + def isAvailable(self) -> bool: ... + + +class QMediaTimeRange(PyQt6.sip.simplewrapper): + + class Interval(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self, start: int, end: int) -> None: ... + @typing.overload + def __init__(self, a0: 'QMediaTimeRange.Interval') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def translated(self, offset: int) -> 'QMediaTimeRange.Interval': ... + def normalized(self) -> 'QMediaTimeRange.Interval': ... + def isNormal(self) -> bool: ... + def contains(self, time: int) -> bool: ... + def end(self) -> int: ... + def start(self) -> int: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QMediaTimeRange.Interval') -> None: ... + @typing.overload + def __init__(self, start: int, end: int) -> None: ... + @typing.overload + def __init__(self, range: 'QMediaTimeRange') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __add__(self, a0: 'QMediaTimeRange') -> 'QMediaTimeRange': ... + def __sub__(self, a0: 'QMediaTimeRange') -> 'QMediaTimeRange': ... + def clear(self) -> None: ... + @typing.overload + def __isub__(self, a0: 'QMediaTimeRange.Interval') -> 'QMediaTimeRange': ... + @typing.overload + def __isub__(self, a0: 'QMediaTimeRange') -> 'QMediaTimeRange': ... + @typing.overload + def __iadd__(self, a0: 'QMediaTimeRange.Interval') -> 'QMediaTimeRange': ... + @typing.overload + def __iadd__(self, a0: 'QMediaTimeRange') -> 'QMediaTimeRange': ... + def removeTimeRange(self, a0: 'QMediaTimeRange') -> None: ... + @typing.overload + def removeInterval(self, interval: 'QMediaTimeRange.Interval') -> None: ... + @typing.overload + def removeInterval(self, start: int, end: int) -> None: ... + def addTimeRange(self, a0: 'QMediaTimeRange') -> None: ... + @typing.overload + def addInterval(self, interval: 'QMediaTimeRange.Interval') -> None: ... + @typing.overload + def addInterval(self, start: int, end: int) -> None: ... + def contains(self, time: int) -> bool: ... + def isContinuous(self) -> bool: ... + def isEmpty(self) -> bool: ... + def intervals(self) -> list['QMediaTimeRange.Interval']: ... + def latestTime(self) -> int: ... + def earliestTime(self) -> int: ... + + +class QPlaybackOptions(PyQt6.sip.simplewrapper): + + class PlaybackIntent(enum.Enum): + Playback = ... # type: QPlaybackOptions.PlaybackIntent + LowLatencyStreaming = ... # type: QPlaybackOptions.PlaybackIntent + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QPlaybackOptions') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __ge__(self, rhs: 'QPlaybackOptions') -> bool: ... + def __le__(self, rhs: 'QPlaybackOptions') -> bool: ... + def __gt__(self, rhs: 'QPlaybackOptions') -> bool: ... + def __lt__(self, rhs: 'QPlaybackOptions') -> bool: ... + def resetProbeSize(self) -> None: ... + def setProbeSize(self, probeSizeBytes: int) -> None: ... + def probeSize(self) -> int: ... + def resetPlaybackIntent(self) -> None: ... + def setPlaybackIntent(self, intent: 'QPlaybackOptions.PlaybackIntent') -> None: ... + def playbackIntent(self) -> 'QPlaybackOptions.PlaybackIntent': ... + def resetNetworkTimeout(self) -> None: ... + def setNetworkTimeout(self, timeout: int) -> None: ... + def networkTimeout(self) -> int: ... + def swap(self, other: 'QPlaybackOptions') -> None: ... + + +class QScreenCapture(QtCore.QObject): + + class Error(enum.Enum): + NoError = ... # type: QScreenCapture.Error + InternalError = ... # type: QScreenCapture.Error + CapturingNotSupported = ... # type: QScreenCapture.Error + CaptureFailed = ... # type: QScreenCapture.Error + NotFound = ... # type: QScreenCapture.Error + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + screenChanged: typing.ClassVar[QtCore.pyqtSignal] + errorChanged: typing.ClassVar[QtCore.pyqtSignal] + activeChanged: typing.ClassVar[QtCore.pyqtSignal] + def stop(self) -> None: ... + def start(self) -> None: ... + def setActive(self, active: bool) -> None: ... + def errorString(self) -> str: ... + def error(self) -> 'QScreenCapture.Error': ... + def isActive(self) -> bool: ... + def screen(self) -> QtGui.QScreen|None: ... + def setScreen(self, screen: QtGui.QScreen|None) -> None: ... + def captureSession(self) -> QMediaCaptureSession|None: ... + + +class QSoundEffect(QtCore.QObject): + + class Status(enum.Enum): + Null = ... # type: QSoundEffect.Status + Loading = ... # type: QSoundEffect.Status + Ready = ... # type: QSoundEffect.Status + Error = ... # type: QSoundEffect.Status + + class Loop(enum.Enum): + Infinite = ... # type: QSoundEffect.Loop + + @typing.overload + def __init__(self, audioDevice: QAudioDevice, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + statusChanged: typing.ClassVar[QtCore.pyqtSignal] + playingChanged: typing.ClassVar[QtCore.pyqtSignal] + loadedChanged: typing.ClassVar[QtCore.pyqtSignal] + mutedChanged: typing.ClassVar[QtCore.pyqtSignal] + volumeChanged: typing.ClassVar[QtCore.pyqtSignal] + loopsRemainingChanged: typing.ClassVar[QtCore.pyqtSignal] + loopCountChanged: typing.ClassVar[QtCore.pyqtSignal] + sourceChanged: typing.ClassVar[QtCore.pyqtSignal] + audioDeviceChanged: typing.ClassVar[QtCore.pyqtSignal] + def stop(self) -> None: ... + def play(self) -> None: ... + 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: ... + def setAudioDevice(self, device: QAudioDevice) -> None: ... + def audioDevice(self) -> QAudioDevice: ... + @staticmethod + def supportedMimeTypes() -> list[str]: ... + + +class QVideoFrame(PyQt6.sip.simplewrapper): + + class RotationAngle(enum.Enum): + Rotation0 = ... # type: QVideoFrame.RotationAngle + Rotation90 = ... # type: QVideoFrame.RotationAngle + Rotation180 = ... # type: QVideoFrame.RotationAngle + Rotation270 = ... # type: QVideoFrame.RotationAngle + + class MapMode(enum.Enum): + NotMapped = ... # type: QVideoFrame.MapMode + ReadOnly = ... # type: QVideoFrame.MapMode + WriteOnly = ... # type: QVideoFrame.MapMode + ReadWrite = ... # type: QVideoFrame.MapMode + + class HandleType(enum.Enum): + NoHandle = ... # type: QVideoFrame.HandleType + RhiTextureHandle = ... # type: QVideoFrame.HandleType + + class PaintOptions(PyQt6.sip.simplewrapper): + + class PaintFlag(enum.Flag): + DontDrawSubtitles = ... # type: QVideoFrame.PaintOptions.PaintFlag + + aspectRatioMode = ... # type: QtCore.Qt.AspectRatioMode + backgroundColor = ... # type: QtGui.QColor|QtCore.Qt.GlobalColor|int + paintFlags = ... # type: 'QVideoFrame.PaintOptions.PaintFlag' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QVideoFrame.PaintOptions') -> None: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, format: 'QVideoFrameFormat') -> None: ... + @typing.overload + def __init__(self, image: QtGui.QImage) -> None: ... + @typing.overload + def __init__(self, other: 'QVideoFrame') -> None: ... + + def streamFrameRate(self) -> float: ... + def setStreamFrameRate(self, rate: float) -> None: ... + def rotation(self) -> QtVideo.Rotation: ... + def setRotation(self, angle: QtVideo.Rotation) -> None: ... + def mirrored(self) -> bool: ... + def setMirrored(self, a0: bool) -> None: ... + def rotationAngle(self) -> 'QVideoFrame.RotationAngle': ... + def setRotationAngle(self, a0: 'QVideoFrame.RotationAngle') -> None: ... + def paint(self, painter: QtGui.QPainter|None, rect: QtCore.QRectF, options: 'QVideoFrame.PaintOptions') -> None: ... + def setSubtitleText(self, text: str|None) -> None: ... + def subtitleText(self) -> str: ... + def toImage(self) -> QtGui.QImage: ... + def surfaceFormat(self) -> 'QVideoFrameFormat': ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def planeCount(self) -> int: ... + def setEndTime(self, time: int) -> None: ... + def endTime(self) -> int: ... + def setStartTime(self, time: int) -> None: ... + def startTime(self) -> int: ... + def mappedBytes(self, plane: int) -> int: ... + def bits(self, plane: int) -> PyQt6.sip.voidptr: ... + def bytesPerLine(self, plane: int) -> int: ... + def unmap(self) -> None: ... + def map(self, mode: 'QVideoFrame.MapMode') -> bool: ... + def mapMode(self) -> 'QVideoFrame.MapMode': ... + def isWritable(self) -> bool: ... + def isReadable(self) -> bool: ... + def isMapped(self) -> bool: ... + def height(self) -> int: ... + def width(self) -> int: ... + def size(self) -> QtCore.QSize: ... + def handleType(self) -> 'QVideoFrame.HandleType': ... + def pixelFormat(self) -> 'QVideoFrameFormat.PixelFormat': ... + def isValid(self) -> bool: ... + + +class QVideoFrameFormat(PyQt6.sip.simplewrapper): + + class ColorRange(enum.Enum): + ColorRange_Unknown = ... # type: QVideoFrameFormat.ColorRange + ColorRange_Video = ... # type: QVideoFrameFormat.ColorRange + ColorRange_Full = ... # type: QVideoFrameFormat.ColorRange + + class ColorTransfer(enum.Enum): + ColorTransfer_Unknown = ... # type: QVideoFrameFormat.ColorTransfer + ColorTransfer_BT709 = ... # type: QVideoFrameFormat.ColorTransfer + ColorTransfer_BT601 = ... # type: QVideoFrameFormat.ColorTransfer + ColorTransfer_Linear = ... # type: QVideoFrameFormat.ColorTransfer + ColorTransfer_Gamma22 = ... # type: QVideoFrameFormat.ColorTransfer + ColorTransfer_Gamma28 = ... # type: QVideoFrameFormat.ColorTransfer + ColorTransfer_ST2084 = ... # type: QVideoFrameFormat.ColorTransfer + ColorTransfer_STD_B67 = ... # type: QVideoFrameFormat.ColorTransfer + + class ColorSpace(enum.Enum): + ColorSpace_Undefined = ... # type: QVideoFrameFormat.ColorSpace + ColorSpace_BT601 = ... # type: QVideoFrameFormat.ColorSpace + ColorSpace_BT709 = ... # type: QVideoFrameFormat.ColorSpace + ColorSpace_AdobeRgb = ... # type: QVideoFrameFormat.ColorSpace + ColorSpace_BT2020 = ... # type: QVideoFrameFormat.ColorSpace + + class YCbCrColorSpace(enum.Enum): + YCbCr_Undefined = ... # type: QVideoFrameFormat.YCbCrColorSpace + YCbCr_BT601 = ... # type: QVideoFrameFormat.YCbCrColorSpace + YCbCr_BT709 = ... # type: QVideoFrameFormat.YCbCrColorSpace + YCbCr_xvYCC601 = ... # type: QVideoFrameFormat.YCbCrColorSpace + YCbCr_xvYCC709 = ... # type: QVideoFrameFormat.YCbCrColorSpace + YCbCr_JPEG = ... # type: QVideoFrameFormat.YCbCrColorSpace + YCbCr_BT2020 = ... # type: QVideoFrameFormat.YCbCrColorSpace + + class Direction(enum.Enum): + TopToBottom = ... # type: QVideoFrameFormat.Direction + BottomToTop = ... # type: QVideoFrameFormat.Direction + + class PixelFormat(enum.Enum): + Format_Invalid = ... # type: QVideoFrameFormat.PixelFormat + Format_YUV420P = ... # type: QVideoFrameFormat.PixelFormat + Format_YUV422P = ... # type: QVideoFrameFormat.PixelFormat + Format_YUV420P10 = ... # type: QVideoFrameFormat.PixelFormat + Format_YV12 = ... # type: QVideoFrameFormat.PixelFormat + Format_UYVY = ... # type: QVideoFrameFormat.PixelFormat + Format_YUYV = ... # type: QVideoFrameFormat.PixelFormat + Format_NV12 = ... # type: QVideoFrameFormat.PixelFormat + Format_NV21 = ... # type: QVideoFrameFormat.PixelFormat + Format_IMC1 = ... # type: QVideoFrameFormat.PixelFormat + Format_IMC2 = ... # type: QVideoFrameFormat.PixelFormat + Format_IMC3 = ... # type: QVideoFrameFormat.PixelFormat + Format_IMC4 = ... # type: QVideoFrameFormat.PixelFormat + Format_Y8 = ... # type: QVideoFrameFormat.PixelFormat + Format_Y16 = ... # type: QVideoFrameFormat.PixelFormat + Format_P010 = ... # type: QVideoFrameFormat.PixelFormat + Format_P016 = ... # type: QVideoFrameFormat.PixelFormat + Format_Jpeg = ... # type: QVideoFrameFormat.PixelFormat + Format_SamplerExternalOES = ... # type: QVideoFrameFormat.PixelFormat + Format_ARGB8888 = ... # type: QVideoFrameFormat.PixelFormat + Format_ARGB8888_Premultiplied = ... # type: QVideoFrameFormat.PixelFormat + Format_XRGB8888 = ... # type: QVideoFrameFormat.PixelFormat + Format_BGRA8888 = ... # type: QVideoFrameFormat.PixelFormat + Format_BGRA8888_Premultiplied = ... # type: QVideoFrameFormat.PixelFormat + Format_BGRX8888 = ... # type: QVideoFrameFormat.PixelFormat + Format_ABGR8888 = ... # type: QVideoFrameFormat.PixelFormat + Format_XBGR8888 = ... # type: QVideoFrameFormat.PixelFormat + Format_RGBA8888 = ... # type: QVideoFrameFormat.PixelFormat + Format_RGBX8888 = ... # type: QVideoFrameFormat.PixelFormat + Format_AYUV = ... # type: QVideoFrameFormat.PixelFormat + Format_AYUV_Premultiplied = ... # type: QVideoFrameFormat.PixelFormat + Format_SamplerRect = ... # type: QVideoFrameFormat.PixelFormat + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, size: QtCore.QSize, pixelFormat: 'QVideoFrameFormat.PixelFormat') -> None: ... + @typing.overload + def __init__(self, format: 'QVideoFrameFormat') -> None: ... + + def setRotation(self, rotation: QtVideo.Rotation) -> None: ... + def rotation(self) -> QtVideo.Rotation: ... + def setStreamFrameRate(self, rate: float) -> None: ... + def streamFrameRate(self) -> float: ... + def setColorRange(self, range: 'QVideoFrameFormat.ColorRange') -> None: ... + def colorRange(self) -> 'QVideoFrameFormat.ColorRange': ... + def setColorTransfer(self, colorTransfer: 'QVideoFrameFormat.ColorTransfer') -> None: ... + def colorTransfer(self) -> 'QVideoFrameFormat.ColorTransfer': ... + def setColorSpace(self, colorSpace: 'QVideoFrameFormat.ColorSpace') -> None: ... + def colorSpace(self) -> 'QVideoFrameFormat.ColorSpace': ... + @staticmethod + def pixelFormatToString(pixelFormat: 'QVideoFrameFormat.PixelFormat') -> str: ... + @staticmethod + def imageFormatFromPixelFormat(format: 'QVideoFrameFormat.PixelFormat') -> QtGui.QImage.Format: ... + @staticmethod + def pixelFormatFromImageFormat(format: QtGui.QImage.Format) -> 'QVideoFrameFormat.PixelFormat': ... + def setMirrored(self, mirrored: bool) -> None: ... + def isMirrored(self) -> bool: ... + def setYCbCrColorSpace(self, colorSpace: 'QVideoFrameFormat.YCbCrColorSpace') -> None: ... + def yCbCrColorSpace(self) -> 'QVideoFrameFormat.YCbCrColorSpace': ... + def setFrameRate(self, rate: float) -> None: ... + def frameRate(self) -> float: ... + def setScanLineDirection(self, direction: 'QVideoFrameFormat.Direction') -> None: ... + def scanLineDirection(self) -> 'QVideoFrameFormat.Direction': ... + def setViewport(self, viewport: QtCore.QRect) -> None: ... + def viewport(self) -> QtCore.QRect: ... + def planeCount(self) -> int: ... + 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 pixelFormat(self) -> 'QVideoFrameFormat.PixelFormat': ... + def isValid(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + +class QVideoFrameInput(QtCore.QObject): + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, format: QVideoFrameFormat, parent: QtCore.QObject|None = ...) -> None: ... + + readyToSendVideoFrame: typing.ClassVar[QtCore.pyqtSignal] + def sendVideoFrame(self, frame: QVideoFrame) -> bool: ... + def format(self) -> QVideoFrameFormat: ... + def captureSession(self) -> QMediaCaptureSession|None: ... + + +class QVideoSink(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + videoSizeChanged: typing.ClassVar[QtCore.pyqtSignal] + subtitleTextChanged: typing.ClassVar[QtCore.pyqtSignal] + videoFrameChanged: typing.ClassVar[QtCore.pyqtSignal] + def videoFrame(self) -> QVideoFrame: ... + def setVideoFrame(self, frame: QVideoFrame) -> None: ... + def setSubtitleText(self, subtitle: str|None) -> None: ... + def subtitleText(self) -> str: ... + def videoSize(self) -> QtCore.QSize: ... + + +class QWindowCapture(QtCore.QObject): + + class Error(enum.Enum): + NoError = ... # type: QWindowCapture.Error + InternalError = ... # type: QWindowCapture.Error + CapturingNotSupported = ... # type: QWindowCapture.Error + CaptureFailed = ... # type: QWindowCapture.Error + NotFound = ... # type: QWindowCapture.Error + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + errorChanged: typing.ClassVar[QtCore.pyqtSignal] + windowChanged: typing.ClassVar[QtCore.pyqtSignal] + activeChanged: typing.ClassVar[QtCore.pyqtSignal] + def stop(self) -> None: ... + def start(self) -> None: ... + def setActive(self, active: bool) -> None: ... + def errorString(self) -> str: ... + def error(self) -> 'QWindowCapture.Error': ... + def isActive(self) -> bool: ... + def window(self) -> QCapturableWindow: ... + def setWindow(self, window: QCapturableWindow) -> None: ... + @staticmethod + def capturableWindows() -> list[QCapturableWindow]: ... diff --git a/typings/PyQt6/QtMultimediaWidgets.pyi b/typings/PyQt6/QtMultimediaWidgets.pyi new file mode 100644 index 00000000..987be5f8 --- /dev/null +++ b/typings/PyQt6/QtMultimediaWidgets.pyi @@ -0,0 +1,82 @@ +# The PEP 484 type hints stub file for the QtMultimediaWidgets module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui +from PyQt6 import QtNetwork +from PyQt6 import QtMultimedia +from PyQt6 import QtWidgets + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QGraphicsVideoItem(QtWidgets.QGraphicsObject): + + def __init__(self, parent: QtWidgets.QGraphicsItem|None = ...) -> None: ... + + def itemChange(self, change: QtWidgets.QGraphicsItem.GraphicsItemChange, value: typing.Any) -> typing.Any: ... + def timerEvent(self, event: QtCore.QTimerEvent|None) -> None: ... + nativeSizeChanged: typing.ClassVar[QtCore.pyqtSignal] + def type(self) -> int: ... + def paint(self, painter: QtGui.QPainter|None, option: QtWidgets.QStyleOptionGraphicsItem|None, widget: QtWidgets.QWidget|None = ...) -> 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: QtCore.QPointF) -> None: ... + def offset(self) -> QtCore.QPointF: ... + def setAspectRatioMode(self, mode: QtCore.Qt.AspectRatioMode) -> None: ... + def aspectRatioMode(self) -> QtCore.Qt.AspectRatioMode: ... + def videoSink(self) -> QtMultimedia.QVideoSink|None: ... + + +class QVideoWidget(QtWidgets.QWidget): + + def __init__(self, parent: QtWidgets.QWidget|None = ...) -> None: ... + + def moveEvent(self, event: QtGui.QMoveEvent|None) -> None: ... + def resizeEvent(self, event: QtGui.QResizeEvent|None) -> None: ... + def hideEvent(self, event: QtGui.QHideEvent|None) -> None: ... + def showEvent(self, event: QtGui.QShowEvent|None) -> None: ... + def event(self, event: QtCore.QEvent|None) -> bool: ... + aspectRatioModeChanged: typing.ClassVar[QtCore.pyqtSignal] + fullScreenChanged: typing.ClassVar[QtCore.pyqtSignal] + def setAspectRatioMode(self, mode: QtCore.Qt.AspectRatioMode) -> None: ... + def setFullScreen(self, fullScreen: bool) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + def isFullScreen(self) -> bool: ... + def aspectRatioMode(self) -> QtCore.Qt.AspectRatioMode: ... + def videoSink(self) -> QtMultimedia.QVideoSink|None: ... diff --git a/typings/PyQt6/QtNetwork.pyi b/typings/PyQt6/QtNetwork.pyi new file mode 100644 index 00000000..2a012285 --- /dev/null +++ b/typings/PyQt6/QtNetwork.pyi @@ -0,0 +1,2497 @@ +# The PEP 484 type hints stub file for the QtNetwork module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 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[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QOcspRevocationReason(enum.Enum): + 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(enum.Enum): + Good = ... # type: QOcspCertificateStatus + Revoked = ... # type: QOcspCertificateStatus + Unknown = ... # type: QOcspCertificateStatus + + +class QNetworkCacheMetaData(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QNetworkCacheMetaData') -> None: ... + + def setHeaders(self, headers: 'QHttpHeaders') -> None: ... + def headers(self) -> 'QHttpHeaders': ... + def swap(self, other: 'QNetworkCacheMetaData') -> None: ... + def setAttributes(self, attributes: dict['QNetworkRequest.Attribute', typing.Any]) -> None: ... + def attributes(self) -> dict['QNetworkRequest.Attribute', typing.Any]: ... + def setSaveToDisk(self, allow: bool) -> None: ... + def saveToDisk(self) -> bool: ... + def setExpirationDate(self, dateTime: QtCore.QDateTime|datetime.datetime) -> None: ... + def expirationDate(self) -> QtCore.QDateTime: ... + def setLastModified(self, dateTime: QtCore.QDateTime|datetime.datetime) -> None: ... + def lastModified(self) -> QtCore.QDateTime: ... + def setRawHeaders(self, headers: collections.abc.Iterable[tuple[QtCore.QByteArray|bytes|bytearray|memoryview, QtCore.QByteArray|bytes|bytearray|memoryview]]) -> None: ... + def rawHeaders(self) -> list[tuple[QtCore.QByteArray, QtCore.QByteArray]]: ... + def setUrl(self, url: QtCore.QUrl) -> None: ... + def url(self) -> QtCore.QUrl: ... + def isValid(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + +class QAbstractNetworkCache(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def clear(self) -> None: ... + def insert(self, device: QtCore.QIODevice|None) -> None: ... + def prepare(self, metaData: QNetworkCacheMetaData) -> QtCore.QIODevice|None: ... + def cacheSize(self) -> int: ... + def remove(self, url: QtCore.QUrl) -> bool: ... + def data(self, url: QtCore.QUrl) -> QtCore.QIODevice|None: ... + def updateMetaData(self, metaData: QNetworkCacheMetaData) -> None: ... + def metaData(self, url: QtCore.QUrl) -> QNetworkCacheMetaData: ... + + +class QAbstractSocket(QtCore.QIODevice): + + class PauseMode(enum.Flag): + PauseNever = ... # type: QAbstractSocket.PauseMode + PauseOnSslErrors = ... # type: QAbstractSocket.PauseMode + + class BindFlag(enum.Flag): + DefaultForPlatform = ... # type: QAbstractSocket.BindFlag + ShareAddress = ... # type: QAbstractSocket.BindFlag + DontShareAddress = ... # type: QAbstractSocket.BindFlag + ReuseAddressHint = ... # type: QAbstractSocket.BindFlag + + class SocketOption(enum.Enum): + 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 + KeepAliveIdleOption = ... # type: QAbstractSocket.SocketOption + KeepAliveIntervalOption = ... # type: QAbstractSocket.SocketOption + KeepAliveCountOption = ... # type: QAbstractSocket.SocketOption + + class SocketState(enum.Enum): + 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(enum.Enum): + 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(enum.Enum): + IPv4Protocol = ... # type: QAbstractSocket.NetworkLayerProtocol + IPv6Protocol = ... # type: QAbstractSocket.NetworkLayerProtocol + AnyIPProtocol = ... # type: QAbstractSocket.NetworkLayerProtocol + UnknownNetworkLayerProtocol = ... # type: QAbstractSocket.NetworkLayerProtocol + + class SocketType(enum.Enum): + TcpSocket = ... # type: QAbstractSocket.SocketType + UdpSocket = ... # type: QAbstractSocket.SocketType + SctpSocket = ... # type: QAbstractSocket.SocketType + UnknownSocketType = ... # type: QAbstractSocket.SocketType + + def __init__(self, socketType: 'QAbstractSocket.SocketType', parent: QtCore.QObject|None) -> None: ... + + def setProtocolTag(self, tag: str|None) -> None: ... + def protocolTag(self) -> str: ... + @typing.overload + def bind(self, address: 'QHostAddress'|'QHostAddress.SpecialAddress', port: int = ..., mode: 'QAbstractSocket.BindFlag' = ...) -> bool: ... + @typing.overload + def bind(self, port: int = ..., mode: 'QAbstractSocket.BindFlag' = ...) -> bool: ... + def setPauseMode(self, pauseMode: 'QAbstractSocket.PauseMode') -> None: ... + def pauseMode(self) -> 'QAbstractSocket.PauseMode': ... + 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) -> None: ... + def setPeerAddress(self, address: 'QHostAddress'|'QHostAddress.SpecialAddress') -> None: ... + def setPeerPort(self, port: int) -> None: ... + def setLocalAddress(self, address: '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 skipData(self, maxSize: int) -> int: ... + def writeData(self, a0: PyQt6.sip.Buffer) -> int: ... + def readLineData(self, maxlen: int) -> bytes: ... + def readData(self, maxlen: int) -> bytes: ... + proxyAuthenticationRequired: typing.ClassVar[QtCore.pyqtSignal] + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + stateChanged: typing.ClassVar[QtCore.pyqtSignal] + disconnected: typing.ClassVar[QtCore.pyqtSignal] + connected: typing.ClassVar[QtCore.pyqtSignal] + hostFound: typing.ClassVar[QtCore.pyqtSignal] + 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 isSequential(self) -> bool: ... + def close(self) -> None: ... + def error(self) -> 'QAbstractSocket.SocketError': ... + def state(self) -> 'QAbstractSocket.SocketState': ... + def socketType(self) -> 'QAbstractSocket.SocketType': ... + def socketDescriptor(self) -> PyQt6.sip.voidptr: ... + def setSocketDescriptor(self, socketDescriptor: PyQt6.sip.voidptr, state: 'QAbstractSocket.SocketState' = ..., mode: QtCore.QIODeviceBase.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 bytesToWrite(self) -> int: ... + def bytesAvailable(self) -> int: ... + def isValid(self) -> bool: ... + def disconnectFromHost(self) -> None: ... + @typing.overload + def connectToHost(self, hostName: str|None, port: int, mode: QtCore.QIODeviceBase.OpenModeFlag = ..., protocol: 'QAbstractSocket.NetworkLayerProtocol' = ...) -> None: ... + @typing.overload + def connectToHost(self, address: 'QHostAddress'|'QHostAddress.SpecialAddress', port: int, mode: QtCore.QIODeviceBase.OpenModeFlag = ...) -> None: ... + + +class QAuthenticator(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QAuthenticator') -> None: ... + + def clear(self) -> None: ... + def setOption(self, opt: str|None, value: typing.Any) -> None: ... + def options(self) -> dict[str, typing.Any]: ... + def option(self, opt: str|None) -> typing.Any: ... + def isNull(self) -> bool: ... + def realm(self) -> str: ... + def setPassword(self, password: str|None) -> None: ... + def password(self) -> str: ... + def setUser(self, user: str|None) -> None: ... + def user(self) -> str: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + +class QDnsDomainNameRecord(PyQt6.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(PyQt6.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(PyQt6.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(PyQt6.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(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QDnsTextRecord') -> None: ... + + def values(self) -> list[QtCore.QByteArray]: ... + def timeToLive(self) -> int: ... + def name(self) -> str: ... + def swap(self, other: 'QDnsTextRecord') -> None: ... + + +class QDnsTlsAssociationRecord(PyQt6.sip.simplewrapper): + + class MatchingType(enum.Enum): + Exact = ... # type: QDnsTlsAssociationRecord.MatchingType + Sha256 = ... # type: QDnsTlsAssociationRecord.MatchingType + Sha512 = ... # type: QDnsTlsAssociationRecord.MatchingType + PrivateUse = ... # type: QDnsTlsAssociationRecord.MatchingType + PrivMatch = ... # type: QDnsTlsAssociationRecord.MatchingType + + class Selector(enum.Enum): + FullCertificate = ... # type: QDnsTlsAssociationRecord.Selector + SubjectPublicKeyInfo = ... # type: QDnsTlsAssociationRecord.Selector + PrivateUse = ... # type: QDnsTlsAssociationRecord.Selector + Cert = ... # type: QDnsTlsAssociationRecord.Selector + SPKI = ... # type: QDnsTlsAssociationRecord.Selector + PrivSel = ... # type: QDnsTlsAssociationRecord.Selector + + class CertificateUsage(enum.Enum): + CertificateAuthorityConstrait = ... # type: QDnsTlsAssociationRecord.CertificateUsage + ServiceCertificateConstraint = ... # type: QDnsTlsAssociationRecord.CertificateUsage + TrustAnchorAssertion = ... # type: QDnsTlsAssociationRecord.CertificateUsage + DomainIssuedCertificate = ... # type: QDnsTlsAssociationRecord.CertificateUsage + PrivateUse = ... # type: QDnsTlsAssociationRecord.CertificateUsage + PKIX_TA = ... # type: QDnsTlsAssociationRecord.CertificateUsage + PKIX_EE = ... # type: QDnsTlsAssociationRecord.CertificateUsage + DANE_TA = ... # type: QDnsTlsAssociationRecord.CertificateUsage + DANE_EE = ... # type: QDnsTlsAssociationRecord.CertificateUsage + PrivCert = ... # type: QDnsTlsAssociationRecord.CertificateUsage + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QDnsTlsAssociationRecord') -> None: ... + + def value(self) -> QtCore.QByteArray: ... + def matchType(self) -> 'QDnsTlsAssociationRecord.MatchingType': ... + def selector(self) -> 'QDnsTlsAssociationRecord.Selector': ... + def usage(self) -> 'QDnsTlsAssociationRecord.CertificateUsage': ... + def timeToLive(self) -> int: ... + def name(self) -> str: ... + def swap(self, other: 'QDnsTlsAssociationRecord') -> None: ... + + +class QDnsLookup(QtCore.QObject): + + class Type(enum.Enum): + 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 + TLSA = ... # type: QDnsLookup.Type + + class Protocol(enum.Enum): + Standard = ... # type: QDnsLookup.Protocol + DnsOverTls = ... # type: QDnsLookup.Protocol + + class Error(enum.Enum): + 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 + TimeoutError = ... # type: QDnsLookup.Error + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, type: 'QDnsLookup.Type', name: str|None, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, type: 'QDnsLookup.Type', name: str|None, nameserver: 'QHostAddress'|'QHostAddress.SpecialAddress', parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, type: 'QDnsLookup.Type', name: str|None, nameserver: 'QHostAddress'|'QHostAddress.SpecialAddress', port: int, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, type: 'QDnsLookup.Type', name: str|None, protocol: 'QDnsLookup.Protocol', nameserver: 'QHostAddress'|'QHostAddress.SpecialAddress', port: int = ..., parent: QtCore.QObject|None = ...) -> None: ... + + nameserverProtocolChanged: typing.ClassVar[QtCore.pyqtSignal] + @staticmethod + def defaultPortForProtocol(protocol: 'QDnsLookup.Protocol') -> int: ... + @staticmethod + def isProtocolSupported(protocol: 'QDnsLookup.Protocol') -> bool: ... + def sslConfiguration(self) -> 'QSslConfiguration': ... + def setSslConfiguration(self, sslConfiguration: 'QSslConfiguration') -> None: ... + def tlsAssociationRecords(self) -> list[QDnsTlsAssociationRecord]: ... + def setNameserverProtocol(self, protocol: 'QDnsLookup.Protocol') -> None: ... + def nameserverProtocol(self) -> 'QDnsLookup.Protocol': ... + def isAuthenticData(self) -> bool: ... + nameserverPortChanged: typing.ClassVar[QtCore.pyqtSignal] + def setNameserverPort(self, port: int) -> None: ... + def nameserverPort(self) -> int: ... + nameserverChanged: typing.ClassVar[QtCore.pyqtSignal] + @typing.overload + def setNameserver(self, nameserver: 'QHostAddress'|'QHostAddress.SpecialAddress') -> None: ... + @typing.overload + def setNameserver(self, nameserver: 'QHostAddress'|'QHostAddress.SpecialAddress', port: int) -> None: ... + @typing.overload + def setNameserver(self, protocol: 'QDnsLookup.Protocol', nameserver: 'QHostAddress'|'QHostAddress.SpecialAddress', port: int = ...) -> None: ... + def nameserver(self) -> 'QHostAddress': ... + typeChanged: typing.ClassVar[QtCore.pyqtSignal] + nameChanged: typing.ClassVar[QtCore.pyqtSignal] + finished: typing.ClassVar[QtCore.pyqtSignal] + def lookup(self) -> None: ... + def abort(self) -> None: ... + def textRecords(self) -> list[QDnsTextRecord]: ... + def serviceRecords(self) -> list[QDnsServiceRecord]: ... + def pointerRecords(self) -> list[QDnsDomainNameRecord]: ... + def nameServerRecords(self) -> list[QDnsDomainNameRecord]: ... + def mailExchangeRecords(self) -> list[QDnsMailExchangeRecord]: ... + def hostAddressRecords(self) -> list[QDnsHostAddressRecord]: ... + def canonicalNameRecords(self) -> list[QDnsDomainNameRecord]: ... + def setType(self, a0: 'QDnsLookup.Type') -> None: ... + def type(self) -> 'QDnsLookup.Type': ... + def setName(self, name: str|None) -> None: ... + def name(self) -> str: ... + def isFinished(self) -> bool: ... + def errorString(self) -> str: ... + def error(self) -> 'QDnsLookup.Error': ... + + +class QFormDataPartBuilder(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QFormDataPartBuilder') -> None: ... + + def swap(self, other: 'QFormDataPartBuilder') -> None: ... + def setHeaders(self, headers: 'QHttpHeaders') -> 'QFormDataPartBuilder': ... + def setBodyDevice(self, body: QtCore.QIODevice|None, fileName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None = ..., mimeType: QtCore.QByteArray|bytes|bytearray|memoryview|str|None = ...) -> 'QFormDataPartBuilder': ... + def setBody(self, data: QtCore.QByteArray|bytes|bytearray|memoryview, fileName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None = ..., mimeType: QtCore.QByteArray|bytes|bytearray|memoryview|str|None = ...) -> 'QFormDataPartBuilder': ... + + +class QFormDataBuilder(PyQt6.sip.simplewrapper): + + class Option(enum.Enum): + Default = ... # type: QFormDataBuilder.Option + OmitRfc8187EncodedFilename = ... # type: QFormDataBuilder.Option + UseRfc7578PercentEncodedFilename = ... # type: QFormDataBuilder.Option + PreferLatin1EncodedFilename = ... # type: QFormDataBuilder.Option + StrictRfc7578 = ... # type: QFormDataBuilder.Option + + def __init__(self) -> None: ... + + def buildMultiPart(self, options: 'QFormDataBuilder.Option' = ...) -> 'QHttpMultiPart|None': ... + def part(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> QFormDataPartBuilder: ... + def swap(self, other: 'QFormDataBuilder') -> None: ... + + +class QHostAddress(PyQt6.sip.simplewrapper): + + class ConversionModeFlag(enum.Flag): + 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(enum.Enum): + 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 + + @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) -> None: ... + @typing.overload + def __init__(self, ip6Addr: tuple[int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int]) -> None: ... + @typing.overload + def __init__(self, copy: 'QHostAddress'|'QHostAddress.SpecialAddress') -> None: ... + + def isPrivateUse(self) -> bool: ... + def isBroadcast(self) -> bool: ... + def isUniqueLocalUnicast(self) -> bool: ... + def isSiteLocal(self) -> bool: ... + def isLinkLocal(self) -> bool: ... + def isGlobal(self) -> bool: ... + def isEqual(self, address: 'QHostAddress'|'QHostAddress.SpecialAddress', mode: 'QHostAddress.ConversionModeFlag' = ...) -> bool: ... + def isMulticast(self) -> bool: ... + def swap(self, other: 'QHostAddress') -> None: ... + @staticmethod + def parseSubnet(subnet: str|None) -> tuple['QHostAddress', int]: ... + def isLoopback(self) -> bool: ... + @typing.overload + def isInSubnet(self, subnet: 'QHostAddress'|'QHostAddress.SpecialAddress', netmask: int) -> bool: ... + @typing.overload + def isInSubnet(self, subnet: tuple['QHostAddress'|'QHostAddress.SpecialAddress', int]) -> bool: ... + def __hash__(self) -> int: ... + def clear(self) -> None: ... + def isNull(self) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def setScopeId(self, id: str|None) -> None: ... + def scopeId(self) -> str: ... + def toString(self) -> str: ... + def toIPv6Address(self) -> tuple[int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int]: ... + def toIPv4Address(self) -> typing.Tuple[int, bool]: ... + 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|None) -> bool: ... + @typing.overload + def setAddress(self, ip6Addr: tuple[int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int]) -> None: ... + + +class QHostInfo(PyQt6.sip.simplewrapper): + + class HostInfoError(enum.Enum): + 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|None) -> 'QHostInfo': ... + @staticmethod + def abortHostLookup(lookupId: int) -> None: ... + @staticmethod + def lookupHost(name: str|None, slot: PYQT_SLOT) -> int: ... + def lookupId(self) -> int: ... + def setLookupId(self, id: int) -> None: ... + def setErrorString(self, errorString: str|None) -> None: ... + def errorString(self) -> str: ... + def setError(self, error: 'QHostInfo.HostInfoError') -> None: ... + def error(self) -> 'QHostInfo.HostInfoError': ... + def setAddresses(self, addresses: collections.abc.Iterable[QHostAddress|QHostAddress.SpecialAddress]) -> None: ... + def addresses(self) -> list[QHostAddress]: ... + def setHostName(self, name: str|None) -> None: ... + def hostName(self) -> str: ... + + +class QHstsPolicy(PyQt6.sip.simplewrapper): + + class PolicyFlag(enum.Flag): + IncludeSubDomains = ... # type: QHstsPolicy.PolicyFlag + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, expiry: QtCore.QDateTime|datetime.datetime, flags: 'QHstsPolicy.PolicyFlag', host: str|None, mode: QtCore.QUrl.ParsingMode = ...) -> None: ... + @typing.overload + def __init__(self, rhs: 'QHstsPolicy') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def isExpired(self) -> bool: ... + def includesSubDomains(self) -> bool: ... + def setIncludesSubDomains(self, include: bool) -> None: ... + def expiry(self) -> QtCore.QDateTime: ... + def setExpiry(self, expiry: QtCore.QDateTime|datetime.datetime) -> None: ... + def host(self, options: QtCore.QUrl.ComponentFormattingOption = ...) -> str: ... + def setHost(self, host: str|None, mode: QtCore.QUrl.ParsingMode = ...) -> None: ... + def swap(self, other: 'QHstsPolicy') -> None: ... + + +class QHttp1Configuration(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QHttp1Configuration') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __hash__(self) -> int: ... + def swap(self, other: 'QHttp1Configuration') -> None: ... + def numberOfConnectionsPerHost(self) -> int: ... + def setNumberOfConnectionsPerHost(self, amount: int) -> None: ... + + +class QHttp2Configuration(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QHttp2Configuration') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def maxConcurrentStreams(self) -> int: ... + def setMaxConcurrentStreams(self, value: int) -> None: ... + def swap(self, other: 'QHttp2Configuration') -> None: ... + def maxFrameSize(self) -> int: ... + def setMaxFrameSize(self, size: int) -> bool: ... + def streamReceiveWindowSize(self) -> int: ... + def setStreamReceiveWindowSize(self, size: int) -> bool: ... + def sessionReceiveWindowSize(self) -> int: ... + def setSessionReceiveWindowSize(self, size: int) -> bool: ... + def huffmanCompressionEnabled(self) -> bool: ... + def setHuffmanCompressionEnabled(self, enable: bool) -> None: ... + def serverPushEnabled(self) -> bool: ... + def setServerPushEnabled(self, enable: bool) -> None: ... + + +class QHttpHeaders(PyQt6.sip.simplewrapper): + + class WellKnownHeader(enum.Enum): + AIM = ... # type: QHttpHeaders.WellKnownHeader + Accept = ... # type: QHttpHeaders.WellKnownHeader + AcceptAdditions = ... # type: QHttpHeaders.WellKnownHeader + AcceptCH = ... # type: QHttpHeaders.WellKnownHeader + AcceptDatetime = ... # type: QHttpHeaders.WellKnownHeader + AcceptEncoding = ... # type: QHttpHeaders.WellKnownHeader + AcceptFeatures = ... # type: QHttpHeaders.WellKnownHeader + AcceptLanguage = ... # type: QHttpHeaders.WellKnownHeader + AcceptPatch = ... # type: QHttpHeaders.WellKnownHeader + AcceptPost = ... # type: QHttpHeaders.WellKnownHeader + AcceptRanges = ... # type: QHttpHeaders.WellKnownHeader + AcceptSignature = ... # type: QHttpHeaders.WellKnownHeader + AccessControlAllowCredentials = ... # type: QHttpHeaders.WellKnownHeader + AccessControlAllowHeaders = ... # type: QHttpHeaders.WellKnownHeader + AccessControlAllowMethods = ... # type: QHttpHeaders.WellKnownHeader + AccessControlAllowOrigin = ... # type: QHttpHeaders.WellKnownHeader + AccessControlExposeHeaders = ... # type: QHttpHeaders.WellKnownHeader + AccessControlMaxAge = ... # type: QHttpHeaders.WellKnownHeader + AccessControlRequestHeaders = ... # type: QHttpHeaders.WellKnownHeader + AccessControlRequestMethod = ... # type: QHttpHeaders.WellKnownHeader + Age = ... # type: QHttpHeaders.WellKnownHeader + Allow = ... # type: QHttpHeaders.WellKnownHeader + ALPN = ... # type: QHttpHeaders.WellKnownHeader + AltSvc = ... # type: QHttpHeaders.WellKnownHeader + AltUsed = ... # type: QHttpHeaders.WellKnownHeader + Alternates = ... # type: QHttpHeaders.WellKnownHeader + ApplyToRedirectRef = ... # type: QHttpHeaders.WellKnownHeader + AuthenticationControl = ... # type: QHttpHeaders.WellKnownHeader + AuthenticationInfo = ... # type: QHttpHeaders.WellKnownHeader + Authorization = ... # type: QHttpHeaders.WellKnownHeader + CacheControl = ... # type: QHttpHeaders.WellKnownHeader + CacheStatus = ... # type: QHttpHeaders.WellKnownHeader + CalManagedID = ... # type: QHttpHeaders.WellKnownHeader + CalDAVTimezones = ... # type: QHttpHeaders.WellKnownHeader + CapsuleProtocol = ... # type: QHttpHeaders.WellKnownHeader + CDNCacheControl = ... # type: QHttpHeaders.WellKnownHeader + CDNLoop = ... # type: QHttpHeaders.WellKnownHeader + CertNotAfter = ... # type: QHttpHeaders.WellKnownHeader + CertNotBefore = ... # type: QHttpHeaders.WellKnownHeader + ClearSiteData = ... # type: QHttpHeaders.WellKnownHeader + ClientCert = ... # type: QHttpHeaders.WellKnownHeader + ClientCertChain = ... # type: QHttpHeaders.WellKnownHeader + Close = ... # type: QHttpHeaders.WellKnownHeader + Connection = ... # type: QHttpHeaders.WellKnownHeader + ContentDigest = ... # type: QHttpHeaders.WellKnownHeader + ContentDisposition = ... # type: QHttpHeaders.WellKnownHeader + ContentEncoding = ... # type: QHttpHeaders.WellKnownHeader + ContentID = ... # type: QHttpHeaders.WellKnownHeader + ContentLanguage = ... # type: QHttpHeaders.WellKnownHeader + ContentLength = ... # type: QHttpHeaders.WellKnownHeader + ContentLocation = ... # type: QHttpHeaders.WellKnownHeader + ContentRange = ... # type: QHttpHeaders.WellKnownHeader + ContentSecurityPolicy = ... # type: QHttpHeaders.WellKnownHeader + ContentSecurityPolicyReportOnly = ... # type: QHttpHeaders.WellKnownHeader + ContentType = ... # type: QHttpHeaders.WellKnownHeader + Cookie = ... # type: QHttpHeaders.WellKnownHeader + CrossOriginEmbedderPolicy = ... # type: QHttpHeaders.WellKnownHeader + CrossOriginEmbedderPolicyReportOnly = ... # type: QHttpHeaders.WellKnownHeader + CrossOriginOpenerPolicy = ... # type: QHttpHeaders.WellKnownHeader + CrossOriginOpenerPolicyReportOnly = ... # type: QHttpHeaders.WellKnownHeader + CrossOriginResourcePolicy = ... # type: QHttpHeaders.WellKnownHeader + DASL = ... # type: QHttpHeaders.WellKnownHeader + Date = ... # type: QHttpHeaders.WellKnownHeader + DAV = ... # type: QHttpHeaders.WellKnownHeader + DeltaBase = ... # type: QHttpHeaders.WellKnownHeader + Depth = ... # type: QHttpHeaders.WellKnownHeader + Destination = ... # type: QHttpHeaders.WellKnownHeader + DifferentialID = ... # type: QHttpHeaders.WellKnownHeader + DPoP = ... # type: QHttpHeaders.WellKnownHeader + DPoPNonce = ... # type: QHttpHeaders.WellKnownHeader + EarlyData = ... # type: QHttpHeaders.WellKnownHeader + ETag = ... # type: QHttpHeaders.WellKnownHeader + Expect = ... # type: QHttpHeaders.WellKnownHeader + ExpectCT = ... # type: QHttpHeaders.WellKnownHeader + Expires = ... # type: QHttpHeaders.WellKnownHeader + Forwarded = ... # type: QHttpHeaders.WellKnownHeader + From = ... # type: QHttpHeaders.WellKnownHeader + Hobareg = ... # type: QHttpHeaders.WellKnownHeader + Host = ... # type: QHttpHeaders.WellKnownHeader + If = ... # type: QHttpHeaders.WellKnownHeader + IfMatch = ... # type: QHttpHeaders.WellKnownHeader + IfModifiedSince = ... # type: QHttpHeaders.WellKnownHeader + IfNoneMatch = ... # type: QHttpHeaders.WellKnownHeader + IfRange = ... # type: QHttpHeaders.WellKnownHeader + IfScheduleTagMatch = ... # type: QHttpHeaders.WellKnownHeader + IfUnmodifiedSince = ... # type: QHttpHeaders.WellKnownHeader + IM = ... # type: QHttpHeaders.WellKnownHeader + IncludeReferredTokenBindingID = ... # type: QHttpHeaders.WellKnownHeader + KeepAlive = ... # type: QHttpHeaders.WellKnownHeader + Label = ... # type: QHttpHeaders.WellKnownHeader + LastEventID = ... # type: QHttpHeaders.WellKnownHeader + LastModified = ... # type: QHttpHeaders.WellKnownHeader + Link = ... # type: QHttpHeaders.WellKnownHeader + Location = ... # type: QHttpHeaders.WellKnownHeader + LockToken = ... # type: QHttpHeaders.WellKnownHeader + MaxForwards = ... # type: QHttpHeaders.WellKnownHeader + MementoDatetime = ... # type: QHttpHeaders.WellKnownHeader + Meter = ... # type: QHttpHeaders.WellKnownHeader + MIMEVersion = ... # type: QHttpHeaders.WellKnownHeader + Negotiate = ... # type: QHttpHeaders.WellKnownHeader + NEL = ... # type: QHttpHeaders.WellKnownHeader + ODataEntityId = ... # type: QHttpHeaders.WellKnownHeader + ODataIsolation = ... # type: QHttpHeaders.WellKnownHeader + ODataMaxVersion = ... # type: QHttpHeaders.WellKnownHeader + ODataVersion = ... # type: QHttpHeaders.WellKnownHeader + OptionalWWWAuthenticate = ... # type: QHttpHeaders.WellKnownHeader + OrderingType = ... # type: QHttpHeaders.WellKnownHeader + Origin = ... # type: QHttpHeaders.WellKnownHeader + OriginAgentCluster = ... # type: QHttpHeaders.WellKnownHeader + OSCORE = ... # type: QHttpHeaders.WellKnownHeader + OSLCCoreVersion = ... # type: QHttpHeaders.WellKnownHeader + Overwrite = ... # type: QHttpHeaders.WellKnownHeader + PingFrom = ... # type: QHttpHeaders.WellKnownHeader + PingTo = ... # type: QHttpHeaders.WellKnownHeader + Position = ... # type: QHttpHeaders.WellKnownHeader + Prefer = ... # type: QHttpHeaders.WellKnownHeader + PreferenceApplied = ... # type: QHttpHeaders.WellKnownHeader + Priority = ... # type: QHttpHeaders.WellKnownHeader + ProxyAuthenticate = ... # type: QHttpHeaders.WellKnownHeader + ProxyAuthenticationInfo = ... # type: QHttpHeaders.WellKnownHeader + ProxyAuthorization = ... # type: QHttpHeaders.WellKnownHeader + ProxyStatus = ... # type: QHttpHeaders.WellKnownHeader + PublicKeyPins = ... # type: QHttpHeaders.WellKnownHeader + PublicKeyPinsReportOnly = ... # type: QHttpHeaders.WellKnownHeader + Range = ... # type: QHttpHeaders.WellKnownHeader + RedirectRef = ... # type: QHttpHeaders.WellKnownHeader + Referer = ... # type: QHttpHeaders.WellKnownHeader + Refresh = ... # type: QHttpHeaders.WellKnownHeader + ReplayNonce = ... # type: QHttpHeaders.WellKnownHeader + ReprDigest = ... # type: QHttpHeaders.WellKnownHeader + RetryAfter = ... # type: QHttpHeaders.WellKnownHeader + ScheduleReply = ... # type: QHttpHeaders.WellKnownHeader + ScheduleTag = ... # type: QHttpHeaders.WellKnownHeader + SecPurpose = ... # type: QHttpHeaders.WellKnownHeader + SecTokenBinding = ... # type: QHttpHeaders.WellKnownHeader + SecWebSocketAccept = ... # type: QHttpHeaders.WellKnownHeader + SecWebSocketExtensions = ... # type: QHttpHeaders.WellKnownHeader + SecWebSocketKey = ... # type: QHttpHeaders.WellKnownHeader + SecWebSocketProtocol = ... # type: QHttpHeaders.WellKnownHeader + SecWebSocketVersion = ... # type: QHttpHeaders.WellKnownHeader + Server = ... # type: QHttpHeaders.WellKnownHeader + ServerTiming = ... # type: QHttpHeaders.WellKnownHeader + SetCookie = ... # type: QHttpHeaders.WellKnownHeader + Signature = ... # type: QHttpHeaders.WellKnownHeader + SignatureInput = ... # type: QHttpHeaders.WellKnownHeader + SLUG = ... # type: QHttpHeaders.WellKnownHeader + SoapAction = ... # type: QHttpHeaders.WellKnownHeader + StatusURI = ... # type: QHttpHeaders.WellKnownHeader + StrictTransportSecurity = ... # type: QHttpHeaders.WellKnownHeader + Sunset = ... # type: QHttpHeaders.WellKnownHeader + SurrogateCapability = ... # type: QHttpHeaders.WellKnownHeader + SurrogateControl = ... # type: QHttpHeaders.WellKnownHeader + TCN = ... # type: QHttpHeaders.WellKnownHeader + TE = ... # type: QHttpHeaders.WellKnownHeader + Timeout = ... # type: QHttpHeaders.WellKnownHeader + Topic = ... # type: QHttpHeaders.WellKnownHeader + Traceparent = ... # type: QHttpHeaders.WellKnownHeader + Tracestate = ... # type: QHttpHeaders.WellKnownHeader + Trailer = ... # type: QHttpHeaders.WellKnownHeader + TransferEncoding = ... # type: QHttpHeaders.WellKnownHeader + TTL = ... # type: QHttpHeaders.WellKnownHeader + Upgrade = ... # type: QHttpHeaders.WellKnownHeader + Urgency = ... # type: QHttpHeaders.WellKnownHeader + UserAgent = ... # type: QHttpHeaders.WellKnownHeader + VariantVary = ... # type: QHttpHeaders.WellKnownHeader + Vary = ... # type: QHttpHeaders.WellKnownHeader + Via = ... # type: QHttpHeaders.WellKnownHeader + WantContentDigest = ... # type: QHttpHeaders.WellKnownHeader + WantReprDigest = ... # type: QHttpHeaders.WellKnownHeader + WWWAuthenticate = ... # type: QHttpHeaders.WellKnownHeader + XContentTypeOptions = ... # type: QHttpHeaders.WellKnownHeader + XFrameOptions = ... # type: QHttpHeaders.WellKnownHeader + AcceptCharset = ... # type: QHttpHeaders.WellKnownHeader + CPEPInfo = ... # type: QHttpHeaders.WellKnownHeader + Pragma = ... # type: QHttpHeaders.WellKnownHeader + ProtocolInfo = ... # type: QHttpHeaders.WellKnownHeader + ProtocolQuery = ... # type: QHttpHeaders.WellKnownHeader + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QHttpHeaders') -> None: ... + + @typing.overload + def setDateTimeValue(self, name: 'QHttpHeaders.WellKnownHeader', dateTime: QtCore.QDateTime|datetime.datetime) -> None: ... + @typing.overload + def setDateTimeValue(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, dateTime: QtCore.QDateTime|datetime.datetime) -> None: ... + def dateTimeValueAt(self, i: int) -> QtCore.QDateTime|None: ... + @typing.overload + def dateTimeValues(self, name: 'QHttpHeaders.WellKnownHeader') -> list[QtCore.QDateTime]|None: ... + @typing.overload + def dateTimeValues(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> list[QtCore.QDateTime]|None: ... + @typing.overload + def dateTimeValue(self, name: 'QHttpHeaders.WellKnownHeader') -> QtCore.QDateTime|None: ... + @typing.overload + def dateTimeValue(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> QtCore.QDateTime|None: ... + def intValueAt(self, i: int) -> int|None: ... + @typing.overload + def intValues(self, name: 'QHttpHeaders.WellKnownHeader') -> list[int]|None: ... + @typing.overload + def intValues(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> list[int]|None: ... + @typing.overload + def intValue(self, name: 'QHttpHeaders.WellKnownHeader') -> int|None: ... + @typing.overload + def intValue(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> int|None: ... + @typing.overload + def replaceOrAppend(self, name: 'QHttpHeaders.WellKnownHeader', newValue: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ... + @typing.overload + def replaceOrAppend(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, newValue: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ... + def toListOfPairs(self) -> list[tuple[QtCore.QByteArray, QtCore.QByteArray]]: ... + @staticmethod + def fromListOfPairs(headers: collections.abc.Iterable[tuple[QtCore.QByteArray|bytes|bytearray|memoryview, QtCore.QByteArray|bytes|bytearray|memoryview]]) -> 'QHttpHeaders': ... + @staticmethod + def wellKnownHeaderName(name: 'QHttpHeaders.WellKnownHeader') -> QtCore.QByteArray: ... + def isEmpty(self) -> bool: ... + def reserve(self, size: int) -> None: ... + def size(self) -> int: ... + @typing.overload + def combinedValue(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> QtCore.QByteArray: ... + @typing.overload + def combinedValue(self, name: 'QHttpHeaders.WellKnownHeader') -> QtCore.QByteArray: ... + def nameAt(self, i: int) -> str: ... + def valueAt(self, i: int) -> QtCore.QByteArray: ... + @typing.overload + def values(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> list[QtCore.QByteArray]: ... + @typing.overload + def values(self, name: 'QHttpHeaders.WellKnownHeader') -> list[QtCore.QByteArray]: ... + @typing.overload + def value(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, defaultValue: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> QtCore.QByteArray: ... + @typing.overload + def value(self, name: 'QHttpHeaders.WellKnownHeader', defaultValue: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> QtCore.QByteArray: ... + def removeAt(self, i: int) -> None: ... + @typing.overload + def removeAll(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + @typing.overload + def removeAll(self, name: 'QHttpHeaders.WellKnownHeader') -> None: ... + def clear(self) -> None: ... + @typing.overload + def contains(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ... + @typing.overload + def contains(self, name: 'QHttpHeaders.WellKnownHeader') -> bool: ... + @typing.overload + def replace(self, i: int, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, newValue: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ... + @typing.overload + def replace(self, i: int, name: 'QHttpHeaders.WellKnownHeader', newValue: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ... + @typing.overload + def insert(self, i: int, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, value: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ... + @typing.overload + def insert(self, i: int, name: 'QHttpHeaders.WellKnownHeader', value: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ... + @typing.overload + def append(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, value: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ... + @typing.overload + def append(self, name: 'QHttpHeaders.WellKnownHeader', value: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ... + def swap(self, other: 'QHttpHeaders') -> None: ... + + +class QHttpPart(PyQt6.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) -> None: ... + def setBody(self, body: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def setRawHeader(self, headerName: QtCore.QByteArray|bytes|bytearray|memoryview, headerValue: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def setHeader(self, header: 'QNetworkRequest.KnownHeaders', value: typing.Any) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + +class QHttpMultiPart(QtCore.QObject): + + class ContentType(enum.Enum): + MixedType = ... # type: QHttpMultiPart.ContentType + RelatedType = ... # type: QHttpMultiPart.ContentType + FormDataType = ... # type: QHttpMultiPart.ContentType + AlternativeType = ... # type: QHttpMultiPart.ContentType + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, contentType: 'QHttpMultiPart.ContentType', parent: QtCore.QObject|None = ...) -> None: ... + + def setBoundary(self, boundary: QtCore.QByteArray|bytes|bytearray|memoryview) -> 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(enum.Flag): + UserAccessOption = ... # type: QLocalServer.SocketOption + GroupAccessOption = ... # type: QLocalServer.SocketOption + OtherAccessOption = ... # type: QLocalServer.SocketOption + WorldAccessOption = ... # type: QLocalServer.SocketOption + AbstractNamespaceOption = ... # type: QLocalServer.SocketOption + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def listenBacklogSize(self) -> int: ... + def setListenBacklogSize(self, size: int) -> None: ... + def socketDescriptor(self) -> PyQt6.sip.voidptr: ... + def socketOptions(self) -> 'QLocalServer.SocketOption': ... + def setSocketOptions(self, options: 'QLocalServer.SocketOption') -> None: ... + def addPendingConnection(self, socket: 'QLocalSocket|None') -> None: ... + def incomingConnection(self, socketDescriptor: PyQt6.sip.voidptr) -> None: ... + newConnection: typing.ClassVar[QtCore.pyqtSignal] + @staticmethod + def removeServer(name: str|None) -> 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|None': ... + def maxPendingConnections(self) -> int: ... + @typing.overload + def listen(self, name: str|None) -> bool: ... + @typing.overload + def listen(self, socketDescriptor: PyQt6.sip.voidptr) -> bool: ... + def isListening(self) -> bool: ... + def hasPendingConnections(self) -> bool: ... + def errorString(self) -> str: ... + def close(self) -> None: ... + + +class QLocalSocket(QtCore.QIODevice): + + class SocketOption(enum.Flag): + NoOptions = ... # type: QLocalSocket.SocketOption + AbstractNamespaceOption = ... # type: QLocalSocket.SocketOption + + class LocalSocketState(enum.Enum): + UnconnectedState = ... # type: QLocalSocket.LocalSocketState + ConnectingState = ... # type: QLocalSocket.LocalSocketState + ConnectedState = ... # type: QLocalSocket.LocalSocketState + ClosingState = ... # type: QLocalSocket.LocalSocketState + + class LocalSocketError(enum.Enum): + 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: QtCore.QObject|None = ...) -> None: ... + + def readLineData(self, maxlen: int) -> bytes: ... + def socketOptions(self) -> 'QLocalSocket.SocketOption': ... + def setSocketOptions(self, option: 'QLocalSocket.SocketOption') -> None: ... + def skipData(self, maxSize: int) -> int: ... + def writeData(self, a0: PyQt6.sip.Buffer) -> int: ... + def readData(self, maxlen: int) -> bytes: ... + stateChanged: typing.ClassVar[QtCore.pyqtSignal] + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + disconnected: typing.ClassVar[QtCore.pyqtSignal] + connected: typing.ClassVar[QtCore.pyqtSignal] + 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) -> PyQt6.sip.voidptr: ... + def setSocketDescriptor(self, socketDescriptor: PyQt6.sip.voidptr, state: 'QLocalSocket.LocalSocketState' = ..., mode: QtCore.QIODeviceBase.OpenModeFlag = ...) -> bool: ... + def setReadBufferSize(self, size: int) -> None: ... + def readBufferSize(self) -> int: ... + def isValid(self) -> bool: ... + def flush(self) -> bool: ... + def error(self) -> 'QLocalSocket.LocalSocketError': ... + 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) -> None: ... + def serverName(self) -> str: ... + def open(self, mode: QtCore.QIODeviceBase.OpenModeFlag = ...) -> bool: ... + def disconnectFromServer(self) -> None: ... + @typing.overload + def connectToServer(self, name: str|None, mode: QtCore.QIODeviceBase.OpenModeFlag = ...) -> None: ... + @typing.overload + def connectToServer(self, mode: QtCore.QIODeviceBase.OpenModeFlag = ...) -> None: ... + + +class QNetworkAccessManager(QtCore.QObject): + + class Operation(enum.Enum): + 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: QtCore.QObject|None = ...) -> None: ... + + def setTransferTimeout(self, timeout: int = ...) -> None: ... + def transferTimeout(self) -> int: ... + def setAutoDeleteReplies(self, autoDelete: bool) -> None: ... + def autoDeleteReplies(self) -> bool: ... + def isStrictTransportSecurityStoreEnabled(self) -> bool: ... + def enableStrictTransportSecurityStore(self, enabled: bool, storeDir: str|None = ...) -> None: ... + def redirectPolicy(self) -> 'QNetworkRequest.RedirectPolicy': ... + def setRedirectPolicy(self, policy: 'QNetworkRequest.RedirectPolicy') -> None: ... + def strictTransportSecurityHosts(self) -> list[QHstsPolicy]: ... + def addStrictTransportSecurityHosts(self, knownHosts: collections.abc.Iterable[QHstsPolicy]) -> None: ... + def isStrictTransportSecurityEnabled(self) -> bool: ... + def setStrictTransportSecurityEnabled(self, enabled: bool) -> None: ... + def clearConnectionCache(self) -> None: ... + def supportedSchemesImplementation(self) -> list[str]: ... + def connectToHost(self, hostName: str|None, port: int = ...) -> None: ... + @typing.overload + def connectToHostEncrypted(self, hostName: str|None, port: int = ..., sslConfiguration: 'QSslConfiguration' = ...) -> None: ... + @typing.overload + def connectToHostEncrypted(self, hostName: str|None, port: int, sslConfiguration: 'QSslConfiguration', peerName: str|None) -> None: ... + def supportedSchemes(self) -> list[str]: ... + def clearAccessCache(self) -> None: ... + @typing.overload + def sendCustomRequest(self, request: 'QNetworkRequest', verb: QtCore.QByteArray|bytes|bytearray|memoryview, data: QtCore.QIODevice|None = ...) -> 'QNetworkReply|None': ... + @typing.overload + def sendCustomRequest(self, request: 'QNetworkRequest', verb: QtCore.QByteArray|bytes|bytearray|memoryview, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> 'QNetworkReply|None': ... + @typing.overload + def sendCustomRequest(self, request: 'QNetworkRequest', verb: QtCore.QByteArray|bytes|bytearray|memoryview, multiPart: QHttpMultiPart|None) -> 'QNetworkReply|None': ... + def deleteResource(self, request: 'QNetworkRequest') -> 'QNetworkReply|None': ... + def setCache(self, cache: QAbstractNetworkCache|None) -> None: ... + def cache(self) -> QAbstractNetworkCache|None: ... + def setProxyFactory(self, factory: 'QNetworkProxyFactory|None') -> None: ... + def proxyFactory(self) -> 'QNetworkProxyFactory|None': ... + def createRequest(self, op: 'QNetworkAccessManager.Operation', request: 'QNetworkRequest', device: QtCore.QIODevice|None = ...) -> 'QNetworkReply': ... + preSharedKeyAuthenticationRequired: typing.ClassVar[QtCore.pyqtSignal] + sslErrors: typing.ClassVar[QtCore.pyqtSignal] + encrypted: typing.ClassVar[QtCore.pyqtSignal] + finished: typing.ClassVar[QtCore.pyqtSignal] + authenticationRequired: typing.ClassVar[QtCore.pyqtSignal] + proxyAuthenticationRequired: typing.ClassVar[QtCore.pyqtSignal] + @typing.overload + def put(self, request: 'QNetworkRequest', data: QtCore.QIODevice|None) -> 'QNetworkReply|None': ... + @typing.overload + def put(self, request: 'QNetworkRequest', data: QtCore.QByteArray|bytes|bytearray|memoryview) -> 'QNetworkReply|None': ... + @typing.overload + def put(self, request: 'QNetworkRequest', multiPart: QHttpMultiPart|None) -> 'QNetworkReply|None': ... + @typing.overload + def post(self, request: 'QNetworkRequest', data: QtCore.QIODevice|None) -> 'QNetworkReply|None': ... + @typing.overload + def post(self, request: 'QNetworkRequest', data: QtCore.QByteArray|bytes|bytearray|memoryview) -> 'QNetworkReply|None': ... + @typing.overload + def post(self, request: 'QNetworkRequest', multiPart: QHttpMultiPart|None) -> 'QNetworkReply|None': ... + @typing.overload + def get(self, request: 'QNetworkRequest') -> 'QNetworkReply|None': ... + @typing.overload + def get(self, request: 'QNetworkRequest', data: QtCore.QByteArray|bytes|bytearray|memoryview) -> 'QNetworkReply|None': ... + @typing.overload + def get(self, request: 'QNetworkRequest', data: QtCore.QIODevice|None) -> 'QNetworkReply|None': ... + def head(self, request: 'QNetworkRequest') -> 'QNetworkReply|None': ... + def setCookieJar(self, cookieJar: 'QNetworkCookieJar|None') -> None: ... + def cookieJar(self) -> 'QNetworkCookieJar|None': ... + def setProxy(self, proxy: 'QNetworkProxy') -> None: ... + def proxy(self) -> 'QNetworkProxy': ... + + +class QNetworkCookie(PyQt6.sip.simplewrapper): + + class SameSite(enum.Enum): + Default = ... # type: QNetworkCookie.SameSite + None_ = ... # type: QNetworkCookie.SameSite + Lax = ... # type: QNetworkCookie.SameSite + Strict = ... # type: QNetworkCookie.SameSite + + class RawForm(enum.Enum): + NameAndValueOnly = ... # type: QNetworkCookie.RawForm + Full = ... # type: QNetworkCookie.RawForm + + @typing.overload + def __init__(self, name: QtCore.QByteArray|bytes|bytearray|memoryview = ..., value: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QNetworkCookie') -> None: ... + + def setSameSitePolicy(self, sameSite: 'QNetworkCookie.SameSite') -> None: ... + def sameSitePolicy(self) -> 'QNetworkCookie.SameSite': ... + 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: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + @staticmethod + def parseCookies(cookieString: QtCore.QByteArray|bytes|bytearray|memoryview) -> list['QNetworkCookie']: ... + def toRawForm(self, form: 'QNetworkCookie.RawForm' = ...) -> QtCore.QByteArray: ... + def setValue(self, value: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def value(self) -> QtCore.QByteArray: ... + def setName(self, cookieName: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def name(self) -> QtCore.QByteArray: ... + def setPath(self, path: str|None) -> None: ... + def path(self) -> str: ... + def setDomain(self, domain: str|None) -> None: ... + def domain(self) -> str: ... + def setExpirationDate(self, date: 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: QtCore.QObject|None = ...) -> None: ... + + def validateCookie(self, cookie: QNetworkCookie, url: QtCore.QUrl) -> bool: ... + def allCookies(self) -> list[QNetworkCookie]: ... + def setAllCookies(self, cookieList: collections.abc.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: collections.abc.Iterable[QNetworkCookie], url: QtCore.QUrl) -> bool: ... + def cookiesForUrl(self, url: QtCore.QUrl) -> list[QNetworkCookie]: ... + + +class QNetworkDatagram(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, data: QtCore.QByteArray|bytes|bytearray|memoryview, destinationAddress: QHostAddress|QHostAddress.SpecialAddress = ..., port: int = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QNetworkDatagram') -> None: ... + + def makeReply(self, payload: QtCore.QByteArray|bytes|bytearray|memoryview) -> 'QNetworkDatagram': ... + def setData(self, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def data(self) -> QtCore.QByteArray: ... + def setHopLimit(self, count: int) -> None: ... + def hopLimit(self) -> int: ... + def setDestination(self, address: QHostAddress|QHostAddress.SpecialAddress, port: int) -> None: ... + def setSender(self, address: 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: QtCore.QObject|None = ...) -> None: ... + + def expire(self) -> int: ... + def clear(self) -> None: ... + def fileMetaData(self, fileName: str|None) -> QNetworkCacheMetaData: ... + def insert(self, device: QtCore.QIODevice|None) -> None: ... + def prepare(self, metaData: QNetworkCacheMetaData) -> QtCore.QIODevice|None: ... + def remove(self, url: QtCore.QUrl) -> bool: ... + def data(self, url: QtCore.QUrl) -> QtCore.QIODevice|None: ... + 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) -> None: ... + def cacheDirectory(self) -> str: ... + + +class QNetworkInformation(QtCore.QObject): + + class TransportMedium(enum.Enum): + Unknown = ... # type: QNetworkInformation.TransportMedium + Ethernet = ... # type: QNetworkInformation.TransportMedium + Cellular = ... # type: QNetworkInformation.TransportMedium + WiFi = ... # type: QNetworkInformation.TransportMedium + Bluetooth = ... # type: QNetworkInformation.TransportMedium + + class Feature(enum.Enum): + Reachability = ... # type: QNetworkInformation.Feature + CaptivePortal = ... # type: QNetworkInformation.Feature + TransportMedium = ... # type: QNetworkInformation.Feature + Metered = ... # type: QNetworkInformation.Feature + + class Reachability(enum.Enum): + Unknown = ... # type: QNetworkInformation.Reachability + Disconnected = ... # type: QNetworkInformation.Reachability + Local = ... # type: QNetworkInformation.Reachability + Site = ... # type: QNetworkInformation.Reachability + Online = ... # type: QNetworkInformation.Reachability + + @staticmethod + def loadBackendByFeatures(features: 'QNetworkInformation.Feature') -> bool: ... + @staticmethod + def loadBackendByName(backend: str) -> bool: ... + isMeteredChanged: typing.ClassVar[QtCore.pyqtSignal] + transportMediumChanged: typing.ClassVar[QtCore.pyqtSignal] + @staticmethod + def loadDefaultBackend() -> bool: ... + def supportedFeatures(self) -> 'QNetworkInformation.Feature': ... + def isMetered(self) -> bool: ... + def transportMedium(self) -> 'QNetworkInformation.TransportMedium': ... + isBehindCaptivePortalChanged: typing.ClassVar[QtCore.pyqtSignal] + def isBehindCaptivePortal(self) -> bool: ... + reachabilityChanged: typing.ClassVar[QtCore.pyqtSignal] + @staticmethod + def instance() -> 'QNetworkInformation|None': ... + @staticmethod + def availableBackends() -> list[str]: ... + @typing.overload + @staticmethod + def load(backend: str) -> bool: ... + @typing.overload + @staticmethod + def load(features: 'QNetworkInformation.Feature') -> bool: ... + def supports(self, features: 'QNetworkInformation.Feature') -> bool: ... + def backendName(self) -> str: ... + def reachability(self) -> 'QNetworkInformation.Reachability': ... + + +class QNetworkAddressEntry(PyQt6.sip.simplewrapper): + + class DnsEligibilityStatus(enum.Enum): + 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 __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def setBroadcast(self, newBroadcast: QHostAddress|QHostAddress.SpecialAddress) -> None: ... + def broadcast(self) -> QHostAddress: ... + def setNetmask(self, newNetmask: QHostAddress|QHostAddress.SpecialAddress) -> None: ... + def netmask(self) -> QHostAddress: ... + def setIp(self, newIp: QHostAddress|QHostAddress.SpecialAddress) -> None: ... + def ip(self) -> QHostAddress: ... + + +class QNetworkInterface(PyQt6.sip.simplewrapper): + + class InterfaceType(enum.Enum): + 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(enum.Flag): + IsUp = ... # type: QNetworkInterface.InterfaceFlag + IsRunning = ... # type: QNetworkInterface.InterfaceFlag + CanBroadcast = ... # type: QNetworkInterface.InterfaceFlag + IsLoopBack = ... # type: QNetworkInterface.InterfaceFlag + IsPointToPoint = ... # type: QNetworkInterface.InterfaceFlag + CanMulticast = ... # type: QNetworkInterface.InterfaceFlag + + @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|None) -> int: ... + def swap(self, other: 'QNetworkInterface') -> None: ... + def humanReadableName(self) -> str: ... + def index(self) -> int: ... + @staticmethod + def allAddresses() -> list[QHostAddress]: ... + @staticmethod + def allInterfaces() -> list['QNetworkInterface']: ... + @staticmethod + def interfaceFromIndex(index: int) -> 'QNetworkInterface': ... + @staticmethod + def interfaceFromName(name: str|None) -> 'QNetworkInterface': ... + def addressEntries(self) -> list[QNetworkAddressEntry]: ... + def hardwareAddress(self) -> str: ... + def flags(self) -> 'QNetworkInterface.InterfaceFlag': ... + def name(self) -> str: ... + def isValid(self) -> bool: ... + + +class QNetworkProxy(PyQt6.sip.simplewrapper): + + class Capability(enum.Flag): + 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(enum.Enum): + DefaultProxy = ... # type: QNetworkProxy.ProxyType + Socks5Proxy = ... # type: QNetworkProxy.ProxyType + NoProxy = ... # type: QNetworkProxy.ProxyType + HttpProxy = ... # type: QNetworkProxy.ProxyType + HttpCachingProxy = ... # type: QNetworkProxy.ProxyType + FtpCachingProxy = ... # type: QNetworkProxy.ProxyType + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, type: 'QNetworkProxy.ProxyType', hostName: str|None = ..., port: int = ..., user: str|None = ..., password: str|None = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QNetworkProxy') -> None: ... + + def setHeaders(self, newHeaders: QHttpHeaders) -> None: ... + def headers(self) -> QHttpHeaders: ... + def setRawHeader(self, headerName: QtCore.QByteArray|bytes|bytearray|memoryview, value: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def rawHeader(self, headerName: QtCore.QByteArray|bytes|bytearray|memoryview) -> QtCore.QByteArray: ... + def rawHeaderList(self) -> list[QtCore.QByteArray]: ... + def hasRawHeader(self, headerName: QtCore.QByteArray|bytes|bytearray|memoryview) -> 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.Capability': ... + def setCapabilities(self, capab: 'QNetworkProxy.Capability') -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + 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) -> None: ... + def password(self) -> str: ... + def setPassword(self, password: str|None) -> None: ... + def user(self) -> str: ... + def setUser(self, userName: str|None) -> None: ... + def type(self) -> 'QNetworkProxy.ProxyType': ... + def setType(self, type: 'QNetworkProxy.ProxyType') -> None: ... + + +class QNetworkProxyQuery(PyQt6.sip.simplewrapper): + + class QueryType(enum.Enum): + 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|None, port: int, protocolTag: str|None = ..., type: 'QNetworkProxyQuery.QueryType' = ...) -> None: ... + @typing.overload + def __init__(self, bindPort: int, protocolTag: str|None = ..., type: 'QNetworkProxyQuery.QueryType' = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QNetworkProxyQuery') -> None: ... + + def swap(self, other: 'QNetworkProxyQuery') -> None: ... + def setUrl(self, url: QtCore.QUrl) -> None: ... + def url(self) -> QtCore.QUrl: ... + def setProtocolTag(self, protocolTag: str|None) -> None: ... + def protocolTag(self) -> str: ... + def setLocalPort(self, port: int) -> None: ... + def localPort(self) -> int: ... + def setPeerHostName(self, hostname: str|None) -> 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': ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + +class QNetworkProxyFactory(PyQt6.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 = ...) -> list[QNetworkProxy]: ... + @staticmethod + def proxyForQuery(query: QNetworkProxyQuery) -> list[QNetworkProxy]: ... + @staticmethod + def setApplicationProxyFactory(factory: 'QNetworkProxyFactory|None') -> None: ... + def queryProxy(self, query: QNetworkProxyQuery = ...) -> list[QNetworkProxy]: ... + + +class QNetworkReply(QtCore.QIODevice): + + class NetworkError(enum.Enum): + 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: QtCore.QObject|None = ...) -> None: ... + + def setWellKnownHeader(self, name: QHttpHeaders.WellKnownHeader, value: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def setHeaders(self, newHeaders: QHttpHeaders) -> None: ... + def headers(self) -> QHttpHeaders: ... + requestSent: typing.ClassVar[QtCore.pyqtSignal] + socketStartedConnecting: typing.ClassVar[QtCore.pyqtSignal] + def ignoreSslErrorsImplementation(self, a0: collections.abc.Iterable['QSslError']) -> None: ... + def setSslConfigurationImplementation(self, a0: 'QSslConfiguration') -> None: ... + def sslConfigurationImplementation(self, a0: 'QSslConfiguration') -> None: ... + def rawHeaderPairs(self) -> list[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: QtCore.QByteArray|bytes|bytearray|memoryview, value: QtCore.QByteArray|bytes|bytearray|memoryview) -> 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) -> None: ... + def setRequest(self, request: 'QNetworkRequest') -> None: ... + def setOperation(self, operation: QNetworkAccessManager.Operation) -> None: ... + def writeData(self, a0: PyQt6.sip.Buffer) -> int: ... + redirectAllowed: typing.ClassVar[QtCore.pyqtSignal] + redirected: typing.ClassVar[QtCore.pyqtSignal] + preSharedKeyAuthenticationRequired: typing.ClassVar[QtCore.pyqtSignal] + downloadProgress: typing.ClassVar[QtCore.pyqtSignal] + uploadProgress: typing.ClassVar[QtCore.pyqtSignal] + sslErrors: typing.ClassVar[QtCore.pyqtSignal] + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + encrypted: typing.ClassVar[QtCore.pyqtSignal] + finished: typing.ClassVar[QtCore.pyqtSignal] + metaDataChanged: typing.ClassVar[QtCore.pyqtSignal] + @typing.overload + def ignoreSslErrors(self) -> None: ... + @typing.overload + def ignoreSslErrors(self, errors: collections.abc.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: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> QtCore.QByteArray: ... + def rawHeaderList(self) -> list[QtCore.QByteArray]: ... + def hasRawHeader(self, headerName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ... + def header(self, header: 'QNetworkRequest.KnownHeaders') -> typing.Any: ... + def url(self) -> QtCore.QUrl: ... + def error(self) -> 'QNetworkReply.NetworkError': ... + def request(self) -> 'QNetworkRequest': ... + def operation(self) -> QNetworkAccessManager.Operation: ... + def manager(self) -> QNetworkAccessManager|None: ... + def setReadBufferSize(self, size: int) -> None: ... + def readBufferSize(self) -> int: ... + def isSequential(self) -> bool: ... + def close(self) -> None: ... + def abort(self) -> None: ... + + +class QNetworkRequest(PyQt6.sip.simplewrapper): + + class TransferTimeoutConstant(enum.Enum): + DefaultTransferTimeoutConstant = ... # type: QNetworkRequest.TransferTimeoutConstant + + class RedirectPolicy(enum.Enum): + ManualRedirectPolicy = ... # type: QNetworkRequest.RedirectPolicy + NoLessSafeRedirectPolicy = ... # type: QNetworkRequest.RedirectPolicy + SameOriginRedirectPolicy = ... # type: QNetworkRequest.RedirectPolicy + UserVerifiedRedirectPolicy = ... # type: QNetworkRequest.RedirectPolicy + + class Priority(enum.Enum): + HighPriority = ... # type: QNetworkRequest.Priority + NormalPriority = ... # type: QNetworkRequest.Priority + LowPriority = ... # type: QNetworkRequest.Priority + + class LoadControl(enum.Enum): + Automatic = ... # type: QNetworkRequest.LoadControl + Manual = ... # type: QNetworkRequest.LoadControl + + class CacheLoadControl(enum.Enum): + AlwaysNetwork = ... # type: QNetworkRequest.CacheLoadControl + PreferNetwork = ... # type: QNetworkRequest.CacheLoadControl + PreferCache = ... # type: QNetworkRequest.CacheLoadControl + AlwaysCache = ... # type: QNetworkRequest.CacheLoadControl + + class Attribute(enum.Enum): + 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 + EmitAllUploadProgressSignalsAttribute = ... # type: QNetworkRequest.Attribute + Http2AllowedAttribute = ... # type: QNetworkRequest.Attribute + Http2WasUsedAttribute = ... # type: QNetworkRequest.Attribute + OriginalContentLengthAttribute = ... # type: QNetworkRequest.Attribute + RedirectPolicyAttribute = ... # type: QNetworkRequest.Attribute + Http2DirectAttribute = ... # type: QNetworkRequest.Attribute + AutoDeleteReplyOnFinishAttribute = ... # type: QNetworkRequest.Attribute + ConnectionCacheExpiryTimeoutSecondsAttribute = ... # type: QNetworkRequest.Attribute + Http2CleartextAllowedAttribute = ... # type: QNetworkRequest.Attribute + UseCredentialsAttribute = ... # type: QNetworkRequest.Attribute + FullLocalServerNameAttribute = ... # type: QNetworkRequest.Attribute + User = ... # type: QNetworkRequest.Attribute + UserMax = ... # type: QNetworkRequest.Attribute + + class KnownHeaders(enum.Enum): + 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 + + DefaultTransferTimeout = ... # type: int + + @typing.overload + def __init__(self, url: QtCore.QUrl) -> None: ... + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QNetworkRequest') -> None: ... + + def setTcpKeepAliveProbeCount(self, probes: int) -> None: ... + def tcpKeepAliveProbeCount(self) -> int: ... + def setTcpKeepAliveIntervalBetweenProbes(self, interval: int) -> None: ... + def tcpKeepAliveIntervalBetweenProbes(self) -> int: ... + def setTcpKeepAliveIdleTimeBeforeProbes(self, idle: int) -> None: ... + def tcpKeepAliveIdleTimeBeforeProbes(self) -> int: ... + def setHeaders(self, newHeaders: QHttpHeaders) -> None: ... + def headers(self) -> QHttpHeaders: ... + def setDecompressedSafetyCheckThreshold(self, threshold: int) -> None: ... + def decompressedSafetyCheckThreshold(self) -> int: ... + def setTransferTimeout(self, timeout: int = ...) -> None: ... + def transferTimeout(self) -> int: ... + def setHttp2Configuration(self, configuration: QHttp2Configuration) -> None: ... + def setHttp1Configuration(self, configuration: QHttp1Configuration) -> None: ... + def http2Configuration(self) -> QHttp2Configuration: ... + def http1Configuration(self) -> QHttp1Configuration: ... + def setPeerVerifyName(self, peerName: str|None) -> 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|None: ... + def setOriginatingObject(self, object: QtCore.QObject|None) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + 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: QtCore.QByteArray|bytes|bytearray|memoryview, value: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def rawHeader(self, headerName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> QtCore.QByteArray: ... + def rawHeaderList(self) -> list[QtCore.QByteArray]: ... + def hasRawHeader(self, headerName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> 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 QNetworkRequestFactory(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, baseUrl: QtCore.QUrl) -> None: ... + @typing.overload + def __init__(self, other: 'QNetworkRequestFactory') -> None: ... + + def clearAttributes(self) -> None: ... + def clearAttribute(self, attribute: QNetworkRequest.Attribute) -> None: ... + def setAttribute(self, attribute: QNetworkRequest.Attribute, value: typing.Any) -> None: ... + @typing.overload + def attribute(self, attribute: QNetworkRequest.Attribute) -> typing.Any: ... + @typing.overload + def attribute(self, attribute: QNetworkRequest.Attribute, defaultValue: typing.Any) -> typing.Any: ... + def priority(self) -> QNetworkRequest.Priority: ... + def setPriority(self, priority: QNetworkRequest.Priority) -> None: ... + def clearQueryParameters(self) -> None: ... + def setQueryParameters(self, query: QtCore.QUrlQuery) -> None: ... + def queryParameters(self) -> QtCore.QUrlQuery: ... + def transferTimeout(self) -> int: ... + def setTransferTimeout(self, timeout: int) -> None: ... + def clearPassword(self) -> None: ... + def setPassword(self, password: str|None) -> None: ... + def password(self) -> str: ... + def clearUserName(self) -> None: ... + def setUserName(self, userName: str|None) -> None: ... + def userName(self) -> str: ... + def clearBearerToken(self) -> None: ... + def setBearerToken(self, token: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def bearerToken(self) -> QtCore.QByteArray: ... + def clearCommonHeaders(self) -> None: ... + def commonHeaders(self) -> QHttpHeaders: ... + def setCommonHeaders(self, headers: QHttpHeaders) -> None: ... + @typing.overload + def createRequest(self) -> QNetworkRequest: ... + @typing.overload + def createRequest(self, query: QtCore.QUrlQuery) -> QNetworkRequest: ... + @typing.overload + def createRequest(self, path: str|None) -> QNetworkRequest: ... + @typing.overload + def createRequest(self, path: str|None, query: QtCore.QUrlQuery) -> QNetworkRequest: ... + def setSslConfiguration(self, configuration: 'QSslConfiguration') -> None: ... + def sslConfiguration(self) -> 'QSslConfiguration': ... + def setBaseUrl(self, url: QtCore.QUrl) -> None: ... + def baseUrl(self) -> QtCore.QUrl: ... + def swap(self, other: 'QNetworkRequestFactory') -> None: ... + + +class QOcspResponse(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QOcspResponse') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + 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(PyQt6.sip.simplewrapper): + + def deriveKeyPbkdf2(self, algorithm: QtCore.QCryptographicHash.Algorithm, password: QtCore.QByteArray|bytes|bytearray|memoryview, salt: QtCore.QByteArray|bytes|bytearray|memoryview, iterations: int, dkLen: int) -> QtCore.QByteArray: ... + def deriveKeyPbkdf1(self, algorithm: QtCore.QCryptographicHash.Algorithm, password: QtCore.QByteArray|bytes|bytearray|memoryview, salt: QtCore.QByteArray|bytes|bytearray|memoryview, iterations: int, dkLen: int) -> QtCore.QByteArray: ... + + +class QRestAccessManager(QtCore.QObject): + + def __init__(self, manager: QNetworkAccessManager|None, parent: QtCore.QObject|None = ...) -> None: ... + + @typing.overload + def sendCustomRequest(self, request: QNetworkRequest, method: QtCore.QByteArray|bytes|bytearray|memoryview, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> QNetworkReply|None: ... + @typing.overload + def sendCustomRequest(self, request: QNetworkRequest, method: QtCore.QByteArray|bytes|bytearray|memoryview, data: QtCore.QIODevice|None) -> QNetworkReply|None: ... + @typing.overload + def sendCustomRequest(self, request: QNetworkRequest, method: QtCore.QByteArray|bytes|bytearray|memoryview, data: QHttpMultiPart|None) -> QNetworkReply|None: ... + @typing.overload + def patch(self, request: QNetworkRequest, data: QtCore.QJsonDocument) -> QNetworkReply|None: ... + @typing.overload + def patch(self, request: QNetworkRequest, data: dict[str|None, typing.Any]) -> QNetworkReply|None: ... + @typing.overload + def patch(self, request: QNetworkRequest, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> QNetworkReply|None: ... + @typing.overload + def patch(self, request: QNetworkRequest, data: QtCore.QIODevice|None) -> QNetworkReply|None: ... + @typing.overload + def put(self, request: QNetworkRequest, data: QtCore.QJsonDocument) -> QNetworkReply|None: ... + @typing.overload + def put(self, request: QNetworkRequest, data: dict[str|None, typing.Any]) -> QNetworkReply|None: ... + @typing.overload + def put(self, request: QNetworkRequest, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> QNetworkReply|None: ... + @typing.overload + def put(self, request: QNetworkRequest, data: QHttpMultiPart|None) -> QNetworkReply|None: ... + @typing.overload + def put(self, request: QNetworkRequest, data: QtCore.QIODevice|None) -> QNetworkReply|None: ... + @typing.overload + def post(self, request: QNetworkRequest, data: QtCore.QJsonDocument) -> QNetworkReply|None: ... + @typing.overload + def post(self, request: QNetworkRequest, data: dict[str|None, typing.Any]) -> QNetworkReply|None: ... + @typing.overload + def post(self, request: QNetworkRequest, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> QNetworkReply|None: ... + @typing.overload + def post(self, request: QNetworkRequest, data: QHttpMultiPart|None) -> QNetworkReply|None: ... + @typing.overload + def post(self, request: QNetworkRequest, data: QtCore.QIODevice|None) -> QNetworkReply|None: ... + @typing.overload + def get(self, request: QNetworkRequest) -> QNetworkReply|None: ... + @typing.overload + def get(self, request: QNetworkRequest, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> QNetworkReply|None: ... + @typing.overload + def get(self, request: QNetworkRequest, data: QtCore.QJsonDocument) -> QNetworkReply|None: ... + @typing.overload + def get(self, request: QNetworkRequest, data: QtCore.QIODevice|None) -> QNetworkReply|None: ... + def head(self, request: QNetworkRequest) -> QNetworkReply|None: ... + def deleteResource(self, request: QNetworkRequest) -> QNetworkReply|None: ... + def networkAccessManager(self) -> QNetworkAccessManager|None: ... + + +class QRestReply(PyQt6.sip.simplewrapper): + + def __init__(self, reply: QNetworkReply|None) -> None: ... + + def errorString(self) -> str: ... + def error(self) -> QNetworkReply.NetworkError: ... + def hasError(self) -> bool: ... + def isHttpStatusSuccess(self) -> bool: ... + def httpStatus(self) -> int: ... + def isSuccess(self) -> bool: ... + def readText(self) -> str: ... + def readBody(self) -> QtCore.QByteArray: ... + def readJson(self, error: QtCore.QJsonParseError|None = ...) -> QtCore.QJsonDocument|None: ... + def networkReply(self) -> QNetworkReply|None: ... + def swap(self, other: 'QRestReply') -> None: ... + + +class QSsl(PyQt6.sip.simplewrapper): + + class SupportedFeature(enum.Enum): + CertificateVerification = ... # type: QSsl.SupportedFeature + ClientSideAlpn = ... # type: QSsl.SupportedFeature + ServerSideAlpn = ... # type: QSsl.SupportedFeature + Ocsp = ... # type: QSsl.SupportedFeature + Psk = ... # type: QSsl.SupportedFeature + SessionTicket = ... # type: QSsl.SupportedFeature + Alerts = ... # type: QSsl.SupportedFeature + + class ImplementedClass(enum.Enum): + Key = ... # type: QSsl.ImplementedClass + Certificate = ... # type: QSsl.ImplementedClass + Socket = ... # type: QSsl.ImplementedClass + DiffieHellman = ... # type: QSsl.ImplementedClass + EllipticCurve = ... # type: QSsl.ImplementedClass + Dtls = ... # type: QSsl.ImplementedClass + DtlsCookie = ... # type: QSsl.ImplementedClass + + class AlertType(enum.Enum): + CloseNotify = ... # type: QSsl.AlertType + UnexpectedMessage = ... # type: QSsl.AlertType + BadRecordMac = ... # type: QSsl.AlertType + RecordOverflow = ... # type: QSsl.AlertType + DecompressionFailure = ... # type: QSsl.AlertType + HandshakeFailure = ... # type: QSsl.AlertType + NoCertificate = ... # type: QSsl.AlertType + BadCertificate = ... # type: QSsl.AlertType + UnsupportedCertificate = ... # type: QSsl.AlertType + CertificateRevoked = ... # type: QSsl.AlertType + CertificateExpired = ... # type: QSsl.AlertType + CertificateUnknown = ... # type: QSsl.AlertType + IllegalParameter = ... # type: QSsl.AlertType + UnknownCa = ... # type: QSsl.AlertType + AccessDenied = ... # type: QSsl.AlertType + DecodeError = ... # type: QSsl.AlertType + DecryptError = ... # type: QSsl.AlertType + ExportRestriction = ... # type: QSsl.AlertType + ProtocolVersion = ... # type: QSsl.AlertType + InsufficientSecurity = ... # type: QSsl.AlertType + InternalError = ... # type: QSsl.AlertType + InappropriateFallback = ... # type: QSsl.AlertType + UserCancelled = ... # type: QSsl.AlertType + NoRenegotiation = ... # type: QSsl.AlertType + MissingExtension = ... # type: QSsl.AlertType + UnsupportedExtension = ... # type: QSsl.AlertType + CertificateUnobtainable = ... # type: QSsl.AlertType + UnrecognizedName = ... # type: QSsl.AlertType + BadCertificateStatusResponse = ... # type: QSsl.AlertType + BadCertificateHashValue = ... # type: QSsl.AlertType + UnknownPskIdentity = ... # type: QSsl.AlertType + CertificateRequired = ... # type: QSsl.AlertType + NoApplicationProtocol = ... # type: QSsl.AlertType + UnknownAlertMessage = ... # type: QSsl.AlertType + + class AlertLevel(enum.Enum): + Warning = ... # type: QSsl.AlertLevel + Fatal = ... # type: QSsl.AlertLevel + Unknown = ... # type: QSsl.AlertLevel + + class SslOption(enum.Flag): + 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(enum.Enum): + UnknownProtocol = ... # 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 + 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(enum.Enum): + EmailEntry = ... # type: QSsl.AlternativeNameEntryType + DnsEntry = ... # type: QSsl.AlternativeNameEntryType + IpAddressEntry = ... # type: QSsl.AlternativeNameEntryType + + class KeyAlgorithm(enum.Enum): + Opaque = ... # type: QSsl.KeyAlgorithm + Rsa = ... # type: QSsl.KeyAlgorithm + Dsa = ... # type: QSsl.KeyAlgorithm + Ec = ... # type: QSsl.KeyAlgorithm + Dh = ... # type: QSsl.KeyAlgorithm + MlDsa = ... # type: QSsl.KeyAlgorithm + + class EncodingFormat(enum.Enum): + Pem = ... # type: QSsl.EncodingFormat + Der = ... # type: QSsl.EncodingFormat + + class KeyType(enum.Enum): + PrivateKey = ... # type: QSsl.KeyType + PublicKey = ... # type: QSsl.KeyType + + +class QSslCertificate(PyQt6.sip.simplewrapper): + + class PatternSyntax(enum.Enum): + RegularExpression = ... # type: QSslCertificate.PatternSyntax + Wildcard = ... # type: QSslCertificate.PatternSyntax + FixedString = ... # type: QSslCertificate.PatternSyntax + + class SubjectInfo(enum.Enum): + 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|None, format: QSsl.EncodingFormat = ...) -> None: ... + @typing.overload + def __init__(self, data: QtCore.QByteArray|bytes|bytearray|memoryview = ..., 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|None, key: 'QSslKey|None', certificate: 'QSslCertificate|None', caCertificates: collections.abc.Iterable['QSslCertificate'] = ..., passPhrase: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> bool: ... + def __hash__(self) -> int: ... + def isSelfSigned(self) -> bool: ... + @staticmethod + def verify(certificateChain: collections.abc.Iterable['QSslCertificate'], hostName: str|None = ...) -> list['QSslError']: ... + def toText(self) -> str: ... + def extensions(self) -> list['QSslCertificateExtension']: ... + def issuerInfoAttributes(self) -> list[QtCore.QByteArray]: ... + def subjectInfoAttributes(self) -> list[QtCore.QByteArray]: ... + def isBlacklisted(self) -> bool: ... + def swap(self, other: 'QSslCertificate') -> None: ... + def handle(self) -> PyQt6.sip.voidptr: ... + @staticmethod + def fromFile(filePath: str|None, format: QSsl.EncodingFormat = ...) -> list['QSslCertificate']: ... + @staticmethod + def fromData(data: QtCore.QByteArray|bytes|bytearray|memoryview, format: QSsl.EncodingFormat = ...) -> list['QSslCertificate']: ... + @staticmethod + def fromDevice(device: QtCore.QIODevice|None, format: QSsl.EncodingFormat = ...) -> list['QSslCertificate']: ... + @staticmethod + def fromPath(path: str|None, format: QSsl.EncodingFormat = ..., syntax: 'QSslCertificate.PatternSyntax' = ...) -> 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) -> dict[QSsl.AlternativeNameEntryType, list[str]]: ... + @typing.overload + def subjectInfo(self, info: 'QSslCertificate.SubjectInfo') -> list[str]: ... + @typing.overload + def subjectInfo(self, attribute: QtCore.QByteArray|bytes|bytearray|memoryview) -> list[str]: ... + @typing.overload + def issuerInfo(self, info: 'QSslCertificate.SubjectInfo') -> list[str]: ... + @typing.overload + def issuerInfo(self, attribute: QtCore.QByteArray|bytes|bytearray|memoryview) -> 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: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + +class QSslCertificateExtension(PyQt6.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(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, name: str|None) -> None: ... + @typing.overload + def __init__(self, name: str|None, 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: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + +class QSslConfiguration(PyQt6.sip.simplewrapper): + + class NextProtocolNegotiationStatus(enum.Enum): + NextProtocolNegotiationNone = ... # type: QSslConfiguration.NextProtocolNegotiationStatus + NextProtocolNegotiationNegotiated = ... # type: QSslConfiguration.NextProtocolNegotiationStatus + NextProtocolNegotiationUnsupported = ... # type: QSslConfiguration.NextProtocolNegotiationStatus + + NextProtocolHttp1_1 = ... # type: bytes + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QSslConfiguration') -> None: ... + + @staticmethod + def setDefaultDtlsConfiguration(configuration: 'QSslConfiguration') -> None: ... + @staticmethod + def defaultDtlsConfiguration() -> 'QSslConfiguration': ... + def setDtlsCookieVerificationEnabled(self, enable: bool) -> None: ... + def dtlsCookieVerificationEnabled(self) -> bool: ... + def setMissingCertificateIsFatal(self, cannotRecover: bool) -> None: ... + def missingCertificateIsFatal(self) -> bool: ... + def setHandshakeMustInterruptOnError(self, interrupt: bool) -> None: ... + def handshakeMustInterruptOnError(self) -> bool: ... + @typing.overload + def addCaCertificates(self, path: str|None, format: QSsl.EncodingFormat = ..., syntax: QSslCertificate.PatternSyntax = ...) -> bool: ... + @typing.overload + def addCaCertificates(self, certificates: collections.abc.Iterable[QSslCertificate]) -> None: ... + def addCaCertificate(self, certificate: QSslCertificate) -> None: ... + def ocspStaplingEnabled(self) -> bool: ... + def setOcspStaplingEnabled(self, enable: bool) -> None: ... + def setBackendConfiguration(self, backendConfiguration: dict[QtCore.QByteArray|bytes|bytearray|memoryview, typing.Any] = ...) -> None: ... + def setBackendConfigurationOption(self, name: QtCore.QByteArray|bytes|bytearray|memoryview, value: typing.Any) -> None: ... + def backendConfiguration(self) -> dict[QtCore.QByteArray, typing.Any]: ... + def setDiffieHellmanParameters(self, dhparams: 'QSslDiffieHellmanParameters') -> None: ... + def diffieHellmanParameters(self) -> 'QSslDiffieHellmanParameters': ... + def setPreSharedKeyIdentityHint(self, hint: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def preSharedKeyIdentityHint(self) -> QtCore.QByteArray: ... + def ephemeralServerKey(self) -> 'QSslKey': ... + @staticmethod + def supportedEllipticCurves() -> list['QSslEllipticCurve']: ... + def setEllipticCurves(self, curves: collections.abc.Iterable['QSslEllipticCurve']) -> None: ... + def ellipticCurves(self) -> list['QSslEllipticCurve']: ... + @staticmethod + def systemCaCertificates() -> list[QSslCertificate]: ... + @staticmethod + def supportedCiphers() -> list[QSslCipher]: ... + def sessionProtocol(self) -> QSsl.SslProtocol: ... + def nextProtocolNegotiationStatus(self) -> 'QSslConfiguration.NextProtocolNegotiationStatus': ... + def nextNegotiatedProtocol(self) -> QtCore.QByteArray: ... + def allowedNextProtocols(self) -> list[QtCore.QByteArray]: ... + def setAllowedNextProtocols(self, protocols: collections.abc.Iterable[QtCore.QByteArray|bytes|bytearray|memoryview]) -> None: ... + def sessionTicketLifeTimeHint(self) -> int: ... + def setSessionTicket(self, sessionTicket: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def sessionTicket(self) -> QtCore.QByteArray: ... + def setLocalCertificateChain(self, localChain: collections.abc.Iterable[QSslCertificate]) -> None: ... + def localCertificateChain(self) -> list[QSslCertificate]: ... + def swap(self, other: 'QSslConfiguration') -> None: ... + def testSslOption(self, option: QSsl.SslOption) -> bool: ... + def setSslOption(self, option: QSsl.SslOption, on: bool) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + @staticmethod + def setDefaultConfiguration(configuration: 'QSslConfiguration') -> None: ... + @staticmethod + def defaultConfiguration() -> 'QSslConfiguration': ... + def setCaCertificates(self, certificates: collections.abc.Iterable[QSslCertificate]) -> None: ... + def caCertificates(self) -> list[QSslCertificate]: ... + @typing.overload + def setCiphers(self, ciphers: str|None) -> None: ... + @typing.overload + def setCiphers(self, ciphers: collections.abc.Iterable[QSslCipher]) -> None: ... + def ciphers(self) -> list[QSslCipher]: ... + def setPrivateKey(self, key: 'QSslKey') -> None: ... + def privateKey(self) -> 'QSslKey': ... + def sessionCipher(self) -> QSslCipher: ... + def peerCertificateChain(self) -> 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(PyQt6.sip.simplewrapper): + + class Error(enum.Enum): + 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 __eq__(self, other: object): ... + def __ne__(self, other: object): ... + 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: QtCore.QByteArray|bytes|bytearray|memoryview, encoding: QSsl.EncodingFormat = ...) -> 'QSslDiffieHellmanParameters': ... + @typing.overload + @staticmethod + def fromEncoded(device: QtCore.QIODevice|None, encoding: QSsl.EncodingFormat = ...) -> 'QSslDiffieHellmanParameters': ... + @staticmethod + def defaultParameters() -> 'QSslDiffieHellmanParameters': ... + def swap(self, other: 'QSslDiffieHellmanParameters') -> None: ... + + +class QSslEllipticCurve(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSslEllipticCurve') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + 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|None) -> 'QSslEllipticCurve': ... + @staticmethod + def fromShortName(name: str|None) -> 'QSslEllipticCurve': ... + + +class QSslError(PyQt6.sip.simplewrapper): + + class SslError(enum.Enum): + 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 __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def certificate(self) -> QSslCertificate: ... + def errorString(self) -> str: ... + def error(self) -> 'QSslError.SslError': ... + + +class QSslKey(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, encoded: QtCore.QByteArray|bytes|bytearray|memoryview, algorithm: QSsl.KeyAlgorithm, encoding: QSsl.EncodingFormat = ..., type: QSsl.KeyType = ..., passPhrase: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> None: ... + @typing.overload + def __init__(self, device: QtCore.QIODevice|None, algorithm: QSsl.KeyAlgorithm, encoding: QSsl.EncodingFormat = ..., type: QSsl.KeyType = ..., passPhrase: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> None: ... + @typing.overload + def __init__(self, handle: PyQt6.sip.voidptr, type: QSsl.KeyType = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QSslKey') -> None: ... + + def swap(self, other: 'QSslKey') -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def handle(self) -> PyQt6.sip.voidptr: ... + def toDer(self, passPhrase: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> QtCore.QByteArray: ... + def toPem(self, passPhrase: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> 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(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, authenticator: 'QSslPreSharedKeyAuthenticator') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def maximumPreSharedKeyLength(self) -> int: ... + def preSharedKey(self) -> QtCore.QByteArray: ... + def setPreSharedKey(self, preSharedKey: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def maximumIdentityLength(self) -> int: ... + def identity(self) -> QtCore.QByteArray: ... + def setIdentity(self, identity: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def identityHint(self) -> QtCore.QByteArray: ... + def swap(self, authenticator: 'QSslPreSharedKeyAuthenticator') -> None: ... + + +class QTcpServer(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + pendingConnectionAvailable: typing.ClassVar[QtCore.pyqtSignal] + def listenBacklogSize(self) -> int: ... + def setListenBacklogSize(self, size: int) -> None: ... + acceptError: typing.ClassVar[QtCore.pyqtSignal] + newConnection: typing.ClassVar[QtCore.pyqtSignal] + def addPendingConnection(self, socket: 'QTcpSocket|None') -> None: ... + def incomingConnection(self, handle: PyQt6.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|None': ... + def hasPendingConnections(self) -> bool: ... + def waitForNewConnection(self, msecs: int = ...) -> typing.Tuple[bool, bool]: ... + def setSocketDescriptor(self, socketDescriptor: PyQt6.sip.voidptr) -> bool: ... + def socketDescriptor(self) -> PyQt6.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: QHostAddress|QHostAddress.SpecialAddress = ..., port: int = ...) -> bool: ... + + +class QSslServer(QTcpServer): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def incomingConnection(self, socket: PyQt6.sip.voidptr) -> None: ... + startedEncryptionHandshake: typing.ClassVar[QtCore.pyqtSignal] + handshakeInterruptedOnError: typing.ClassVar[QtCore.pyqtSignal] + alertReceived: typing.ClassVar[QtCore.pyqtSignal] + alertSent: typing.ClassVar[QtCore.pyqtSignal] + preSharedKeyAuthenticationRequired: typing.ClassVar[QtCore.pyqtSignal] + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + peerVerifyError: typing.ClassVar[QtCore.pyqtSignal] + sslErrors: typing.ClassVar[QtCore.pyqtSignal] + def handshakeTimeout(self) -> int: ... + def setHandshakeTimeout(self, timeout: int) -> None: ... + def sslConfiguration(self) -> QSslConfiguration: ... + def setSslConfiguration(self, sslConfiguration: QSslConfiguration) -> None: ... + + +class QTcpSocket(QAbstractSocket): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + +class QSslSocket(QTcpSocket): + + class PeerVerifyMode(enum.Enum): + VerifyNone = ... # type: QSslSocket.PeerVerifyMode + QueryPeer = ... # type: QSslSocket.PeerVerifyMode + VerifyPeer = ... # type: QSslSocket.PeerVerifyMode + AutoVerifyPeer = ... # type: QSslSocket.PeerVerifyMode + + class SslMode(enum.Enum): + UnencryptedMode = ... # type: QSslSocket.SslMode + SslClientMode = ... # type: QSslSocket.SslMode + SslServerMode = ... # type: QSslSocket.SslMode + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + @staticmethod + def isFeatureSupported(feat: QSsl.SupportedFeature, backendName: str|None = ...) -> bool: ... + @staticmethod + def supportedFeatures(backendName: str|None = ...) -> list[QSsl.SupportedFeature]: ... + @staticmethod + def isClassImplemented(cl: QSsl.ImplementedClass, backendName: str|None = ...) -> bool: ... + @staticmethod + def implementedClasses(backendName: str|None = ...) -> list[QSsl.ImplementedClass]: ... + @staticmethod + def isProtocolSupported(protocol: QSsl.SslProtocol, backendName: str|None = ...) -> bool: ... + @staticmethod + def supportedProtocols(backendName: str|None = ...) -> list[QSsl.SslProtocol]: ... + @staticmethod + def setActiveBackend(backendName: str|None) -> bool: ... + @staticmethod + def activeBackend() -> str: ... + @staticmethod + def availableBackends() -> list[str]: ... + handshakeInterruptedOnError: typing.ClassVar[QtCore.pyqtSignal] + alertReceived: typing.ClassVar[QtCore.pyqtSignal] + alertSent: typing.ClassVar[QtCore.pyqtSignal] + def continueInterruptedHandshake(self) -> None: ... + def sslHandshakeErrors(self) -> list[QSslError]: ... + def ocspResponses(self) -> list[QOcspResponse]: ... + @staticmethod + def sslLibraryBuildVersionString() -> str: ... + @staticmethod + def sslLibraryBuildVersionNumber() -> int: ... + def sessionProtocol(self) -> QSsl.SslProtocol: ... + def localCertificateChain(self) -> list[QSslCertificate]: ... + def setLocalCertificateChain(self, localChain: collections.abc.Iterable[QSslCertificate]) -> None: ... + @staticmethod + def sslLibraryVersionString() -> str: ... + @staticmethod + def sslLibraryVersionNumber() -> int: ... + def disconnectFromHost(self) -> None: ... + def connectToHost(self, hostName: str|None, port: int, mode: QtCore.QIODeviceBase.OpenModeFlag = ..., protocol: QAbstractSocket.NetworkLayerProtocol = ...) -> None: ... + def resume(self) -> None: ... + def setPeerVerifyName(self, hostName: str|None) -> None: ... + def peerVerifyName(self) -> str: ... + def socketOption(self, option: QAbstractSocket.SocketOption) -> typing.Any: ... + def setSocketOption(self, option: QAbstractSocket.SocketOption, value: typing.Any) -> None: ... + newSessionTicketReceived: typing.ClassVar[QtCore.pyqtSignal] + encryptedBytesWritten: typing.ClassVar[QtCore.pyqtSignal] + peerVerifyError: typing.ClassVar[QtCore.pyqtSignal] + 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 skipData(self, maxSize: int) -> int: ... + def writeData(self, a0: PyQt6.sip.Buffer) -> int: ... + def readData(self, maxlen: int) -> bytes: ... + preSharedKeyAuthenticationRequired: typing.ClassVar[QtCore.pyqtSignal] + modeChanged: typing.ClassVar[QtCore.pyqtSignal] + sslErrors: typing.ClassVar[QtCore.pyqtSignal] + encrypted: typing.ClassVar[QtCore.pyqtSignal] + @typing.overload + def ignoreSslErrors(self) -> None: ... + @typing.overload + def ignoreSslErrors(self, errors: collections.abc.Iterable[QSslError]) -> None: ... + def startServerEncryption(self) -> None: ... + def startClientEncryption(self) -> None: ... + @staticmethod + def supportsSsl() -> bool: ... + 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: ... + def privateKey(self) -> QSslKey: ... + @typing.overload + def setPrivateKey(self, key: QSslKey) -> None: ... + @typing.overload + def setPrivateKey(self, fileName: str|None, algorithm: QSsl.KeyAlgorithm = ..., format: QSsl.EncodingFormat = ..., passPhrase: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> None: ... + def sessionCipher(self) -> QSslCipher: ... + def peerCertificateChain(self) -> 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|None, format: QSsl.EncodingFormat = ...) -> None: ... + 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: PyQt6.sip.voidptr, state: QAbstractSocket.SocketState = ..., mode: QtCore.QIODeviceBase.OpenModeFlag = ...) -> bool: ... + @typing.overload + def connectToHostEncrypted(self, hostName: str|None, port: int, mode: QtCore.QIODeviceBase.OpenModeFlag = ..., protocol: QAbstractSocket.NetworkLayerProtocol = ...) -> None: ... + @typing.overload + def connectToHostEncrypted(self, hostName: str|None, port: int, sslPeerName: str|None, mode: QtCore.QIODeviceBase.OpenModeFlag = ..., protocol: QAbstractSocket.NetworkLayerProtocol = ...) -> None: ... + + +class QUdpSocket(QAbstractSocket): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def setMulticastInterface(self, iface: QNetworkInterface) -> None: ... + def multicastInterface(self) -> QNetworkInterface: ... + @typing.overload + def leaveMulticastGroup(self, groupAddress: QHostAddress|QHostAddress.SpecialAddress) -> bool: ... + @typing.overload + def leaveMulticastGroup(self, groupAddress: QHostAddress|QHostAddress.SpecialAddress, iface: QNetworkInterface) -> bool: ... + @typing.overload + def joinMulticastGroup(self, groupAddress: QHostAddress|QHostAddress.SpecialAddress) -> bool: ... + @typing.overload + def joinMulticastGroup(self, groupAddress: QHostAddress|QHostAddress.SpecialAddress, iface: QNetworkInterface) -> bool: ... + @typing.overload + def writeDatagram(self, a0: PyQt6.sip.Buffer, a1: QHostAddress|QHostAddress.SpecialAddress, a2: int) -> int: ... + @typing.overload + def writeDatagram(self, datagram: QNetworkDatagram) -> int: ... + def receiveDatagram(self, maxSize: int = ...) -> QNetworkDatagram: ... + def readDatagram(self, maxlen: int) -> typing.Tuple[bytes, QHostAddress|None, int]: ... + def pendingDatagramSize(self) -> int: ... + def hasPendingDatagrams(self) -> bool: ... diff --git a/typings/PyQt6/QtNfc.pyi b/typings/PyQt6/QtNfc.pyi new file mode 100644 index 00000000..9811ad6c --- /dev/null +++ b/typings/PyQt6/QtNfc.pyi @@ -0,0 +1,318 @@ +# The PEP 484 type hints stub file for the QtNfc module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 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[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QNdefFilter(PyQt6.sip.simplewrapper): + + class Record(PyQt6.sip.simplewrapper): + + maximum = ... # type: int + minimum = ... # type: int + type = ... # type: QtCore.QByteArray|bytes|bytearray|memoryview + 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 match(self, message: 'QNdefMessage') -> bool: ... + def recordAt(self, i: int) -> 'QNdefFilter.Record': ... + def __len__(self) -> int: ... + def recordCount(self) -> int: ... + @typing.overload + def appendRecord(self, record: 'QNdefFilter.Record') -> bool: ... + @typing.overload + def appendRecord(self, typeNameFormat: 'QNdefRecord.TypeNameFormat', type: QtCore.QByteArray|bytes|bytearray|memoryview, min: int = ..., max: int = ...) -> bool: ... + def orderMatch(self) -> bool: ... + def setOrderMatch(self, on: bool) -> None: ... + def clear(self) -> None: ... + + +class QNdefMessage(PyQt6.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: collections.abc.Iterable['QNdefRecord']) -> None: ... + + def __ne__(self, other: object): ... + @staticmethod + def fromByteArray(message: QtCore.QByteArray|bytes|bytearray|memoryview) -> '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: ... + def __eq__(self, other: object): ... + + +class QNdefRecord(PyQt6.sip.simplewrapper): + + class TypeNameFormat(enum.Enum): + 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 __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def clear(self) -> None: ... + def isEmpty(self) -> bool: ... + def payload(self) -> QtCore.QByteArray: ... + def setPayload(self, payload: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def id(self) -> QtCore.QByteArray: ... + def setId(self, id: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def type(self) -> QtCore.QByteArray: ... + def setType(self, type: QtCore.QByteArray|bytes|bytearray|memoryview) -> 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: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + + +class QNdefNfcSmartPosterRecord(QNdefRecord): + + class Action(enum.Enum): + 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: str|None) -> None: ... + def typeInfo(self) -> str: ... + def setSize(self, size: int) -> None: ... + def size(self) -> int: ... + def setIcons(self, icons: collections.abc.Iterable[QNdefNfcIconRecord]) -> None: ... + @typing.overload + def removeIcon(self, icon: QNdefNfcIconRecord) -> bool: ... + @typing.overload + def removeIcon(self, type: QtCore.QByteArray|bytes|bytearray|memoryview) -> bool: ... + @typing.overload + def addIcon(self, icon: QNdefNfcIconRecord) -> None: ... + @typing.overload + def addIcon(self, type: QtCore.QByteArray|bytes|bytearray|memoryview, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def iconRecords(self) -> list[QNdefNfcIconRecord]: ... + def iconRecord(self, index: int) -> QNdefNfcIconRecord: ... + def icon(self, mimetype: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> 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: collections.abc.Iterable['QNdefNfcTextRecord']) -> None: ... + @typing.overload + def removeTitle(self, text: 'QNdefNfcTextRecord') -> bool: ... + @typing.overload + def removeTitle(self, locale: str|None) -> bool: ... + @typing.overload + def addTitle(self, text: 'QNdefNfcTextRecord') -> bool: ... + @typing.overload + def addTitle(self, text: str|None, locale: str|None, encoding: 'QNdefNfcTextRecord.Encoding') -> bool: ... + def titleRecords(self) -> list['QNdefNfcTextRecord']: ... + def titleRecord(self, index: int) -> 'QNdefNfcTextRecord': ... + def title(self, locale: str|None = ...) -> str: ... + def titleCount(self) -> int: ... + def hasTypeInfo(self) -> bool: ... + def hasSize(self) -> bool: ... + def hasIcon(self, mimetype: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> bool: ... + def hasAction(self) -> bool: ... + def hasTitle(self, locale: str|None = ...) -> bool: ... + def setPayload(self, payload: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + + +class QNdefNfcTextRecord(QNdefRecord): + + class Encoding(enum.Enum): + 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) -> None: ... + def text(self) -> str: ... + def setLocale(self, locale: str|None) -> 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(enum.Enum): + Offline = ... # type: QNearFieldManager.AdapterState + TurningOn = ... # type: QNearFieldManager.AdapterState + Online = ... # type: QNearFieldManager.AdapterState + TurningOff = ... # type: QNearFieldManager.AdapterState + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def setUserInformation(self, message: str|None) -> None: ... + def isEnabled(self) -> bool: ... + adapterStateChanged: typing.ClassVar[QtCore.pyqtSignal] + def isSupported(self, accessMethod: 'QNearFieldTarget.AccessMethod' = ...) -> bool: ... + targetDetectionStopped: typing.ClassVar[QtCore.pyqtSignal] + targetLost: typing.ClassVar[QtCore.pyqtSignal] + targetDetected: typing.ClassVar[QtCore.pyqtSignal] + def stopTargetDetection(self, errorMessage: str|None = ...) -> None: ... + def startTargetDetection(self, accessMethod: 'QNearFieldTarget.AccessMethod') -> bool: ... + + +class QNearFieldTarget(QtCore.QObject): + + class Error(enum.Enum): + 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 + ConnectionError = ... # type: QNearFieldTarget.Error + TimeoutError = ... # type: QNearFieldTarget.Error + UnsupportedTargetError = ... # type: QNearFieldTarget.Error + + class AccessMethod(enum.Flag): + UnknownAccess = ... # type: QNearFieldTarget.AccessMethod + NdefAccess = ... # type: QNearFieldTarget.AccessMethod + TagTypeSpecificAccess = ... # type: QNearFieldTarget.AccessMethod + AnyAccess = ... # type: QNearFieldTarget.AccessMethod + + class Type(enum.Enum): + ProprietaryTag = ... # type: QNearFieldTarget.Type + NfcTagType1 = ... # type: QNearFieldTarget.Type + NfcTagType2 = ... # type: QNearFieldTarget.Type + NfcTagType3 = ... # type: QNearFieldTarget.Type + NfcTagType4 = ... # type: QNearFieldTarget.Type + NfcTagType4A = ... # type: QNearFieldTarget.Type + NfcTagType4B = ... # type: QNearFieldTarget.Type + MifareTag = ... # type: QNearFieldTarget.Type + + class RequestId(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QNearFieldTarget.RequestId') -> None: ... + + def __ge__(self, other: 'QNearFieldTarget.RequestId') -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def __lt__(self, other: 'QNearFieldTarget.RequestId') -> bool: ... + def refCount(self) -> int: ... + def isValid(self) -> bool: ... + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def maxCommandLength(self) -> int: ... + def disconnect(self) -> bool: ... + error: typing.ClassVar[QtCore.pyqtSignal] + requestCompleted: typing.ClassVar[QtCore.pyqtSignal] + ndefMessageRead: typing.ClassVar[QtCore.pyqtSignal] + disconnected: typing.ClassVar[QtCore.pyqtSignal] + def requestResponse(self, id: 'QNearFieldTarget.RequestId') -> typing.Any: ... + def waitForRequestCompleted(self, id: 'QNearFieldTarget.RequestId', msecs: int = ...) -> bool: ... + def sendCommand(self, command: QtCore.QByteArray|bytes|bytearray|memoryview) -> 'QNearFieldTarget.RequestId': ... + def writeNdefMessages(self, messages: collections.abc.Iterable[QNdefMessage]) -> 'QNearFieldTarget.RequestId': ... + def readNdefMessages(self) -> 'QNearFieldTarget.RequestId': ... + def hasNdefMessage(self) -> bool: ... + def accessMethods(self) -> 'QNearFieldTarget.AccessMethod': ... + def type(self) -> 'QNearFieldTarget.Type': ... + def uid(self) -> QtCore.QByteArray: ... diff --git a/typings/PyQt6/QtOpenGL.pyi b/typings/PyQt6/QtOpenGL.pyi new file mode 100644 index 00000000..a18c2ea9 --- /dev/null +++ b/typings/PyQt6/QtOpenGL.pyi @@ -0,0 +1,2474 @@ +# The PEP 484 type hints stub file for the QtOpenGL module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + +# Convenient aliases for complicated OpenGL types. +PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float], + PyQt6.sip.Buffer, None] +PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], + typing.Sequence[float], PyQt6.sip.Buffer, int, None] +PYQT_SHADER_ATTRIBUTE_ARRAY = typing.Union[typing.Sequence[QtGui.QVector2D], + typing.Sequence[QtGui.QVector3D], typing.Sequence[QtGui.QVector4D], + typing.Sequence[typing.Sequence[float]]] +PYQT_SHADER_UNIFORM_VALUE_ARRAY = typing.Union[ + typing.Sequence[QtGui.QVector2D], typing.Sequence[QtGui.QVector3D], + typing.Sequence[QtGui.QVector4D], typing.Sequence[QtGui.QMatrix2x2], + typing.Sequence[QtGui.QMatrix2x3], typing.Sequence[QtGui.QMatrix2x4], + typing.Sequence[QtGui.QMatrix3x2], typing.Sequence[QtGui.QMatrix3x3], + typing.Sequence[QtGui.QMatrix3x4], typing.Sequence[QtGui.QMatrix4x2], + typing.Sequence[QtGui.QMatrix4x3], typing.Sequence[QtGui.QMatrix4x4], + typing.Sequence[typing.Sequence[float]]] + + +class QOpenGLBuffer(PyQt6.sip.simplewrapper): + + class RangeAccessFlag(enum.Flag): + 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(enum.Enum): + ReadOnly = ... # type: QOpenGLBuffer.Access + WriteOnly = ... # type: QOpenGLBuffer.Access + ReadWrite = ... # type: QOpenGLBuffer.Access + + class UsagePattern(enum.Enum): + 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(enum.Enum): + VertexBuffer = ... # type: QOpenGLBuffer.Type + IndexBuffer = ... # type: QOpenGLBuffer.Type + PixelPackBuffer = ... # type: QOpenGLBuffer.Type + PixelUnpackBuffer = ... # type: QOpenGLBuffer.Type + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, type: 'QOpenGLBuffer.Type') -> None: ... + @typing.overload + def __init__(self, other: 'QOpenGLBuffer') -> None: ... + + def swap(self, other: 'QOpenGLBuffer') -> None: ... + def mapRange(self, offset: int, count: int, access: 'QOpenGLBuffer.RangeAccessFlag') -> PyQt6.sip.voidptr: ... + def unmap(self) -> bool: ... + def map(self, access: 'QOpenGLBuffer.Access') -> PyQt6.sip.voidptr: ... + @typing.overload + def allocate(self, data: PyQt6.sip.voidptr, count: int) -> None: ... + @typing.overload + def allocate(self, count: int) -> None: ... + def write(self, offset: int, data: PyQt6.sip.voidptr, count: int) -> None: ... + def read(self, offset: int, data: PyQt6.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 QOpenGLDebugMessage(PyQt6.sip.simplewrapper): + + class Severity(enum.Flag): + 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(enum.Flag): + 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(enum.Flag): + 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 + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, debugMessage: 'QOpenGLDebugMessage') -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + @staticmethod + def createThirdPartyMessage(text: str|None, id: int = ..., severity: 'QOpenGLDebugMessage.Severity' = ..., type: 'QOpenGLDebugMessage.Type' = ...) -> 'QOpenGLDebugMessage': ... + @staticmethod + def createApplicationMessage(text: str|None, 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(enum.Enum): + AsynchronousLogging = ... # type: QOpenGLDebugLogger.LoggingMode + SynchronousLogging = ... # type: QOpenGLDebugLogger.LoggingMode + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + messageLogged: typing.ClassVar[QtCore.pyqtSignal] + def stopLogging(self) -> None: ... + def startLogging(self, loggingMode: 'QOpenGLDebugLogger.LoggingMode' = ...) -> None: ... + def logMessage(self, debugMessage: QOpenGLDebugMessage) -> None: ... + def loggedMessages(self) -> list[QOpenGLDebugMessage]: ... + @typing.overload + def disableMessages(self, sources: QOpenGLDebugMessage.Source = ..., types: QOpenGLDebugMessage.Type = ..., severities: QOpenGLDebugMessage.Severity = ...) -> None: ... + @typing.overload + def disableMessages(self, ids: collections.abc.Iterable[int], sources: QOpenGLDebugMessage.Source = ..., types: QOpenGLDebugMessage.Type = ...) -> None: ... + @typing.overload + def enableMessages(self, sources: QOpenGLDebugMessage.Source = ..., types: QOpenGLDebugMessage.Type = ..., severities: QOpenGLDebugMessage.Severity = ...) -> None: ... + @typing.overload + def enableMessages(self, ids: collections.abc.Iterable[int], sources: QOpenGLDebugMessage.Source = ..., types: QOpenGLDebugMessage.Type = ...) -> None: ... + def popGroup(self) -> None: ... + def pushGroup(self, name: str|None, 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(PyQt6.sip.simplewrapper): + + class FramebufferRestorePolicy(enum.Enum): + DontRestoreFramebufferBinding = ... # type: QOpenGLFramebufferObject.FramebufferRestorePolicy + RestoreFramebufferBindingToDefault = ... # type: QOpenGLFramebufferObject.FramebufferRestorePolicy + RestoreFrameBufferBinding = ... # type: QOpenGLFramebufferObject.FramebufferRestorePolicy + + class Attachment(enum.Enum): + 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) -> 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|None', targetRect: QtCore.QRect, source: 'QOpenGLFramebufferObject|None', sourceRect: QtCore.QRect, buffers: int = ..., filter: int = ...) -> None: ... + @typing.overload + @staticmethod + def blitFramebuffer(target: 'QOpenGLFramebufferObject|None', source: 'QOpenGLFramebufferObject|None', buffers: int = ..., filter: int = ...) -> None: ... + @typing.overload + @staticmethod + def blitFramebuffer(target: 'QOpenGLFramebufferObject|None', targetRect: QtCore.QRect, source: 'QOpenGLFramebufferObject|None', sourceRect: QtCore.QRect, buffers: int, filter: int, readColorAttachmentIndex: int, drawColorAttachmentIndex: int) -> None: ... + @typing.overload + @staticmethod + def blitFramebuffer(target: 'QOpenGLFramebufferObject|None', targetRect: QtCore.QRect, source: 'QOpenGLFramebufferObject|None', 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, flipped: bool = ...) -> QtGui.QImage: ... + @typing.overload + def toImage(self, flipped: bool, colorAttachmentIndex: int) -> QtGui.QImage: ... + def size(self) -> QtCore.QSize: ... + def textures(self) -> 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(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QOpenGLFramebufferObjectFormat') -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + 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(QtGui.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: QtGui.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) -> QtGui.QOpenGLContext|None: ... + def paintEngine(self) -> QtGui.QPaintEngine|None: ... + + +class QOpenGLPixelTransferOptions(PyQt6.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(enum.Flag): + Vertex = ... # type: QOpenGLShader.ShaderTypeBit + Fragment = ... # type: QOpenGLShader.ShaderTypeBit + Geometry = ... # type: QOpenGLShader.ShaderTypeBit + TessellationControl = ... # type: QOpenGLShader.ShaderTypeBit + TessellationEvaluation = ... # type: QOpenGLShader.ShaderTypeBit + Compute = ... # type: QOpenGLShader.ShaderTypeBit + + def __init__(self, type: 'QOpenGLShader.ShaderTypeBit', parent: QtCore.QObject|None = ...) -> None: ... + + @staticmethod + def hasOpenGLShaders(type: 'QOpenGLShader.ShaderTypeBit', context: QtGui.QOpenGLContext|None = ...) -> bool: ... + def shaderId(self) -> int: ... + def log(self) -> str: ... + def isCompiled(self) -> bool: ... + def sourceCode(self) -> QtCore.QByteArray: ... + def compileSourceFile(self, fileName: str|None) -> bool: ... + @typing.overload + def compileSourceCode(self, source: QtCore.QByteArray|bytes|bytearray|memoryview) -> bool: ... + @typing.overload + def compileSourceCode(self, source: str|None) -> bool: ... + def shaderType(self) -> 'QOpenGLShader.ShaderTypeBit': ... + + +class QOpenGLShaderProgram(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def addCacheableShaderFromSourceFile(self, type: QOpenGLShader.ShaderTypeBit, fileName: str|None) -> bool: ... + @typing.overload + def addCacheableShaderFromSourceCode(self, type: QOpenGLShader.ShaderTypeBit, source: QtCore.QByteArray|bytes|bytearray|memoryview) -> bool: ... + @typing.overload + def addCacheableShaderFromSourceCode(self, type: QOpenGLShader.ShaderTypeBit, source: str|None) -> bool: ... + def create(self) -> bool: ... + def defaultInnerTessellationLevels(self) -> list[float]: ... + def setDefaultInnerTessellationLevels(self, levels: collections.abc.Iterable[float]) -> None: ... + def defaultOuterTessellationLevels(self) -> list[float]: ... + def setDefaultOuterTessellationLevels(self, levels: collections.abc.Iterable[float]) -> None: ... + def patchVertexCount(self) -> int: ... + def setPatchVertexCount(self, count: int) -> None: ... + def maxGeometryOutputVertices(self) -> int: ... + @staticmethod + def hasOpenGLShaderPrograms(context: QtGui.QOpenGLContext|None = ...) -> 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: QtGui.QVector2D) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QtGui.QVector3D) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QtGui.QVector4D) -> None: ... + @typing.overload + def setUniformValue(self, location: int, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + @typing.overload + def setUniformValue(self, location: int, point: QtCore.QPoint) -> None: ... + @typing.overload + def setUniformValue(self, location: int, point: QtCore.QPointF) -> 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: QtGui.QMatrix2x2) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QtGui.QMatrix2x3) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QtGui.QMatrix2x4) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QtGui.QMatrix3x2) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QtGui.QMatrix3x3) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QtGui.QMatrix3x4) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QtGui.QMatrix4x2) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QtGui.QMatrix4x3) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QtGui.QMatrix4x4) -> None: ... + @typing.overload + def setUniformValue(self, location: int, value: QtGui.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: QtGui.QVector2D) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QtGui.QVector3D) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QtGui.QVector4D) -> None: ... + @typing.overload + def setUniformValue(self, name: str, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + @typing.overload + def setUniformValue(self, name: str, point: QtCore.QPoint) -> None: ... + @typing.overload + def setUniformValue(self, name: str, point: QtCore.QPointF) -> 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: QtGui.QMatrix2x2) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QtGui.QMatrix2x3) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QtGui.QMatrix2x4) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QtGui.QMatrix3x2) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QtGui.QMatrix3x3) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QtGui.QMatrix3x4) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QtGui.QMatrix4x2) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QtGui.QMatrix4x3) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QtGui.QMatrix4x4) -> None: ... + @typing.overload + def setUniformValue(self, name: str, value: QtGui.QTransform) -> None: ... + @typing.overload + def uniformLocation(self, name: QtCore.QByteArray|bytes|bytearray|memoryview) -> int: ... + @typing.overload + def uniformLocation(self, name: str|None) -> 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: QtGui.QVector2D) -> None: ... + @typing.overload + def setAttributeValue(self, location: int, value: QtGui.QVector3D) -> None: ... + @typing.overload + def setAttributeValue(self, location: int, value: QtGui.QVector4D) -> None: ... + @typing.overload + def setAttributeValue(self, location: int, value: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> 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: QtGui.QVector2D) -> None: ... + @typing.overload + def setAttributeValue(self, name: str, value: QtGui.QVector3D) -> None: ... + @typing.overload + def setAttributeValue(self, name: str, value: QtGui.QVector4D) -> None: ... + @typing.overload + def setAttributeValue(self, name: str, value: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + @typing.overload + def attributeLocation(self, name: QtCore.QByteArray|bytes|bytearray|memoryview) -> int: ... + @typing.overload + def attributeLocation(self, name: str|None) -> int: ... + @typing.overload + def bindAttributeLocation(self, name: QtCore.QByteArray|bytes|bytearray|memoryview, location: int) -> None: ... + @typing.overload + def bindAttributeLocation(self, name: str|None, 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: QOpenGLShader.ShaderTypeBit, fileName: str|None) -> bool: ... + @typing.overload + def addShaderFromSourceCode(self, type: QOpenGLShader.ShaderTypeBit, source: QtCore.QByteArray|bytes|bytearray|memoryview) -> bool: ... + @typing.overload + def addShaderFromSourceCode(self, type: QOpenGLShader.ShaderTypeBit, source: str|None) -> bool: ... + def shaders(self) -> list[QOpenGLShader]: ... + def removeShader(self, shader: QOpenGLShader|None) -> None: ... + def addShader(self, shader: QOpenGLShader|None) -> bool: ... + + +class QOpenGLTexture(PyQt6.sip.simplewrapper): + + class ComparisonMode(enum.Enum): + CompareRefToTexture = ... # type: QOpenGLTexture.ComparisonMode + CompareNone = ... # type: QOpenGLTexture.ComparisonMode + + class ComparisonFunction(enum.Enum): + 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 + CompareNotEqual = ... # type: QOpenGLTexture.ComparisonFunction + + class CoordinateDirection(enum.Enum): + DirectionS = ... # type: QOpenGLTexture.CoordinateDirection + DirectionT = ... # type: QOpenGLTexture.CoordinateDirection + DirectionR = ... # type: QOpenGLTexture.CoordinateDirection + + class WrapMode(enum.Enum): + Repeat = ... # type: QOpenGLTexture.WrapMode + MirroredRepeat = ... # type: QOpenGLTexture.WrapMode + ClampToEdge = ... # type: QOpenGLTexture.WrapMode + ClampToBorder = ... # type: QOpenGLTexture.WrapMode + + class Filter(enum.Enum): + 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(enum.Enum): + DepthMode = ... # type: QOpenGLTexture.DepthStencilMode + StencilMode = ... # type: QOpenGLTexture.DepthStencilMode + + class SwizzleValue(enum.Enum): + 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(enum.Enum): + SwizzleRed = ... # type: QOpenGLTexture.SwizzleComponent + SwizzleGreen = ... # type: QOpenGLTexture.SwizzleComponent + SwizzleBlue = ... # type: QOpenGLTexture.SwizzleComponent + SwizzleAlpha = ... # type: QOpenGLTexture.SwizzleComponent + + class Feature(enum.Flag): + 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(enum.Enum): + 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(enum.Enum): + 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(enum.Enum): + 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(enum.Enum): + 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(enum.Enum): + ResetTextureUnit = ... # type: QOpenGLTexture.TextureUnitReset + DontResetTextureUnit = ... # type: QOpenGLTexture.TextureUnitReset + + class MipMapGeneration(enum.Enum): + GenerateMipMaps = ... # type: QOpenGLTexture.MipMapGeneration + DontGenerateMipMaps = ... # type: QOpenGLTexture.MipMapGeneration + + class BindingTarget(enum.Enum): + 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(enum.Enum): + 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 + + @typing.overload + def __init__(self, target: 'QOpenGLTexture.Target') -> None: ... + @typing.overload + def __init__(self, image: QtGui.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) -> 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) -> QtGui.QColor: ... + def setBorderColor(self, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> 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) -> 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) -> 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: PyQt6.sip.voidptr, options: QOpenGLPixelTransferOptions|None = ...) -> None: ... + @typing.overload + def setCompressedData(self, mipLevel: int, layer: int, dataSize: int, data: PyQt6.sip.voidptr, options: QOpenGLPixelTransferOptions|None = ...) -> None: ... + @typing.overload + def setCompressedData(self, mipLevel: int, dataSize: int, data: PyQt6.sip.voidptr, options: QOpenGLPixelTransferOptions|None = ...) -> None: ... + @typing.overload + def setCompressedData(self, dataSize: int, data: PyQt6.sip.voidptr, options: QOpenGLPixelTransferOptions|None = ...) -> None: ... + @typing.overload + def setCompressedData(self, mipLevel: int, layer: int, layerCount: int, cubeFace: 'QOpenGLTexture.CubeMapFace', dataSize: int, data: PyQt6.sip.voidptr, options: QOpenGLPixelTransferOptions|None = ...) -> None: ... + @typing.overload + def setData(self, mipLevel: int, layer: int, cubeFace: 'QOpenGLTexture.CubeMapFace', sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: PyQt6.sip.voidptr, options: QOpenGLPixelTransferOptions|None = ...) -> None: ... + @typing.overload + def setData(self, mipLevel: int, layer: int, sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: PyQt6.sip.voidptr, options: QOpenGLPixelTransferOptions|None = ...) -> None: ... + @typing.overload + def setData(self, mipLevel: int, sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: PyQt6.sip.voidptr, options: QOpenGLPixelTransferOptions|None = ...) -> None: ... + @typing.overload + def setData(self, sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: PyQt6.sip.voidptr, options: QOpenGLPixelTransferOptions|None = ...) -> None: ... + @typing.overload + def setData(self, image: QtGui.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: PyQt6.sip.voidptr, options: QOpenGLPixelTransferOptions|None = ...) -> None: ... + @typing.overload + def setData(self, xOffset: int, yOffset: int, zOffset: int, width: int, height: int, depth: int, sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: PyQt6.sip.voidptr, options: QOpenGLPixelTransferOptions|None = ...) -> None: ... + @typing.overload + def setData(self, xOffset: int, yOffset: int, zOffset: int, width: int, height: int, depth: int, mipLevel: int, sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: PyQt6.sip.voidptr, options: QOpenGLPixelTransferOptions|None = ...) -> None: ... + @typing.overload + def setData(self, xOffset: int, yOffset: int, zOffset: int, width: int, height: int, depth: int, mipLevel: int, layer: int, sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: PyQt6.sip.voidptr, options: QOpenGLPixelTransferOptions|None = ...) -> None: ... + @typing.overload + def setData(self, xOffset: int, yOffset: int, zOffset: int, width: int, height: int, depth: int, mipLevel: int, layer: int, cubeFace: 'QOpenGLTexture.CubeMapFace', sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: PyQt6.sip.voidptr, options: QOpenGLPixelTransferOptions|None = ...) -> None: ... + @typing.overload + def setData(self, xOffset: int, yOffset: int, zOffset: int, width: int, height: int, depth: int, mipLevel: int, layer: int, cubeFace: 'QOpenGLTexture.CubeMapFace', layerCount: int, sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: PyQt6.sip.voidptr, options: QOpenGLPixelTransferOptions|None = ...) -> None: ... + def isTextureView(self) -> bool: ... + def createTextureView(self, target: 'QOpenGLTexture.Target', viewFormat: 'QOpenGLTexture.TextureFormat', minimumMipmapLevel: int, maximumMipmapLevel: int, minimumLayer: int, maximumLayer: int) -> 'QOpenGLTexture|None': ... + 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(PyQt6.sip.simplewrapper): + + class Origin(enum.Enum): + OriginBottomLeft = ... # type: QOpenGLTextureBlitter.Origin + OriginTopLeft = ... # type: QOpenGLTextureBlitter.Origin + + def __init__(self) -> None: ... + + def supportsRectangleTarget(self) -> bool: ... + @staticmethod + def sourceTransform(subTexture: QtCore.QRectF, textureSize: QtCore.QSize, origin: 'QOpenGLTextureBlitter.Origin') -> QtGui.QMatrix3x3: ... + @staticmethod + def targetTransform(target: QtCore.QRectF, viewport: QtCore.QRect) -> QtGui.QMatrix4x4: ... + @typing.overload + def blit(self, texture: int, targetTransform: QtGui.QMatrix4x4, sourceOrigin: 'QOpenGLTextureBlitter.Origin') -> None: ... + @typing.overload + def blit(self, texture: int, targetTransform: QtGui.QMatrix4x4, sourceTransform: QtGui.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: QtCore.QObject|None = ...) -> 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: QtCore.QObject|None = ...) -> None: ... + + def reset(self) -> None: ... + def waitForIntervals(self) -> list[int]: ... + def waitForSamples(self) -> list[int]: ... + def isResultAvailable(self) -> bool: ... + def recordSample(self) -> int: ... + def objectIds(self) -> 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(PyQt6.sip.wrapper): ... + + +class QOpenGLVersionFunctionsFactory(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QOpenGLVersionFunctionsFactory') -> None: ... + + @staticmethod + def get(versionProfile: 'QOpenGLVersionProfile' = ..., context: QtGui.QOpenGLContext|None = ...) -> QAbstractOpenGLFunctions: ... + + +class QOpenGLVertexArrayObject(QtCore.QObject): + + class Binder(PyQt6.sip.simplewrapper): + + def __init__(self, v: 'QOpenGLVertexArrayObject|None') -> 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: QtCore.QObject|None = ...) -> 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 QOpenGLWindow(QtGui.QPaintDeviceWindow): + + class UpdateBehavior(enum.Enum): + NoPartialUpdate = ... # type: QOpenGLWindow.UpdateBehavior + PartialUpdateBlit = ... # type: QOpenGLWindow.UpdateBehavior + PartialUpdateBlend = ... # type: QOpenGLWindow.UpdateBehavior + + @typing.overload + def __init__(self, updateBehavior: 'QOpenGLWindow.UpdateBehavior' = ..., parent: QtGui.QWindow|None = ...) -> None: ... + @typing.overload + def __init__(self, shareContext: QtGui.QOpenGLContext|None, updateBehavior: 'QOpenGLWindow.UpdateBehavior' = ..., parent: QtGui.QWindow|None = ...) -> None: ... + + def metric(self, metric: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ... + def resizeEvent(self, event: QtGui.QResizeEvent|None) -> None: ... + def paintEvent(self, event: QtGui.QPaintEvent|None) -> 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: ... + frameSwapped: typing.ClassVar[QtCore.pyqtSignal] + def shareContext(self) -> QtGui.QOpenGLContext|None: ... + def grabFramebuffer(self) -> QtGui.QImage: ... + def defaultFramebufferObject(self) -> int: ... + def context(self) -> QtGui.QOpenGLContext|None: ... + def doneCurrent(self) -> None: ... + def makeCurrent(self) -> None: ... + def isValid(self) -> bool: ... + def updateBehavior(self) -> 'QOpenGLWindow.UpdateBehavior': ... + + +class QOpenGLFunctions_2_0(QAbstractOpenGLFunctions): + + def __init__(self) -> None: ... + + def glVertexAttrib1d(self, index: int, x: float) -> None: ... + def glVertexAttrib1dv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib1f(self, index: int, x: float) -> None: ... + def glVertexAttrib1fv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib1s(self, index: int, x: int) -> None: ... + def glVertexAttrib1sv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib2d(self, index: int, x: float, y: float) -> None: ... + def glVertexAttrib2dv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib2f(self, index: int, x: float, y: float) -> None: ... + def glVertexAttrib2fv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib2s(self, index: int, x: int, y: int) -> None: ... + def glVertexAttrib2sv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib3d(self, index: int, x: float, y: float, z: float) -> None: ... + def glVertexAttrib3dv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib3f(self, index: int, x: float, y: float, z: float) -> None: ... + def glVertexAttrib3fv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib3s(self, index: int, x: int, y: int, z: int) -> None: ... + def glVertexAttrib3sv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4Nbv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4Niv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4Nsv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4Nub(self, index: int, x: int, y: int, z: int, w: int) -> None: ... + def glVertexAttrib4Nubv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4Nuiv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4Nusv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4bv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4d(self, index: int, x: float, y: float, z: float, w: float) -> None: ... + def glVertexAttrib4dv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4f(self, index: int, x: float, y: float, z: float, w: float) -> None: ... + def glVertexAttrib4fv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4iv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4s(self, index: int, x: int, y: int, z: int, w: int) -> None: ... + def glVertexAttrib4sv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4ubv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4uiv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4usv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glFogCoordf(self, coord: float) -> None: ... + def glFogCoordfv(self, coord: PYQT_OPENGL_ARRAY) -> None: ... + def glFogCoordd(self, coord: float) -> None: ... + def glFogCoorddv(self, coord: PYQT_OPENGL_ARRAY) -> None: ... + def glFogCoordPointer(self, type: int, stride: int, pointer: PYQT_OPENGL_ARRAY) -> None: ... + def glSecondaryColor3b(self, red: int, green: int, blue: int) -> None: ... + def glSecondaryColor3bv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glSecondaryColor3d(self, red: float, green: float, blue: float) -> None: ... + def glSecondaryColor3dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glSecondaryColor3f(self, red: float, green: float, blue: float) -> None: ... + def glSecondaryColor3fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glSecondaryColor3i(self, red: int, green: int, blue: int) -> None: ... + def glSecondaryColor3iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glSecondaryColor3s(self, red: int, green: int, blue: int) -> None: ... + def glSecondaryColor3sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glSecondaryColor3ub(self, red: int, green: int, blue: int) -> None: ... + def glSecondaryColor3ubv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glSecondaryColor3ui(self, red: int, green: int, blue: int) -> None: ... + def glSecondaryColor3uiv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glSecondaryColor3us(self, red: int, green: int, blue: int) -> None: ... + def glSecondaryColor3usv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glSecondaryColorPointer(self, size: int, type: int, stride: int, pointer: PYQT_OPENGL_ARRAY) -> None: ... + def glWindowPos2d(self, x: float, y: float) -> None: ... + def glWindowPos2dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glWindowPos2f(self, x: float, y: float) -> None: ... + def glWindowPos2fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glWindowPos2i(self, x: int, y: int) -> None: ... + def glWindowPos2iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glWindowPos2s(self, x: int, y: int) -> None: ... + def glWindowPos2sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glWindowPos3d(self, x: float, y: float, z: float) -> None: ... + def glWindowPos3dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glWindowPos3f(self, x: float, y: float, z: float) -> None: ... + def glWindowPos3fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glWindowPos3i(self, x: int, y: int, z: int) -> None: ... + def glWindowPos3iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glWindowPos3s(self, x: int, y: int, z: int) -> None: ... + def glWindowPos3sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glClientActiveTexture(self, texture: int) -> None: ... + def glMultiTexCoord1d(self, target: int, s: float) -> None: ... + def glMultiTexCoord1dv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord1f(self, target: int, s: float) -> None: ... + def glMultiTexCoord1fv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord1i(self, target: int, s: int) -> None: ... + def glMultiTexCoord1iv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord1s(self, target: int, s: int) -> None: ... + def glMultiTexCoord1sv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord2d(self, target: int, s: float, t: float) -> None: ... + def glMultiTexCoord2dv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord2f(self, target: int, s: float, t: float) -> None: ... + def glMultiTexCoord2fv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord2i(self, target: int, s: int, t: int) -> None: ... + def glMultiTexCoord2iv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord2s(self, target: int, s: int, t: int) -> None: ... + def glMultiTexCoord2sv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord3d(self, target: int, s: float, t: float, r: float) -> None: ... + def glMultiTexCoord3dv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord3f(self, target: int, s: float, t: float, r: float) -> None: ... + def glMultiTexCoord3fv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord3i(self, target: int, s: int, t: int, r: int) -> None: ... + def glMultiTexCoord3iv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord3s(self, target: int, s: int, t: int, r: int) -> None: ... + def glMultiTexCoord3sv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord4d(self, target: int, s: float, t: float, r: float, q: float) -> None: ... + def glMultiTexCoord4dv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord4f(self, target: int, s: float, t: float, r: float, q: float) -> None: ... + def glMultiTexCoord4fv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord4i(self, target: int, s: int, t: int, r: int, q: int) -> None: ... + def glMultiTexCoord4iv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord4s(self, target: int, s: int, t: int, r: int, q: int) -> None: ... + def glMultiTexCoord4sv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glLoadTransposeMatrixf(self, m: PYQT_OPENGL_ARRAY) -> None: ... + def glLoadTransposeMatrixd(self, m: PYQT_OPENGL_ARRAY) -> None: ... + def glMultTransposeMatrixf(self, m: PYQT_OPENGL_ARRAY) -> None: ... + def glMultTransposeMatrixd(self, m: PYQT_OPENGL_ARRAY) -> None: ... + def glColorTable(self, target: int, internalformat: int, width: int, format: int, type: int, table: PYQT_OPENGL_ARRAY) -> None: ... + def glColorTableParameterfv(self, target: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glColorTableParameteriv(self, target: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glCopyColorTable(self, target: int, internalformat: int, x: int, y: int, width: int) -> None: ... + def glGetColorTableParameterfv(self, target: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetColorTableParameteriv(self, target: int, pname: int) -> int|tuple[int, int, int, int]: ... + def glColorSubTable(self, target: int, start: int, count: int, format: int, type: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glCopyColorSubTable(self, target: int, start: int, x: int, y: int, width: int) -> None: ... + def glConvolutionFilter1D(self, target: int, internalformat: int, width: int, format: int, type: int, image: PYQT_OPENGL_ARRAY) -> None: ... + def glConvolutionFilter2D(self, target: int, internalformat: int, width: int, height: int, format: int, type: int, image: PYQT_OPENGL_ARRAY) -> None: ... + def glConvolutionParameterf(self, target: int, pname: int, params: float) -> None: ... + def glConvolutionParameterfv(self, target: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glConvolutionParameteri(self, target: int, pname: int, params: int) -> None: ... + def glConvolutionParameteriv(self, target: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glCopyConvolutionFilter1D(self, target: int, internalformat: int, x: int, y: int, width: int) -> None: ... + def glCopyConvolutionFilter2D(self, target: int, internalformat: int, x: int, y: int, width: int, height: int) -> None: ... + def glGetConvolutionParameterfv(self, target: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetConvolutionParameteriv(self, target: int, pname: int) -> int|tuple[int, int, int, int]: ... + def glHistogram(self, target: int, width: int, internalformat: int, sink: int) -> None: ... + def glMinmax(self, target: int, internalformat: int, sink: int) -> None: ... + def glResetHistogram(self, target: int) -> None: ... + def glResetMinmax(self, target: int) -> None: ... + def glArrayElement(self, i: int) -> None: ... + def glColorPointer(self, size: int, type: int, stride: int, pointer: PYQT_OPENGL_BOUND_ARRAY) -> None: ... + def glDisableClientState(self, array: int) -> None: ... + def glEdgeFlagPointer(self, stride: int, pointer: PYQT_OPENGL_BOUND_ARRAY) -> None: ... + def glEnableClientState(self, array: int) -> None: ... + def glIndexPointer(self, type: int, stride: int, pointer: PYQT_OPENGL_BOUND_ARRAY) -> None: ... + def glNormalPointer(self, type: int, stride: int, pointer: PYQT_OPENGL_BOUND_ARRAY) -> None: ... + def glTexCoordPointer(self, size: int, type: int, stride: int, pointer: PYQT_OPENGL_BOUND_ARRAY) -> None: ... + def glVertexPointer(self, size: int, type: int, stride: int, pointer: PYQT_OPENGL_BOUND_ARRAY) -> None: ... + def glPopClientAttrib(self) -> None: ... + def glPushClientAttrib(self, mask: int) -> None: ... + def glNewList(self, list: int, mode: int) -> None: ... + def glEndList(self) -> None: ... + def glCallList(self, list: int) -> None: ... + def glDeleteLists(self, list: int, range: int) -> None: ... + def glGenLists(self, range: int) -> int: ... + def glListBase(self, base: int) -> None: ... + def glBegin(self, mode: int) -> None: ... + def glBitmap(self, width: int, height: int, xorig: float, yorig: float, xmove: float, ymove: float, bitmap: PYQT_OPENGL_ARRAY) -> None: ... + def glColor3b(self, red: int, green: int, blue: int) -> None: ... + def glColor3bv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor3d(self, red: float, green: float, blue: float) -> None: ... + def glColor3dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor3f(self, red: float, green: float, blue: float) -> None: ... + def glColor3fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor3i(self, red: int, green: int, blue: int) -> None: ... + def glColor3iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor3s(self, red: int, green: int, blue: int) -> None: ... + def glColor3sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor3ub(self, red: int, green: int, blue: int) -> None: ... + def glColor3ubv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor3ui(self, red: int, green: int, blue: int) -> None: ... + def glColor3uiv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor3us(self, red: int, green: int, blue: int) -> None: ... + def glColor3usv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor4b(self, red: int, green: int, blue: int, alpha: int) -> None: ... + def glColor4bv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor4d(self, red: float, green: float, blue: float, alpha: float) -> None: ... + def glColor4dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor4f(self, red: float, green: float, blue: float, alpha: float) -> None: ... + def glColor4fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor4i(self, red: int, green: int, blue: int, alpha: int) -> None: ... + def glColor4iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor4s(self, red: int, green: int, blue: int, alpha: int) -> None: ... + def glColor4sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor4ub(self, red: int, green: int, blue: int, alpha: int) -> None: ... + def glColor4ubv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor4ui(self, red: int, green: int, blue: int, alpha: int) -> None: ... + def glColor4uiv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor4us(self, red: int, green: int, blue: int, alpha: int) -> None: ... + def glColor4usv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glEdgeFlag(self, flag: int) -> None: ... + def glEdgeFlagv(self, flag: PYQT_OPENGL_ARRAY) -> None: ... + def glEnd(self) -> None: ... + def glIndexd(self, c: float) -> None: ... + def glIndexdv(self, c: PYQT_OPENGL_ARRAY) -> None: ... + def glIndexf(self, c: float) -> None: ... + def glIndexfv(self, c: PYQT_OPENGL_ARRAY) -> None: ... + def glIndexi(self, c: int) -> None: ... + def glIndexiv(self, c: PYQT_OPENGL_ARRAY) -> None: ... + def glIndexs(self, c: int) -> None: ... + def glIndexsv(self, c: PYQT_OPENGL_ARRAY) -> None: ... + def glNormal3b(self, nx: int, ny: int, nz: int) -> None: ... + def glNormal3bv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glNormal3d(self, nx: float, ny: float, nz: float) -> None: ... + def glNormal3dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glNormal3f(self, nx: float, ny: float, nz: float) -> None: ... + def glNormal3fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glNormal3i(self, nx: int, ny: int, nz: int) -> None: ... + def glNormal3iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glNormal3s(self, nx: int, ny: int, nz: int) -> None: ... + def glNormal3sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos2d(self, x: float, y: float) -> None: ... + def glRasterPos2dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos2f(self, x: float, y: float) -> None: ... + def glRasterPos2fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos2i(self, x: int, y: int) -> None: ... + def glRasterPos2iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos2s(self, x: int, y: int) -> None: ... + def glRasterPos2sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos3d(self, x: float, y: float, z: float) -> None: ... + def glRasterPos3dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos3f(self, x: float, y: float, z: float) -> None: ... + def glRasterPos3fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos3i(self, x: int, y: int, z: int) -> None: ... + def glRasterPos3iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos3s(self, x: int, y: int, z: int) -> None: ... + def glRasterPos3sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos4d(self, x: float, y: float, z: float, w: float) -> None: ... + def glRasterPos4dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos4f(self, x: float, y: float, z: float, w: float) -> None: ... + def glRasterPos4fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos4i(self, x: int, y: int, z: int, w: int) -> None: ... + def glRasterPos4iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos4s(self, x: int, y: int, z: int, w: int) -> None: ... + def glRasterPos4sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRectd(self, x1: float, y1: float, x2: float, y2: float) -> None: ... + def glRectf(self, x1: float, y1: float, x2: float, y2: float) -> None: ... + def glRecti(self, x1: int, y1: int, x2: int, y2: int) -> None: ... + def glRects(self, x1: int, y1: int, x2: int, y2: int) -> None: ... + def glTexCoord1d(self, s: float) -> None: ... + def glTexCoord1dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord1f(self, s: float) -> None: ... + def glTexCoord1fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord1i(self, s: int) -> None: ... + def glTexCoord1iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord1s(self, s: int) -> None: ... + def glTexCoord1sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord2d(self, s: float, t: float) -> None: ... + def glTexCoord2dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord2f(self, s: float, t: float) -> None: ... + def glTexCoord2fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord2i(self, s: int, t: int) -> None: ... + def glTexCoord2iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord2s(self, s: int, t: int) -> None: ... + def glTexCoord2sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord3d(self, s: float, t: float, r: float) -> None: ... + def glTexCoord3dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord3f(self, s: float, t: float, r: float) -> None: ... + def glTexCoord3fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord3i(self, s: int, t: int, r: int) -> None: ... + def glTexCoord3iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord3s(self, s: int, t: int, r: int) -> None: ... + def glTexCoord3sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord4d(self, s: float, t: float, r: float, q: float) -> None: ... + def glTexCoord4dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord4f(self, s: float, t: float, r: float, q: float) -> None: ... + def glTexCoord4fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord4i(self, s: int, t: int, r: int, q: int) -> None: ... + def glTexCoord4iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord4s(self, s: int, t: int, r: int, q: int) -> None: ... + def glTexCoord4sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex2d(self, x: float, y: float) -> None: ... + def glVertex2dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex2f(self, x: float, y: float) -> None: ... + def glVertex2fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex2i(self, x: int, y: int) -> None: ... + def glVertex2iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex2s(self, x: int, y: int) -> None: ... + def glVertex2sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex3d(self, x: float, y: float, z: float) -> None: ... + def glVertex3dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex3f(self, x: float, y: float, z: float) -> None: ... + def glVertex3fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex3i(self, x: int, y: int, z: int) -> None: ... + def glVertex3iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex3s(self, x: int, y: int, z: int) -> None: ... + def glVertex3sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex4d(self, x: float, y: float, z: float, w: float) -> None: ... + def glVertex4dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex4f(self, x: float, y: float, z: float, w: float) -> None: ... + def glVertex4fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex4i(self, x: int, y: int, z: int, w: int) -> None: ... + def glVertex4iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex4s(self, x: int, y: int, z: int, w: int) -> None: ... + def glVertex4sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glClipPlane(self, plane: int, equation: PYQT_OPENGL_ARRAY) -> None: ... + def glColorMaterial(self, face: int, mode: int) -> None: ... + def glFogf(self, pname: int, param: float) -> None: ... + def glFogfv(self, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glFogi(self, pname: int, param: int) -> None: ... + def glFogiv(self, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glLightf(self, light: int, pname: int, param: float) -> None: ... + def glLightfv(self, light: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glLighti(self, light: int, pname: int, param: int) -> None: ... + def glLightiv(self, light: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glLightModelf(self, pname: int, param: float) -> None: ... + def glLightModelfv(self, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glLightModeli(self, pname: int, param: int) -> None: ... + def glLightModeliv(self, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glLineStipple(self, factor: int, pattern: int) -> None: ... + def glMaterialf(self, face: int, pname: int, param: float) -> None: ... + def glMaterialfv(self, face: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glMateriali(self, face: int, pname: int, param: int) -> None: ... + def glMaterialiv(self, face: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glPolygonStipple(self, mask: PYQT_OPENGL_ARRAY) -> None: ... + def glShadeModel(self, mode: int) -> None: ... + def glTexEnvf(self, target: int, pname: int, param: float) -> None: ... + def glTexEnvfv(self, target: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glTexEnvi(self, target: int, pname: int, param: int) -> None: ... + def glTexEnviv(self, target: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glTexGend(self, coord: int, pname: int, param: float) -> None: ... + def glTexGendv(self, coord: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glTexGenf(self, coord: int, pname: int, param: float) -> None: ... + def glTexGenfv(self, coord: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glTexGeni(self, coord: int, pname: int, param: int) -> None: ... + def glTexGeniv(self, coord: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glRenderMode(self, mode: int) -> int: ... + def glInitNames(self) -> None: ... + def glLoadName(self, name: int) -> None: ... + def glPassThrough(self, token: float) -> None: ... + def glPopName(self) -> None: ... + def glPushName(self, name: int) -> None: ... + def glClearAccum(self, red: float, green: float, blue: float, alpha: float) -> None: ... + def glClearIndex(self, c: float) -> None: ... + def glIndexMask(self, mask: int) -> None: ... + def glAccum(self, op: int, value: float) -> None: ... + def glPopAttrib(self) -> None: ... + def glPushAttrib(self, mask: int) -> None: ... + def glMap1d(self, target: int, u1: float, u2: float, stride: int, order: int, points: PYQT_OPENGL_ARRAY) -> None: ... + def glMap1f(self, target: int, u1: float, u2: float, stride: int, order: int, points: PYQT_OPENGL_ARRAY) -> None: ... + def glMap2d(self, target: int, u1: float, u2: float, ustride: int, uorder: int, v1: float, v2: float, vstride: int, vorder: int, points: PYQT_OPENGL_ARRAY) -> None: ... + def glMap2f(self, target: int, u1: float, u2: float, ustride: int, uorder: int, v1: float, v2: float, vstride: int, vorder: int, points: PYQT_OPENGL_ARRAY) -> None: ... + def glMapGrid1d(self, un: int, u1: float, u2: float) -> None: ... + def glMapGrid1f(self, un: int, u1: float, u2: float) -> None: ... + def glMapGrid2d(self, un: int, u1: float, u2: float, vn: int, v1: float, v2: float) -> None: ... + def glMapGrid2f(self, un: int, u1: float, u2: float, vn: int, v1: float, v2: float) -> None: ... + def glEvalCoord1d(self, u: float) -> None: ... + def glEvalCoord1dv(self, u: PYQT_OPENGL_ARRAY) -> None: ... + def glEvalCoord1f(self, u: float) -> None: ... + def glEvalCoord1fv(self, u: PYQT_OPENGL_ARRAY) -> None: ... + def glEvalCoord2d(self, u: float, v: float) -> None: ... + def glEvalCoord2dv(self, u: PYQT_OPENGL_ARRAY) -> None: ... + def glEvalCoord2f(self, u: float, v: float) -> None: ... + def glEvalCoord2fv(self, u: PYQT_OPENGL_ARRAY) -> None: ... + def glEvalMesh1(self, mode: int, i1: int, i2: int) -> None: ... + def glEvalPoint1(self, i: int) -> None: ... + def glEvalMesh2(self, mode: int, i1: int, i2: int, j1: int, j2: int) -> None: ... + def glEvalPoint2(self, i: int, j: int) -> None: ... + def glAlphaFunc(self, func: int, ref: float) -> None: ... + def glPixelZoom(self, xfactor: float, yfactor: float) -> None: ... + def glPixelTransferf(self, pname: int, param: float) -> None: ... + def glPixelTransferi(self, pname: int, param: int) -> None: ... + def glPixelMapfv(self, map: int, mapsize: int, values: PYQT_OPENGL_ARRAY) -> None: ... + def glPixelMapuiv(self, map: int, mapsize: int, values: PYQT_OPENGL_ARRAY) -> None: ... + def glPixelMapusv(self, map: int, mapsize: int, values: PYQT_OPENGL_ARRAY) -> None: ... + def glCopyPixels(self, x: int, y: int, width: int, height: int, type: int) -> None: ... + def glDrawPixels(self, width: int, height: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glGetClipPlane(self, plane: int) -> tuple[float, float, float, float]: ... + def glGetLightfv(self, light: int, pname: int) -> float|tuple[float, float, float]|tuple[float, float, float, float]: ... + def glGetLightiv(self, light: int, pname: int) -> int|tuple[int, int, int]|tuple[int, int, int, int]: ... + def glGetMaterialfv(self, face: int, pname: int) -> float|tuple[float, float, float]|tuple[float, float, float, float]: ... + def glGetMaterialiv(self, face: int, pname: int) -> int|tuple[int, int, int]|tuple[int, int, int, int]: ... + def glGetTexEnvfv(self, target: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetTexEnviv(self, target: int, pname: int) -> int|tuple[int, int, int, int]: ... + def glGetTexGendv(self, coord: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetTexGenfv(self, coord: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetTexGeniv(self, coord: int, pname: int) -> int|tuple[int, int, int, int]: ... + def glIsList(self, list: int) -> int: ... + def glFrustum(self, left: float, right: float, bottom: float, top: float, zNear: float, zFar: float) -> None: ... + def glLoadIdentity(self) -> None: ... + def glLoadMatrixf(self, m: PYQT_OPENGL_ARRAY) -> None: ... + def glLoadMatrixd(self, m: PYQT_OPENGL_ARRAY) -> None: ... + def glMatrixMode(self, mode: int) -> None: ... + def glMultMatrixf(self, m: PYQT_OPENGL_ARRAY) -> None: ... + def glMultMatrixd(self, m: PYQT_OPENGL_ARRAY) -> None: ... + def glOrtho(self, left: float, right: float, bottom: float, top: float, zNear: float, zFar: float) -> None: ... + def glPopMatrix(self) -> None: ... + def glPushMatrix(self) -> None: ... + def glRotated(self, angle: float, x: float, y: float, z: float) -> None: ... + def glRotatef(self, angle: float, x: float, y: float, z: float) -> None: ... + def glScaled(self, x: float, y: float, z: float) -> None: ... + def glScalef(self, x: float, y: float, z: float) -> None: ... + def glTranslated(self, x: float, y: float, z: float) -> None: ... + def glTranslatef(self, x: float, y: float, z: float) -> None: ... + def glBlendEquationSeparate(self, modeRGB: int, modeAlpha: int) -> None: ... + def glDrawBuffers(self, n: int, bufs: PYQT_OPENGL_ARRAY) -> None: ... + def glStencilOpSeparate(self, face: int, sfail: int, dpfail: int, dppass: int) -> None: ... + def glStencilFuncSeparate(self, face: int, func: int, ref: int, mask: int) -> None: ... + def glStencilMaskSeparate(self, face: int, mask: int) -> None: ... + def glAttachShader(self, program: int, shader: int) -> None: ... + def glBindAttribLocation(self, program: int, index: int, name: str) -> None: ... + def glCompileShader(self, shader: int) -> None: ... + def glCreateProgram(self) -> int: ... + def glCreateShader(self, type: int) -> int: ... + def glDeleteProgram(self, program: int) -> None: ... + def glDeleteShader(self, shader: int) -> None: ... + def glDetachShader(self, program: int, shader: int) -> None: ... + def glDisableVertexAttribArray(self, index: int) -> None: ... + def glEnableVertexAttribArray(self, index: int) -> None: ... + def glGetActiveAttrib(self, program: int, index: int) -> tuple[str, int, int]: ... + def glGetActiveUniform(self, program: int, index: int) -> tuple[str, int, int]: ... + def glGetAttachedShaders(self, program: int) -> tuple[int, ...]: ... + def glGetAttribLocation(self, program: int, name: str) -> int: ... + def glGetProgramiv(self, program: int, pname: int) -> int|tuple[int, int, int]: ... + def glGetProgramInfoLog(self, program: int) -> bytes: ... + def glGetShaderiv(self, shader: int, pname: int) -> int: ... + def glGetShaderInfoLog(self, shader: int) -> bytes: ... + def glGetShaderSource(self, shader: int) -> bytes: ... + def glGetUniformLocation(self, program: int, name: str) -> int: ... + def glGetVertexAttribdv(self, index: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetVertexAttribfv(self, index: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetVertexAttribiv(self, index: int, pname: int) -> int|tuple[int, int, int, int]: ... + def glIsProgram(self, program: int) -> int: ... + def glIsShader(self, shader: int) -> int: ... + def glLinkProgram(self, program: int) -> None: ... + def glUseProgram(self, program: int) -> None: ... + def glUniform1f(self, location: int, v0: float) -> None: ... + def glUniform2f(self, location: int, v0: float, v1: float) -> None: ... + def glUniform3f(self, location: int, v0: float, v1: float, v2: float) -> None: ... + def glUniform4f(self, location: int, v0: float, v1: float, v2: float, v3: float) -> None: ... + def glUniform1i(self, location: int, v0: int) -> None: ... + def glUniform2i(self, location: int, v0: int, v1: int) -> None: ... + def glUniform3i(self, location: int, v0: int, v1: int, v2: int) -> None: ... + def glUniform4i(self, location: int, v0: int, v1: int, v2: int, v3: int) -> None: ... + def glUniform1fv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform2fv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform3fv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform4fv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform1iv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform2iv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform3iv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform4iv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniformMatrix2fv(self, location: int, count: int, transpose: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniformMatrix3fv(self, location: int, count: int, transpose: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniformMatrix4fv(self, location: int, count: int, transpose: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glValidateProgram(self, program: int) -> None: ... + def glVertexAttribPointer(self, index: int, size: int, type: int, normalized: int, stride: int, pointer: PYQT_OPENGL_BOUND_ARRAY) -> None: ... + def glGenQueries(self, n: int) -> int|tuple[int, ...]: ... + def glDeleteQueries(self, n: int, ids: PYQT_OPENGL_ARRAY) -> None: ... + def glIsQuery(self, id: int) -> int: ... + def glBeginQuery(self, target: int, id: int) -> None: ... + def glEndQuery(self, target: int) -> None: ... + def glGetQueryiv(self, target: int, pname: int) -> int: ... + def glBindBuffer(self, target: int, buffer: int) -> None: ... + def glDeleteBuffers(self, n: int, buffers: PYQT_OPENGL_ARRAY) -> None: ... + def glGenBuffers(self, n: int) -> int|tuple[int, ...]: ... + def glIsBuffer(self, buffer: int) -> int: ... + def glBufferData(self, target: int, size: int, data: PYQT_OPENGL_ARRAY, usage: int) -> None: ... + def glBufferSubData(self, target: int, offset: int, size: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glUnmapBuffer(self, target: int) -> int: ... + def glGetBufferParameteriv(self, target: int, pname: int) -> int: ... + def glBlendFuncSeparate(self, sfactorRGB: int, dfactorRGB: int, sfactorAlpha: int, dfactorAlpha: int) -> None: ... + def glPointParameterf(self, pname: int, param: float) -> None: ... + def glPointParameterfv(self, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glPointParameteri(self, pname: int, param: int) -> None: ... + def glPointParameteriv(self, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glActiveTexture(self, texture: int) -> None: ... + def glSampleCoverage(self, value: float, invert: int) -> None: ... + def glCompressedTexImage3D(self, target: int, level: int, internalformat: int, width: int, height: int, depth: int, border: int, imageSize: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glCompressedTexImage2D(self, target: int, level: int, internalformat: int, width: int, height: int, border: int, imageSize: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glCompressedTexImage1D(self, target: int, level: int, internalformat: int, width: int, border: int, imageSize: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glCompressedTexSubImage3D(self, target: int, level: int, xoffset: int, yoffset: int, zoffset: int, width: int, height: int, depth: int, format: int, imageSize: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glCompressedTexSubImage2D(self, target: int, level: int, xoffset: int, yoffset: int, width: int, height: int, format: int, imageSize: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glCompressedTexSubImage1D(self, target: int, level: int, xoffset: int, width: int, format: int, imageSize: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glBlendColor(self, red: float, green: float, blue: float, alpha: float) -> None: ... + def glBlendEquation(self, mode: int) -> None: ... + def glDrawRangeElements(self, mode: int, start: int, end: int, count: int, type: int, indices: PYQT_OPENGL_ARRAY) -> None: ... + def glTexImage3D(self, target: int, level: int, internalformat: int, width: int, height: int, depth: int, border: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glTexSubImage3D(self, target: int, level: int, xoffset: int, yoffset: int, zoffset: int, width: int, height: int, depth: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glCopyTexSubImage3D(self, target: int, level: int, xoffset: int, yoffset: int, zoffset: int, x: int, y: int, width: int, height: int) -> None: ... + def glDrawArrays(self, mode: int, first: int, count: int) -> None: ... + def glDrawElements(self, mode: int, count: int, type: int, indices: PYQT_OPENGL_ARRAY) -> None: ... + def glPolygonOffset(self, factor: float, units: float) -> None: ... + def glCopyTexImage1D(self, target: int, level: int, internalformat: int, x: int, y: int, width: int, border: int) -> None: ... + def glCopyTexImage2D(self, target: int, level: int, internalformat: int, x: int, y: int, width: int, height: int, border: int) -> None: ... + def glCopyTexSubImage1D(self, target: int, level: int, xoffset: int, x: int, y: int, width: int) -> None: ... + def glCopyTexSubImage2D(self, target: int, level: int, xoffset: int, yoffset: int, x: int, y: int, width: int, height: int) -> None: ... + def glTexSubImage1D(self, target: int, level: int, xoffset: int, width: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glTexSubImage2D(self, target: int, level: int, xoffset: int, yoffset: int, width: int, height: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glBindTexture(self, target: int, texture: int) -> None: ... + def glDeleteTextures(self, n: int, textures: PYQT_OPENGL_ARRAY) -> None: ... + def glGenTextures(self, n: int) -> int|tuple[int, ...]: ... + def glIsTexture(self, texture: int) -> int: ... + def glIndexub(self, c: int) -> None: ... + def glIndexubv(self, c: PYQT_OPENGL_ARRAY) -> None: ... + def glCullFace(self, mode: int) -> None: ... + def glFrontFace(self, mode: int) -> None: ... + def glHint(self, target: int, mode: int) -> None: ... + def glLineWidth(self, width: float) -> None: ... + def glPointSize(self, size: float) -> None: ... + def glPolygonMode(self, face: int, mode: int) -> None: ... + def glScissor(self, x: int, y: int, width: int, height: int) -> None: ... + def glTexParameterf(self, target: int, pname: int, param: float) -> None: ... + def glTexParameterfv(self, target: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glTexParameteri(self, target: int, pname: int, param: int) -> None: ... + def glTexParameteriv(self, target: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glTexImage1D(self, target: int, level: int, internalformat: int, width: int, border: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glTexImage2D(self, target: int, level: int, internalformat: int, width: int, height: int, border: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glDrawBuffer(self, mode: int) -> None: ... + def glClear(self, mask: int) -> None: ... + def glClearColor(self, red: float, green: float, blue: float, alpha: float) -> None: ... + def glClearStencil(self, s: int) -> None: ... + def glClearDepth(self, depth: float) -> None: ... + def glStencilMask(self, mask: int) -> None: ... + def glColorMask(self, red: int, green: int, blue: int, alpha: int) -> None: ... + def glDepthMask(self, flag: int) -> None: ... + def glDisable(self, cap: int) -> None: ... + def glEnable(self, cap: int) -> None: ... + def glFinish(self) -> None: ... + def glFlush(self) -> None: ... + def glBlendFunc(self, sfactor: int, dfactor: int) -> None: ... + def glLogicOp(self, opcode: int) -> None: ... + def glStencilFunc(self, func: int, ref: int, mask: int) -> None: ... + def glStencilOp(self, fail: int, zfail: int, zpass: int) -> None: ... + def glDepthFunc(self, func: int) -> None: ... + def glPixelStoref(self, pname: int, param: float) -> None: ... + def glPixelStorei(self, pname: int, param: int) -> None: ... + def glReadBuffer(self, mode: int) -> None: ... + def glReadPixels(self, x: int, y: int, width: int, height: int, format: int, type: int) -> tuple[float, ...]|tuple[int, ...]: ... + def glGetBooleanv(self, pname: int) -> bool|tuple[bool, ...]: ... + def glGetDoublev(self, pname: int) -> float|tuple[float, ...]: ... + def glGetError(self) -> int: ... + def glGetFloatv(self, pname: int) -> float|tuple[float, ...]: ... + def glGetIntegerv(self, pname: int) -> int|tuple[int, ...]: ... + def glGetString(self, name: int) -> str: ... + def glGetTexParameterfv(self, target: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetTexParameteriv(self, target: int, pname: int) -> int|tuple[int, int, int, int]: ... + def glGetTexLevelParameterfv(self, target: int, level: int, pname: int) -> float: ... + def glGetTexLevelParameteriv(self, target: int, level: int, pname: int) -> int: ... + def glIsEnabled(self, cap: int) -> int: ... + def glDepthRange(self, nearVal: float, farVal: float) -> None: ... + def glViewport(self, x: int, y: int, width: int, height: int) -> None: ... + def initializeOpenGLFunctions(self) -> bool: ... + + +class QOpenGLFunctions_2_1(QAbstractOpenGLFunctions): + + def __init__(self) -> None: ... + + def glVertexAttrib1d(self, index: int, x: float) -> None: ... + def glVertexAttrib1dv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib1f(self, index: int, x: float) -> None: ... + def glVertexAttrib1fv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib1s(self, index: int, x: int) -> None: ... + def glVertexAttrib1sv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib2d(self, index: int, x: float, y: float) -> None: ... + def glVertexAttrib2dv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib2f(self, index: int, x: float, y: float) -> None: ... + def glVertexAttrib2fv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib2s(self, index: int, x: int, y: int) -> None: ... + def glVertexAttrib2sv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib3d(self, index: int, x: float, y: float, z: float) -> None: ... + def glVertexAttrib3dv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib3f(self, index: int, x: float, y: float, z: float) -> None: ... + def glVertexAttrib3fv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib3s(self, index: int, x: int, y: int, z: int) -> None: ... + def glVertexAttrib3sv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4Nbv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4Niv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4Nsv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4Nub(self, index: int, x: int, y: int, z: int, w: int) -> None: ... + def glVertexAttrib4Nubv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4Nuiv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4Nusv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4bv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4d(self, index: int, x: float, y: float, z: float, w: float) -> None: ... + def glVertexAttrib4dv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4f(self, index: int, x: float, y: float, z: float, w: float) -> None: ... + def glVertexAttrib4fv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4iv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4s(self, index: int, x: int, y: int, z: int, w: int) -> None: ... + def glVertexAttrib4sv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4ubv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4uiv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertexAttrib4usv(self, index: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glFogCoordf(self, coord: float) -> None: ... + def glFogCoordfv(self, coord: PYQT_OPENGL_ARRAY) -> None: ... + def glFogCoordd(self, coord: float) -> None: ... + def glFogCoorddv(self, coord: PYQT_OPENGL_ARRAY) -> None: ... + def glFogCoordPointer(self, type: int, stride: int, pointer: PYQT_OPENGL_ARRAY) -> None: ... + def glSecondaryColor3b(self, red: int, green: int, blue: int) -> None: ... + def glSecondaryColor3bv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glSecondaryColor3d(self, red: float, green: float, blue: float) -> None: ... + def glSecondaryColor3dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glSecondaryColor3f(self, red: float, green: float, blue: float) -> None: ... + def glSecondaryColor3fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glSecondaryColor3i(self, red: int, green: int, blue: int) -> None: ... + def glSecondaryColor3iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glSecondaryColor3s(self, red: int, green: int, blue: int) -> None: ... + def glSecondaryColor3sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glSecondaryColor3ub(self, red: int, green: int, blue: int) -> None: ... + def glSecondaryColor3ubv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glSecondaryColor3ui(self, red: int, green: int, blue: int) -> None: ... + def glSecondaryColor3uiv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glSecondaryColor3us(self, red: int, green: int, blue: int) -> None: ... + def glSecondaryColor3usv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glSecondaryColorPointer(self, size: int, type: int, stride: int, pointer: PYQT_OPENGL_ARRAY) -> None: ... + def glWindowPos2d(self, x: float, y: float) -> None: ... + def glWindowPos2dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glWindowPos2f(self, x: float, y: float) -> None: ... + def glWindowPos2fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glWindowPos2i(self, x: int, y: int) -> None: ... + def glWindowPos2iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glWindowPos2s(self, x: int, y: int) -> None: ... + def glWindowPos2sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glWindowPos3d(self, x: float, y: float, z: float) -> None: ... + def glWindowPos3dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glWindowPos3f(self, x: float, y: float, z: float) -> None: ... + def glWindowPos3fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glWindowPos3i(self, x: int, y: int, z: int) -> None: ... + def glWindowPos3iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glWindowPos3s(self, x: int, y: int, z: int) -> None: ... + def glWindowPos3sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glClientActiveTexture(self, texture: int) -> None: ... + def glMultiTexCoord1d(self, target: int, s: float) -> None: ... + def glMultiTexCoord1dv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord1f(self, target: int, s: float) -> None: ... + def glMultiTexCoord1fv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord1i(self, target: int, s: int) -> None: ... + def glMultiTexCoord1iv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord1s(self, target: int, s: int) -> None: ... + def glMultiTexCoord1sv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord2d(self, target: int, s: float, t: float) -> None: ... + def glMultiTexCoord2dv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord2f(self, target: int, s: float, t: float) -> None: ... + def glMultiTexCoord2fv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord2i(self, target: int, s: int, t: int) -> None: ... + def glMultiTexCoord2iv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord2s(self, target: int, s: int, t: int) -> None: ... + def glMultiTexCoord2sv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord3d(self, target: int, s: float, t: float, r: float) -> None: ... + def glMultiTexCoord3dv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord3f(self, target: int, s: float, t: float, r: float) -> None: ... + def glMultiTexCoord3fv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord3i(self, target: int, s: int, t: int, r: int) -> None: ... + def glMultiTexCoord3iv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord3s(self, target: int, s: int, t: int, r: int) -> None: ... + def glMultiTexCoord3sv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord4d(self, target: int, s: float, t: float, r: float, q: float) -> None: ... + def glMultiTexCoord4dv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord4f(self, target: int, s: float, t: float, r: float, q: float) -> None: ... + def glMultiTexCoord4fv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord4i(self, target: int, s: int, t: int, r: int, q: int) -> None: ... + def glMultiTexCoord4iv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glMultiTexCoord4s(self, target: int, s: int, t: int, r: int, q: int) -> None: ... + def glMultiTexCoord4sv(self, target: int, v: PYQT_OPENGL_ARRAY) -> None: ... + def glLoadTransposeMatrixf(self, m: PYQT_OPENGL_ARRAY) -> None: ... + def glLoadTransposeMatrixd(self, m: PYQT_OPENGL_ARRAY) -> None: ... + def glMultTransposeMatrixf(self, m: PYQT_OPENGL_ARRAY) -> None: ... + def glMultTransposeMatrixd(self, m: PYQT_OPENGL_ARRAY) -> None: ... + def glColorTable(self, target: int, internalformat: int, width: int, format: int, type: int, table: PYQT_OPENGL_ARRAY) -> None: ... + def glColorTableParameterfv(self, target: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glColorTableParameteriv(self, target: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glCopyColorTable(self, target: int, internalformat: int, x: int, y: int, width: int) -> None: ... + def glGetColorTableParameterfv(self, target: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetColorTableParameteriv(self, target: int, pname: int) -> int|tuple[int, int, int, int]: ... + def glColorSubTable(self, target: int, start: int, count: int, format: int, type: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glCopyColorSubTable(self, target: int, start: int, x: int, y: int, width: int) -> None: ... + def glConvolutionFilter1D(self, target: int, internalformat: int, width: int, format: int, type: int, image: PYQT_OPENGL_ARRAY) -> None: ... + def glConvolutionFilter2D(self, target: int, internalformat: int, width: int, height: int, format: int, type: int, image: PYQT_OPENGL_ARRAY) -> None: ... + def glConvolutionParameterf(self, target: int, pname: int, params: float) -> None: ... + def glConvolutionParameterfv(self, target: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glConvolutionParameteri(self, target: int, pname: int, params: int) -> None: ... + def glConvolutionParameteriv(self, target: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glCopyConvolutionFilter1D(self, target: int, internalformat: int, x: int, y: int, width: int) -> None: ... + def glCopyConvolutionFilter2D(self, target: int, internalformat: int, x: int, y: int, width: int, height: int) -> None: ... + def glGetConvolutionParameterfv(self, target: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetConvolutionParameteriv(self, target: int, pname: int) -> int|tuple[int, int, int, int]: ... + def glHistogram(self, target: int, width: int, internalformat: int, sink: int) -> None: ... + def glMinmax(self, target: int, internalformat: int, sink: int) -> None: ... + def glResetHistogram(self, target: int) -> None: ... + def glResetMinmax(self, target: int) -> None: ... + def glArrayElement(self, i: int) -> None: ... + def glColorPointer(self, size: int, type: int, stride: int, pointer: PYQT_OPENGL_BOUND_ARRAY) -> None: ... + def glDisableClientState(self, array: int) -> None: ... + def glEdgeFlagPointer(self, stride: int, pointer: PYQT_OPENGL_BOUND_ARRAY) -> None: ... + def glEnableClientState(self, array: int) -> None: ... + def glIndexPointer(self, type: int, stride: int, pointer: PYQT_OPENGL_BOUND_ARRAY) -> None: ... + def glNormalPointer(self, type: int, stride: int, pointer: PYQT_OPENGL_BOUND_ARRAY) -> None: ... + def glTexCoordPointer(self, size: int, type: int, stride: int, pointer: PYQT_OPENGL_BOUND_ARRAY) -> None: ... + def glVertexPointer(self, size: int, type: int, stride: int, pointer: PYQT_OPENGL_BOUND_ARRAY) -> None: ... + def glPopClientAttrib(self) -> None: ... + def glPushClientAttrib(self, mask: int) -> None: ... + def glNewList(self, list: int, mode: int) -> None: ... + def glEndList(self) -> None: ... + def glCallList(self, list: int) -> None: ... + def glDeleteLists(self, list: int, range: int) -> None: ... + def glGenLists(self, range: int) -> int: ... + def glListBase(self, base: int) -> None: ... + def glBegin(self, mode: int) -> None: ... + def glBitmap(self, width: int, height: int, xorig: float, yorig: float, xmove: float, ymove: float, bitmap: PYQT_OPENGL_ARRAY) -> None: ... + def glColor3b(self, red: int, green: int, blue: int) -> None: ... + def glColor3bv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor3d(self, red: float, green: float, blue: float) -> None: ... + def glColor3dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor3f(self, red: float, green: float, blue: float) -> None: ... + def glColor3fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor3i(self, red: int, green: int, blue: int) -> None: ... + def glColor3iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor3s(self, red: int, green: int, blue: int) -> None: ... + def glColor3sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor3ub(self, red: int, green: int, blue: int) -> None: ... + def glColor3ubv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor3ui(self, red: int, green: int, blue: int) -> None: ... + def glColor3uiv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor3us(self, red: int, green: int, blue: int) -> None: ... + def glColor3usv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor4b(self, red: int, green: int, blue: int, alpha: int) -> None: ... + def glColor4bv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor4d(self, red: float, green: float, blue: float, alpha: float) -> None: ... + def glColor4dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor4f(self, red: float, green: float, blue: float, alpha: float) -> None: ... + def glColor4fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor4i(self, red: int, green: int, blue: int, alpha: int) -> None: ... + def glColor4iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor4s(self, red: int, green: int, blue: int, alpha: int) -> None: ... + def glColor4sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor4ub(self, red: int, green: int, blue: int, alpha: int) -> None: ... + def glColor4ubv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor4ui(self, red: int, green: int, blue: int, alpha: int) -> None: ... + def glColor4uiv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glColor4us(self, red: int, green: int, blue: int, alpha: int) -> None: ... + def glColor4usv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glEdgeFlag(self, flag: int) -> None: ... + def glEdgeFlagv(self, flag: PYQT_OPENGL_ARRAY) -> None: ... + def glEnd(self) -> None: ... + def glIndexd(self, c: float) -> None: ... + def glIndexdv(self, c: PYQT_OPENGL_ARRAY) -> None: ... + def glIndexf(self, c: float) -> None: ... + def glIndexfv(self, c: PYQT_OPENGL_ARRAY) -> None: ... + def glIndexi(self, c: int) -> None: ... + def glIndexiv(self, c: PYQT_OPENGL_ARRAY) -> None: ... + def glIndexs(self, c: int) -> None: ... + def glIndexsv(self, c: PYQT_OPENGL_ARRAY) -> None: ... + def glNormal3b(self, nx: int, ny: int, nz: int) -> None: ... + def glNormal3bv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glNormal3d(self, nx: float, ny: float, nz: float) -> None: ... + def glNormal3dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glNormal3f(self, nx: float, ny: float, nz: float) -> None: ... + def glNormal3fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glNormal3i(self, nx: int, ny: int, nz: int) -> None: ... + def glNormal3iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glNormal3s(self, nx: int, ny: int, nz: int) -> None: ... + def glNormal3sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos2d(self, x: float, y: float) -> None: ... + def glRasterPos2dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos2f(self, x: float, y: float) -> None: ... + def glRasterPos2fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos2i(self, x: int, y: int) -> None: ... + def glRasterPos2iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos2s(self, x: int, y: int) -> None: ... + def glRasterPos2sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos3d(self, x: float, y: float, z: float) -> None: ... + def glRasterPos3dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos3f(self, x: float, y: float, z: float) -> None: ... + def glRasterPos3fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos3i(self, x: int, y: int, z: int) -> None: ... + def glRasterPos3iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos3s(self, x: int, y: int, z: int) -> None: ... + def glRasterPos3sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos4d(self, x: float, y: float, z: float, w: float) -> None: ... + def glRasterPos4dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos4f(self, x: float, y: float, z: float, w: float) -> None: ... + def glRasterPos4fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos4i(self, x: int, y: int, z: int, w: int) -> None: ... + def glRasterPos4iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRasterPos4s(self, x: int, y: int, z: int, w: int) -> None: ... + def glRasterPos4sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glRectd(self, x1: float, y1: float, x2: float, y2: float) -> None: ... + def glRectf(self, x1: float, y1: float, x2: float, y2: float) -> None: ... + def glRecti(self, x1: int, y1: int, x2: int, y2: int) -> None: ... + def glRects(self, x1: int, y1: int, x2: int, y2: int) -> None: ... + def glTexCoord1d(self, s: float) -> None: ... + def glTexCoord1dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord1f(self, s: float) -> None: ... + def glTexCoord1fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord1i(self, s: int) -> None: ... + def glTexCoord1iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord1s(self, s: int) -> None: ... + def glTexCoord1sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord2d(self, s: float, t: float) -> None: ... + def glTexCoord2dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord2f(self, s: float, t: float) -> None: ... + def glTexCoord2fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord2i(self, s: int, t: int) -> None: ... + def glTexCoord2iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord2s(self, s: int, t: int) -> None: ... + def glTexCoord2sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord3d(self, s: float, t: float, r: float) -> None: ... + def glTexCoord3dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord3f(self, s: float, t: float, r: float) -> None: ... + def glTexCoord3fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord3i(self, s: int, t: int, r: int) -> None: ... + def glTexCoord3iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord3s(self, s: int, t: int, r: int) -> None: ... + def glTexCoord3sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord4d(self, s: float, t: float, r: float, q: float) -> None: ... + def glTexCoord4dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord4f(self, s: float, t: float, r: float, q: float) -> None: ... + def glTexCoord4fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord4i(self, s: int, t: int, r: int, q: int) -> None: ... + def glTexCoord4iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glTexCoord4s(self, s: int, t: int, r: int, q: int) -> None: ... + def glTexCoord4sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex2d(self, x: float, y: float) -> None: ... + def glVertex2dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex2f(self, x: float, y: float) -> None: ... + def glVertex2fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex2i(self, x: int, y: int) -> None: ... + def glVertex2iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex2s(self, x: int, y: int) -> None: ... + def glVertex2sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex3d(self, x: float, y: float, z: float) -> None: ... + def glVertex3dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex3f(self, x: float, y: float, z: float) -> None: ... + def glVertex3fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex3i(self, x: int, y: int, z: int) -> None: ... + def glVertex3iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex3s(self, x: int, y: int, z: int) -> None: ... + def glVertex3sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex4d(self, x: float, y: float, z: float, w: float) -> None: ... + def glVertex4dv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex4f(self, x: float, y: float, z: float, w: float) -> None: ... + def glVertex4fv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex4i(self, x: int, y: int, z: int, w: int) -> None: ... + def glVertex4iv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glVertex4s(self, x: int, y: int, z: int, w: int) -> None: ... + def glVertex4sv(self, v: PYQT_OPENGL_ARRAY) -> None: ... + def glClipPlane(self, plane: int, equation: PYQT_OPENGL_ARRAY) -> None: ... + def glColorMaterial(self, face: int, mode: int) -> None: ... + def glFogf(self, pname: int, param: float) -> None: ... + def glFogfv(self, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glFogi(self, pname: int, param: int) -> None: ... + def glFogiv(self, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glLightf(self, light: int, pname: int, param: float) -> None: ... + def glLightfv(self, light: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glLighti(self, light: int, pname: int, param: int) -> None: ... + def glLightiv(self, light: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glLightModelf(self, pname: int, param: float) -> None: ... + def glLightModelfv(self, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glLightModeli(self, pname: int, param: int) -> None: ... + def glLightModeliv(self, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glLineStipple(self, factor: int, pattern: int) -> None: ... + def glMaterialf(self, face: int, pname: int, param: float) -> None: ... + def glMaterialfv(self, face: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glMateriali(self, face: int, pname: int, param: int) -> None: ... + def glMaterialiv(self, face: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glPolygonStipple(self, mask: PYQT_OPENGL_ARRAY) -> None: ... + def glShadeModel(self, mode: int) -> None: ... + def glTexEnvf(self, target: int, pname: int, param: float) -> None: ... + def glTexEnvfv(self, target: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glTexEnvi(self, target: int, pname: int, param: int) -> None: ... + def glTexEnviv(self, target: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glTexGend(self, coord: int, pname: int, param: float) -> None: ... + def glTexGendv(self, coord: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glTexGenf(self, coord: int, pname: int, param: float) -> None: ... + def glTexGenfv(self, coord: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glTexGeni(self, coord: int, pname: int, param: int) -> None: ... + def glTexGeniv(self, coord: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glRenderMode(self, mode: int) -> int: ... + def glInitNames(self) -> None: ... + def glLoadName(self, name: int) -> None: ... + def glPassThrough(self, token: float) -> None: ... + def glPopName(self) -> None: ... + def glPushName(self, name: int) -> None: ... + def glClearAccum(self, red: float, green: float, blue: float, alpha: float) -> None: ... + def glClearIndex(self, c: float) -> None: ... + def glIndexMask(self, mask: int) -> None: ... + def glAccum(self, op: int, value: float) -> None: ... + def glPopAttrib(self) -> None: ... + def glPushAttrib(self, mask: int) -> None: ... + def glMap1d(self, target: int, u1: float, u2: float, stride: int, order: int, points: PYQT_OPENGL_ARRAY) -> None: ... + def glMap1f(self, target: int, u1: float, u2: float, stride: int, order: int, points: PYQT_OPENGL_ARRAY) -> None: ... + def glMap2d(self, target: int, u1: float, u2: float, ustride: int, uorder: int, v1: float, v2: float, vstride: int, vorder: int, points: PYQT_OPENGL_ARRAY) -> None: ... + def glMap2f(self, target: int, u1: float, u2: float, ustride: int, uorder: int, v1: float, v2: float, vstride: int, vorder: int, points: PYQT_OPENGL_ARRAY) -> None: ... + def glMapGrid1d(self, un: int, u1: float, u2: float) -> None: ... + def glMapGrid1f(self, un: int, u1: float, u2: float) -> None: ... + def glMapGrid2d(self, un: int, u1: float, u2: float, vn: int, v1: float, v2: float) -> None: ... + def glMapGrid2f(self, un: int, u1: float, u2: float, vn: int, v1: float, v2: float) -> None: ... + def glEvalCoord1d(self, u: float) -> None: ... + def glEvalCoord1dv(self, u: PYQT_OPENGL_ARRAY) -> None: ... + def glEvalCoord1f(self, u: float) -> None: ... + def glEvalCoord1fv(self, u: PYQT_OPENGL_ARRAY) -> None: ... + def glEvalCoord2d(self, u: float, v: float) -> None: ... + def glEvalCoord2dv(self, u: PYQT_OPENGL_ARRAY) -> None: ... + def glEvalCoord2f(self, u: float, v: float) -> None: ... + def glEvalCoord2fv(self, u: PYQT_OPENGL_ARRAY) -> None: ... + def glEvalMesh1(self, mode: int, i1: int, i2: int) -> None: ... + def glEvalPoint1(self, i: int) -> None: ... + def glEvalMesh2(self, mode: int, i1: int, i2: int, j1: int, j2: int) -> None: ... + def glEvalPoint2(self, i: int, j: int) -> None: ... + def glAlphaFunc(self, func: int, ref: float) -> None: ... + def glPixelZoom(self, xfactor: float, yfactor: float) -> None: ... + def glPixelTransferf(self, pname: int, param: float) -> None: ... + def glPixelTransferi(self, pname: int, param: int) -> None: ... + def glPixelMapfv(self, map: int, mapsize: int, values: PYQT_OPENGL_ARRAY) -> None: ... + def glPixelMapuiv(self, map: int, mapsize: int, values: PYQT_OPENGL_ARRAY) -> None: ... + def glPixelMapusv(self, map: int, mapsize: int, values: PYQT_OPENGL_ARRAY) -> None: ... + def glCopyPixels(self, x: int, y: int, width: int, height: int, type: int) -> None: ... + def glDrawPixels(self, width: int, height: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glGetClipPlane(self, plane: int) -> tuple[float, float, float, float]: ... + def glGetLightfv(self, light: int, pname: int) -> float|tuple[float, float, float]|tuple[float, float, float, float]: ... + def glGetLightiv(self, light: int, pname: int) -> int|tuple[int, int, int]|tuple[int, int, int, int]: ... + def glGetMaterialfv(self, face: int, pname: int) -> float|tuple[float, float, float]|tuple[float, float, float, float]: ... + def glGetMaterialiv(self, face: int, pname: int) -> int|tuple[int, int, int]|tuple[int, int, int, int]: ... + def glGetTexEnvfv(self, target: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetTexEnviv(self, target: int, pname: int) -> int|tuple[int, int, int, int]: ... + def glGetTexGendv(self, coord: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetTexGenfv(self, coord: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetTexGeniv(self, coord: int, pname: int) -> int|tuple[int, int, int, int]: ... + def glIsList(self, list: int) -> int: ... + def glFrustum(self, left: float, right: float, bottom: float, top: float, zNear: float, zFar: float) -> None: ... + def glLoadIdentity(self) -> None: ... + def glLoadMatrixf(self, m: PYQT_OPENGL_ARRAY) -> None: ... + def glLoadMatrixd(self, m: PYQT_OPENGL_ARRAY) -> None: ... + def glMatrixMode(self, mode: int) -> None: ... + def glMultMatrixf(self, m: PYQT_OPENGL_ARRAY) -> None: ... + def glMultMatrixd(self, m: PYQT_OPENGL_ARRAY) -> None: ... + def glOrtho(self, left: float, right: float, bottom: float, top: float, zNear: float, zFar: float) -> None: ... + def glPopMatrix(self) -> None: ... + def glPushMatrix(self) -> None: ... + def glRotated(self, angle: float, x: float, y: float, z: float) -> None: ... + def glRotatef(self, angle: float, x: float, y: float, z: float) -> None: ... + def glScaled(self, x: float, y: float, z: float) -> None: ... + def glScalef(self, x: float, y: float, z: float) -> None: ... + def glTranslated(self, x: float, y: float, z: float) -> None: ... + def glTranslatef(self, x: float, y: float, z: float) -> None: ... + def glBlendEquationSeparate(self, modeRGB: int, modeAlpha: int) -> None: ... + def glDrawBuffers(self, n: int, bufs: PYQT_OPENGL_ARRAY) -> None: ... + def glStencilOpSeparate(self, face: int, sfail: int, dpfail: int, dppass: int) -> None: ... + def glStencilFuncSeparate(self, face: int, func: int, ref: int, mask: int) -> None: ... + def glStencilMaskSeparate(self, face: int, mask: int) -> None: ... + def glAttachShader(self, program: int, shader: int) -> None: ... + def glBindAttribLocation(self, program: int, index: int, name: str) -> None: ... + def glCompileShader(self, shader: int) -> None: ... + def glCreateProgram(self) -> int: ... + def glCreateShader(self, type: int) -> int: ... + def glDeleteProgram(self, program: int) -> None: ... + def glDeleteShader(self, shader: int) -> None: ... + def glDetachShader(self, program: int, shader: int) -> None: ... + def glDisableVertexAttribArray(self, index: int) -> None: ... + def glEnableVertexAttribArray(self, index: int) -> None: ... + def glGetActiveAttrib(self, program: int, index: int) -> tuple[str, int, int]: ... + def glGetActiveUniform(self, program: int, index: int) -> tuple[str, int, int]: ... + def glGetAttachedShaders(self, program: int) -> tuple[int, ...]: ... + def glGetAttribLocation(self, program: int, name: str) -> int: ... + def glGetProgramiv(self, program: int, pname: int) -> int|tuple[int, int, int]: ... + def glGetProgramInfoLog(self, program: int) -> bytes: ... + def glGetShaderiv(self, shader: int, pname: int) -> int: ... + def glGetShaderInfoLog(self, shader: int) -> bytes: ... + def glGetShaderSource(self, shader: int) -> bytes: ... + def glGetUniformLocation(self, program: int, name: str) -> int: ... + def glGetVertexAttribdv(self, index: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetVertexAttribfv(self, index: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetVertexAttribiv(self, index: int, pname: int) -> int|tuple[int, int, int, int]: ... + def glIsProgram(self, program: int) -> int: ... + def glIsShader(self, shader: int) -> int: ... + def glLinkProgram(self, program: int) -> None: ... + def glUseProgram(self, program: int) -> None: ... + def glUniform1f(self, location: int, v0: float) -> None: ... + def glUniform2f(self, location: int, v0: float, v1: float) -> None: ... + def glUniform3f(self, location: int, v0: float, v1: float, v2: float) -> None: ... + def glUniform4f(self, location: int, v0: float, v1: float, v2: float, v3: float) -> None: ... + def glUniform1i(self, location: int, v0: int) -> None: ... + def glUniform2i(self, location: int, v0: int, v1: int) -> None: ... + def glUniform3i(self, location: int, v0: int, v1: int, v2: int) -> None: ... + def glUniform4i(self, location: int, v0: int, v1: int, v2: int, v3: int) -> None: ... + def glUniform1fv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform2fv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform3fv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform4fv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform1iv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform2iv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform3iv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform4iv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniformMatrix2fv(self, location: int, count: int, transpose: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniformMatrix3fv(self, location: int, count: int, transpose: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniformMatrix4fv(self, location: int, count: int, transpose: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glValidateProgram(self, program: int) -> None: ... + def glVertexAttribPointer(self, index: int, size: int, type: int, normalized: int, stride: int, pointer: PYQT_OPENGL_BOUND_ARRAY) -> None: ... + def glGenQueries(self, n: int) -> int|tuple[int, ...]: ... + def glDeleteQueries(self, n: int, ids: PYQT_OPENGL_ARRAY) -> None: ... + def glIsQuery(self, id: int) -> int: ... + def glBeginQuery(self, target: int, id: int) -> None: ... + def glEndQuery(self, target: int) -> None: ... + def glGetQueryiv(self, target: int, pname: int) -> int: ... + def glBindBuffer(self, target: int, buffer: int) -> None: ... + def glDeleteBuffers(self, n: int, buffers: PYQT_OPENGL_ARRAY) -> None: ... + def glGenBuffers(self, n: int) -> int|tuple[int, ...]: ... + def glIsBuffer(self, buffer: int) -> int: ... + def glBufferData(self, target: int, size: int, data: PYQT_OPENGL_ARRAY, usage: int) -> None: ... + def glBufferSubData(self, target: int, offset: int, size: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glUnmapBuffer(self, target: int) -> int: ... + def glGetBufferParameteriv(self, target: int, pname: int) -> int: ... + def glBlendFuncSeparate(self, sfactorRGB: int, dfactorRGB: int, sfactorAlpha: int, dfactorAlpha: int) -> None: ... + def glPointParameterf(self, pname: int, param: float) -> None: ... + def glPointParameterfv(self, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glPointParameteri(self, pname: int, param: int) -> None: ... + def glPointParameteriv(self, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glActiveTexture(self, texture: int) -> None: ... + def glSampleCoverage(self, value: float, invert: int) -> None: ... + def glCompressedTexImage3D(self, target: int, level: int, internalformat: int, width: int, height: int, depth: int, border: int, imageSize: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glCompressedTexImage2D(self, target: int, level: int, internalformat: int, width: int, height: int, border: int, imageSize: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glCompressedTexImage1D(self, target: int, level: int, internalformat: int, width: int, border: int, imageSize: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glCompressedTexSubImage3D(self, target: int, level: int, xoffset: int, yoffset: int, zoffset: int, width: int, height: int, depth: int, format: int, imageSize: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glCompressedTexSubImage2D(self, target: int, level: int, xoffset: int, yoffset: int, width: int, height: int, format: int, imageSize: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glCompressedTexSubImage1D(self, target: int, level: int, xoffset: int, width: int, format: int, imageSize: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glBlendColor(self, red: float, green: float, blue: float, alpha: float) -> None: ... + def glBlendEquation(self, mode: int) -> None: ... + def glDrawRangeElements(self, mode: int, start: int, end: int, count: int, type: int, indices: PYQT_OPENGL_ARRAY) -> None: ... + def glTexImage3D(self, target: int, level: int, internalformat: int, width: int, height: int, depth: int, border: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glTexSubImage3D(self, target: int, level: int, xoffset: int, yoffset: int, zoffset: int, width: int, height: int, depth: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glCopyTexSubImage3D(self, target: int, level: int, xoffset: int, yoffset: int, zoffset: int, x: int, y: int, width: int, height: int) -> None: ... + def glDrawArrays(self, mode: int, first: int, count: int) -> None: ... + def glDrawElements(self, mode: int, count: int, type: int, indices: PYQT_OPENGL_ARRAY) -> None: ... + def glPolygonOffset(self, factor: float, units: float) -> None: ... + def glCopyTexImage1D(self, target: int, level: int, internalformat: int, x: int, y: int, width: int, border: int) -> None: ... + def glCopyTexImage2D(self, target: int, level: int, internalformat: int, x: int, y: int, width: int, height: int, border: int) -> None: ... + def glCopyTexSubImage1D(self, target: int, level: int, xoffset: int, x: int, y: int, width: int) -> None: ... + def glCopyTexSubImage2D(self, target: int, level: int, xoffset: int, yoffset: int, x: int, y: int, width: int, height: int) -> None: ... + def glTexSubImage1D(self, target: int, level: int, xoffset: int, width: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glTexSubImage2D(self, target: int, level: int, xoffset: int, yoffset: int, width: int, height: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glBindTexture(self, target: int, texture: int) -> None: ... + def glDeleteTextures(self, n: int, textures: PYQT_OPENGL_ARRAY) -> None: ... + def glGenTextures(self, n: int) -> int|tuple[int, ...]: ... + def glIsTexture(self, texture: int) -> int: ... + def glIndexub(self, c: int) -> None: ... + def glIndexubv(self, c: PYQT_OPENGL_ARRAY) -> None: ... + def glCullFace(self, mode: int) -> None: ... + def glFrontFace(self, mode: int) -> None: ... + def glHint(self, target: int, mode: int) -> None: ... + def glLineWidth(self, width: float) -> None: ... + def glPointSize(self, size: float) -> None: ... + def glPolygonMode(self, face: int, mode: int) -> None: ... + def glScissor(self, x: int, y: int, width: int, height: int) -> None: ... + def glTexParameterf(self, target: int, pname: int, param: float) -> None: ... + def glTexParameterfv(self, target: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glTexParameteri(self, target: int, pname: int, param: int) -> None: ... + def glTexParameteriv(self, target: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glTexImage1D(self, target: int, level: int, internalformat: int, width: int, border: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glTexImage2D(self, target: int, level: int, internalformat: int, width: int, height: int, border: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glDrawBuffer(self, mode: int) -> None: ... + def glClear(self, mask: int) -> None: ... + def glClearColor(self, red: float, green: float, blue: float, alpha: float) -> None: ... + def glClearStencil(self, s: int) -> None: ... + def glClearDepth(self, depth: float) -> None: ... + def glStencilMask(self, mask: int) -> None: ... + def glColorMask(self, red: int, green: int, blue: int, alpha: int) -> None: ... + def glDepthMask(self, flag: int) -> None: ... + def glDisable(self, cap: int) -> None: ... + def glEnable(self, cap: int) -> None: ... + def glFinish(self) -> None: ... + def glFlush(self) -> None: ... + def glBlendFunc(self, sfactor: int, dfactor: int) -> None: ... + def glLogicOp(self, opcode: int) -> None: ... + def glStencilFunc(self, func: int, ref: int, mask: int) -> None: ... + def glStencilOp(self, fail: int, zfail: int, zpass: int) -> None: ... + def glDepthFunc(self, func: int) -> None: ... + def glPixelStoref(self, pname: int, param: float) -> None: ... + def glPixelStorei(self, pname: int, param: int) -> None: ... + def glReadBuffer(self, mode: int) -> None: ... + def glReadPixels(self, x: int, y: int, width: int, height: int, format: int, type: int) -> tuple[float, ...]|tuple[int, ...]: ... + def glGetBooleanv(self, pname: int) -> bool|tuple[bool, ...]: ... + def glGetDoublev(self, pname: int) -> float|tuple[float, ...]: ... + def glGetError(self) -> int: ... + def glGetFloatv(self, pname: int) -> float|tuple[float, ...]: ... + def glGetIntegerv(self, pname: int) -> int|tuple[int, ...]: ... + def glGetString(self, name: int) -> str: ... + def glGetTexParameterfv(self, target: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetTexParameteriv(self, target: int, pname: int) -> int|tuple[int, int, int, int]: ... + def glGetTexLevelParameterfv(self, target: int, level: int, pname: int) -> float: ... + def glGetTexLevelParameteriv(self, target: int, level: int, pname: int) -> int: ... + def glIsEnabled(self, cap: int) -> int: ... + def glDepthRange(self, nearVal: float, farVal: float) -> None: ... + def glViewport(self, x: int, y: int, width: int, height: int) -> None: ... + def initializeOpenGLFunctions(self) -> bool: ... + + +class QOpenGLFunctions_4_1_Core(QAbstractOpenGLFunctions): + + def __init__(self) -> None: ... + + def glReleaseShaderCompiler(self) -> None: ... + def glDepthRangef(self, n: float, f: float) -> None: ... + def glClearDepthf(self, dd: float) -> None: ... + def glProgramParameteri(self, program: int, pname: int, value: int) -> None: ... + def glUseProgramStages(self, pipeline: int, stages: int, program: int) -> None: ... + def glActiveShaderProgram(self, pipeline: int, program: int) -> None: ... + def glBindProgramPipeline(self, pipeline: int) -> None: ... + def glIsProgramPipeline(self, pipeline: int) -> int: ... + def glProgramUniform1i(self, program: int, location: int, v0: int) -> None: ... + def glProgramUniform1f(self, program: int, location: int, v0: float) -> None: ... + def glProgramUniform1d(self, program: int, location: int, v0: float) -> None: ... + def glProgramUniform1ui(self, program: int, location: int, v0: int) -> None: ... + def glProgramUniform2i(self, program: int, location: int, v0: int, v1: int) -> None: ... + def glProgramUniform2f(self, program: int, location: int, v0: float, v1: float) -> None: ... + def glProgramUniform2d(self, program: int, location: int, v0: float, v1: float) -> None: ... + def glProgramUniform2ui(self, program: int, location: int, v0: int, v1: int) -> None: ... + def glProgramUniform3i(self, program: int, location: int, v0: int, v1: int, v2: int) -> None: ... + def glProgramUniform3f(self, program: int, location: int, v0: float, v1: float, v2: float) -> None: ... + def glProgramUniform3d(self, program: int, location: int, v0: float, v1: float, v2: float) -> None: ... + def glProgramUniform3ui(self, program: int, location: int, v0: int, v1: int, v2: int) -> None: ... + def glProgramUniform4i(self, program: int, location: int, v0: int, v1: int, v2: int, v3: int) -> None: ... + def glProgramUniform4f(self, program: int, location: int, v0: float, v1: float, v2: float, v3: float) -> None: ... + def glProgramUniform4d(self, program: int, location: int, v0: float, v1: float, v2: float, v3: float) -> None: ... + def glProgramUniform4ui(self, program: int, location: int, v0: int, v1: int, v2: int, v3: int) -> None: ... + def glValidateProgramPipeline(self, pipeline: int) -> None: ... + def glVertexAttribL1d(self, index: int, x: float) -> None: ... + def glVertexAttribL2d(self, index: int, x: float, y: float) -> None: ... + def glVertexAttribL3d(self, index: int, x: float, y: float, z: float) -> None: ... + def glVertexAttribL4d(self, index: int, x: float, y: float, z: float, w: float) -> None: ... + def glViewportIndexedf(self, index: int, x: float, y: float, w: float, h: float) -> None: ... + def glScissorIndexed(self, index: int, left: int, bottom: int, width: int, height: int) -> None: ... + def glDepthRangeIndexed(self, index: int, n: float, f: float) -> None: ... + def glMinSampleShading(self, value: float) -> None: ... + def glBlendEquationi(self, buf: int, mode: int) -> None: ... + def glBlendEquationSeparatei(self, buf: int, modeRGB: int, modeAlpha: int) -> None: ... + def glBlendFunci(self, buf: int, src: int, dst: int) -> None: ... + def glBlendFuncSeparatei(self, buf: int, srcRGB: int, dstRGB: int, srcAlpha: int, dstAlpha: int) -> None: ... + def glUniform1d(self, location: int, x: float) -> None: ... + def glUniform2d(self, location: int, x: float, y: float) -> None: ... + def glUniform3d(self, location: int, x: float, y: float, z: float) -> None: ... + def glUniform4d(self, location: int, x: float, y: float, z: float, w: float) -> None: ... + def glPatchParameteri(self, pname: int, value: int) -> None: ... + def glBindTransformFeedback(self, target: int, id: int) -> None: ... + def glIsTransformFeedback(self, id: int) -> int: ... + def glPauseTransformFeedback(self) -> None: ... + def glResumeTransformFeedback(self) -> None: ... + def glDrawTransformFeedback(self, mode: int, id: int) -> None: ... + def glDrawTransformFeedbackStream(self, mode: int, id: int, stream: int) -> None: ... + def glBeginQueryIndexed(self, target: int, index: int, id: int) -> None: ... + def glEndQueryIndexed(self, target: int, index: int) -> None: ... + def glVertexAttribDivisor(self, index: int, divisor: int) -> None: ... + def glIsSampler(self, sampler: int) -> int: ... + def glBindSampler(self, unit: int, sampler: int) -> None: ... + def glSamplerParameteri(self, sampler: int, pname: int, param: int) -> None: ... + def glSamplerParameterf(self, sampler: int, pname: int, param: float) -> None: ... + def glQueryCounter(self, id: int, target: int) -> None: ... + def glVertexAttribP1ui(self, index: int, type: int, normalized: int, value: int) -> None: ... + def glVertexAttribP2ui(self, index: int, type: int, normalized: int, value: int) -> None: ... + def glVertexAttribP3ui(self, index: int, type: int, normalized: int, value: int) -> None: ... + def glVertexAttribP4ui(self, index: int, type: int, normalized: int, value: int) -> None: ... + def glFramebufferTexture(self, target: int, attachment: int, texture: int, level: int) -> None: ... + def glProvokingVertex(self, mode: int) -> None: ... + def glTexImage2DMultisample(self, target: int, samples: int, internalformat: int, width: int, height: int, fixedsamplelocations: int) -> None: ... + def glTexImage3DMultisample(self, target: int, samples: int, internalformat: int, width: int, height: int, depth: int, fixedsamplelocations: int) -> None: ... + def glSampleMaski(self, index: int, mask: int) -> None: ... + def glDrawArraysInstanced(self, mode: int, first: int, count: int, instancecount: int) -> None: ... + def glTexBuffer(self, target: int, internalformat: int, buffer: int) -> None: ... + def glPrimitiveRestartIndex(self, index: int) -> None: ... + def glUniformBlockBinding(self, program: int, uniformBlockIndex: int, uniformBlockBinding: int) -> None: ... + def glColorMaski(self, index: int, r: int, g: int, b: int, a: int) -> None: ... + def glEnablei(self, target: int, index: int) -> None: ... + def glDisablei(self, target: int, index: int) -> None: ... + def glIsEnabledi(self, target: int, index: int) -> int: ... + def glBeginTransformFeedback(self, primitiveMode: int) -> None: ... + def glEndTransformFeedback(self) -> None: ... + def glBindBufferBase(self, target: int, index: int, buffer: int) -> None: ... + def glClampColor(self, target: int, clamp: int) -> None: ... + def glBeginConditionalRender(self, id: int, mode: int) -> None: ... + def glEndConditionalRender(self) -> None: ... + def glUniform1ui(self, location: int, v0: int) -> None: ... + def glUniform2ui(self, location: int, v0: int, v1: int) -> None: ... + def glUniform3ui(self, location: int, v0: int, v1: int, v2: int) -> None: ... + def glUniform4ui(self, location: int, v0: int, v1: int, v2: int, v3: int) -> None: ... + def glClearBufferfi(self, buffer: int, drawbuffer: int, depth: float, stencil: int) -> None: ... + def glIsRenderbuffer(self, renderbuffer: int) -> int: ... + def glBindRenderbuffer(self, target: int, renderbuffer: int) -> None: ... + def glRenderbufferStorage(self, target: int, internalformat: int, width: int, height: int) -> None: ... + def glIsFramebuffer(self, framebuffer: int) -> int: ... + def glBindFramebuffer(self, target: int, framebuffer: int) -> None: ... + def glCheckFramebufferStatus(self, target: int) -> int: ... + def glFramebufferTexture1D(self, target: int, attachment: int, textarget: int, texture: int, level: int) -> None: ... + def glFramebufferTexture2D(self, target: int, attachment: int, textarget: int, texture: int, level: int) -> None: ... + def glFramebufferTexture3D(self, target: int, attachment: int, textarget: int, texture: int, level: int, zoffset: int) -> None: ... + def glFramebufferRenderbuffer(self, target: int, attachment: int, renderbuffertarget: int, renderbuffer: int) -> None: ... + def glGenerateMipmap(self, target: int) -> None: ... + def glBlitFramebuffer(self, srcX0: int, srcY0: int, srcX1: int, srcY1: int, dstX0: int, dstY0: int, dstX1: int, dstY1: int, mask: int, filter: int) -> None: ... + def glRenderbufferStorageMultisample(self, target: int, samples: int, internalformat: int, width: int, height: int) -> None: ... + def glFramebufferTextureLayer(self, target: int, attachment: int, texture: int, level: int, layer: int) -> None: ... + def glBindVertexArray(self, array: int) -> None: ... + def glIsVertexArray(self, array: int) -> int: ... + def glBlendEquationSeparate(self, modeRGB: int, modeAlpha: int) -> None: ... + def glDrawBuffers(self, n: int, bufs: PYQT_OPENGL_ARRAY) -> None: ... + def glStencilOpSeparate(self, face: int, sfail: int, dpfail: int, dppass: int) -> None: ... + def glStencilFuncSeparate(self, face: int, func: int, ref: int, mask: int) -> None: ... + def glStencilMaskSeparate(self, face: int, mask: int) -> None: ... + def glAttachShader(self, program: int, shader: int) -> None: ... + def glBindAttribLocation(self, program: int, index: int, name: str) -> None: ... + def glCompileShader(self, shader: int) -> None: ... + def glCreateProgram(self) -> int: ... + def glCreateShader(self, type: int) -> int: ... + def glDeleteProgram(self, program: int) -> None: ... + def glDeleteShader(self, shader: int) -> None: ... + def glDetachShader(self, program: int, shader: int) -> None: ... + def glDisableVertexAttribArray(self, index: int) -> None: ... + def glEnableVertexAttribArray(self, index: int) -> None: ... + def glGetActiveAttrib(self, program: int, index: int) -> tuple[str, int, int]: ... + def glGetActiveUniform(self, program: int, index: int) -> tuple[str, int, int]: ... + def glGetAttachedShaders(self, program: int) -> tuple[int, ...]: ... + def glGetAttribLocation(self, program: int, name: str) -> int: ... + def glGetProgramiv(self, program: int, pname: int) -> int|tuple[int, int, int]: ... + def glGetProgramInfoLog(self, program: int) -> bytes: ... + def glGetShaderiv(self, shader: int, pname: int) -> int: ... + def glGetShaderInfoLog(self, shader: int) -> bytes: ... + def glGetShaderSource(self, shader: int) -> bytes: ... + def glGetUniformLocation(self, program: int, name: str) -> int: ... + def glGetVertexAttribdv(self, index: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetVertexAttribfv(self, index: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetVertexAttribiv(self, index: int, pname: int) -> int|tuple[int, int, int, int]: ... + def glIsProgram(self, program: int) -> int: ... + def glIsShader(self, shader: int) -> int: ... + def glLinkProgram(self, program: int) -> None: ... + def glUseProgram(self, program: int) -> None: ... + def glUniform1f(self, location: int, v0: float) -> None: ... + def glUniform2f(self, location: int, v0: float, v1: float) -> None: ... + def glUniform3f(self, location: int, v0: float, v1: float, v2: float) -> None: ... + def glUniform4f(self, location: int, v0: float, v1: float, v2: float, v3: float) -> None: ... + def glUniform1i(self, location: int, v0: int) -> None: ... + def glUniform2i(self, location: int, v0: int, v1: int) -> None: ... + def glUniform3i(self, location: int, v0: int, v1: int, v2: int) -> None: ... + def glUniform4i(self, location: int, v0: int, v1: int, v2: int, v3: int) -> None: ... + def glUniform1fv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform2fv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform3fv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform4fv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform1iv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform2iv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform3iv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniform4iv(self, location: int, count: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniformMatrix2fv(self, location: int, count: int, transpose: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniformMatrix3fv(self, location: int, count: int, transpose: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glUniformMatrix4fv(self, location: int, count: int, transpose: int, value: PYQT_OPENGL_ARRAY) -> None: ... + def glValidateProgram(self, program: int) -> None: ... + def glVertexAttribPointer(self, index: int, size: int, type: int, normalized: int, stride: int, pointer: PYQT_OPENGL_BOUND_ARRAY) -> None: ... + def glGenQueries(self, n: int) -> int|tuple[int, ...]: ... + def glDeleteQueries(self, n: int, ids: PYQT_OPENGL_ARRAY) -> None: ... + def glIsQuery(self, id: int) -> int: ... + def glBeginQuery(self, target: int, id: int) -> None: ... + def glEndQuery(self, target: int) -> None: ... + def glGetQueryiv(self, target: int, pname: int) -> int: ... + def glBindBuffer(self, target: int, buffer: int) -> None: ... + def glDeleteBuffers(self, n: int, buffers: PYQT_OPENGL_ARRAY) -> None: ... + def glGenBuffers(self, n: int) -> int|tuple[int, ...]: ... + def glIsBuffer(self, buffer: int) -> int: ... + def glBufferData(self, target: int, size: int, data: PYQT_OPENGL_ARRAY, usage: int) -> None: ... + def glBufferSubData(self, target: int, offset: int, size: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glUnmapBuffer(self, target: int) -> int: ... + def glGetBufferParameteriv(self, target: int, pname: int) -> int: ... + def glBlendFuncSeparate(self, sfactorRGB: int, dfactorRGB: int, sfactorAlpha: int, dfactorAlpha: int) -> None: ... + def glPointParameterf(self, pname: int, param: float) -> None: ... + def glPointParameterfv(self, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glPointParameteri(self, pname: int, param: int) -> None: ... + def glPointParameteriv(self, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glActiveTexture(self, texture: int) -> None: ... + def glSampleCoverage(self, value: float, invert: int) -> None: ... + def glCompressedTexImage3D(self, target: int, level: int, internalformat: int, width: int, height: int, depth: int, border: int, imageSize: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glCompressedTexImage2D(self, target: int, level: int, internalformat: int, width: int, height: int, border: int, imageSize: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glCompressedTexImage1D(self, target: int, level: int, internalformat: int, width: int, border: int, imageSize: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glCompressedTexSubImage3D(self, target: int, level: int, xoffset: int, yoffset: int, zoffset: int, width: int, height: int, depth: int, format: int, imageSize: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glCompressedTexSubImage2D(self, target: int, level: int, xoffset: int, yoffset: int, width: int, height: int, format: int, imageSize: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glCompressedTexSubImage1D(self, target: int, level: int, xoffset: int, width: int, format: int, imageSize: int, data: PYQT_OPENGL_ARRAY) -> None: ... + def glBlendColor(self, red: float, green: float, blue: float, alpha: float) -> None: ... + def glBlendEquation(self, mode: int) -> None: ... + def glDrawRangeElements(self, mode: int, start: int, end: int, count: int, type: int, indices: PYQT_OPENGL_ARRAY) -> None: ... + def glTexImage3D(self, target: int, level: int, internalformat: int, width: int, height: int, depth: int, border: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glTexSubImage3D(self, target: int, level: int, xoffset: int, yoffset: int, zoffset: int, width: int, height: int, depth: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glCopyTexSubImage3D(self, target: int, level: int, xoffset: int, yoffset: int, zoffset: int, x: int, y: int, width: int, height: int) -> None: ... + def glDrawArrays(self, mode: int, first: int, count: int) -> None: ... + def glDrawElements(self, mode: int, count: int, type: int, indices: PYQT_OPENGL_ARRAY) -> None: ... + def glPolygonOffset(self, factor: float, units: float) -> None: ... + def glCopyTexImage1D(self, target: int, level: int, internalformat: int, x: int, y: int, width: int, border: int) -> None: ... + def glCopyTexImage2D(self, target: int, level: int, internalformat: int, x: int, y: int, width: int, height: int, border: int) -> None: ... + def glCopyTexSubImage1D(self, target: int, level: int, xoffset: int, x: int, y: int, width: int) -> None: ... + def glCopyTexSubImage2D(self, target: int, level: int, xoffset: int, yoffset: int, x: int, y: int, width: int, height: int) -> None: ... + def glTexSubImage1D(self, target: int, level: int, xoffset: int, width: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glTexSubImage2D(self, target: int, level: int, xoffset: int, yoffset: int, width: int, height: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glBindTexture(self, target: int, texture: int) -> None: ... + def glDeleteTextures(self, n: int, textures: PYQT_OPENGL_ARRAY) -> None: ... + def glGenTextures(self, n: int) -> int|tuple[int, ...]: ... + def glIsTexture(self, texture: int) -> int: ... + def glCullFace(self, mode: int) -> None: ... + def glFrontFace(self, mode: int) -> None: ... + def glHint(self, target: int, mode: int) -> None: ... + def glLineWidth(self, width: float) -> None: ... + def glPointSize(self, size: float) -> None: ... + def glPolygonMode(self, face: int, mode: int) -> None: ... + def glScissor(self, x: int, y: int, width: int, height: int) -> None: ... + def glTexParameterf(self, target: int, pname: int, param: float) -> None: ... + def glTexParameterfv(self, target: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glTexParameteri(self, target: int, pname: int, param: int) -> None: ... + def glTexParameteriv(self, target: int, pname: int, params: PYQT_OPENGL_ARRAY) -> None: ... + def glTexImage1D(self, target: int, level: int, internalformat: int, width: int, border: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glTexImage2D(self, target: int, level: int, internalformat: int, width: int, height: int, border: int, format: int, type: int, pixels: PYQT_OPENGL_ARRAY) -> None: ... + def glDrawBuffer(self, mode: int) -> None: ... + def glClear(self, mask: int) -> None: ... + def glClearColor(self, red: float, green: float, blue: float, alpha: float) -> None: ... + def glClearStencil(self, s: int) -> None: ... + def glClearDepth(self, depth: float) -> None: ... + def glStencilMask(self, mask: int) -> None: ... + def glColorMask(self, red: int, green: int, blue: int, alpha: int) -> None: ... + def glDepthMask(self, flag: int) -> None: ... + def glDisable(self, cap: int) -> None: ... + def glEnable(self, cap: int) -> None: ... + def glFinish(self) -> None: ... + def glFlush(self) -> None: ... + def glBlendFunc(self, sfactor: int, dfactor: int) -> None: ... + def glLogicOp(self, opcode: int) -> None: ... + def glStencilFunc(self, func: int, ref: int, mask: int) -> None: ... + def glStencilOp(self, fail: int, zfail: int, zpass: int) -> None: ... + def glDepthFunc(self, func: int) -> None: ... + def glPixelStoref(self, pname: int, param: float) -> None: ... + def glPixelStorei(self, pname: int, param: int) -> None: ... + def glReadBuffer(self, mode: int) -> None: ... + def glReadPixels(self, x: int, y: int, width: int, height: int, format: int, type: int) -> tuple[float, ...]|tuple[int, ...]: ... + def glGetBooleanv(self, pname: int) -> bool|tuple[bool, ...]: ... + def glGetDoublev(self, pname: int) -> float|tuple[float, ...]: ... + def glGetError(self) -> int: ... + def glGetFloatv(self, pname: int) -> float|tuple[float, ...]: ... + def glGetIntegerv(self, pname: int) -> int|tuple[int, ...]: ... + def glGetString(self, name: int) -> str: ... + def glGetTexParameterfv(self, target: int, pname: int) -> float|tuple[float, float, float, float]: ... + def glGetTexParameteriv(self, target: int, pname: int) -> int|tuple[int, int, int, int]: ... + def glGetTexLevelParameterfv(self, target: int, level: int, pname: int) -> float: ... + def glGetTexLevelParameteriv(self, target: int, level: int, pname: int) -> int: ... + def glIsEnabled(self, cap: int) -> int: ... + def glDepthRange(self, nearVal: float, farVal: float) -> None: ... + def glViewport(self, x: int, y: int, width: int, height: int) -> None: ... + def initializeOpenGLFunctions(self) -> bool: ... + + +class QOpenGLVersionProfile(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, format: QtGui.QSurfaceFormat) -> None: ... + @typing.overload + def __init__(self, other: 'QOpenGLVersionProfile') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __hash__(self) -> int: ... + def isValid(self) -> bool: ... + def isLegacyVersion(self) -> bool: ... + def hasProfiles(self) -> bool: ... + def setProfile(self, profile: QtGui.QSurfaceFormat.OpenGLContextProfile) -> None: ... + def profile(self) -> QtGui.QSurfaceFormat.OpenGLContextProfile: ... + def setVersion(self, majorVersion: int, minorVersion: int) -> None: ... + def version(self) -> tuple[int, int]: ... diff --git a/typings/PyQt6/QtOpenGLWidgets.pyi b/typings/PyQt6/QtOpenGLWidgets.pyi new file mode 100644 index 00000000..cf18716a --- /dev/null +++ b/typings/PyQt6/QtOpenGLWidgets.pyi @@ -0,0 +1,90 @@ +# The PEP 484 type hints stub file for the QtOpenGLWidgets module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui +from PyQt6 import QtOpenGL +from PyQt6 import QtWidgets + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QOpenGLWidget(QtWidgets.QWidget): + + class TargetBuffer(enum.Enum): + LeftBuffer = ... # type: QOpenGLWidget.TargetBuffer + RightBuffer = ... # type: QOpenGLWidget.TargetBuffer + + class UpdateBehavior(enum.Enum): + NoPartialUpdate = ... # type: QOpenGLWidget.UpdateBehavior + PartialUpdate = ... # type: QOpenGLWidget.UpdateBehavior + + def __init__(self, parent: QtWidgets.QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + def currentTargetBuffer(self) -> 'QOpenGLWidget.TargetBuffer': ... + 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|None: ... + def metric(self, metric: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + def resizeEvent(self, e: QtGui.QResizeEvent|None) -> None: ... + def paintEvent(self, e: QtGui.QPaintEvent|None) -> None: ... + def paintGL(self) -> None: ... + def resizeGL(self, w: int, h: int) -> None: ... + def initializeGL(self) -> None: ... + resized: typing.ClassVar[QtCore.pyqtSignal] + aboutToResize: typing.ClassVar[QtCore.pyqtSignal] + frameSwapped: typing.ClassVar[QtCore.pyqtSignal] + aboutToCompose: typing.ClassVar[QtCore.pyqtSignal] + @typing.overload + def grabFramebuffer(self) -> QtGui.QImage: ... + @typing.overload + def grabFramebuffer(self, targetBuffer: 'QOpenGLWidget.TargetBuffer') -> QtGui.QImage: ... + @typing.overload + def defaultFramebufferObject(self) -> int: ... + @typing.overload + def defaultFramebufferObject(self, targetBuffer: 'QOpenGLWidget.TargetBuffer') -> int: ... + def context(self) -> QtGui.QOpenGLContext|None: ... + def doneCurrent(self) -> None: ... + @typing.overload + def makeCurrent(self) -> None: ... + @typing.overload + def makeCurrent(self, targetBuffer: 'QOpenGLWidget.TargetBuffer') -> None: ... + def isValid(self) -> bool: ... + def format(self) -> QtGui.QSurfaceFormat: ... + def setFormat(self, format: QtGui.QSurfaceFormat) -> None: ... diff --git a/typings/PyQt6/QtPdf.pyi b/typings/PyQt6/QtPdf.pyi new file mode 100644 index 00000000..65366855 --- /dev/null +++ b/typings/PyQt6/QtPdf.pyi @@ -0,0 +1,284 @@ +# The PEP 484 type hints stub file for the QtPdf module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QPdfBookmarkModel(QtCore.QAbstractItemModel): + + class Role(enum.IntEnum): + Title = ... # type: QPdfBookmarkModel.Role + Level = ... # type: QPdfBookmarkModel.Role + Page = ... # type: QPdfBookmarkModel.Role + Location = ... # type: QPdfBookmarkModel.Role + Zoom = ... # type: QPdfBookmarkModel.Role + + def __init__(self, parent: QtCore.QObject|None) -> None: ... + + documentChanged: typing.ClassVar[QtCore.pyqtSignal] + def roleNames(self) -> dict[int, QtCore.QByteArray]: ... + 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 setDocument(self, document: 'QPdfDocument|None') -> None: ... + def document(self) -> 'QPdfDocument|None': ... + + +class QPdfDocument(QtCore.QObject): + + class PageModelRole(enum.IntEnum): + Label = ... # type: QPdfDocument.PageModelRole + PointSize = ... # type: QPdfDocument.PageModelRole + + class MetaDataField(enum.Enum): + Title = ... # type: QPdfDocument.MetaDataField + Subject = ... # type: QPdfDocument.MetaDataField + Author = ... # type: QPdfDocument.MetaDataField + Keywords = ... # type: QPdfDocument.MetaDataField + Producer = ... # type: QPdfDocument.MetaDataField + Creator = ... # type: QPdfDocument.MetaDataField + CreationDate = ... # type: QPdfDocument.MetaDataField + ModificationDate = ... # type: QPdfDocument.MetaDataField + + class Error(enum.Enum): + None_ = ... # type: QPdfDocument.Error + Unknown = ... # type: QPdfDocument.Error + DataNotYetAvailable = ... # type: QPdfDocument.Error + FileNotFound = ... # type: QPdfDocument.Error + InvalidFileFormat = ... # type: QPdfDocument.Error + IncorrectPassword = ... # type: QPdfDocument.Error + UnsupportedSecurityScheme = ... # type: QPdfDocument.Error + + class Status(enum.Enum): + Null = ... # type: QPdfDocument.Status + Loading = ... # type: QPdfDocument.Status + Ready = ... # type: QPdfDocument.Status + Unloading = ... # type: QPdfDocument.Status + Error = ... # type: QPdfDocument.Status + + def __init__(self, parent: QtCore.QObject|None) -> None: ... + + pageModelChanged: typing.ClassVar[QtCore.pyqtSignal] + pageCountChanged: typing.ClassVar[QtCore.pyqtSignal] + statusChanged: typing.ClassVar[QtCore.pyqtSignal] + passwordChanged: typing.ClassVar[QtCore.pyqtSignal] + def pageIndexForLabel(self, label: str|None) -> int: ... + def getAllText(self, page: int) -> 'QPdfSelection': ... + def getSelectionAtIndex(self, page: int, startIndex: int, maxLength: int) -> 'QPdfSelection': ... + def getSelection(self, page: int, start: QtCore.QPointF, end: QtCore.QPointF) -> 'QPdfSelection': ... + def render(self, page: int, imageSize: QtCore.QSize, options: 'QPdfDocumentRenderOptions' = ...) -> QtGui.QImage: ... + def pageModel(self) -> QtCore.QAbstractListModel|None: ... + def pageLabel(self, page: int) -> str: ... + def pagePointSize(self, page: int) -> QtCore.QSizeF: ... + def pageCount(self) -> int: ... + def close(self) -> None: ... + def error(self) -> 'QPdfDocument.Error': ... + def metaData(self, field: 'QPdfDocument.MetaDataField') -> typing.Any: ... + def password(self) -> str: ... + def setPassword(self, password: str|None) -> None: ... + def status(self) -> 'QPdfDocument.Status': ... + @typing.overload + def load(self, fileName: str|None) -> 'QPdfDocument.Error': ... + @typing.overload + def load(self, device: QtCore.QIODevice|None) -> None: ... + + +class QPdfDocumentRenderOptions(PyQt6.sip.simplewrapper): + + class RenderFlag(enum.Enum): + None_ = ... # type: QPdfDocumentRenderOptions.RenderFlag + Annotations = ... # type: QPdfDocumentRenderOptions.RenderFlag + OptimizedForLcd = ... # type: QPdfDocumentRenderOptions.RenderFlag + Grayscale = ... # type: QPdfDocumentRenderOptions.RenderFlag + ForceHalftone = ... # type: QPdfDocumentRenderOptions.RenderFlag + TextAliased = ... # type: QPdfDocumentRenderOptions.RenderFlag + ImageAliased = ... # type: QPdfDocumentRenderOptions.RenderFlag + PathAliased = ... # type: QPdfDocumentRenderOptions.RenderFlag + + class Rotation(enum.Enum): + None_ = ... # type: QPdfDocumentRenderOptions.Rotation + Clockwise90 = ... # type: QPdfDocumentRenderOptions.Rotation + Clockwise180 = ... # type: QPdfDocumentRenderOptions.Rotation + Clockwise270 = ... # type: QPdfDocumentRenderOptions.Rotation + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QPdfDocumentRenderOptions') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def setScaledSize(self, s: QtCore.QSize) -> None: ... + def scaledSize(self) -> QtCore.QSize: ... + def setScaledClipRect(self, r: QtCore.QRect) -> None: ... + def scaledClipRect(self) -> QtCore.QRect: ... + def setRenderFlags(self, r: 'QPdfDocumentRenderOptions.RenderFlag') -> None: ... + def renderFlags(self) -> 'QPdfDocumentRenderOptions.RenderFlag': ... + def setRotation(self, r: 'QPdfDocumentRenderOptions.Rotation') -> None: ... + def rotation(self) -> 'QPdfDocumentRenderOptions.Rotation': ... + + +class QPdfLink(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QPdfLink') -> None: ... + + def copyToClipboard(self, mode: QtGui.QClipboard.Mode = ...) -> None: ... + def toString(self) -> str: ... + def rectangles(self) -> list[QtCore.QRectF]: ... + def contextAfter(self) -> str: ... + def contextBefore(self) -> str: ... + def url(self) -> QtCore.QUrl: ... + def zoom(self) -> float: ... + def location(self) -> QtCore.QPointF: ... + def page(self) -> int: ... + def isValid(self) -> bool: ... + def swap(self, other: 'QPdfLink') -> None: ... + + +class QPdfLinkModel(QtCore.QAbstractListModel): + + class Role(enum.Enum): + Link = ... # type: QPdfLinkModel.Role + Rectangle = ... # type: QPdfLinkModel.Role + Url = ... # type: QPdfLinkModel.Role + Page = ... # type: QPdfLinkModel.Role + Location = ... # type: QPdfLinkModel.Role + Zoom = ... # type: QPdfLinkModel.Role + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + pageChanged: typing.ClassVar[QtCore.pyqtSignal] + documentChanged: typing.ClassVar[QtCore.pyqtSignal] + def setPage(self, page: int) -> None: ... + def setDocument(self, document: QPdfDocument|None) -> None: ... + def linkAt(self, point: QtCore.QPointF) -> QPdfLink: ... + def page(self) -> int: ... + def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ... + def rowCount(self, parent: QtCore.QModelIndex) -> int: ... + def roleNames(self) -> dict[int, QtCore.QByteArray]: ... + def document(self) -> QPdfDocument|None: ... + + +class QPdfPageNavigator(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None) -> None: ... + + jumped: typing.ClassVar[QtCore.pyqtSignal] + forwardAvailableChanged: typing.ClassVar[QtCore.pyqtSignal] + backAvailableChanged: typing.ClassVar[QtCore.pyqtSignal] + currentZoomChanged: typing.ClassVar[QtCore.pyqtSignal] + currentLocationChanged: typing.ClassVar[QtCore.pyqtSignal] + currentPageChanged: typing.ClassVar[QtCore.pyqtSignal] + def back(self) -> None: ... + def forward(self) -> None: ... + def update(self, page: int, location: QtCore.QPointF, zoom: float) -> None: ... + @typing.overload + def jump(self, destination: QPdfLink) -> None: ... + @typing.overload + def jump(self, page: int, location: QtCore.QPointF, zoom: float = ...) -> None: ... + def clear(self) -> None: ... + def forwardAvailable(self) -> bool: ... + def backAvailable(self) -> bool: ... + def currentZoom(self) -> float: ... + def currentLocation(self) -> QtCore.QPointF: ... + def currentPage(self) -> int: ... + + +class QPdfPageRenderer(QtCore.QObject): + + class RenderMode(enum.Enum): + MultiThreaded = ... # type: QPdfPageRenderer.RenderMode + SingleThreaded = ... # type: QPdfPageRenderer.RenderMode + + def __init__(self, parent: QtCore.QObject|None) -> None: ... + + renderModeChanged: typing.ClassVar[QtCore.pyqtSignal] + documentChanged: typing.ClassVar[QtCore.pyqtSignal] + def requestPage(self, pageNumber: int, imageSize: QtCore.QSize, options: QPdfDocumentRenderOptions = ...) -> int: ... + def setDocument(self, document: QPdfDocument|None) -> None: ... + def document(self) -> QPdfDocument|None: ... + def setRenderMode(self, mode: 'QPdfPageRenderer.RenderMode') -> None: ... + def renderMode(self) -> 'QPdfPageRenderer.RenderMode': ... + + +class QPdfSearchModel(QtCore.QAbstractListModel): + + class Role(enum.IntEnum): + Page = ... # type: QPdfSearchModel.Role + IndexOnPage = ... # type: QPdfSearchModel.Role + Location = ... # type: QPdfSearchModel.Role + ContextBefore = ... # type: QPdfSearchModel.Role + ContextAfter = ... # type: QPdfSearchModel.Role + + def __init__(self, parent: QtCore.QObject|None) -> None: ... + + countChanged: typing.ClassVar[QtCore.pyqtSignal] + def __len__(self) -> int: ... + def count(self) -> int: ... + def timerEvent(self, event: QtCore.QTimerEvent|None) -> None: ... + searchStringChanged: typing.ClassVar[QtCore.pyqtSignal] + documentChanged: typing.ClassVar[QtCore.pyqtSignal] + def setDocument(self, document: QPdfDocument|None) -> None: ... + def setSearchString(self, searchString: str|None) -> None: ... + def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ... + def rowCount(self, parent: QtCore.QModelIndex) -> int: ... + def roleNames(self) -> dict[int, QtCore.QByteArray]: ... + def searchString(self) -> str: ... + def document(self) -> QPdfDocument|None: ... + def resultAtIndex(self, index: int) -> QPdfLink: ... + def resultsOnPage(self, page: int) -> list[QPdfLink]: ... + + +class QPdfSelection(PyQt6.sip.simplewrapper): + + def __init__(self, other: 'QPdfSelection') -> None: ... + + def copyToClipboard(self, mode: QtGui.QClipboard.Mode = ...) -> None: ... + def endIndex(self) -> int: ... + def startIndex(self) -> int: ... + def boundingRectangle(self) -> QtCore.QRectF: ... + def text(self) -> str: ... + def bounds(self) -> list[QtGui.QPolygonF]: ... + def isValid(self) -> bool: ... + def swap(self, other: 'QPdfSelection') -> None: ... diff --git a/typings/PyQt6/QtPdfWidgets.pyi b/typings/PyQt6/QtPdfWidgets.pyi new file mode 100644 index 00000000..3d2b5c4e --- /dev/null +++ b/typings/PyQt6/QtPdfWidgets.pyi @@ -0,0 +1,102 @@ +# The PEP 484 type hints stub file for the QtPdfWidgets module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui +from PyQt6 import QtPdf +from PyQt6 import QtWidgets + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QPdfPageSelector(QtWidgets.QWidget): + + def __init__(self, parent: QtWidgets.QWidget|None) -> None: ... + + currentPageLabelChanged: typing.ClassVar[QtCore.pyqtSignal] + currentPageChanged: typing.ClassVar[QtCore.pyqtSignal] + documentChanged: typing.ClassVar[QtCore.pyqtSignal] + def setCurrentPage(self, index: int) -> None: ... + def currentPageLabel(self) -> str: ... + def currentPage(self) -> int: ... + def document(self) -> QtPdf.QPdfDocument|None: ... + def setDocument(self, document: QtPdf.QPdfDocument|None) -> None: ... + + +class QPdfView(QtWidgets.QAbstractScrollArea): + + class ZoomMode(enum.Enum): + Custom = ... # type: QPdfView.ZoomMode + FitToWidth = ... # type: QPdfView.ZoomMode + FitInView = ... # type: QPdfView.ZoomMode + + class PageMode(enum.Enum): + SinglePage = ... # type: QPdfView.PageMode + MultiPage = ... # type: QPdfView.PageMode + + def __init__(self, parent: QtWidgets.QWidget|None) -> None: ... + + def mouseReleaseEvent(self, event: QtGui.QMouseEvent|None) -> None: ... + def mouseMoveEvent(self, event: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, event: QtGui.QMouseEvent|None) -> None: ... + currentSearchResultIndexChanged: typing.ClassVar[QtCore.pyqtSignal] + searchModelChanged: typing.ClassVar[QtCore.pyqtSignal] + def setCurrentSearchResultIndex(self, currentResult: int) -> None: ... + def currentSearchResultIndex(self) -> int: ... + def setSearchModel(self, searchModel: QtPdf.QPdfSearchModel|None) -> None: ... + def searchModel(self) -> QtPdf.QPdfSearchModel|None: ... + def scrollContentsBy(self, dx: int, dy: int) -> None: ... + def resizeEvent(self, event: QtGui.QResizeEvent|None) -> None: ... + def paintEvent(self, event: QtGui.QPaintEvent|None) -> None: ... + documentMarginsChanged: typing.ClassVar[QtCore.pyqtSignal] + pageSpacingChanged: typing.ClassVar[QtCore.pyqtSignal] + zoomFactorChanged: typing.ClassVar[QtCore.pyqtSignal] + zoomModeChanged: typing.ClassVar[QtCore.pyqtSignal] + pageModeChanged: typing.ClassVar[QtCore.pyqtSignal] + documentChanged: typing.ClassVar[QtCore.pyqtSignal] + def setZoomFactor(self, factor: float) -> None: ... + def setZoomMode(self, mode: 'QPdfView.ZoomMode') -> None: ... + def setPageMode(self, mode: 'QPdfView.PageMode') -> None: ... + def setDocumentMargins(self, margins: QtCore.QMargins) -> None: ... + def documentMargins(self) -> QtCore.QMargins: ... + def setPageSpacing(self, spacing: int) -> None: ... + def pageSpacing(self) -> int: ... + def zoomFactor(self) -> float: ... + def zoomMode(self) -> 'QPdfView.ZoomMode': ... + def pageMode(self) -> 'QPdfView.PageMode': ... + def pageNavigator(self) -> QtPdf.QPdfPageNavigator|None: ... + def document(self) -> QtPdf.QPdfDocument|None: ... + def setDocument(self, document: QtPdf.QPdfDocument|None) -> None: ... diff --git a/typings/PyQt6/QtPositioning.pyi b/typings/PyQt6/QtPositioning.pyi new file mode 100644 index 00000000..c0c9335f --- /dev/null +++ b/typings/PyQt6/QtPositioning.pyi @@ -0,0 +1,572 @@ +# The PEP 484 type hints stub file for the QtPositioning module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 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[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QGeoAddress(PyQt6.sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoAddress') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __hash__(self) -> int: ... + def setStreetNumber(self, streetNumber: str|None) -> None: ... + def streetNumber(self) -> str: ... + def swap(self, other: 'QGeoAddress') -> None: ... + def isTextGenerated(self) -> bool: ... + def clear(self) -> None: ... + def isEmpty(self) -> bool: ... + def setStreet(self, street: str|None) -> None: ... + def street(self) -> str: ... + def setPostalCode(self, postalCode: str|None) -> None: ... + def postalCode(self) -> str: ... + def setDistrict(self, district: str|None) -> None: ... + def district(self) -> str: ... + def setCity(self, city: str|None) -> None: ... + def city(self) -> str: ... + def setCounty(self, county: str|None) -> None: ... + def county(self) -> str: ... + def setState(self, state: str|None) -> None: ... + def state(self) -> str: ... + def setCountryCode(self, countryCode: str|None) -> None: ... + def countryCode(self) -> str: ... + def setCountry(self, country: str|None) -> None: ... + def country(self) -> str: ... + def setText(self, text: str|None) -> None: ... + def text(self) -> str: ... + + +class QGeoAreaMonitorInfo(PyQt6.sip.wrapper): + + @typing.overload + def __init__(self, name: str|None = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoAreaMonitorInfo') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __hash__(self) -> int: ... + def swap(self, other: 'QGeoAreaMonitorInfo') -> None: ... + def setNotificationParameters(self, parameters: dict[str|None, typing.Any]) -> None: ... + def notificationParameters(self) -> dict[str, typing.Any]: ... + def setPersistent(self, isPersistent: bool) -> None: ... + def isPersistent(self) -> bool: ... + def setExpiration(self, expiry: 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) -> None: ... + def name(self) -> str: ... + + +class QGeoAreaMonitorSource(QtCore.QObject): + + class AreaMonitorFeature(enum.Flag): + PersistentAreaMonitorFeature = ... # type: QGeoAreaMonitorSource.AreaMonitorFeature + AnyAreaMonitorFeature = ... # type: QGeoAreaMonitorSource.AreaMonitorFeature + + class Error(enum.Enum): + AccessError = ... # type: QGeoAreaMonitorSource.Error + InsufficientPositionInfo = ... # type: QGeoAreaMonitorSource.Error + UnknownSourceError = ... # type: QGeoAreaMonitorSource.Error + NoError = ... # type: QGeoAreaMonitorSource.Error + + def __init__(self, parent: QtCore.QObject|None) -> None: ... + + def backendProperty(self, name: str|None) -> typing.Any: ... + def setBackendProperty(self, name: str|None, value: typing.Any) -> bool: ... + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + monitorExpired: typing.ClassVar[QtCore.pyqtSignal] + areaExited: typing.ClassVar[QtCore.pyqtSignal] + areaEntered: typing.ClassVar[QtCore.pyqtSignal] + @typing.overload + def activeMonitors(self) -> list[QGeoAreaMonitorInfo]: ... + @typing.overload + def activeMonitors(self, lookupArea: 'QGeoShape') -> 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.AreaMonitorFeature': ... + def error(self) -> 'QGeoAreaMonitorSource.Error': ... + def sourceName(self) -> str: ... + def positionInfoSource(self) -> 'QGeoPositionInfoSource|None': ... + def setPositionInfoSource(self, source: 'QGeoPositionInfoSource|None') -> None: ... + @staticmethod + def availableSources() -> list[str]: ... + @staticmethod + def createSource(sourceName: str|None, parent: QtCore.QObject|None) -> 'QGeoAreaMonitorSource|None': ... + @staticmethod + def createDefaultSource(parent: QtCore.QObject|None) -> 'QGeoAreaMonitorSource|None': ... + + +class QGeoShape(PyQt6.sip.wrapper): + + class ShapeType(enum.Enum): + 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 __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __hash__(self) -> int: ... + def boundingGeoRectangle(self) -> 'QGeoRectangle': ... + def toString(self) -> str: ... + def center(self) -> 'QGeoCoordinate': ... + 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(PyQt6.sip.wrapper): + + class CoordinateFormat(enum.Enum): + 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(enum.Enum): + 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 __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __hash__(self) -> int: ... + def swap(self, other: 'QGeoCoordinate') -> None: ... + 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(PyQt6.sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoLocation') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __hash__(self) -> int: ... + def setBoundingShape(self, shape: QGeoShape) -> None: ... + def boundingShape(self) -> QGeoShape: ... + def swap(self, other: 'QGeoLocation') -> None: ... + def setExtendedAttributes(self, data: dict[str|None, typing.Any]) -> None: ... + def extendedAttributes(self) -> dict[str, typing.Any]: ... + def isEmpty(self) -> bool: ... + 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: collections.abc.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) -> list[QGeoCoordinate]: ... + def setPath(self, path: collections.abc.Iterable[QGeoCoordinate]) -> None: ... + + +class QGeoPolygon(QGeoShape): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, path: collections.abc.Iterable[QGeoCoordinate]) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoPolygon') -> None: ... + @typing.overload + def __init__(self, other: QGeoShape) -> None: ... + + def perimeter(self) -> list[QGeoCoordinate]: ... + def setPerimeter(self, path: collections.abc.Iterable[QGeoCoordinate]) -> None: ... + def holesCount(self) -> int: ... + def removeHole(self, index: int) -> None: ... + def holePath(self, index: int) -> list[QGeoCoordinate]: ... + def hole(self, index: int) -> list[typing.Any]: ... + @typing.overload + def addHole(self, holePath: collections.abc.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: ... + + +class QGeoPositionInfo(PyQt6.sip.wrapper): + + class Attribute(enum.Enum): + Direction = ... # type: QGeoPositionInfo.Attribute + GroundSpeed = ... # type: QGeoPositionInfo.Attribute + VerticalSpeed = ... # type: QGeoPositionInfo.Attribute + MagneticVariation = ... # type: QGeoPositionInfo.Attribute + HorizontalAccuracy = ... # type: QGeoPositionInfo.Attribute + VerticalAccuracy = ... # type: QGeoPositionInfo.Attribute + DirectionAccuracy = ... # type: QGeoPositionInfo.Attribute + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, coordinate: QGeoCoordinate, updateTime: QtCore.QDateTime|datetime.datetime) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoPositionInfo') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __hash__(self) -> int: ... + def swap(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: QtCore.QDateTime|datetime.datetime) -> None: ... + def isValid(self) -> bool: ... + + +class QGeoPositionInfoSource(QtCore.QObject): + + class PositioningMethod(enum.Flag): + NoPositioningMethods = ... # type: QGeoPositionInfoSource.PositioningMethod + SatellitePositioningMethods = ... # type: QGeoPositionInfoSource.PositioningMethod + NonSatellitePositioningMethods = ... # type: QGeoPositionInfoSource.PositioningMethod + AllPositioningMethods = ... # type: QGeoPositionInfoSource.PositioningMethod + + class Error(enum.Enum): + AccessError = ... # type: QGeoPositionInfoSource.Error + ClosedError = ... # type: QGeoPositionInfoSource.Error + UnknownSourceError = ... # type: QGeoPositionInfoSource.Error + UpdateTimeoutError = ... # type: QGeoPositionInfoSource.Error + NoError = ... # type: QGeoPositionInfoSource.Error + + def __init__(self, parent: QtCore.QObject|None) -> None: ... + + def backendProperty(self, name: str|None) -> typing.Any: ... + def setBackendProperty(self, name: str|None, value: typing.Any) -> bool: ... + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + supportedPositioningMethodsChanged: typing.ClassVar[QtCore.pyqtSignal] + positionUpdated: typing.ClassVar[QtCore.pyqtSignal] + def requestUpdate(self, timeout: int = ...) -> None: ... + def stopUpdates(self) -> None: ... + def startUpdates(self) -> None: ... + def error(self) -> 'QGeoPositionInfoSource.Error': ... + @staticmethod + def availableSources() -> list[str]: ... + @typing.overload + @staticmethod + def createSource(sourceName: str|None, parent: QtCore.QObject|None) -> 'QGeoPositionInfoSource|None': ... + @typing.overload + @staticmethod + def createSource(sourceName: str|None, parameters: dict[str|None, typing.Any], parent: QtCore.QObject|None) -> 'QGeoPositionInfoSource|None': ... + @typing.overload + @staticmethod + def createDefaultSource(parent: QtCore.QObject|None) -> 'QGeoPositionInfoSource|None': ... + @typing.overload + @staticmethod + def createDefaultSource(parameters: dict[str|None, typing.Any], parent: QtCore.QObject|None) -> 'QGeoPositionInfoSource|None': ... + def sourceName(self) -> str: ... + def minimumUpdateInterval(self) -> int: ... + def supportedPositioningMethods(self) -> 'QGeoPositionInfoSource.PositioningMethod': ... + def lastKnownPosition(self, fromSatellitePositioningMethodsOnly: bool = ...) -> QGeoPositionInfo: ... + def preferredPositioningMethods(self) -> 'QGeoPositionInfoSource.PositioningMethod': ... + def setPreferredPositioningMethods(self, methods: '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: collections.abc.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 __or__(self, rectangle: 'QGeoRectangle') -> 'QGeoRectangle': ... + def __ior__(self, rectangle: 'QGeoRectangle') -> 'QGeoRectangle': ... + 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(PyQt6.sip.wrapper): + + class SatelliteSystem(enum.Enum): + Undefined = ... # type: QGeoSatelliteInfo.SatelliteSystem + GPS = ... # type: QGeoSatelliteInfo.SatelliteSystem + GLONASS = ... # type: QGeoSatelliteInfo.SatelliteSystem + GALILEO = ... # type: QGeoSatelliteInfo.SatelliteSystem + BEIDOU = ... # type: QGeoSatelliteInfo.SatelliteSystem + QZSS = ... # type: QGeoSatelliteInfo.SatelliteSystem + Multiple = ... # type: QGeoSatelliteInfo.SatelliteSystem + CustomType = ... # type: QGeoSatelliteInfo.SatelliteSystem + + class Attribute(enum.Enum): + Elevation = ... # type: QGeoSatelliteInfo.Attribute + Azimuth = ... # type: QGeoSatelliteInfo.Attribute + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QGeoSatelliteInfo') -> None: ... + + def __hash__(self) -> int: ... + def swap(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(enum.Enum): + AccessError = ... # type: QGeoSatelliteInfoSource.Error + ClosedError = ... # type: QGeoSatelliteInfoSource.Error + NoError = ... # type: QGeoSatelliteInfoSource.Error + UnknownSourceError = ... # type: QGeoSatelliteInfoSource.Error + UpdateTimeoutError = ... # type: QGeoSatelliteInfoSource.Error + + def __init__(self, parent: QtCore.QObject|None) -> None: ... + + def backendProperty(self, name: str|None) -> typing.Any: ... + def setBackendProperty(self, name: str|None, value: typing.Any) -> bool: ... + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + satellitesInUseUpdated: typing.ClassVar[QtCore.pyqtSignal] + satellitesInViewUpdated: typing.ClassVar[QtCore.pyqtSignal] + def requestUpdate(self, timeout: int = ...) -> None: ... + def stopUpdates(self) -> None: ... + def startUpdates(self) -> None: ... + def error(self) -> 'QGeoSatelliteInfoSource.Error': ... + def minimumUpdateInterval(self) -> int: ... + def updateInterval(self) -> int: ... + def setUpdateInterval(self, msec: int) -> None: ... + def sourceName(self) -> str: ... + @staticmethod + def availableSources() -> list[str]: ... + @typing.overload + @staticmethod + def createSource(sourceName: str|None, parent: QtCore.QObject|None) -> 'QGeoSatelliteInfoSource|None': ... + @typing.overload + @staticmethod + def createSource(sourceName: str|None, parameters: dict[str|None, typing.Any], parent: QtCore.QObject|None) -> 'QGeoSatelliteInfoSource|None': ... + @typing.overload + @staticmethod + def createDefaultSource(parent: QtCore.QObject|None) -> 'QGeoSatelliteInfoSource|None': ... + @typing.overload + @staticmethod + def createDefaultSource(parameters: dict[str|None, typing.Any], parent: QtCore.QObject|None) -> 'QGeoSatelliteInfoSource|None': ... + + +class QNmeaPositionInfoSource(QGeoPositionInfoSource): + + class UpdateMode(enum.Enum): + RealTimeMode = ... # type: QNmeaPositionInfoSource.UpdateMode + SimulationMode = ... # type: QNmeaPositionInfoSource.UpdateMode + + def __init__(self, updateMode: 'QNmeaPositionInfoSource.UpdateMode', parent: QtCore.QObject|None = ...) -> None: ... + + def userEquivalentRangeError(self) -> float: ... + def setUserEquivalentRangeError(self, uere: float) -> None: ... + def parsePosInfoFromNmeaData(self, data: bytes, size: int, posInfo: QGeoPositionInfo|None) -> 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.PositioningMethod: ... + def lastKnownPosition(self, fromSatellitePositioningMethodsOnly: bool = ...) -> QGeoPositionInfo: ... + def setUpdateInterval(self, msec: int) -> None: ... + def device(self) -> QtCore.QIODevice|None: ... + def setDevice(self, source: QtCore.QIODevice|None) -> None: ... + def updateMode(self) -> 'QNmeaPositionInfoSource.UpdateMode': ... + + +class QNmeaSatelliteInfoSource(QGeoSatelliteInfoSource): + + class SatelliteInfoParseStatus(enum.Enum): + NotParsed = ... # type: QNmeaSatelliteInfoSource.SatelliteInfoParseStatus + PartiallyParsed = ... # type: QNmeaSatelliteInfoSource.SatelliteInfoParseStatus + FullyParsed = ... # type: QNmeaSatelliteInfoSource.SatelliteInfoParseStatus + + class UpdateMode(enum.Enum): + RealTimeMode = ... # type: QNmeaSatelliteInfoSource.UpdateMode + SimulationMode = ... # type: QNmeaSatelliteInfoSource.UpdateMode + + SimulationUpdateInterval = ... # type: str|None + + def __init__(self, mode: 'QNmeaSatelliteInfoSource.UpdateMode', parent: QtCore.QObject|None = ...) -> None: ... + + def parseSatelliteInfoFromNmea(self, data: bytes, size: int, infos: collections.abc.Iterable[QGeoSatelliteInfo]) -> typing.Tuple['QNmeaSatelliteInfoSource.SatelliteInfoParseStatus', QGeoSatelliteInfo.SatelliteSystem]: ... + def parseSatellitesInUseFromNmea(self, data: bytes, size: int, pnrsInUse: collections.abc.Iterable[int]) -> QGeoSatelliteInfo.SatelliteSystem: ... + def requestUpdate(self, timeout: int = ...) -> None: ... + def stopUpdates(self) -> None: ... + def startUpdates(self) -> None: ... + def backendProperty(self, name: str|None) -> typing.Any: ... + def setBackendProperty(self, name: str|None, value: typing.Any) -> bool: ... + def error(self) -> QGeoSatelliteInfoSource.Error: ... + def minimumUpdateInterval(self) -> int: ... + def setUpdateInterval(self, msec: int) -> None: ... + def device(self) -> QtCore.QIODevice|None: ... + def setDevice(self, source: QtCore.QIODevice|None) -> None: ... + def updateMode(self) -> 'QNmeaSatelliteInfoSource.UpdateMode': ... diff --git a/typings/PyQt6/QtPrintSupport.pyi b/typings/PyQt6/QtPrintSupport.pyi new file mode 100644 index 00000000..66dc37a3 --- /dev/null +++ b/typings/PyQt6/QtPrintSupport.pyi @@ -0,0 +1,379 @@ +# The PEP 484 type hints stub file for the QtPrintSupport module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui +from PyQt6 import QtWidgets + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QAbstractPrintDialog(QtWidgets.QDialog): + + class PrintDialogOption(enum.Flag): + 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(enum.Enum): + AllPages = ... # type: QAbstractPrintDialog.PrintRange + Selection = ... # type: QAbstractPrintDialog.PrintRange + PageRange = ... # type: QAbstractPrintDialog.PrintRange + CurrentPage = ... # type: QAbstractPrintDialog.PrintRange + + def __init__(self, printer: 'QPrinter|None', parent: QtWidgets.QWidget|None = ...) -> None: ... + + def setOptionTabs(self, tabs: collections.abc.Iterable[QtWidgets.QWidget]) -> None: ... + def printer(self) -> 'QPrinter|None': ... + 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: ... + + +class QPageSetupDialog(QtWidgets.QDialog): + + @typing.overload + def __init__(self, printer: 'QPrinter|None', parent: QtWidgets.QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, parent: QtWidgets.QWidget|None = ...) -> None: ... + + def printer(self) -> 'QPrinter|None': ... + 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 setVisible(self, visible: bool) -> None: ... + + +class QPrintDialog(QAbstractPrintDialog): + + @typing.overload + def __init__(self, printer: 'QPrinter|None', parent: QtWidgets.QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, parent: QtWidgets.QWidget|None = ...) -> None: ... + + accepted: typing.ClassVar[QtCore.pyqtSignal] + @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.PrintDialogOption: ... + def setOptions(self, options: 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: ... + + +class QPrintEngine(PyQt6.sip.simplewrapper): + + class PrintEnginePropertyKey(enum.Enum): + 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(enum.Enum): + DuplexNone = ... # type: QPrinter.DuplexMode + DuplexAuto = ... # type: QPrinter.DuplexMode + DuplexLongSide = ... # type: QPrinter.DuplexMode + DuplexShortSide = ... # type: QPrinter.DuplexMode + + class Unit(enum.Enum): + 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(enum.Enum): + AllPages = ... # type: QPrinter.PrintRange + Selection = ... # type: QPrinter.PrintRange + PageRange = ... # type: QPrinter.PrintRange + CurrentPage = ... # type: QPrinter.PrintRange + + class OutputFormat(enum.Enum): + NativeFormat = ... # type: QPrinter.OutputFormat + PdfFormat = ... # type: QPrinter.OutputFormat + + class PrinterState(enum.Enum): + Idle = ... # type: QPrinter.PrinterState + Active = ... # type: QPrinter.PrinterState + Aborted = ... # type: QPrinter.PrinterState + Error = ... # type: QPrinter.PrinterState + + class PaperSource(enum.Enum): + 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(enum.Enum): + GrayScale = ... # type: QPrinter.ColorMode + Color = ... # type: QPrinter.ColorMode + + class PageOrder(enum.Enum): + FirstPageFirst = ... # type: QPrinter.PageOrder + LastPageFirst = ... # type: QPrinter.PageOrder + + class PrinterMode(enum.Enum): + 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 setEngines(self, printEngine: QPrintEngine|None, paintEngine: QtGui.QPaintEngine|None) -> None: ... + def metric(self, a0: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ... + 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|None: ... + def paintEngine(self) -> QtGui.QPaintEngine|None: ... + def printerState(self) -> 'QPrinter.PrinterState': ... + def abort(self) -> bool: ... + def newPage(self) -> bool: ... + def pageRect(self, a0: 'QPrinter.Unit') -> QtCore.QRectF: ... + def paperRect(self, a0: 'QPrinter.Unit') -> QtCore.QRectF: ... + def fontEmbeddingEnabled(self) -> bool: ... + def setFontEmbeddingEnabled(self, enable: bool) -> None: ... + def supportedResolutions(self) -> 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: ... + def creator(self) -> str: ... + def setCreator(self, a0: str|None) -> None: ... + def docName(self) -> str: ... + def setDocName(self, a0: str|None) -> None: ... + def printProgram(self) -> str: ... + def setPrintProgram(self, a0: str|None) -> None: ... + def outputFileName(self) -> str: ... + def setOutputFileName(self, a0: str|None) -> None: ... + def isValid(self) -> bool: ... + def printerName(self) -> str: ... + def setPrinterName(self, a0: str|None) -> None: ... + def outputFormat(self) -> 'QPrinter.OutputFormat': ... + def setOutputFormat(self, format: 'QPrinter.OutputFormat') -> None: ... + + +class QPrinterInfo(PyQt6.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) -> list[QPrinter.ColorMode]: ... + def defaultColorMode(self) -> QPrinter.ColorMode: ... + def supportedDuplexModes(self) -> list[QPrinter.DuplexMode]: ... + def defaultDuplexMode(self) -> QPrinter.DuplexMode: ... + @staticmethod + def defaultPrinterName() -> str: ... + @staticmethod + def availablePrinterNames() -> list[str]: ... + def supportedResolutions(self) -> list[int]: ... + def maximumPhysicalPageSize(self) -> QtGui.QPageSize: ... + def minimumPhysicalPageSize(self) -> QtGui.QPageSize: ... + def supportsCustomPageSizes(self) -> bool: ... + def defaultPageSize(self) -> QtGui.QPageSize: ... + def supportedPageSizes(self) -> list[QtGui.QPageSize]: ... + def state(self) -> QPrinter.PrinterState: ... + def isRemote(self) -> bool: ... + @staticmethod + def printerInfo(printerName: str|None) -> 'QPrinterInfo': ... + def makeAndModel(self) -> str: ... + def location(self) -> str: ... + def description(self) -> str: ... + @staticmethod + def defaultPrinter() -> 'QPrinterInfo': ... + @staticmethod + def availablePrinters() -> list['QPrinterInfo']: ... + def isDefault(self) -> bool: ... + def isNull(self) -> bool: ... + def printerName(self) -> str: ... + + +class QPrintPreviewDialog(QtWidgets.QDialog): + + @typing.overload + def __init__(self, parent: QtWidgets.QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + @typing.overload + def __init__(self, printer: QPrinter|None, parent: QtWidgets.QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + paintRequested: typing.ClassVar[QtCore.pyqtSignal] + def done(self, result: int) -> None: ... + def printer(self) -> QPrinter|None: ... + @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(enum.Enum): + CustomZoom = ... # type: QPrintPreviewWidget.ZoomMode + FitToWidth = ... # type: QPrintPreviewWidget.ZoomMode + FitInView = ... # type: QPrintPreviewWidget.ZoomMode + + class ViewMode(enum.Enum): + SinglePageView = ... # type: QPrintPreviewWidget.ViewMode + FacingPagesView = ... # type: QPrintPreviewWidget.ViewMode + AllPagesView = ... # type: QPrintPreviewWidget.ViewMode + + @typing.overload + def __init__(self, printer: QPrinter|None, parent: QtWidgets.QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + @typing.overload + def __init__(self, parent: QtWidgets.QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + def pageCount(self) -> int: ... + previewChanged: typing.ClassVar[QtCore.pyqtSignal] + paintRequested: typing.ClassVar[QtCore.pyqtSignal] + 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: QtGui.QPageLayout.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 setVisible(self, visible: bool) -> None: ... + def currentPage(self) -> int: ... + def zoomMode(self) -> 'QPrintPreviewWidget.ZoomMode': ... + def viewMode(self) -> 'QPrintPreviewWidget.ViewMode': ... + def orientation(self) -> QtGui.QPageLayout.Orientation: ... + def zoomFactor(self) -> float: ... diff --git a/typings/PyQt6/QtQml.pyi b/typings/PyQt6/QtQml.pyi new file mode 100644 index 00000000..177afd73 --- /dev/null +++ b/typings/PyQt6/QtQml.pyi @@ -0,0 +1,852 @@ +# The PEP 484 type hints stub file for the QtQml module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtNetwork + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QJSEngine(QtCore.QObject): + + class ObjectOwnership(enum.Enum): + CppOwnership = ... # type: QJSEngine.ObjectOwnership + JavaScriptOwnership = ... # type: QJSEngine.ObjectOwnership + + class Extension(enum.Flag): + TranslationExtension = ... # type: QJSEngine.Extension + ConsoleExtension = ... # type: QJSEngine.Extension + GarbageCollectionExtension = ... # type: QJSEngine.Extension + AllExtensions = ... # type: QJSEngine.Extension + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, parent: QtCore.QObject|None) -> None: ... + + def toPrimitiveValue(self, value: typing.Any) -> 'QJSPrimitiveValue': ... + def toManagedValue(self, value: typing.Any) -> 'QJSManagedValue': ... + def toScriptValue(self, value: typing.Any) -> 'QJSValue': ... + def newSymbol(self, name: str|None) -> 'QJSValue': ... + def registerModule(self, moduleName: str|None, value: 'QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None) -> bool: ... + uiLanguageChanged: typing.ClassVar[QtCore.pyqtSignal] + def catchError(self) -> 'QJSValue': ... + def hasError(self) -> bool: ... + @staticmethod + def objectOwnership(a0: QtCore.QObject|None) -> 'QJSEngine.ObjectOwnership': ... + @staticmethod + def setObjectOwnership(a0: QtCore.QObject|None, a1: 'QJSEngine.ObjectOwnership') -> None: ... + def setUiLanguage(self, language: str|None) -> None: ... + def uiLanguage(self) -> str: ... + def isInterrupted(self) -> bool: ... + def setInterrupted(self, interrupted: bool) -> None: ... + @typing.overload + def throwError(self, message: str|None) -> None: ... + @typing.overload + def throwError(self, error: 'QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None) -> None: ... + @typing.overload + def throwError(self, errorType: 'QJSValue.ErrorType', message: str|None = ...) -> None: ... + def newErrorObject(self, errorType: 'QJSValue.ErrorType', message: str|None = ...) -> 'QJSValue': ... + def importModule(self, fileName: str|None) -> 'QJSValue': ... + def newQMetaObject(self, metaObject: QtCore.QMetaObject|None) -> 'QJSValue': ... + def installExtensions(self, extensions: 'QJSEngine.Extension', object: 'QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None = ...) -> None: ... + def collectGarbage(self) -> None: ... + def newQObject(self, object: QtCore.QObject|None) -> 'QJSValue': ... + def newArray(self, length: int = ...) -> 'QJSValue': ... + def newObject(self) -> 'QJSValue': ... + def evaluate(self, program: str|None, fileName: str|None = ..., lineNumber: int = ..., exceptionStackTrace: list[str] = ...) -> 'QJSValue': ... + def globalObject(self) -> 'QJSValue': ... + + +class QJSManagedValue(PyQt6.sip.simplewrapper): + + class Type(enum.Enum): + Undefined = ... # type: QJSManagedValue.Type + Boolean = ... # type: QJSManagedValue.Type + Number = ... # type: QJSManagedValue.Type + String = ... # type: QJSManagedValue.Type + Object = ... # type: QJSManagedValue.Type + Symbol = ... # type: QJSManagedValue.Type + Function = ... # type: QJSManagedValue.Type + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, value: 'QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None, engine: QJSEngine|None) -> None: ... + @typing.overload + def __init__(self, value: 'QJSPrimitiveValue', engine: QJSEngine|None) -> None: ... + @typing.overload + def __init__(self, string: str|None, engine: QJSEngine|None) -> None: ... + @typing.overload + def __init__(self, variant: typing.Any, engine: QJSEngine|None) -> None: ... + + def callAsConstructor(self, arguments: collections.abc.Iterable['QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None] = ...) -> 'QJSValue': ... + def callWithInstance(self, instance: 'QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None, arguments: collections.abc.Iterable['QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None] = ...) -> 'QJSValue': ... + def call(self, arguments: collections.abc.Iterable['QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None] = ...) -> 'QJSValue': ... + @typing.overload + def deleteProperty(self, name: str|None) -> bool: ... + @typing.overload + def deleteProperty(self, arrayIndex: int) -> bool: ... + @typing.overload + def setProperty(self, name: str|None, value: 'QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None) -> None: ... + @typing.overload + def setProperty(self, arrayIndex: int, value: 'QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None) -> None: ... + @typing.overload + def property(self, name: str|None) -> 'QJSValue': ... + @typing.overload + def property(self, arrayIndex: int) -> 'QJSValue': ... + @typing.overload + def hasOwnProperty(self, name: str|None) -> bool: ... + @typing.overload + def hasOwnProperty(self, arrayIndex: int) -> bool: ... + @typing.overload + def hasProperty(self, name: str|None) -> bool: ... + @typing.overload + def hasProperty(self, arrayIndex: int) -> bool: ... + def toDateTime(self) -> QtCore.QDateTime: ... + def toQMetaObject(self) -> QtCore.QMetaObject|None: ... + def toQObject(self) -> QtCore.QObject|None: ... + def toUrl(self) -> QtCore.QUrl: ... + def toRegularExpression(self) -> QtCore.QRegularExpression: ... + def toInteger(self) -> int: ... + def toVariant(self) -> typing.Any: ... + def toJSValue(self) -> 'QJSValue': ... + def toPrimitive(self) -> 'QJSPrimitiveValue': ... + def toBoolean(self) -> bool: ... + def toNumber(self) -> float: ... + def toString(self) -> str: ... + def isError(self) -> bool: ... + def isDate(self) -> bool: ... + def isQMetaObject(self) -> bool: ... + def isQObject(self) -> bool: ... + def isVariant(self) -> bool: ... + def isUrl(self) -> bool: ... + def isArray(self) -> bool: ... + def isRegularExpression(self) -> bool: ... + def isNull(self) -> bool: ... + def isInteger(self) -> bool: ... + def isFunction(self) -> bool: ... + def isSymbol(self) -> bool: ... + def isObject(self) -> bool: ... + def isString(self) -> bool: ... + def isNumber(self) -> bool: ... + def isBoolean(self) -> bool: ... + def isUndefined(self) -> bool: ... + def type(self) -> 'QJSManagedValue.Type': ... + def setPrototype(self, prototype: 'QJSManagedValue') -> None: ... + def prototype(self) -> 'QJSManagedValue': ... + def engine(self) -> QJSEngine|None: ... + def strictlyEquals(self, other: 'QJSManagedValue') -> bool: ... + def equals(self, other: 'QJSManagedValue') -> bool: ... + + +class QJSPrimitiveUndefined(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QJSPrimitiveUndefined') -> None: ... + + +class QJSPrimitiveNull(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QJSPrimitiveNull') -> None: ... + + +class QJSPrimitiveValue(PyQt6.sip.simplewrapper): + + class Type(enum.Enum): + Undefined = ... # type: QJSPrimitiveValue.Type + Null = ... # type: QJSPrimitiveValue.Type + Boolean = ... # type: QJSPrimitiveValue.Type + Integer = ... # type: QJSPrimitiveValue.Type + Double = ... # type: QJSPrimitiveValue.Type + String = ... # type: QJSPrimitiveValue.Type + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, undefined: QJSPrimitiveUndefined) -> None: ... + @typing.overload + def __init__(self, null: QJSPrimitiveNull) -> None: ... + @typing.overload + def __init__(self, value: bool) -> None: ... + @typing.overload + def __init__(self, value: int) -> None: ... + @typing.overload + def __init__(self, value: float) -> None: ... + @typing.overload + def __init__(self, string: str|None) -> None: ... + @typing.overload + def __init__(self, a0: 'QJSPrimitiveValue') -> None: ... + + def __add__(self, rhs: 'QJSPrimitiveValue') -> 'QJSPrimitiveValue': ... + def __sub__(self, rhs: 'QJSPrimitiveValue') -> 'QJSPrimitiveValue': ... + def __mul__(self, rhs: 'QJSPrimitiveValue') -> 'QJSPrimitiveValue': ... + def __truediv__(self, rhs: 'QJSPrimitiveValue') -> 'QJSPrimitiveValue': ... + def __mod__(self, rhs: 'QJSPrimitiveValue') -> 'QJSPrimitiveValue': ... + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def __lt__(self, rhs: 'QJSPrimitiveValue') -> bool: ... + def __gt__(self, rhs: 'QJSPrimitiveValue') -> bool: ... + def __le__(self, rhs: 'QJSPrimitiveValue') -> bool: ... + def __ge__(self, rhs: 'QJSPrimitiveValue') -> bool: ... + def data(self) -> PyQt6.sip.voidptr: ... + def metaType(self) -> QtCore.QMetaType: ... + def __neg__(self) -> 'QJSPrimitiveValue': ... + def __pos__(self) -> 'QJSPrimitiveValue': ... + def equals(self, other: 'QJSPrimitiveValue') -> bool: ... + def strictlyEquals(self, other: 'QJSPrimitiveValue') -> bool: ... + def toString(self) -> str: ... + def toDouble(self) -> float: ... + def toInteger(self) -> int: ... + def toBoolean(self) -> bool: ... + def type(self) -> 'QJSPrimitiveValue.Type': ... + + +class QJSValue(PyQt6.sip.simplewrapper): + + class ErrorType(enum.Enum): + 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 ObjectConversionBehavior(enum.Enum): + ConvertJSObjects = ... # type: QJSValue.ObjectConversionBehavior + RetainJSObjects = ... # type: QJSValue.ObjectConversionBehavior + + class SpecialValue(enum.Enum): + NullValue = ... # type: QJSValue.SpecialValue + UndefinedValue = ... # type: QJSValue.SpecialValue + + @typing.overload + def __init__(self, value: 'QJSValue.SpecialValue' = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None) -> None: ... + + def errorType(self) -> 'QJSValue.ErrorType': ... + def callAsConstructor(self, args: collections.abc.Iterable['QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None] = ...) -> 'QJSValue': ... + def callWithInstance(self, instance: 'QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None, args: collections.abc.Iterable['QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None] = ...) -> 'QJSValue': ... + def call(self, args: collections.abc.Iterable['QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None] = ...) -> 'QJSValue': ... + def isCallable(self) -> bool: ... + def deleteProperty(self, name: str|None) -> bool: ... + def hasOwnProperty(self, name: str|None) -> bool: ... + def hasProperty(self, name: str|None) -> bool: ... + @typing.overload + def setProperty(self, name: str|None, value: 'QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None) -> None: ... + @typing.overload + def setProperty(self, arrayIndex: int, value: 'QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None) -> None: ... + @typing.overload + def property(self, name: str|None) -> 'QJSValue': ... + @typing.overload + def property(self, arrayIndex: int) -> 'QJSValue': ... + def setPrototype(self, prototype: 'QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None) -> None: ... + def prototype(self) -> 'QJSValue': ... + def strictlyEquals(self, other: 'QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None) -> bool: ... + def equals(self, other: 'QJSValue'|'QJSValue.SpecialValue'|bool|int|float|str|None) -> bool: ... + def toDateTime(self) -> QtCore.QDateTime: ... + def toQObject(self) -> QtCore.QObject|None: ... + def toPrimitive(self) -> QJSPrimitiveValue: ... + @typing.overload + def toVariant(self) -> typing.Any: ... + @typing.overload + def toVariant(self, behavior: 'QJSValue.ObjectConversionBehavior') -> typing.Any: ... + def toBool(self) -> bool: ... + def toUInt(self) -> int: ... + def toInt(self) -> int: ... + def toNumber(self) -> float: ... + def toString(self) -> str: ... + def isUrl(self) -> bool: ... + 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(PyQt6.sip.simplewrapper): + + def __init__(self, value: QJSValue|QJSValue.SpecialValue|bool|int|float|str|None) -> None: ... + + def value(self) -> QJSValue: ... + def name(self) -> str: ... + def next(self) -> bool: ... + def hasNext(self) -> bool: ... + + +class QQmlAbstractUrlInterceptor(PyQt6.sip.simplewrapper): + + class DataType(enum.Enum): + 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): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def markCurrentFunctionAsTranslationBinding(self) -> None: ... + offlineStoragePathChanged: typing.ClassVar[QtCore.pyqtSignal] + def clearSingletons(self) -> None: ... + def urlInterceptors(self) -> list[QQmlAbstractUrlInterceptor]: ... + def interceptUrl(self, url: QtCore.QUrl, type: QQmlAbstractUrlInterceptor.DataType) -> QtCore.QUrl: ... + def removeUrlInterceptor(self, urlInterceptor: QQmlAbstractUrlInterceptor|None) -> None: ... + def addUrlInterceptor(self, urlInterceptor: QQmlAbstractUrlInterceptor|None) -> None: ... + @typing.overload + def singletonInstance(self, qmlTypeId: int) -> QtCore.QObject: ... + @typing.overload + def singletonInstance(self, moduleName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, typeName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> QtCore.QObject: ... + def offlineStorageDatabaseFilePath(self, databaseName: str|None) -> str: ... + exit: typing.ClassVar[QtCore.pyqtSignal] + warnings: typing.ClassVar[QtCore.pyqtSignal] + quit: typing.ClassVar[QtCore.pyqtSignal] + def event(self, a0: QtCore.QEvent|None) -> bool: ... + def retranslate(self) -> None: ... + @staticmethod + def setContextForObject(a0: QtCore.QObject|None, a1: 'QQmlContext|None') -> None: ... + @staticmethod + def contextForObject(a0: QtCore.QObject|None) -> 'QQmlContext|None': ... + 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) -> None: ... + def incubationController(self) -> 'QQmlIncubationController|None': ... + def setIncubationController(self, a0: 'QQmlIncubationController|None') -> None: ... + def removeImageProvider(self, id: str|None) -> None: ... + def imageProvider(self, id: str|None) -> 'QQmlImageProviderBase|None': ... + def addImageProvider(self, id: str|None, a1: 'QQmlImageProviderBase|None') -> None: ... + def networkAccessManager(self) -> QtNetwork.QNetworkAccessManager|None: ... + def networkAccessManagerFactory(self) -> 'QQmlNetworkAccessManagerFactory|None': ... + def setNetworkAccessManagerFactory(self, a0: 'QQmlNetworkAccessManagerFactory|None') -> None: ... + def importPlugin(self, filePath: str|None, uri: str|None, errors: collections.abc.Iterable['QQmlError']) -> bool: ... + def addPluginPath(self, dir: str|None) -> None: ... + def setPluginPathList(self, paths: collections.abc.Iterable[str|None]) -> None: ... + def pluginPathList(self) -> list[str]: ... + def addImportPath(self, dir: str|None) -> None: ... + def setImportPathList(self, paths: collections.abc.Iterable[str|None]) -> None: ... + def importPathList(self) -> list[str]: ... + def trimComponentCache(self) -> None: ... + def clearComponentCache(self) -> None: ... + def rootContext(self) -> 'QQmlContext|None': ... + + +class QQmlApplicationEngine(QQmlEngine): + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, url: QtCore.QUrl, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, filePath: str|None, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, uri: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, typeName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, parent: QtCore.QObject|None = ...) -> None: ... + + objectCreationFailed: typing.ClassVar[QtCore.pyqtSignal] + objectCreated: typing.ClassVar[QtCore.pyqtSignal] + def loadFromModule(self, uri: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, typeName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + def setInitialProperties(self, initialProperties: dict[str|None, typing.Any]) -> None: ... + def setExtraFileSelectors(self, extraFileSelectors: collections.abc.Iterable[str|None]) -> None: ... + def loadData(self, data: QtCore.QByteArray|bytes|bytearray|memoryview, url: QtCore.QUrl = ...) -> None: ... + @typing.overload + def load(self, url: QtCore.QUrl) -> None: ... + @typing.overload + def load(self, filePath: str|None) -> None: ... + def rootObjects(self) -> list[QtCore.QObject]: ... + + +class QQmlComponent(QtCore.QObject): + + class Status(enum.Enum): + Null = ... # type: QQmlComponent.Status + Ready = ... # type: QQmlComponent.Status + Loading = ... # type: QQmlComponent.Status + Error = ... # type: QQmlComponent.Status + + class CompilationMode(enum.Enum): + PreferSynchronous = ... # type: QQmlComponent.CompilationMode + Asynchronous = ... # type: QQmlComponent.CompilationMode + + @typing.overload + def __init__(self, a0: QQmlEngine|None, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, a0: QQmlEngine|None, fileName: str|None, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, a0: QQmlEngine|None, fileName: str|None, mode: 'QQmlComponent.CompilationMode', parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, a0: QQmlEngine|None, url: QtCore.QUrl, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, a0: QQmlEngine|None, url: QtCore.QUrl, mode: 'QQmlComponent.CompilationMode', parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, engine: QQmlEngine|None, uri: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, typeName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, engine: QQmlEngine|None, uri: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, typeName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, mode: 'QQmlComponent.CompilationMode', parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def setInitialProperties(self, component: QtCore.QObject|None, properties: dict[str|None, typing.Any]) -> None: ... + def engine(self) -> QQmlEngine|None: ... + progressChanged: typing.ClassVar[QtCore.pyqtSignal] + statusChanged: typing.ClassVar[QtCore.pyqtSignal] + def loadFromModule(self, uri: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, typeName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, mode: 'QQmlComponent.CompilationMode' = ...) -> None: ... + def setData(self, a0: QtCore.QByteArray|bytes|bytearray|memoryview, 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|None': ... + def completeCreate(self) -> None: ... + def beginCreate(self, a0: 'QQmlContext|None') -> QtCore.QObject|None: ... + def createWithInitialProperties(self, initialProperties: dict[str|None, typing.Any], context: 'QQmlContext|None' = ...) -> QtCore.QObject|None: ... + @typing.overload + def create(self, context: 'QQmlContext|None' = ...) -> QtCore.QObject|None: ... + @typing.overload + def create(self, a0: 'QQmlIncubator', context: 'QQmlContext|None' = ..., forContext: 'QQmlContext|None' = ...) -> None: ... + def url(self) -> QtCore.QUrl: ... + def progress(self) -> float: ... + def errors(self) -> list['QQmlError']: ... + def isLoading(self) -> bool: ... + def isError(self) -> bool: ... + def isReady(self) -> bool: ... + def isNull(self) -> bool: ... + def isBound(self) -> bool: ... + def status(self) -> 'QQmlComponent.Status': ... + + +class QQmlContext(QtCore.QObject): + + class PropertyPair(PyQt6.sip.simplewrapper): + + name = ... # type: str|None + 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|None, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, parentContext: 'QQmlContext|None', parent: QtCore.QObject|None = ...) -> None: ... + + def findObjectsRecursively(self, id: str|None) -> list[QtCore.QObject]: ... + def findObjectRecursively(self, id: str|None) -> QtCore.QObject|None: ... + def childContexts(self) -> list['QQmlContext']: ... + def objectForName(self, a0: str|None) -> QtCore.QObject|None: ... + def setContextProperties(self, properties: collections.abc.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|None) -> str: ... + @typing.overload + def setContextProperty(self, a0: str|None, a1: QtCore.QObject|None) -> None: ... + @typing.overload + def setContextProperty(self, a0: str|None, a1: typing.Any) -> None: ... + def contextProperty(self, a0: str|None) -> typing.Any: ... + def setContextObject(self, a0: QtCore.QObject|None) -> None: ... + def contextObject(self) -> QtCore.QObject|None: ... + def parentContext(self) -> 'QQmlContext|None': ... + def engine(self) -> QQmlEngine|None: ... + def isValid(self) -> bool: ... + + +class QQmlImageProviderBase(QtCore.QObject): + + class Flag(enum.Flag): + ForceAsynchronousImageLoading = ... # type: QQmlImageProviderBase.Flag + + class ImageType(enum.Enum): + Image = ... # type: QQmlImageProviderBase.ImageType + Pixmap = ... # type: QQmlImageProviderBase.ImageType + Texture = ... # type: QQmlImageProviderBase.ImageType + ImageResponse = ... # type: QQmlImageProviderBase.ImageType + + def flags(self) -> 'QQmlImageProviderBase.Flag': ... + def imageType(self) -> 'QQmlImageProviderBase.ImageType': ... + + +class QQmlError(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlError') -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def swap(self, other: 'QQmlError') -> None: ... + def setMessageType(self, messageType: QtCore.QtMsgType) -> None: ... + def messageType(self) -> QtCore.QtMsgType: ... + def setObject(self, a0: QtCore.QObject|None) -> None: ... + def object(self) -> QtCore.QObject|None: ... + 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) -> 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|None, a1: QtCore.QObject|None, a2: str|None, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlScriptString', context: QQmlContext|None = ..., scope: QtCore.QObject|None = ..., parent: QtCore.QObject|None = ...) -> None: ... + + valueChanged: typing.ClassVar[QtCore.pyqtSignal] + 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|None: ... + def setSourceLocation(self, fileName: str|None, 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) -> None: ... + def expression(self) -> str: ... + def context(self) -> QQmlContext|None: ... + def engine(self) -> QQmlEngine|None: ... + + +class QQmlExtensionPlugin(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def unregisterTypes(self) -> None: ... + def baseUrl(self) -> QtCore.QUrl: ... + def registerTypes(self, uri: str) -> None: ... + + +class QQmlEngineExtensionPlugin(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def initializeEngine(self, engine: QQmlEngine|None, uri: str) -> None: ... + + +class QQmlFileSelector(QtCore.QObject): + + def __init__(self, engine: QQmlEngine|None, parent: QtCore.QObject|None = ...) -> None: ... + + def selector(self) -> QtCore.QFileSelector|None: ... + def setExtraSelectors(self, strings: collections.abc.Iterable[str|None]) -> None: ... + def setSelector(self, selector: QtCore.QFileSelector|None) -> None: ... + + +class QQmlIncubator(PyQt6.sip.simplewrapper): + + class Status(enum.Enum): + Null = ... # type: QQmlIncubator.Status + Ready = ... # type: QQmlIncubator.Status + Loading = ... # type: QQmlIncubator.Status + Error = ... # type: QQmlIncubator.Status + + class IncubationMode(enum.Enum): + 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) -> None: ... + def statusChanged(self, a0: 'QQmlIncubator.Status') -> None: ... + def setInitialProperties(self, initialProperties: dict[str|None, typing.Any]) -> None: ... + def object(self) -> QtCore.QObject|None: ... + def status(self) -> 'QQmlIncubator.Status': ... + def incubationMode(self) -> 'QQmlIncubator.IncubationMode': ... + def errors(self) -> 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(PyQt6.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|None: ... + + +class QQmlListReference(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject|None, property: str, engine: QQmlEngine|None = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlListReference') -> None: ... + @typing.overload + def __init__(self, variant: typing.Any, engine: QQmlEngine|None = ...) -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def removeLast(self) -> bool: ... + def replace(self, a0: int, a1: QtCore.QObject|None) -> bool: ... + def canRemoveLast(self) -> bool: ... + def canReplace(self) -> bool: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def clear(self) -> bool: ... + def at(self, a0: int) -> QtCore.QObject|None: ... + def append(self, a0: QtCore.QObject|None) -> 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|None: ... + def object(self) -> QtCore.QObject|None: ... + def isValid(self) -> bool: ... + + +class QQmlNetworkAccessManagerFactory(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlNetworkAccessManagerFactory') -> None: ... + + def create(self, parent: QtCore.QObject|None) -> QtNetwork.QNetworkAccessManager|None: ... + + +class QQmlParserStatus(PyQt6.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(PyQt6.sip.simplewrapper): + + class Type(enum.Enum): + Invalid = ... # type: QQmlProperty.Type + Property = ... # type: QQmlProperty.Type + SignalProperty = ... # type: QQmlProperty.Type + + class PropertyTypeCategory(enum.Enum): + 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) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject|None, a1: QQmlContext|None) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject|None, a1: QQmlEngine|None) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject|None, a1: str|None) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject|None, a1: str|None, a2: QQmlContext|None) -> None: ... + @typing.overload + def __init__(self, a0: QtCore.QObject|None, a1: str|None, a2: QQmlEngine|None) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlProperty') -> None: ... + + def __ne__(self, other: object): ... + def swap(self, other: 'QQmlProperty') -> None: ... + def method(self) -> QtCore.QMetaMethod: ... + def property(self) -> QtCore.QMetaProperty: ... + def index(self) -> int: ... + def object(self) -> QtCore.QObject|None: ... + 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|None, 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|None, a1: str|None, a2: typing.Any) -> bool: ... + @typing.overload + @staticmethod + def write(a0: QtCore.QObject|None, a1: str|None, a2: typing.Any, a3: QQmlContext|None) -> bool: ... + @typing.overload + @staticmethod + def write(a0: QtCore.QObject|None, a1: str|None, a2: typing.Any, a3: QQmlEngine|None) -> bool: ... + @typing.overload + def read(self) -> typing.Any: ... + @typing.overload + @staticmethod + def read(a0: QtCore.QObject|None, a1: str|None) -> typing.Any: ... + @typing.overload + @staticmethod + def read(a0: QtCore.QObject|None, a1: str|None, a2: QQmlContext|None) -> typing.Any: ... + @typing.overload + @staticmethod + def read(a0: QtCore.QObject|None, a1: str|None, a2: QQmlEngine|None) -> typing.Any: ... + def name(self) -> str: ... + def propertyMetaType(self) -> QtCore.QMetaType: ... + def propertyTypeName(self) -> str: ... + def propertyTypeCategory(self) -> 'QQmlProperty.PropertyTypeCategory': ... + def propertyType(self) -> int: ... + def isBindable(self) -> bool: ... + def isSignalProperty(self) -> bool: ... + def isProperty(self) -> bool: ... + def isValid(self) -> bool: ... + def type(self) -> 'QQmlProperty.Type': ... + def __eq__(self, other: object): ... + def __hash__(self) -> int: ... + + +class QQmlPropertyMap(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + @staticmethod + def create(parent: QtCore.QObject|None = ...) -> QQmlPropertyMap|None: ... + def updateValue(self, key: str|None, input: typing.Any) -> typing.Any: ... + valueChanged: typing.ClassVar[QtCore.pyqtSignal] + def __getitem__(self, key: str|None) -> typing.Any: ... + def contains(self, key: str|None) -> bool: ... + def isEmpty(self) -> bool: ... + def __len__(self) -> int: ... + def size(self) -> int: ... + def count(self) -> int: ... + def keys(self) -> list[str]: ... + def clear(self, key: str|None) -> None: ... + def freeze(self) -> None: ... + @typing.overload + def insert(self, values: dict[str|None, typing.Any]) -> None: ... + @typing.overload + def insert(self, key: str|None, value: typing.Any) -> None: ... + def value(self, key: str|None) -> typing.Any: ... + + +class QQmlPropertyValueSource(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlPropertyValueSource') -> None: ... + + def setTarget(self, a0: QQmlProperty) -> None: ... + + +class QQmlScriptString(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQmlScriptString') -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + 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: ... + + +def qmlRegisterUncreatableType(a0: type, uri: str, major: int, minor: int, reason: str|None, qmlName: str = ...) -> int: ... +def qmlRegisterAnonymousType(a0: type, uri: str, major: int) -> int: ... +def qmlRegisterSingletonInstance(uri: str, major: int, minor: int, typeName: str, cppObject: QtCore.QObject|None) -> int: ... +def qmlRegisterRevision(a0: type, uri: str, major: int, minor: int, attachedProperties: type = ...) -> int: ... +def qmlAttachedPropertiesObject(a0: type, object: QtCore.QObject|None, create: bool = ...) -> QtCore.QObject|None: ... +def qjsEngine(a0: QtCore.QObject|None) -> QJSEngine|None: ... +def qmlEngine(a0: QtCore.QObject|None) -> QQmlEngine|None: ... +def qmlContext(a0: QtCore.QObject|None) -> QQmlContext|None: ... +def qmlTypeId(uri: str, versionMajor: int, versionMinor: int, qmlName: str) -> int: ... +@typing.overload +def qmlRegisterType(url: QtCore.QUrl, uri: str, versionMajor: int, versionMinor: int, qmlName: str) -> int: ... +@typing.overload +def qmlRegisterType(a0: type, uri: str, major: int, minor: int, name: str = ..., attachedProperties: type = ...) -> int: ... +@typing.overload +def qmlRegisterSingletonType(url: QtCore.QUrl, uri: str, versionMajor: int, versionMinor: int, qmlName: str) -> int: ... +@typing.overload +def qmlRegisterSingletonType(a0: type, uri: str, major: int, minor: int, factory: collections.abc.Callable[[QQmlEngine, QJSEngine], typing.Any], name: str = ...) -> int: ... +def qmlRegisterModule(uri: str, versionMajor: int, versionMinor: int) -> None: ... +def qmlProtectModule(uri: str, majVersion: int) -> bool: ... +def qmlRegisterUncreatableMetaObject(staticMetaObject: QtCore.QMetaObject, uri: str, versionMajor: int, versionMinor: int, qmlName: str, reason: str|None) -> int: ... +def qmlRegisterTypeNotAvailable(uri: str, versionMajor: int, versionMinor: int, qmlName: str, message: str|None) -> int: ... +def qmlClearTypeRegistrations() -> None: ... diff --git a/typings/PyQt6/QtQuick.pyi b/typings/PyQt6/QtQuick.pyi new file mode 100644 index 00000000..95b58e20 --- /dev/null +++ b/typings/PyQt6/QtQuick.pyi @@ -0,0 +1,1419 @@ +# The PEP 484 type hints stub file for the QtQuick module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui +from PyQt6 import QtNetwork +from PyQt6 import QtQml + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QQuickItem(QtCore.QObject, QtQml.QQmlParserStatus): + + class TransformOrigin(enum.Enum): + 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(enum.Enum): + 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 + ItemScaleHasChanged = ... # type: QQuickItem.ItemChange + ItemTransformHasChanged = ... # type: QQuickItem.ItemChange + + class Flag(enum.Flag): + ItemClipsChildrenToShape = ... # type: QQuickItem.Flag + ItemAcceptsInputMethod = ... # type: QQuickItem.Flag + ItemIsFocusScope = ... # type: QQuickItem.Flag + ItemHasContents = ... # type: QQuickItem.Flag + ItemAcceptsDrops = ... # type: QQuickItem.Flag + ItemIsViewport = ... # type: QQuickItem.Flag + ItemObservesViewport = ... # type: QQuickItem.Flag + + class ItemChangeData(PyQt6.sip.simplewrapper): + + boolValue = ... # type: bool + item = ... # type: 'QQuickItem' + realValue = ... # type: float + window = ... # type: 'QQuickWindow' + + @typing.overload + def __init__(self, v: 'QQuickItem|None') -> None: ... + @typing.overload + def __init__(self, v: 'QQuickWindow|None') -> 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(PyQt6.sip.simplewrapper): + + transformNode = ... # type: 'QSGTransformNode' + + def __init__(self, a0: 'QQuickItem.UpdatePaintNodeData') -> None: ... + + def __init__(self, parent: 'QQuickItem|None' = ...) -> None: ... + + focusPolicyChanged: typing.ClassVar[QtCore.pyqtSignal] + def setFocusPolicy(self, policy: QtCore.Qt.FocusPolicy) -> None: ... + def focusPolicy(self) -> QtCore.Qt.FocusPolicy: ... + def dumpItemTree(self) -> None: ... + def ensurePolished(self) -> None: ... + def viewportItem(self) -> 'QQuickItem|None': ... + containmentMaskChanged: typing.ClassVar[QtCore.pyqtSignal] + def setContainmentMask(self, mask: QtCore.QObject|None) -> None: ... + def containmentMask(self) -> QtCore.QObject|None: ... + def setAcceptTouchEvents(self, accept: bool) -> None: ... + def acceptTouchEvents(self) -> bool: ... + def size(self) -> QtCore.QSizeF: ... + def mapFromGlobal(self, point: QtCore.QPointF) -> QtCore.QPointF: ... + def mapToGlobal(self, point: QtCore.QPointF) -> QtCore.QPointF: ... + def isAncestorOf(self, child: 'QQuickItem|None') -> bool: ... + def grabToImage(self, targetSize: QtCore.QSize = ...) -> 'QQuickItemGrabResult|None': ... + def resetAntialiasing(self) -> None: ... + windowChanged: typing.ClassVar[QtCore.pyqtSignal] + activeFocusOnTabChanged: typing.ClassVar[QtCore.pyqtSignal] + def nextItemInFocusChain(self, forward: bool = ...) -> 'QQuickItem|None': ... + def setActiveFocusOnTab(self, a0: bool) -> None: ... + def activeFocusOnTab(self) -> bool: ... + def updatePolish(self) -> None: ... + def releaseResources(self) -> None: ... + def updatePaintNode(self, a0: 'QSGNode|None', a1: 'QQuickItem.UpdatePaintNodeData|None') -> 'QSGNode|None': ... + def geometryChange(self, newGeometry: QtCore.QRectF, oldGeometry: QtCore.QRectF) -> None: ... + def childMouseEventFilter(self, a0: 'QQuickItem|None', a1: QtCore.QEvent|None) -> bool: ... + def dropEvent(self, a0: QtGui.QDropEvent|None) -> None: ... + def dragLeaveEvent(self, a0: QtGui.QDragLeaveEvent|None) -> None: ... + def dragMoveEvent(self, a0: QtGui.QDragMoveEvent|None) -> None: ... + def dragEnterEvent(self, a0: QtGui.QDragEnterEvent|None) -> None: ... + def hoverLeaveEvent(self, event: QtGui.QHoverEvent|None) -> None: ... + def hoverMoveEvent(self, event: QtGui.QHoverEvent|None) -> None: ... + def hoverEnterEvent(self, event: QtGui.QHoverEvent|None) -> None: ... + def touchEvent(self, event: QtGui.QTouchEvent|None) -> None: ... + def wheelEvent(self, event: QtGui.QWheelEvent|None) -> None: ... + def touchUngrabEvent(self) -> None: ... + def mouseUngrabEvent(self) -> None: ... + def mouseDoubleClickEvent(self, event: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, event: QtGui.QMouseEvent|None) -> None: ... + def mouseMoveEvent(self, event: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, event: QtGui.QMouseEvent|None) -> None: ... + def focusOutEvent(self, a0: QtGui.QFocusEvent|None) -> None: ... + def focusInEvent(self, a0: QtGui.QFocusEvent|None) -> None: ... + def inputMethodEvent(self, a0: QtGui.QInputMethodEvent|None) -> None: ... + def keyReleaseEvent(self, event: QtGui.QKeyEvent|None) -> None: ... + def keyPressEvent(self, event: QtGui.QKeyEvent|None) -> None: ... + def componentComplete(self) -> None: ... + def classBegin(self) -> None: ... + def heightValid(self) -> bool: ... + def widthValid(self) -> bool: ... + def updateInputMethod(self, queries: QtCore.Qt.InputMethodQuery = ...) -> None: ... + def itemChange(self, a0: 'QQuickItem.ItemChange', a1: 'QQuickItem.ItemChangeData') -> None: ... + def isComponentComplete(self) -> bool: ... + def event(self, a0: QtCore.QEvent|None) -> bool: ... + implicitHeightChanged: typing.ClassVar[QtCore.pyqtSignal] + implicitWidthChanged: typing.ClassVar[QtCore.pyqtSignal] + zChanged: typing.ClassVar[QtCore.pyqtSignal] + heightChanged: typing.ClassVar[QtCore.pyqtSignal] + widthChanged: typing.ClassVar[QtCore.pyqtSignal] + yChanged: typing.ClassVar[QtCore.pyqtSignal] + xChanged: typing.ClassVar[QtCore.pyqtSignal] + scaleChanged: typing.ClassVar[QtCore.pyqtSignal] + rotationChanged: typing.ClassVar[QtCore.pyqtSignal] + visibleChanged: typing.ClassVar[QtCore.pyqtSignal] + enabledChanged: typing.ClassVar[QtCore.pyqtSignal] + opacityChanged: typing.ClassVar[QtCore.pyqtSignal] + clipChanged: typing.ClassVar[QtCore.pyqtSignal] + antialiasingChanged: typing.ClassVar[QtCore.pyqtSignal] + smoothChanged: typing.ClassVar[QtCore.pyqtSignal] + transformOriginChanged: typing.ClassVar[QtCore.pyqtSignal] + parentChanged: typing.ClassVar[QtCore.pyqtSignal] + activeFocusChanged: typing.ClassVar[QtCore.pyqtSignal] + focusChanged: typing.ClassVar[QtCore.pyqtSignal] + stateChanged: typing.ClassVar[QtCore.pyqtSignal] + baselineOffsetChanged: typing.ClassVar[QtCore.pyqtSignal] + childrenRectChanged: typing.ClassVar[QtCore.pyqtSignal] + def update(self) -> None: ... + def textureProvider(self) -> 'QSGTextureProvider|None': ... + def isTextureProvider(self) -> bool: ... + def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + def childAt(self, x: float, y: float) -> 'QQuickItem|None': ... + @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|None', rect: QtCore.QRectF) -> QtCore.QRectF: ... + def mapFromScene(self, point: QtCore.QPointF) -> QtCore.QPointF: ... + def mapFromItem(self, item: 'QQuickItem|None', point: QtCore.QPointF) -> QtCore.QPointF: ... + def mapRectToScene(self, rect: QtCore.QRectF) -> QtCore.QRectF: ... + def mapRectToItem(self, item: 'QQuickItem|None', rect: QtCore.QRectF) -> QtCore.QRectF: ... + def mapToScene(self, point: QtCore.QPointF) -> QtCore.QPointF: ... + def mapToItem(self, item: 'QQuickItem|None', point: QtCore.QPointF) -> QtCore.QPointF: ... + def contains(self, point: QtCore.QPointF) -> bool: ... + def setKeepTouchGrab(self, a0: bool) -> None: ... + def keepTouchGrab(self) -> bool: ... + def ungrabTouchPoints(self) -> None: ... + def grabTouchPoints(self, ids: collections.abc.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: 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: QtCore.Qt.MouseButton) -> None: ... + def acceptedMouseButtons(self) -> QtCore.Qt.MouseButton: ... + def scopedFocusItem(self) -> 'QQuickItem|None': ... + 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: 'QQuickItem.Flag') -> None: ... + def setFlag(self, flag: 'QQuickItem.Flag', enabled: bool = ...) -> None: ... + def flags(self) -> 'QQuickItem.Flag': ... + 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 setSize(self, size: QtCore.QSizeF) -> None: ... + 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) -> None: ... + def state(self) -> str: ... + def setClip(self, a0: bool) -> None: ... + def clip(self) -> bool: ... + def childItems(self) -> list['QQuickItem']: ... + def childrenRect(self) -> QtCore.QRectF: ... + def stackAfter(self, a0: 'QQuickItem|None') -> None: ... + def stackBefore(self, a0: 'QQuickItem|None') -> None: ... + def setParentItem(self, parent: 'QQuickItem|None') -> None: ... + def parentItem(self) -> 'QQuickItem|None': ... + def window(self) -> 'QQuickWindow|None': ... + + +class QQuickFramebufferObject(QQuickItem): + + class Renderer(PyQt6.sip.wrapper): + + try: + from PyQt6.QtOpenGL import QOpenGLFramebufferObject + except ImportError: + pass + + @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) -> QOpenGLFramebufferObject|None: ... + def synchronize(self, a0: 'QQuickFramebufferObject|None') -> None: ... + def createFramebufferObject(self, size: QtCore.QSize) -> QOpenGLFramebufferObject|None: ... + def render(self) -> None: ... + + def __init__(self, parent: QQuickItem|None = ...) -> None: ... + + mirrorVerticallyChanged: typing.ClassVar[QtCore.pyqtSignal] + def setMirrorVertically(self, enable: bool) -> None: ... + def mirrorVertically(self) -> bool: ... + def releaseResources(self) -> None: ... + def textureProvider(self) -> 'QSGTextureProvider|None': ... + def isTextureProvider(self) -> bool: ... + textureFollowsItemSizeChanged: typing.ClassVar[QtCore.pyqtSignal] + def updatePaintNode(self, a0: 'QSGNode|None', a1: QQuickItem.UpdatePaintNodeData|None) -> 'QSGNode|None': ... + def geometryChange(self, newGeometry: QtCore.QRectF, oldGeometry: QtCore.QRectF) -> None: ... + def createRenderer(self) -> 'QQuickFramebufferObject.Renderer|None': ... + def setTextureFollowsItemSize(self, follows: bool) -> None: ... + def textureFollowsItemSize(self) -> bool: ... + + +class QQuickGraphicsConfiguration(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QQuickGraphicsConfiguration') -> None: ... + + def timestampsEnabled(self) -> bool: ... + def setTimestamps(self, enable: bool) -> None: ... + def pipelineCacheLoadFile(self) -> str: ... + def setPipelineCacheLoadFile(self, filename: str|None) -> None: ... + def pipelineCacheSaveFile(self) -> str: ... + def setPipelineCacheSaveFile(self, filename: str|None) -> None: ... + def isAutomaticPipelineCacheEnabled(self) -> bool: ... + def setAutomaticPipelineCache(self, enable: bool) -> None: ... + def prefersSoftwareDevice(self) -> bool: ... + def setPreferSoftwareDevice(self, enable: bool) -> None: ... + def isDebugMarkersEnabled(self) -> bool: ... + def setDebugMarkers(self, enable: bool) -> None: ... + def isDebugLayerEnabled(self) -> bool: ... + def setDebugLayer(self, enable: bool) -> None: ... + @staticmethod + def preferredInstanceExtensions() -> list[QtCore.QByteArray]: ... + def isDepthBufferEnabledFor2D(self) -> bool: ... + def setDepthBufferFor2D(self, enable: bool) -> None: ... + def deviceExtensions(self) -> list[QtCore.QByteArray]: ... + def setDeviceExtensions(self, extensions: collections.abc.Iterable[QtCore.QByteArray|bytes|bytearray|memoryview]) -> None: ... + + +class QQuickGraphicsDevice(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QQuickGraphicsDevice') -> None: ... + + @staticmethod + def fromOpenGLContext(context: QtGui.QOpenGLContext|None) -> 'QQuickGraphicsDevice': ... + def isNull(self) -> bool: ... + + +class QQuickTextureFactory(QtCore.QObject): + + def __init__(self) -> None: ... + + @staticmethod + def textureFactoryForImage(image: QtGui.QImage) -> 'QQuickTextureFactory|None': ... + def image(self) -> QtGui.QImage: ... + def textureByteCount(self) -> int: ... + def textureSize(self) -> QtCore.QSize: ... + def createTexture(self, window: 'QQuickWindow|None') -> 'QSGTexture|None': ... + + +class QQuickImageProvider(QtQml.QQmlImageProviderBase): + + def __init__(self, type: QtQml.QQmlImageProviderBase.ImageType, flags: QtQml.QQmlImageProviderBase.Flag = ...) -> None: ... + + def requestTexture(self, id: str|None, requestedSize: QtCore.QSize) -> typing.Tuple[QQuickTextureFactory|None, QtCore.QSize|None]: ... + def requestPixmap(self, id: str|None, requestedSize: QtCore.QSize) -> typing.Tuple[QtGui.QPixmap, QtCore.QSize|None]: ... + def requestImage(self, id: str|None, requestedSize: QtCore.QSize) -> typing.Tuple[QtGui.QImage, QtCore.QSize|None]: ... + def flags(self) -> QtQml.QQmlImageProviderBase.Flag: ... + def imageType(self) -> QtQml.QQmlImageProviderBase.ImageType: ... + + +class QQuickImageResponse(QtCore.QObject): + + def __init__(self) -> None: ... + + finished: typing.ClassVar[QtCore.pyqtSignal] + def cancel(self) -> None: ... + def errorString(self) -> str: ... + def textureFactory(self) -> QQuickTextureFactory|None: ... + + +class QQuickAsyncImageProvider(QQuickImageProvider): + + def __init__(self) -> None: ... + + def requestImageResponse(self, id: str|None, requestedSize: QtCore.QSize) -> QQuickImageResponse|None: ... + + +class QQuickItemGrabResult(QtCore.QObject): + + ready: typing.ClassVar[QtCore.pyqtSignal] + def event(self, a0: QtCore.QEvent|None) -> bool: ... + @typing.overload + def saveToFile(self, fileName: str|None) -> bool: ... + @typing.overload + def saveToFile(self, fileName: QtCore.QUrl) -> bool: ... + def url(self) -> QtCore.QUrl: ... + def image(self) -> QtGui.QImage: ... + + +class QQuickPaintedItem(QQuickItem): + + class PerformanceHint(enum.Flag): + FastFBOResizing = ... # type: QQuickPaintedItem.PerformanceHint + + class RenderTarget(enum.Enum): + Image = ... # type: QQuickPaintedItem.RenderTarget + FramebufferObject = ... # type: QQuickPaintedItem.RenderTarget + InvertedYFramebufferObject = ... # type: QQuickPaintedItem.RenderTarget + + def __init__(self, parent: QQuickItem|None = ...) -> None: ... + + textureSizeChanged: typing.ClassVar[QtCore.pyqtSignal] + 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|None': ... + def isTextureProvider(self) -> bool: ... + def updatePaintNode(self, a0: 'QSGNode|None', a1: QQuickItem.UpdatePaintNodeData|None) -> 'QSGNode|None': ... + renderTargetChanged: typing.ClassVar[QtCore.pyqtSignal] + contentsScaleChanged: typing.ClassVar[QtCore.pyqtSignal] + contentsSizeChanged: typing.ClassVar[QtCore.pyqtSignal] + fillColorChanged: typing.ClassVar[QtCore.pyqtSignal] + def paint(self, painter: QtGui.QPainter|None) -> None: ... + def setRenderTarget(self, target: 'QQuickPaintedItem.RenderTarget') -> None: ... + def renderTarget(self) -> 'QQuickPaintedItem.RenderTarget': ... + def setFillColor(self, a0: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> 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: 'QQuickPaintedItem.PerformanceHint') -> None: ... + def setPerformanceHint(self, hint: 'QQuickPaintedItem.PerformanceHint', enabled: bool = ...) -> None: ... + def performanceHints(self) -> 'QQuickPaintedItem.PerformanceHint': ... + 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: QtCore.QObject|None = ...) -> None: ... + + def window(self) -> 'QQuickWindow|None': ... + def endFrame(self) -> None: ... + def beginFrame(self) -> None: ... + def samples(self) -> int: ... + def setSamples(self, sampleCount: int) -> None: ... + sceneChanged: typing.ClassVar[QtCore.pyqtSignal] + renderRequested: typing.ClassVar[QtCore.pyqtSignal] + def prepareThread(self, targetThread: QtCore.QThread|None) -> None: ... + def renderWindow(self, offset: QtCore.QPoint|None) -> QtGui.QWindow|None: ... + @staticmethod + def renderWindowFor(win: 'QQuickWindow|None', offset: QtCore.QPoint|None = ...) -> QtGui.QWindow|None: ... + def sync(self) -> bool: ... + def render(self) -> None: ... + def polishItems(self) -> None: ... + def invalidate(self) -> None: ... + def initialize(self) -> bool: ... + + +class QQuickRenderTarget(PyQt6.sip.simplewrapper): + + class Flag(enum.Enum): + MultisampleResolve = ... # type: QQuickRenderTarget.Flag + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QQuickRenderTarget') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def setMirrorVertically(self, enable: bool) -> None: ... + def mirrorVertically(self) -> bool: ... + def setDevicePixelRatio(self, ratio: float) -> None: ... + def devicePixelRatio(self) -> float: ... + @staticmethod + def fromPaintDevice(device: QtGui.QPaintDevice|None) -> 'QQuickRenderTarget': ... + @staticmethod + def fromOpenGLRenderBuffer(renderbufferId: int, pixelSize: QtCore.QSize, sampleCount: int = ...) -> 'QQuickRenderTarget': ... + @typing.overload + @staticmethod + def fromOpenGLTexture(textureId: int, pixelSize: QtCore.QSize, sampleCount: int = ...) -> 'QQuickRenderTarget': ... + @typing.overload + @staticmethod + def fromOpenGLTexture(textureId: int, format: int, pixelSize: QtCore.QSize, sampleCount: int = ...) -> 'QQuickRenderTarget': ... + @typing.overload + @staticmethod + def fromOpenGLTexture(textureId: int, format: int, pixelSize: QtCore.QSize, sampleCount: int, arraySize: int, flags: 'QQuickRenderTarget.Flag') -> 'QQuickRenderTarget': ... + def isNull(self) -> bool: ... + + +class QQuickTextDocument(QtCore.QObject): + + class Status(enum.Enum): + Null = ... # type: QQuickTextDocument.Status + Loading = ... # type: QQuickTextDocument.Status + Loaded = ... # type: QQuickTextDocument.Status + Saving = ... # type: QQuickTextDocument.Status + Saved = ... # type: QQuickTextDocument.Status + ReadError = ... # type: QQuickTextDocument.Status + WriteError = ... # type: QQuickTextDocument.Status + NonLocalFileError = ... # type: QQuickTextDocument.Status + + def __init__(self, parent: QQuickItem|None) -> None: ... + + errorStringChanged: typing.ClassVar[QtCore.pyqtSignal] + statusChanged: typing.ClassVar[QtCore.pyqtSignal] + modifiedChanged: typing.ClassVar[QtCore.pyqtSignal] + sourceChanged: typing.ClassVar[QtCore.pyqtSignal] + textDocumentChanged: typing.ClassVar[QtCore.pyqtSignal] + def errorString(self) -> str: ... + def status(self) -> 'QQuickTextDocument.Status': ... + def saveAs(self, url: QtCore.QUrl) -> None: ... + def save(self) -> None: ... + def setTextDocument(self, document: QtGui.QTextDocument|None) -> None: ... + def setModified(self, modified: bool) -> None: ... + def isModified(self) -> bool: ... + def setSource(self, url: QtCore.QUrl) -> None: ... + def source(self) -> QtCore.QUrl: ... + def textDocument(self) -> QtGui.QTextDocument|None: ... + + +class QQuickWindow(QtGui.QWindow): + + class TextRenderType(enum.Enum): + QtTextRendering = ... # type: QQuickWindow.TextRenderType + NativeTextRendering = ... # type: QQuickWindow.TextRenderType + CurveTextRendering = ... # type: QQuickWindow.TextRenderType + + class RenderStage(enum.Enum): + 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(enum.Enum): + ContextNotAvailable = ... # type: QQuickWindow.SceneGraphError + + class CreateTextureOption(enum.Flag): + TextureHasAlphaChannel = ... # type: QQuickWindow.CreateTextureOption + TextureHasMipmaps = ... # type: QQuickWindow.CreateTextureOption + TextureOwnsGLTexture = ... # type: QQuickWindow.CreateTextureOption + TextureCanUseAtlas = ... # type: QQuickWindow.CreateTextureOption + TextureIsOpaque = ... # type: QQuickWindow.CreateTextureOption + + def __init__(self, parent: QtGui.QWindow|None = ...) -> None: ... + + devicePixelRatioChanged: typing.ClassVar[QtCore.pyqtSignal] + def graphicsConfiguration(self) -> QQuickGraphicsConfiguration: ... + def setGraphicsConfiguration(self, config: QQuickGraphicsConfiguration) -> None: ... + def graphicsDevice(self) -> QQuickGraphicsDevice: ... + def setGraphicsDevice(self, device: QQuickGraphicsDevice) -> None: ... + @staticmethod + def graphicsApi() -> 'QSGRendererInterface.GraphicsApi': ... + @staticmethod + def setGraphicsApi(api: 'QSGRendererInterface.GraphicsApi') -> None: ... + def isPersistentGraphics(self) -> bool: ... + def setPersistentGraphics(self, persistent: bool) -> None: ... + afterFrameEnd: typing.ClassVar[QtCore.pyqtSignal] + beforeFrameBegin: typing.ClassVar[QtCore.pyqtSignal] + afterRenderPassRecording: typing.ClassVar[QtCore.pyqtSignal] + beforeRenderPassRecording: typing.ClassVar[QtCore.pyqtSignal] + def endExternalCommands(self) -> None: ... + def beginExternalCommands(self) -> None: ... + @staticmethod + def setTextRenderType(renderType: 'QQuickWindow.TextRenderType') -> None: ... + @staticmethod + def textRenderType() -> 'QQuickWindow.TextRenderType': ... + @staticmethod + def sceneGraphBackend() -> str: ... + def createImageNode(self) -> 'QSGImageNode|None': ... + def createRectangleNode(self) -> 'QSGRectangleNode|None': ... + @staticmethod + def setSceneGraphBackend(backend: str|None) -> None: ... + def rendererInterface(self) -> 'QSGRendererInterface|None': ... + def isSceneGraphInitialized(self) -> bool: ... + def effectiveDevicePixelRatio(self) -> float: ... + def scheduleRenderJob(self, job: QtCore.QRunnable|None, schedule: 'QQuickWindow.RenderStage') -> None: ... + sceneGraphError: typing.ClassVar[QtCore.pyqtSignal] + sceneGraphAboutToStop: typing.ClassVar[QtCore.pyqtSignal] + afterAnimating: typing.ClassVar[QtCore.pyqtSignal] + afterSynchronizing: typing.ClassVar[QtCore.pyqtSignal] + activeFocusItemChanged: typing.ClassVar[QtCore.pyqtSignal] + closing: typing.ClassVar[QtCore.pyqtSignal] + @staticmethod + def setDefaultAlphaBuffer(useAlpha: bool) -> None: ... + @staticmethod + def hasDefaultAlphaBuffer() -> bool: ... + def closeEvent(self, a0: QtGui.QCloseEvent|None) -> None: ... + def tabletEvent(self, a0: QtGui.QTabletEvent|None) -> None: ... + def wheelEvent(self, a0: QtGui.QWheelEvent|None) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def keyReleaseEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def event(self, a0: QtCore.QEvent|None) -> bool: ... + def focusOutEvent(self, a0: QtGui.QFocusEvent|None) -> None: ... + def focusInEvent(self, a0: QtGui.QFocusEvent|None) -> None: ... + def hideEvent(self, a0: QtGui.QHideEvent|None) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent|None) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + def exposeEvent(self, a0: QtGui.QExposeEvent|None) -> None: ... + def releaseResources(self) -> None: ... + def update(self) -> None: ... + colorChanged: typing.ClassVar[QtCore.pyqtSignal] + afterRendering: typing.ClassVar[QtCore.pyqtSignal] + beforeRendering: typing.ClassVar[QtCore.pyqtSignal] + beforeSynchronizing: typing.ClassVar[QtCore.pyqtSignal] + sceneGraphInvalidated: typing.ClassVar[QtCore.pyqtSignal] + sceneGraphInitialized: typing.ClassVar[QtCore.pyqtSignal] + frameSwapped: typing.ClassVar[QtCore.pyqtSignal] + def isPersistentSceneGraph(self) -> bool: ... + def setPersistentSceneGraph(self, persistent: bool) -> None: ... + def color(self) -> QtGui.QColor: ... + def setColor(self, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + @typing.overload + def createTextureFromImage(self, image: QtGui.QImage) -> 'QSGTexture|None': ... + @typing.overload + def createTextureFromImage(self, image: QtGui.QImage, options: 'QQuickWindow.CreateTextureOption') -> 'QSGTexture|None': ... + def createTextNode(self) -> 'QSGTextNode|None': ... + def incubationController(self) -> QtQml.QQmlIncubationController|None: ... + def renderTarget(self) -> QQuickRenderTarget: ... + def setRenderTarget(self, target: QQuickRenderTarget) -> None: ... + def grabWindow(self) -> QtGui.QImage: ... + def mouseGrabberItem(self) -> QQuickItem|None: ... + def focusObject(self) -> QtCore.QObject|None: ... + def activeFocusItem(self) -> QQuickItem|None: ... + def contentItem(self) -> QQuickItem|None: ... + + +class QQuickView(QQuickWindow): + + class Status(enum.Enum): + Null = ... # type: QQuickView.Status + Ready = ... # type: QQuickView.Status + Loading = ... # type: QQuickView.Status + Error = ... # type: QQuickView.Status + + class ResizeMode(enum.Enum): + SizeViewToRootObject = ... # type: QQuickView.ResizeMode + SizeRootObjectToView = ... # type: QQuickView.ResizeMode + + @typing.overload + def __init__(self, parent: QtGui.QWindow|None = ...) -> None: ... + @typing.overload + def __init__(self, engine: QtQml.QQmlEngine|None, parent: QtGui.QWindow|None) -> None: ... + @typing.overload + def __init__(self, source: QtCore.QUrl, parent: QtGui.QWindow|None = ...) -> None: ... + @typing.overload + def __init__(self, uri: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, typeName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, parent: QtGui.QWindow|None = ...) -> None: ... + + def mouseMoveEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def keyReleaseEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def timerEvent(self, a0: QtCore.QTimerEvent|None) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + statusChanged: typing.ClassVar[QtCore.pyqtSignal] + def loadFromModule(self, uri: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, typeName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + def setInitialProperties(self, initialProperties: dict[str|None, typing.Any]) -> None: ... + def setSource(self, a0: QtCore.QUrl) -> None: ... + def initialSize(self) -> QtCore.QSize: ... + def errors(self) -> list[QtQml.QQmlError]: ... + def status(self) -> 'QQuickView.Status': ... + def setResizeMode(self, a0: 'QQuickView.ResizeMode') -> None: ... + def resizeMode(self) -> 'QQuickView.ResizeMode': ... + def rootObject(self) -> QQuickItem|None: ... + def rootContext(self) -> QtQml.QQmlContext|None: ... + def engine(self) -> QtQml.QQmlEngine|None: ... + def source(self) -> QtCore.QUrl: ... + + +class QQuickCloseEvent(PyQt6.sip.simplewrapper): ... + + +class QSGMaterial(PyQt6.sip.wrapper): + + class Flag(enum.Flag): + Blending = ... # type: QSGMaterial.Flag + RequiresDeterminant = ... # type: QSGMaterial.Flag + RequiresFullMatrixExceptTranslate = ... # type: QSGMaterial.Flag + RequiresFullMatrix = ... # type: QSGMaterial.Flag + NoBatching = ... # type: QSGMaterial.Flag + CustomCompileStep = ... # type: QSGMaterial.Flag + + def __init__(self) -> None: ... + + def viewCount(self) -> int: ... + def setFlag(self, flags: 'QSGMaterial.Flag', enabled: bool = ...) -> None: ... + def flags(self) -> 'QSGMaterial.Flag': ... + def compare(self, other: 'QSGMaterial|None') -> int: ... + def createShader(self, renderMode: 'QSGRendererInterface.RenderMode') -> 'QSGMaterialShader|None': ... + def type(self) -> 'QSGMaterialType|None': ... + + +class QSGFlatColorMaterial(QSGMaterial): + + def __init__(self) -> None: ... + + def compare(self, other: QSGMaterial|None) -> int: ... + def color(self) -> QtGui.QColor: ... + def setColor(self, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + def createShader(self, renderMode: 'QSGRendererInterface.RenderMode') -> 'QSGMaterialShader|None': ... + def type(self) -> 'QSGMaterialType|None': ... + + +class QSGGeometry(PyQt6.sip.wrapper): + + class Type(enum.Enum): + 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 + Bytes2Type = ... # type: QSGGeometry.Type + Bytes3Type = ... # type: QSGGeometry.Type + Bytes4Type = ... # type: QSGGeometry.Type + DoubleType = ... # type: QSGGeometry.Type + + class DrawingMode(enum.IntEnum): + 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(enum.Enum): + 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(enum.Enum): + AlwaysUploadPattern = ... # type: QSGGeometry.DataPattern + StreamPattern = ... # type: QSGGeometry.DataPattern + DynamicPattern = ... # type: QSGGeometry.DataPattern + StaticPattern = ... # type: QSGGeometry.DataPattern + + class Attribute(PyQt6.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(PyQt6.sip.simplewrapper): + + attributes = ... # type: PyQt6.sip.array + count = ... # type: int + stride = ... # type: int + + def __init__(self, attributes: collections.abc.Iterable['QSGGeometry.Attribute'], stride: int = ...) -> None: ... + + class Point2D(PyQt6.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(PyQt6.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(PyQt6.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: ... + + def __init__(self, attribs: 'QSGGeometry.AttributeSet', vertexCount: int, indexCount: int = ..., indexType: int = ...) -> None: ... + + def setIndexCount(self, count: int) -> None: ... + def setVertexCount(self, count: int) -> None: ... + @staticmethod + def updateColoredRectGeometry(g: 'QSGGeometry|None', rect: QtCore.QRectF) -> None: ... + def sizeOfIndex(self) -> int: ... + def vertexDataAsColoredPoint2D(self) -> PyQt6.sip.array: ... + def vertexDataAsTexturedPoint2D(self) -> PyQt6.sip.array: ... + def vertexDataAsPoint2D(self) -> PyQt6.sip.array: ... + def indexDataAsUShort(self) -> PyQt6.sip.array: ... + def indexDataAsUInt(self) -> PyQt6.sip.array: ... + 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|None', rect: QtCore.QRectF, sourceRect: QtCore.QRectF) -> None: ... + @staticmethod + def updateRectGeometry(g: 'QSGGeometry|None', rect: QtCore.QRectF) -> None: ... + def sizeOfVertex(self) -> int: ... + def attributes(self) -> PyQt6.sip.array: ... + def attributeCount(self) -> int: ... + def indexData(self) -> PyQt6.sip.voidptr: ... + def indexCount(self) -> int: ... + def indexType(self) -> int: ... + def vertexData(self) -> PyQt6.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(PyQt6.sip.wrapper): + + class DirtyStateBit(enum.Flag): + 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(enum.Flag): + OwnedByParent = ... # type: QSGNode.Flag + UsePreprocess = ... # type: QSGNode.Flag + OwnsGeometry = ... # type: QSGNode.Flag + OwnsMaterial = ... # type: QSGNode.Flag + OwnsOpaqueMaterial = ... # type: QSGNode.Flag + + class NodeType(enum.Enum): + BasicNodeType = ... # type: QSGNode.NodeType + GeometryNodeType = ... # type: QSGNode.NodeType + TransformNodeType = ... # type: QSGNode.NodeType + ClipNodeType = ... # type: QSGNode.NodeType + OpacityNodeType = ... # type: QSGNode.NodeType + + def __init__(self) -> None: ... + + def preprocess(self) -> None: ... + def setFlags(self, a0: 'QSGNode.Flag', enabled: bool = ...) -> None: ... + def setFlag(self, a0: 'QSGNode.Flag', enabled: bool = ...) -> None: ... + def flags(self) -> 'QSGNode.Flag': ... + def isSubtreeBlocked(self) -> bool: ... + def markDirty(self, bits: 'QSGNode.DirtyStateBit') -> None: ... + def type(self) -> 'QSGNode.NodeType': ... + def previousSibling(self) -> 'QSGNode|None': ... + def nextSibling(self) -> 'QSGNode|None': ... + def lastChild(self) -> 'QSGNode|None': ... + def firstChild(self) -> 'QSGNode|None': ... + def childAtIndex(self, i: int) -> 'QSGNode|None': ... + def __len__(self) -> int: ... + def childCount(self) -> int: ... + def insertChildNodeAfter(self, node: 'QSGNode|None', after: 'QSGNode|None') -> None: ... + def insertChildNodeBefore(self, node: 'QSGNode|None', before: 'QSGNode|None') -> None: ... + def appendChildNode(self, node: 'QSGNode|None') -> None: ... + def prependChildNode(self, node: 'QSGNode|None') -> None: ... + def removeAllChildNodes(self) -> None: ... + def removeChildNode(self, node: 'QSGNode|None') -> None: ... + def parent(self) -> 'QSGNode|None': ... + + +class QSGBasicGeometryNode(QSGNode): + + def geometry(self) -> QSGGeometry|None: ... + def setGeometry(self, geometry: QSGGeometry|None) -> None: ... + + +class QSGGeometryNode(QSGBasicGeometryNode): + + def __init__(self) -> None: ... + + def opaqueMaterial(self) -> QSGMaterial|None: ... + def setOpaqueMaterial(self, material: QSGMaterial|None) -> None: ... + def material(self) -> QSGMaterial|None: ... + def setMaterial(self, material: QSGMaterial|None) -> None: ... + + +class QSGImageNode(QSGGeometryNode): + + class TextureCoordinatesTransformFlag(enum.Flag): + NoTransform = ... # type: QSGImageNode.TextureCoordinatesTransformFlag + MirrorHorizontally = ... # type: QSGImageNode.TextureCoordinatesTransformFlag + MirrorVertically = ... # type: QSGImageNode.TextureCoordinatesTransformFlag + + def anisotropyLevel(self) -> 'QSGTexture.AnisotropyLevel': ... + def setAnisotropyLevel(self, level: 'QSGTexture.AnisotropyLevel') -> None: ... + @staticmethod + def rebuildGeometry(g: QSGGeometry|None, texture: 'QSGTexture|None', rect: QtCore.QRectF, sourceRect: QtCore.QRectF, texCoordMode: 'QSGImageNode.TextureCoordinatesTransformFlag') -> None: ... + def ownsTexture(self) -> bool: ... + def setOwnsTexture(self, owns: bool) -> None: ... + def textureCoordinatesTransform(self) -> 'QSGImageNode.TextureCoordinatesTransformFlag': ... + def setTextureCoordinatesTransform(self, mode: '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|None': ... + def setTexture(self, texture: 'QSGTexture|None') -> 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(PyQt6.sip.simplewrapper): + + class Stage(enum.Enum): + VertexStage = ... # type: QSGMaterialShader.Stage + FragmentStage = ... # type: QSGMaterialShader.Stage + + class Flag(enum.Flag): + UpdatesGraphicsPipelineState = ... # type: QSGMaterialShader.Flag + + class RenderState(PyQt6.sip.simplewrapper): + + class DirtyState(enum.Flag): + DirtyMatrix = ... # type: QSGMaterialShader.RenderState.DirtyState + DirtyOpacity = ... # type: QSGMaterialShader.RenderState.DirtyState + DirtyCachedMaterialData = ... # type: QSGMaterialShader.RenderState.DirtyState + DirtyAll = ... # type: QSGMaterialShader.RenderState.DirtyState + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGMaterialShader.RenderState') -> None: ... + + def uniformData(self) -> QtCore.QByteArray|None: ... + def devicePixelRatio(self) -> float: ... + def determinant(self) -> float: ... + def deviceRect(self) -> QtCore.QRect: ... + def viewportRect(self) -> QtCore.QRect: ... + def projectionMatrix(self) -> QtGui.QMatrix4x4: ... + 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.DirtyState': ... + + class GraphicsPipelineState(PyQt6.sip.simplewrapper): + + class PolygonMode(enum.Enum): + Fill = ... # type: QSGMaterialShader.GraphicsPipelineState.PolygonMode + Line = ... # type: QSGMaterialShader.GraphicsPipelineState.PolygonMode + + class CullMode(enum.Enum): + CullNone = ... # type: QSGMaterialShader.GraphicsPipelineState.CullMode + CullFront = ... # type: QSGMaterialShader.GraphicsPipelineState.CullMode + CullBack = ... # type: QSGMaterialShader.GraphicsPipelineState.CullMode + + class ColorMaskComponent(enum.Flag): + R = ... # type: QSGMaterialShader.GraphicsPipelineState.ColorMaskComponent + G = ... # type: QSGMaterialShader.GraphicsPipelineState.ColorMaskComponent + B = ... # type: QSGMaterialShader.GraphicsPipelineState.ColorMaskComponent + A = ... # type: QSGMaterialShader.GraphicsPipelineState.ColorMaskComponent + + class BlendOp(enum.Enum): + Add = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendOp + Subtract = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendOp + ReverseSubtract = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendOp + Min = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendOp + Max = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendOp + + class BlendFactor(enum.Enum): + Zero = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + One = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + SrcColor = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + OneMinusSrcColor = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + DstColor = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + OneMinusDstColor = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + SrcAlpha = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + OneMinusSrcAlpha = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + DstAlpha = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + OneMinusDstAlpha = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + ConstantColor = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + OneMinusConstantColor = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + ConstantAlpha = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + OneMinusConstantAlpha = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + SrcAlphaSaturate = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + Src1Color = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + OneMinusSrc1Color = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + Src1Alpha = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + OneMinusSrc1Alpha = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor + + blendConstant = ... # type: QtGui.QColor|QtCore.Qt.GlobalColor|int + blendEnable = ... # type: bool + colorWrite = ... # type: 'QSGMaterialShader.GraphicsPipelineState.ColorMaskComponent' + cullMode = ... # type: 'QSGMaterialShader.GraphicsPipelineState.CullMode' + dstAlpha = ... # type: 'QSGMaterialShader.GraphicsPipelineState.BlendFactor' + dstColor = ... # type: 'QSGMaterialShader.GraphicsPipelineState.BlendFactor' + opAlpha = ... # type: 'QSGMaterialShader.GraphicsPipelineState.BlendOp' + opColor = ... # type: 'QSGMaterialShader.GraphicsPipelineState.BlendOp' + polygonMode = ... # type: 'QSGMaterialShader.GraphicsPipelineState.PolygonMode' + separateBlendFactors = ... # type: bool + srcAlpha = ... # type: 'QSGMaterialShader.GraphicsPipelineState.BlendFactor' + srcColor = ... # type: 'QSGMaterialShader.GraphicsPipelineState.BlendFactor' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSGMaterialShader.GraphicsPipelineState') -> None: ... + + def __init__(self) -> None: ... + + @typing.overload + def setShaderFileName(self, stage: 'QSGMaterialShader.Stage', filename: str|None) -> None: ... + @typing.overload + def setShaderFileName(self, stage: 'QSGMaterialShader.Stage', filename: str|None, viewCount: int) -> None: ... + def combinedImageSamplerCount(self, binding: int) -> int: ... + def setFlags(self, flags: 'QSGMaterialShader.Flag') -> None: ... + def setFlag(self, flags: 'QSGMaterialShader.Flag', on: bool = ...) -> None: ... + def flags(self) -> 'QSGMaterialShader.Flag': ... + def updateGraphicsPipelineState(self, state: 'QSGMaterialShader.RenderState', ps: 'QSGMaterialShader.GraphicsPipelineState|None', newMaterial: QSGMaterial|None, oldMaterial: QSGMaterial|None) -> bool: ... + def updateSampledImage(self, state: 'QSGMaterialShader.RenderState', binding: int, newMaterial: QSGMaterial|None, oldMaterial: QSGMaterial|None) -> 'QSGTexture|None': ... + def updateUniformData(self, state: 'QSGMaterialShader.RenderState', newMaterial: QSGMaterial|None, oldMaterial: QSGMaterial|None) -> bool: ... + + +class QSGMaterialType(PyQt6.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: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> 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(PyQt6.sip.simplewrapper): + + class RenderMode(enum.Enum): + RenderMode2D = ... # type: QSGRendererInterface.RenderMode + RenderMode2DNoDepthBuffer = ... # type: QSGRendererInterface.RenderMode + RenderMode3D = ... # type: QSGRendererInterface.RenderMode + + class ShaderSourceType(enum.Flag): + ShaderSourceString = ... # type: QSGRendererInterface.ShaderSourceType + ShaderSourceFile = ... # type: QSGRendererInterface.ShaderSourceType + ShaderByteCode = ... # type: QSGRendererInterface.ShaderSourceType + + class ShaderCompilationType(enum.Flag): + RuntimeCompilation = ... # type: QSGRendererInterface.ShaderCompilationType + OfflineCompilation = ... # type: QSGRendererInterface.ShaderCompilationType + + class ShaderType(enum.Enum): + UnknownShadingLanguage = ... # type: QSGRendererInterface.ShaderType + GLSL = ... # type: QSGRendererInterface.ShaderType + HLSL = ... # type: QSGRendererInterface.ShaderType + RhiShader = ... # type: QSGRendererInterface.ShaderType + + class Resource(enum.Enum): + DeviceResource = ... # type: QSGRendererInterface.Resource + CommandQueueResource = ... # type: QSGRendererInterface.Resource + CommandListResource = ... # type: QSGRendererInterface.Resource + PainterResource = ... # type: QSGRendererInterface.Resource + RhiResource = ... # type: QSGRendererInterface.Resource + PhysicalDeviceResource = ... # type: QSGRendererInterface.Resource + OpenGLContextResource = ... # type: QSGRendererInterface.Resource + DeviceContextResource = ... # type: QSGRendererInterface.Resource + CommandEncoderResource = ... # type: QSGRendererInterface.Resource + VulkanInstanceResource = ... # type: QSGRendererInterface.Resource + RenderPassResource = ... # type: QSGRendererInterface.Resource + RhiSwapchainResource = ... # type: QSGRendererInterface.Resource + RhiRedirectCommandBuffer = ... # type: QSGRendererInterface.Resource + RhiRedirectRenderTarget = ... # type: QSGRendererInterface.Resource + RedirectPaintDevice = ... # type: QSGRendererInterface.Resource + GraphicsQueueFamilyIndexResource = ... # type: QSGRendererInterface.Resource + GraphicsQueueIndexResource = ... # type: QSGRendererInterface.Resource + + class GraphicsApi(enum.Enum): + Unknown = ... # type: QSGRendererInterface.GraphicsApi + Software = ... # type: QSGRendererInterface.GraphicsApi + OpenGL = ... # type: QSGRendererInterface.GraphicsApi + OpenVG = ... # type: QSGRendererInterface.GraphicsApi + OpenGLRhi = ... # type: QSGRendererInterface.GraphicsApi + Direct3D11Rhi = ... # type: QSGRendererInterface.GraphicsApi + VulkanRhi = ... # type: QSGRendererInterface.GraphicsApi + MetalRhi = ... # type: QSGRendererInterface.GraphicsApi + NullRhi = ... # type: QSGRendererInterface.GraphicsApi + Direct3D11 = ... # type: QSGRendererInterface.GraphicsApi + Vulkan = ... # type: QSGRendererInterface.GraphicsApi + Metal = ... # type: QSGRendererInterface.GraphicsApi + Direct3D12 = ... # type: QSGRendererInterface.GraphicsApi + Null = ... # type: QSGRendererInterface.GraphicsApi + + @staticmethod + def isApiRhiBased(api: 'QSGRendererInterface.GraphicsApi') -> bool: ... + def shaderSourceType(self) -> 'QSGRendererInterface.ShaderSourceType': ... + def shaderCompilationType(self) -> 'QSGRendererInterface.ShaderCompilationType': ... + def shaderType(self) -> 'QSGRendererInterface.ShaderType': ... + @typing.overload + def getResource(self, window: QQuickWindow|None, resource: 'QSGRendererInterface.Resource') -> PyQt6.sip.voidptr: ... + @typing.overload + def getResource(self, window: QQuickWindow|None, resource: str) -> PyQt6.sip.voidptr: ... + def graphicsApi(self) -> 'QSGRendererInterface.GraphicsApi': ... + + +class QSGRenderNode(QSGNode): + + class RenderingFlag(enum.Flag): + BoundedRectRendering = ... # type: QSGRenderNode.RenderingFlag + DepthAwareRendering = ... # type: QSGRenderNode.RenderingFlag + OpaqueRendering = ... # type: QSGRenderNode.RenderingFlag + + class StateFlag(enum.Flag): + 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 RenderState(PyQt6.sip.simplewrapper): + + def get(self, state: str) -> PyQt6.sip.voidptr: ... + def clipRegion(self) -> QtGui.QRegion|None: ... + def stencilEnabled(self) -> bool: ... + def stencilValue(self) -> int: ... + def scissorEnabled(self) -> bool: ... + def scissorRect(self) -> QtCore.QRect: ... + def projectionMatrix(self) -> QtGui.QMatrix4x4|None: ... + + def __init__(self) -> None: ... + + def projectionMatrix(self) -> QtGui.QMatrix4x4|None: ... + def prepare(self) -> None: ... + def inheritedOpacity(self) -> float: ... + def clipList(self) -> QSGClipNode|None: ... + def matrix(self) -> QtGui.QMatrix4x4|None: ... + def rect(self) -> QtCore.QRectF: ... + def flags(self) -> 'QSGRenderNode.RenderingFlag': ... + def releaseResources(self) -> None: ... + def render(self, state: 'QSGRenderNode.RenderState|None') -> None: ... + def changedStates(self) -> 'QSGRenderNode.StateFlag': ... + + +class QSGSimpleRectNode(QSGGeometryNode): + + @typing.overload + def __init__(self, rect: QtCore.QRectF, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + @typing.overload + def __init__(self) -> None: ... + + def color(self) -> QtGui.QColor: ... + def setColor(self, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> 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(enum.Flag): + NoTransform = ... # type: QSGSimpleTextureNode.TextureCoordinatesTransformFlag + MirrorHorizontally = ... # type: QSGSimpleTextureNode.TextureCoordinatesTransformFlag + MirrorVertically = ... # type: QSGSimpleTextureNode.TextureCoordinatesTransformFlag + + 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.TextureCoordinatesTransformFlag': ... + def setTextureCoordinatesTransform(self, mode: 'QSGSimpleTextureNode.TextureCoordinatesTransformFlag') -> None: ... + def filtering(self) -> 'QSGTexture.Filtering': ... + def setFiltering(self, filtering: 'QSGTexture.Filtering') -> None: ... + def texture(self) -> 'QSGTexture|None': ... + def setTexture(self, texture: 'QSGTexture|None') -> 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 QSGTextNode(QSGTransformNode): + + class TextStyle(enum.Enum): + Normal = ... # type: QSGTextNode.TextStyle + Outline = ... # type: QSGTextNode.TextStyle + Raised = ... # type: QSGTextNode.TextStyle + Sunken = ... # type: QSGTextNode.TextStyle + + class RenderType(enum.Enum): + QtRendering = ... # type: QSGTextNode.RenderType + NativeRendering = ... # type: QSGTextNode.RenderType + CurveRendering = ... # type: QSGTextNode.RenderType + + def viewport(self) -> QtCore.QRectF: ... + def setViewport(self, viewport: QtCore.QRectF) -> None: ... + def clear(self) -> None: ... + def filtering(self) -> 'QSGTexture.Filtering': ... + def setFiltering(self, a0: 'QSGTexture.Filtering') -> None: ... + def renderTypeQuality(self) -> int: ... + def setRenderTypeQuality(self, renderTypeQuality: int) -> None: ... + def renderType(self) -> 'QSGTextNode.RenderType': ... + def setRenderType(self, renderType: 'QSGTextNode.RenderType') -> None: ... + def selectionTextColor(self) -> QtGui.QColor: ... + def setSelectionTextColor(self, selectionTextColor: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + def selectionColor(self) -> QtGui.QColor: ... + def setSelectionColor(self, selectionColor: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + def linkColor(self) -> QtGui.QColor: ... + def setLinkColor(self, linkColor: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + def styleColor(self) -> QtGui.QColor: ... + def setStyleColor(self, styleColor: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + def textStyle(self) -> 'QSGTextNode.TextStyle': ... + def setTextStyle(self, textStyle: 'QSGTextNode.TextStyle') -> None: ... + def color(self) -> QtGui.QColor: ... + def setColor(self, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + def addTextLayout(self, position: QtCore.QPointF, layout: QtGui.QTextLayout|None, selectionStart: int = ..., selectionCount: int = ..., lineStart: int = ..., lineCount: int = ...) -> None: ... + def addTextDocument(self, position: QtCore.QPointF, document: QtGui.QTextDocument|None, selectionStart: int = ..., selectionCount: int = ...) -> None: ... + + +class QSGTexture(QtCore.QObject): + + class AnisotropyLevel(enum.Enum): + AnisotropyNone = ... # type: QSGTexture.AnisotropyLevel + Anisotropy2x = ... # type: QSGTexture.AnisotropyLevel + Anisotropy4x = ... # type: QSGTexture.AnisotropyLevel + Anisotropy8x = ... # type: QSGTexture.AnisotropyLevel + Anisotropy16x = ... # type: QSGTexture.AnisotropyLevel + + class Filtering(enum.Enum): + None_ = ... # type: QSGTexture.Filtering + Nearest = ... # type: QSGTexture.Filtering + Linear = ... # type: QSGTexture.Filtering + + class WrapMode(enum.Enum): + Repeat = ... # type: QSGTexture.WrapMode + ClampToEdge = ... # type: QSGTexture.WrapMode + MirroredRepeat = ... # type: QSGTexture.WrapMode + + def __init__(self) -> None: ... + + def comparisonKey(self) -> int: ... + 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 isAtlasTexture(self) -> bool: ... + def normalizedTextureSubRect(self) -> QtCore.QRectF: ... + def hasMipmaps(self) -> bool: ... + def hasAlphaChannel(self) -> bool: ... + def textureSize(self) -> QtCore.QSize: ... + + +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|None: ... + def setTexture(self, texture: QSGTexture|None) -> None: ... + def compare(self, other: QSGMaterial|None) -> int: ... + def createShader(self, renderMode: QSGRendererInterface.RenderMode) -> QSGMaterialShader|None: ... + def type(self) -> QSGMaterialType|None: ... + + +class QSGTextureMaterial(QSGOpaqueTextureMaterial): + + def __init__(self) -> None: ... + + def createShader(self, renderMode: QSGRendererInterface.RenderMode) -> QSGMaterialShader|None: ... + def type(self) -> QSGMaterialType|None: ... + + +class QSGTextureProvider(QtCore.QObject): + + def __init__(self) -> None: ... + + textureChanged: typing.ClassVar[QtCore.pyqtSignal] + def texture(self) -> QSGTexture|None: ... + + +class QSGVertexColorMaterial(QSGMaterial): + + def __init__(self) -> None: ... + + def createShader(self, renderMode: QSGRendererInterface.RenderMode) -> QSGMaterialShader|None: ... + def type(self) -> QSGMaterialType|None: ... + def compare(self, other: QSGMaterial|None) -> int: ... diff --git a/typings/PyQt6/QtQuick3D.pyi b/typings/PyQt6/QtQuick3D.pyi new file mode 100644 index 00000000..67e82c4c --- /dev/null +++ b/typings/PyQt6/QtQuick3D.pyi @@ -0,0 +1,224 @@ +# The PEP 484 type hints stub file for the QtQuick3D module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui +from PyQt6 import QtNetwork +from PyQt6 import QtQml + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QQuick3D(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuick3D') -> None: ... + + @staticmethod + def idealSurfaceFormat(samples: int = ...) -> QtGui.QSurfaceFormat: ... + + +class QQuick3DObject(QtCore.QObject, QtQml.QQmlParserStatus): + + def __init__(self, parent: 'QQuick3DObject|None' = ...) -> None: ... + + def componentComplete(self) -> None: ... + def classBegin(self) -> None: ... + stateChanged: typing.ClassVar[QtCore.pyqtSignal] + def setParentItem(self, parentItem: 'QQuick3DObject|None') -> None: ... + def parentItem(self) -> 'QQuick3DObject|None': ... + def setState(self, state: str|None) -> None: ... + def state(self) -> str: ... + + +class QQuick3DGeometry(QQuick3DObject): + + class PrimitiveType(enum.Enum): + Points = ... # type: QQuick3DGeometry.PrimitiveType + LineStrip = ... # type: QQuick3DGeometry.PrimitiveType + Lines = ... # type: QQuick3DGeometry.PrimitiveType + TriangleStrip = ... # type: QQuick3DGeometry.PrimitiveType + TriangleFan = ... # type: QQuick3DGeometry.PrimitiveType + Triangles = ... # type: QQuick3DGeometry.PrimitiveType + + class Attribute(PyQt6.sip.simplewrapper): + + class ComponentType(enum.Enum): + U16Type = ... # type: QQuick3DGeometry.Attribute.ComponentType + U32Type = ... # type: QQuick3DGeometry.Attribute.ComponentType + F32Type = ... # type: QQuick3DGeometry.Attribute.ComponentType + I32Type = ... # type: QQuick3DGeometry.Attribute.ComponentType + + class Semantic(enum.Enum): + IndexSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic + PositionSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic + NormalSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic + TexCoordSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic + TangentSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic + BinormalSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic + JointSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic + WeightSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic + ColorSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic + TargetPositionSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic + TargetNormalSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic + TargetTangentSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic + TargetBinormalSemantic = ... # type: QQuick3DGeometry.Attribute.Semantic + TexCoord1Semantic = ... # type: QQuick3DGeometry.Attribute.Semantic + TexCoord0Semantic = ... # type: QQuick3DGeometry.Attribute.Semantic + + componentType = ... # type: 'QQuick3DGeometry.Attribute.ComponentType' + offset = ... # type: int + semantic = ... # type: 'QQuick3DGeometry.Attribute.Semantic' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuick3DGeometry.Attribute') -> None: ... + + class TargetAttribute(PyQt6.sip.simplewrapper): + + attr = ... # type: 'QQuick3DGeometry.Attribute' + stride = ... # type: int + targetId = ... # type: int + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QQuick3DGeometry.TargetAttribute') -> None: ... + + def __init__(self, parent: QQuick3DObject|None = ...) -> None: ... + + @typing.overload + def addTargetAttribute(self, att: 'QQuick3DGeometry.TargetAttribute') -> None: ... + @typing.overload + def addTargetAttribute(self, targetId: int, semantic: 'QQuick3DGeometry.Attribute.Semantic', offset: int, stride: int = ...) -> None: ... + def targetAttributeCount(self) -> int: ... + def targetAttribute(self, index: int) -> 'QQuick3DGeometry.TargetAttribute': ... + @typing.overload + def setTargetData(self, offset: int, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + @typing.overload + def setTargetData(self, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def targetData(self) -> QtCore.QByteArray: ... + def addSubset(self, offset: int, count: int, boundsMin: QtGui.QVector3D, boundsMax: QtGui.QVector3D, name: str|None = ...) -> None: ... + def subsetName(self, subset: int) -> str: ... + def subsetOffset(self, subset: int) -> int: ... + def subsetBoundsMax(self, subset: int) -> QtGui.QVector3D: ... + def subsetBoundsMin(self, subset: int) -> QtGui.QVector3D: ... + @typing.overload + def subsetCount(self, subset: int) -> int: ... + @typing.overload + def subsetCount(self) -> int: ... + def indexData(self) -> QtCore.QByteArray: ... + def vertexData(self) -> QtCore.QByteArray: ... + def clear(self) -> None: ... + @typing.overload + def addAttribute(self, semantic: 'QQuick3DGeometry.Attribute.Semantic', offset: int, componentType: 'QQuick3DGeometry.Attribute.ComponentType') -> None: ... + @typing.overload + def addAttribute(self, att: 'QQuick3DGeometry.Attribute') -> None: ... + def setPrimitiveType(self, type: 'QQuick3DGeometry.PrimitiveType') -> None: ... + def setBounds(self, min: QtGui.QVector3D, max: QtGui.QVector3D) -> None: ... + def setStride(self, stride: int) -> None: ... + @typing.overload + def setIndexData(self, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + @typing.overload + def setIndexData(self, offset: int, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + @typing.overload + def setVertexData(self, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + @typing.overload + def setVertexData(self, offset: int, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def stride(self) -> int: ... + def boundsMax(self) -> QtGui.QVector3D: ... + def boundsMin(self) -> QtGui.QVector3D: ... + def primitiveType(self) -> 'QQuick3DGeometry.PrimitiveType': ... + def attribute(self, index: int) -> 'QQuick3DGeometry.Attribute': ... + def attributeCount(self) -> int: ... + + +class QQuick3DTextureData(QQuick3DObject): + + class Format(enum.Enum): + None_ = ... # type: QQuick3DTextureData.Format + RGBA8 = ... # type: QQuick3DTextureData.Format + RGBA16F = ... # type: QQuick3DTextureData.Format + RGBA32F = ... # type: QQuick3DTextureData.Format + RGBE8 = ... # type: QQuick3DTextureData.Format + R8 = ... # type: QQuick3DTextureData.Format + R16 = ... # type: QQuick3DTextureData.Format + R16F = ... # type: QQuick3DTextureData.Format + R32F = ... # type: QQuick3DTextureData.Format + BC1 = ... # type: QQuick3DTextureData.Format + BC2 = ... # type: QQuick3DTextureData.Format + BC3 = ... # type: QQuick3DTextureData.Format + BC4 = ... # type: QQuick3DTextureData.Format + BC5 = ... # type: QQuick3DTextureData.Format + BC6H = ... # type: QQuick3DTextureData.Format + BC7 = ... # type: QQuick3DTextureData.Format + DXT1_RGBA = ... # type: QQuick3DTextureData.Format + DXT1_RGB = ... # type: QQuick3DTextureData.Format + DXT3_RGBA = ... # type: QQuick3DTextureData.Format + DXT5_RGBA = ... # type: QQuick3DTextureData.Format + ETC2_RGB8 = ... # type: QQuick3DTextureData.Format + ETC2_RGB8A1 = ... # type: QQuick3DTextureData.Format + ETC2_RGBA8 = ... # type: QQuick3DTextureData.Format + ASTC_4x4 = ... # type: QQuick3DTextureData.Format + ASTC_5x4 = ... # type: QQuick3DTextureData.Format + ASTC_5x5 = ... # type: QQuick3DTextureData.Format + ASTC_6x5 = ... # type: QQuick3DTextureData.Format + ASTC_6x6 = ... # type: QQuick3DTextureData.Format + ASTC_8x5 = ... # type: QQuick3DTextureData.Format + ASTC_8x6 = ... # type: QQuick3DTextureData.Format + ASTC_8x8 = ... # type: QQuick3DTextureData.Format + ASTC_10x5 = ... # type: QQuick3DTextureData.Format + ASTC_10x6 = ... # type: QQuick3DTextureData.Format + ASTC_10x8 = ... # type: QQuick3DTextureData.Format + ASTC_10x10 = ... # type: QQuick3DTextureData.Format + ASTC_12x10 = ... # type: QQuick3DTextureData.Format + ASTC_12x12 = ... # type: QQuick3DTextureData.Format + + def __init__(self, parent: QQuick3DObject|None = ...) -> None: ... + + def setDepth(self, depth: int) -> None: ... + def depth(self) -> int: ... + def setHasTransparency(self, hasTransparency: bool) -> None: ... + def hasTransparency(self) -> bool: ... + def setFormat(self, format: 'QQuick3DTextureData.Format') -> None: ... + def format(self) -> 'QQuick3DTextureData.Format': ... + def setSize(self, size: QtCore.QSize) -> None: ... + def size(self) -> QtCore.QSize: ... + def setTextureData(self, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def textureData(self) -> QtCore.QByteArray: ... diff --git a/typings/PyQt6/QtQuickWidgets.pyi b/typings/PyQt6/QtQuickWidgets.pyi new file mode 100644 index 00000000..80be5971 --- /dev/null +++ b/typings/PyQt6/QtQuickWidgets.pyi @@ -0,0 +1,107 @@ +# The PEP 484 type hints stub file for the QtQuickWidgets module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui +from PyQt6 import QtNetwork +from PyQt6 import QtQml +from PyQt6 import QtQuick +from PyQt6 import QtWidgets + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QQuickWidget(QtWidgets.QWidget): + + class Status(enum.Enum): + Null = ... # type: QQuickWidget.Status + Ready = ... # type: QQuickWidget.Status + Loading = ... # type: QQuickWidget.Status + Error = ... # type: QQuickWidget.Status + + class ResizeMode(enum.Enum): + SizeViewToRootObject = ... # type: QQuickWidget.ResizeMode + SizeRootObjectToView = ... # type: QQuickWidget.ResizeMode + + @typing.overload + def __init__(self, parent: QtWidgets.QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, engine: QtQml.QQmlEngine|None, parent: QtWidgets.QWidget|None) -> None: ... + @typing.overload + def __init__(self, source: QtCore.QUrl, parent: QtWidgets.QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, uri: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, typeName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, parent: QtWidgets.QWidget|None = ...) -> None: ... + + def loadFromModule(self, uri: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, typeName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + def setInitialProperties(self, initialProperties: dict[str|None, typing.Any]) -> None: ... + def quickWindow(self) -> QtQuick.QQuickWindow|None: ... + def setClearColor(self, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + def grabFramebuffer(self) -> QtGui.QImage: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def paintEvent(self, event: QtGui.QPaintEvent|None) -> None: ... + def dropEvent(self, a0: QtGui.QDropEvent|None) -> None: ... + def dragLeaveEvent(self, a0: QtGui.QDragLeaveEvent|None) -> None: ... + def dragMoveEvent(self, a0: QtGui.QDragMoveEvent|None) -> None: ... + def dragEnterEvent(self, a0: QtGui.QDragEnterEvent|None) -> None: ... + def focusOutEvent(self, event: QtGui.QFocusEvent|None) -> None: ... + def focusInEvent(self, event: QtGui.QFocusEvent|None) -> None: ... + def event(self, a0: QtCore.QEvent|None) -> bool: ... + def wheelEvent(self, a0: QtGui.QWheelEvent|None) -> None: ... + def hideEvent(self, a0: QtGui.QHideEvent|None) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent|None) -> None: ... + def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def keyReleaseEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def timerEvent(self, a0: QtCore.QTimerEvent|None) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + sceneGraphError: typing.ClassVar[QtCore.pyqtSignal] + statusChanged: typing.ClassVar[QtCore.pyqtSignal] + 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) -> 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|None: ... + def rootContext(self) -> QtQml.QQmlContext|None: ... + def engine(self) -> QtQml.QQmlEngine|None: ... + def source(self) -> QtCore.QUrl: ... diff --git a/typings/PyQt6/QtRemoteObjects.pyi b/typings/PyQt6/QtRemoteObjects.pyi new file mode 100644 index 00000000..fd4b0bb7 --- /dev/null +++ b/typings/PyQt6/QtRemoteObjects.pyi @@ -0,0 +1,206 @@ +# The PEP 484 type hints stub file for the QtRemoteObjects module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtNetwork + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QRemoteObjectSourceLocationInfo(PyQt6.sip.simplewrapper): + + hostUrl = ... # type: QtCore.QUrl + typeName = ... # type: str|None + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, typeName_: str|None, hostUrl_: QtCore.QUrl) -> None: ... + @typing.overload + def __init__(self, a0: 'QRemoteObjectSourceLocationInfo') -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + +class QtRemoteObjects(PyQt6.sip.simplewrapper): + + class InitialAction(enum.Enum): + FetchRootSize = ... # type: QtRemoteObjects.InitialAction + PrefetchData = ... # type: QtRemoteObjects.InitialAction + + +class QAbstractItemModelReplica(QtCore.QAbstractItemModel): + + initialized: typing.ClassVar[QtCore.pyqtSignal] + 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) -> dict[int, QtCore.QByteArray]: ... + def availableRoles(self) -> list[int]: ... + def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ... + 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|None: ... + + +class QRemoteObjectReplica(QtCore.QObject): + + class State(enum.Enum): + Uninitialized = ... # type: QRemoteObjectReplica.State + Default = ... # type: QRemoteObjectReplica.State + Valid = ... # type: QRemoteObjectReplica.State + Suspect = ... # type: QRemoteObjectReplica.State + SignatureMismatch = ... # type: QRemoteObjectReplica.State + + notified: typing.ClassVar[QtCore.pyqtSignal] + stateChanged: typing.ClassVar[QtCore.pyqtSignal] + initialized: typing.ClassVar[QtCore.pyqtSignal] + def setNode(self, node: 'QRemoteObjectNode|None') -> None: ... + def node(self) -> 'QRemoteObjectNode|None': ... + 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: QtCore.QObject|None = ...) -> None: ... + + def restoreProperties(self, repName: str|None, repSig: QtCore.QByteArray|bytes|bytearray|memoryview) -> list[typing.Any]: ... + def saveProperties(self, repName: str|None, repSig: QtCore.QByteArray|bytes|bytearray|memoryview, values: collections.abc.Iterable[typing.Any]) -> None: ... + + +class QRemoteObjectNode(QtCore.QObject): + + class ErrorCode(enum.Enum): + 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 + SocketAccessError = ... # type: QRemoteObjectNode.ErrorCode + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, registryAddress: QtCore.QUrl, parent: QtCore.QObject|None = ...) -> None: ... + + def timerEvent(self, a0: QtCore.QTimerEvent|None) -> None: ... + heartbeatIntervalChanged: typing.ClassVar[QtCore.pyqtSignal] + error: typing.ClassVar[QtCore.pyqtSignal] + remoteObjectRemoved: typing.ClassVar[QtCore.pyqtSignal] + remoteObjectAdded: typing.ClassVar[QtCore.pyqtSignal] + def setHeartbeatInterval(self, interval: int) -> None: ... + def heartbeatInterval(self) -> int: ... + def lastError(self) -> 'QRemoteObjectNode.ErrorCode': ... + def setPersistedStore(self, persistedStore: QRemoteObjectAbstractPersistedStore|None) -> None: ... + def persistedStore(self) -> QRemoteObjectAbstractPersistedStore|None: ... + def registry(self) -> 'QRemoteObjectRegistry|None': ... + def waitForRegistry(self, timeout: int = ...) -> bool: ... + def setRegistryUrl(self, registryAddress: QtCore.QUrl) -> bool: ... + def registryUrl(self) -> QtCore.QUrl: ... + def acquireModel(self, name: str|None, action: QtRemoteObjects.InitialAction = ..., rolesHint: collections.abc.Iterable[int] = ...) -> QAbstractItemModelReplica|None: ... + def acquireDynamic(self, name: str|None) -> QRemoteObjectDynamicReplica|None: ... + def instances(self, typeName: str) -> list[str]: ... + def setName(self, name: str|None) -> None: ... + def addClientSideConnection(self, ioDevice: QtCore.QIODevice|None) -> None: ... + def connectToNode(self, address: QtCore.QUrl) -> bool: ... + + +class QRemoteObjectHostBase(QRemoteObjectNode): + + class AllowedSchemas(enum.Enum): + 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) -> None: ... + def disableRemoting(self, remoteObject: QtCore.QObject|None) -> bool: ... + @typing.overload + def enableRemoting(self, object: QtCore.QObject|None, name: str|None = ...) -> bool: ... + @typing.overload + def enableRemoting(self, model: QtCore.QAbstractItemModel|None, name: str|None, roles: collections.abc.Iterable[int], selectionModel: QtCore.QItemSelectionModel|None = ...) -> bool: ... + def setName(self, name: str|None) -> None: ... + + +class QRemoteObjectHost(QRemoteObjectHostBase): + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, address: QtCore.QUrl, registryAddress: QtCore.QUrl = ..., allowedSchemas: QRemoteObjectHostBase.AllowedSchemas = ..., parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, address: QtCore.QUrl, parent: QtCore.QObject|None) -> None: ... + + @staticmethod + def setLocalServerOptions(options: QtNetwork.QLocalServer.SocketOption) -> None: ... + hostUrlChanged: typing.ClassVar[QtCore.pyqtSignal] + 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: QtCore.QObject|None = ...) -> None: ... + + def setRegistryUrl(self, registryUrl: QtCore.QUrl) -> bool: ... + + +class QRemoteObjectRegistry(QRemoteObjectReplica): + + remoteObjectRemoved: typing.ClassVar[QtCore.pyqtSignal] + remoteObjectAdded: typing.ClassVar[QtCore.pyqtSignal] + def sourceLocations(self) -> dict[str, QRemoteObjectSourceLocationInfo]: ... diff --git a/typings/PyQt6/QtSensors.pyi b/typings/PyQt6/QtSensors.pyi new file mode 100644 index 00000000..ec21ac0b --- /dev/null +++ b/typings/PyQt6/QtSensors.pyi @@ -0,0 +1,601 @@ +# The PEP 484 type hints stub file for the QtSensors module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 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[collections.abc.Callable[..., Any], 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(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSensorFilter') -> None: ... + + def filter(self, reading: QSensorReading|None) -> bool: ... + + +class QAccelerometerFilter(QSensorFilter): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QAccelerometerFilter') -> None: ... + + def filter(self, reading: QAccelerometerReading|None) -> bool: ... + + +class QSensor(QtCore.QObject): + + class AxesOrientationMode(enum.Enum): + FixedOrientation = ... # type: QSensor.AxesOrientationMode + AutomaticOrientation = ... # type: QSensor.AxesOrientationMode + UserOrientation = ... # type: QSensor.AxesOrientationMode + + class Feature(enum.Enum): + 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: QtCore.QByteArray|bytes|bytearray|memoryview, parent: QtCore.QObject|None = ...) -> None: ... + + identifierChanged: typing.ClassVar[QtCore.pyqtSignal] + bufferSizeChanged: typing.ClassVar[QtCore.pyqtSignal] + efficientBufferSizeChanged: typing.ClassVar[QtCore.pyqtSignal] + maxBufferSizeChanged: typing.ClassVar[QtCore.pyqtSignal] + userOrientationChanged: typing.ClassVar[QtCore.pyqtSignal] + currentOrientationChanged: typing.ClassVar[QtCore.pyqtSignal] + axesOrientationModeChanged: typing.ClassVar[QtCore.pyqtSignal] + skipDuplicatesChanged: typing.ClassVar[QtCore.pyqtSignal] + dataRateChanged: typing.ClassVar[QtCore.pyqtSignal] + alwaysOnChanged: typing.ClassVar[QtCore.pyqtSignal] + availableSensorsChanged: typing.ClassVar[QtCore.pyqtSignal] + sensorError: typing.ClassVar[QtCore.pyqtSignal] + readingChanged: typing.ClassVar[QtCore.pyqtSignal] + activeChanged: typing.ClassVar[QtCore.pyqtSignal] + busyChanged: typing.ClassVar[QtCore.pyqtSignal] + 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: QtCore.QByteArray|bytes|bytearray|memoryview) -> QtCore.QByteArray: ... + @staticmethod + def sensorsForType(type: QtCore.QByteArray|bytes|bytearray|memoryview) -> list[QtCore.QByteArray]: ... + @staticmethod + def sensorTypes() -> list[QtCore.QByteArray]: ... + def reading(self) -> QSensorReading|None: ... + def filters(self) -> list[QSensorFilter]: ... + def removeFilter(self, filter: QSensorFilter|None) -> None: ... + def addFilter(self, filter: QSensorFilter|None) -> None: ... + def error(self) -> int: ... + def description(self) -> str: ... + def setOutputRange(self, index: int) -> None: ... + def outputRange(self) -> int: ... + def outputRanges(self) -> list['qoutputrange']: ... + def setDataRate(self, rate: int) -> None: ... + def dataRate(self) -> int: ... + def availableDataRates(self) -> list[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: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def identifier(self) -> QtCore.QByteArray: ... + + +class QAccelerometer(QSensor): + + class AccelerationMode(enum.Enum): + Combined = ... # type: QAccelerometer.AccelerationMode + Gravity = ... # type: QAccelerometer.AccelerationMode + User = ... # type: QAccelerometer.AccelerationMode + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + accelerationModeChanged: typing.ClassVar[QtCore.pyqtSignal] + def reading(self) -> QAccelerometerReading|None: ... + def setAccelerationMode(self, accelerationMode: 'QAccelerometer.AccelerationMode') -> None: ... + def accelerationMode(self) -> 'QAccelerometer.AccelerationMode': ... + + +class QAmbientLightReading(QSensorReading): + + class LightLevel(enum.Enum): + 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|None) -> bool: ... + + +class QAmbientLightSensor(QSensor): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def reading(self) -> QAmbientLightReading|None: ... + + +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|None) -> bool: ... + + +class QAmbientTemperatureSensor(QSensor): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def reading(self) -> QAmbientTemperatureReading|None: ... + + +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|None) -> bool: ... + + +class QCompass(QSensor): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def reading(self) -> QCompassReading|None: ... + + +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|None) -> bool: ... + + +class QGyroscope(QSensor): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def reading(self) -> QGyroscopeReading|None: ... + + +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|None) -> bool: ... + + +class QHumiditySensor(QSensor): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def reading(self) -> QHumidityReading|None: ... + + +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|None) -> bool: ... + + +class QIRProximitySensor(QSensor): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def reading(self) -> QIRProximityReading|None: ... + + +class QLidReading(QSensorReading): + + frontLidChanged: typing.ClassVar[QtCore.pyqtSignal] + backLidChanged: typing.ClassVar[QtCore.pyqtSignal] + 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|None) -> bool: ... + + +class QLidSensor(QSensor): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def reading(self) -> QLidReading|None: ... + + +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|None) -> bool: ... + + +class QLightSensor(QSensor): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + fieldOfViewChanged: typing.ClassVar[QtCore.pyqtSignal] + def setFieldOfView(self, fieldOfView: float) -> None: ... + def fieldOfView(self) -> float: ... + def reading(self) -> QLightReading|None: ... + + +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|None) -> bool: ... + + +class QMagnetometer(QSensor): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + returnGeoValuesChanged: typing.ClassVar[QtCore.pyqtSignal] + def setReturnGeoValues(self, returnGeoValues: bool) -> None: ... + def returnGeoValues(self) -> bool: ... + def reading(self) -> QMagnetometerReading|None: ... + + +class QOrientationReading(QSensorReading): + + class Orientation(enum.Enum): + 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|None) -> bool: ... + + +class QOrientationSensor(QSensor): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def reading(self) -> QOrientationReading|None: ... + + +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|None) -> bool: ... + + +class QPressureSensor(QSensor): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def reading(self) -> QPressureReading|None: ... + + +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|None) -> bool: ... + + +class QProximitySensor(QSensor): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def reading(self) -> QProximityReading|None: ... + + +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|None) -> bool: ... + + +class QRotationSensor(QSensor): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + hasZChanged: typing.ClassVar[QtCore.pyqtSignal] + def setHasZ(self, hasZ: bool) -> None: ... + def hasZ(self) -> bool: ... + def reading(self) -> QRotationReading|None: ... + + +class qoutputrange(PyQt6.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(enum.Enum): + 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|None) -> bool: ... + + +class QTapSensor(QSensor): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + returnDoubleTapEventsChanged: typing.ClassVar[QtCore.pyqtSignal] + def setReturnDoubleTapEvents(self, returnDoubleTapEvents: bool) -> None: ... + def returnDoubleTapEvents(self) -> bool: ... + def reading(self) -> QTapReading|None: ... + + +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|None) -> bool: ... + + +class QTiltSensor(QSensor): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def calibrate(self) -> None: ... + def reading(self) -> QTiltReading|None: ... diff --git a/typings/PyQt6/QtSerialPort.pyi b/typings/PyQt6/QtSerialPort.pyi new file mode 100644 index 00000000..63822f26 --- /dev/null +++ b/typings/PyQt6/QtSerialPort.pyi @@ -0,0 +1,192 @@ +# The PEP 484 type hints stub file for the QtSerialPort module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 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[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QSerialPort(QtCore.QIODevice): + + class SerialPortError(enum.Enum): + NoError = ... # type: QSerialPort.SerialPortError + DeviceNotFoundError = ... # type: QSerialPort.SerialPortError + PermissionError = ... # type: QSerialPort.SerialPortError + OpenError = ... # 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 PinoutSignal(enum.Flag): + NoSignal = ... # 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(enum.Enum): + NoFlowControl = ... # type: QSerialPort.FlowControl + HardwareControl = ... # type: QSerialPort.FlowControl + SoftwareControl = ... # type: QSerialPort.FlowControl + + class StopBits(enum.Enum): + OneStop = ... # type: QSerialPort.StopBits + OneAndHalfStop = ... # type: QSerialPort.StopBits + TwoStop = ... # type: QSerialPort.StopBits + + class Parity(enum.Enum): + NoParity = ... # type: QSerialPort.Parity + EvenParity = ... # type: QSerialPort.Parity + OddParity = ... # type: QSerialPort.Parity + SpaceParity = ... # type: QSerialPort.Parity + MarkParity = ... # type: QSerialPort.Parity + + class DataBits(enum.Enum): + Data5 = ... # type: QSerialPort.DataBits + Data6 = ... # type: QSerialPort.DataBits + Data7 = ... # type: QSerialPort.DataBits + Data8 = ... # type: QSerialPort.DataBits + + class BaudRate(enum.Enum): + 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 + + class Direction(enum.Flag): + Input = ... # type: QSerialPort.Direction + Output = ... # type: QSerialPort.Direction + AllDirections = ... # type: QSerialPort.Direction + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, name: str|None, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, info: 'QSerialPortInfo', parent: QtCore.QObject|None = ...) -> None: ... + + def setWriteBufferSize(self, size: int) -> None: ... + def writeBufferSize(self) -> int: ... + settingsRestoredOnCloseChanged: typing.ClassVar[QtCore.pyqtSignal] + def setSettingsRestoredOnClose(self, restore: bool) -> None: ... + def settingsRestoredOnClose(self) -> bool: ... + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + breakEnabledChanged: typing.ClassVar[QtCore.pyqtSignal] + def isBreakEnabled(self) -> bool: ... + def handle(self) -> PyQt6.sip.voidptr: ... + def writeData(self, data: PyQt6.sip.array[bytes]) -> int: ... + def readLineData(self, maxlen: int) -> bytes: ... + def readData(self, maxlen: int) -> bytes: ... + requestToSendChanged: typing.ClassVar[QtCore.pyqtSignal] + dataTerminalReadyChanged: typing.ClassVar[QtCore.pyqtSignal] + flowControlChanged: typing.ClassVar[QtCore.pyqtSignal] + stopBitsChanged: typing.ClassVar[QtCore.pyqtSignal] + parityChanged: typing.ClassVar[QtCore.pyqtSignal] + dataBitsChanged: typing.ClassVar[QtCore.pyqtSignal] + baudRateChanged: typing.ClassVar[QtCore.pyqtSignal] + def setBreakEnabled(self, enabled: bool = ...) -> 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: ... + def error(self) -> 'QSerialPort.SerialPortError': ... + def clear(self, dir: 'QSerialPort.Direction' = ...) -> bool: ... + def flush(self) -> bool: ... + def pinoutSignals(self) -> 'QSerialPort.PinoutSignal': ... + 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: 'QSerialPort.Direction' = ...) -> int: ... + def setBaudRate(self, baudRate: int, dir: 'QSerialPort.Direction' = ...) -> bool: ... + def close(self) -> None: ... + def open(self, mode: QtCore.QIODeviceBase.OpenModeFlag) -> bool: ... + def setPort(self, info: 'QSerialPortInfo') -> None: ... + def portName(self) -> str: ... + def setPortName(self, name: str|None) -> None: ... + + +class QSerialPortInfo(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, port: QSerialPort) -> None: ... + @typing.overload + def __init__(self, name: str|None) -> None: ... + @typing.overload + def __init__(self, other: 'QSerialPortInfo') -> None: ... + + def serialNumber(self) -> str: ... + def isNull(self) -> bool: ... + @staticmethod + def availablePorts() -> list['QSerialPortInfo']: ... + @staticmethod + def standardBaudRates() -> list[int]: ... + 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/typings/PyQt6/QtSpatialAudio.pyi b/typings/PyQt6/QtSpatialAudio.pyi new file mode 100644 index 00000000..08e4d3eb --- /dev/null +++ b/typings/PyQt6/QtSpatialAudio.pyi @@ -0,0 +1,245 @@ +# The PEP 484 type hints stub file for the QtSpatialAudio module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui +from PyQt6 import QtNetwork +from PyQt6 import QtMultimedia + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QAmbientSound(QtCore.QObject): + + class Loops(enum.Enum): + Infinite = ... # type: QAmbientSound.Loops + Once = ... # type: QAmbientSound.Loops + + def __init__(self, engine: 'QAudioEngine|None') -> None: ... + + def stop(self) -> None: ... + def pause(self) -> None: ... + def play(self) -> None: ... + volumeChanged: typing.ClassVar[QtCore.pyqtSignal] + autoPlayChanged: typing.ClassVar[QtCore.pyqtSignal] + loopsChanged: typing.ClassVar[QtCore.pyqtSignal] + sourceChanged: typing.ClassVar[QtCore.pyqtSignal] + def engine(self) -> 'QAudioEngine|None': ... + def volume(self) -> float: ... + def setVolume(self, volume: float) -> None: ... + def setAutoPlay(self, autoPlay: bool) -> None: ... + def autoPlay(self) -> bool: ... + def setLoops(self, loops: int) -> None: ... + def loops(self) -> int: ... + def source(self) -> QtCore.QUrl: ... + def setSource(self, url: QtCore.QUrl) -> None: ... + + +class QAudioEngine(QtCore.QObject): + + class OutputMode(enum.Enum): + Surround = ... # type: QAudioEngine.OutputMode + Stereo = ... # type: QAudioEngine.OutputMode + Headphone = ... # type: QAudioEngine.OutputMode + + DistanceScaleCentimeter = ... # type: float + DistanceScaleMeter = ... # type: float + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, parent: QtCore.QObject|None) -> None: ... + @typing.overload + def __init__(self, sampleRate: int, parent: QtCore.QObject|None = ...) -> None: ... + + def resume(self) -> None: ... + def pause(self) -> None: ... + def stop(self) -> None: ... + def start(self) -> None: ... + distanceScaleChanged: typing.ClassVar[QtCore.pyqtSignal] + pausedChanged: typing.ClassVar[QtCore.pyqtSignal] + masterVolumeChanged: typing.ClassVar[QtCore.pyqtSignal] + outputDeviceChanged: typing.ClassVar[QtCore.pyqtSignal] + outputModeChanged: typing.ClassVar[QtCore.pyqtSignal] + def distanceScale(self) -> float: ... + def setDistanceScale(self, scale: float) -> None: ... + def roomEffectsEnabled(self) -> bool: ... + def setRoomEffectsEnabled(self, enabled: bool) -> None: ... + def paused(self) -> bool: ... + def setPaused(self, paused: bool) -> None: ... + def masterVolume(self) -> float: ... + def setMasterVolume(self, volume: float) -> None: ... + def outputDevice(self) -> QtMultimedia.QAudioDevice: ... + def setOutputDevice(self, device: QtMultimedia.QAudioDevice) -> None: ... + def sampleRate(self) -> int: ... + def outputMode(self) -> 'QAudioEngine.OutputMode': ... + def setOutputMode(self, mode: 'QAudioEngine.OutputMode') -> None: ... + + +class QAudioListener(QtCore.QObject): + + def __init__(self, engine: QAudioEngine|None) -> None: ... + + def engine(self) -> QAudioEngine|None: ... + def rotation(self) -> QtGui.QQuaternion: ... + def setRotation(self, q: QtGui.QQuaternion) -> None: ... + def position(self) -> QtGui.QVector3D: ... + def setPosition(self, pos: QtGui.QVector3D) -> None: ... + + +class QAudioRoom(QtCore.QObject): + + class Wall(enum.Enum): + LeftWall = ... # type: QAudioRoom.Wall + RightWall = ... # type: QAudioRoom.Wall + Floor = ... # type: QAudioRoom.Wall + Ceiling = ... # type: QAudioRoom.Wall + FrontWall = ... # type: QAudioRoom.Wall + BackWall = ... # type: QAudioRoom.Wall + + class Material(enum.Enum): + Transparent = ... # type: QAudioRoom.Material + AcousticCeilingTiles = ... # type: QAudioRoom.Material + BrickBare = ... # type: QAudioRoom.Material + BrickPainted = ... # type: QAudioRoom.Material + ConcreteBlockCoarse = ... # type: QAudioRoom.Material + ConcreteBlockPainted = ... # type: QAudioRoom.Material + CurtainHeavy = ... # type: QAudioRoom.Material + FiberGlassInsulation = ... # type: QAudioRoom.Material + GlassThin = ... # type: QAudioRoom.Material + GlassThick = ... # type: QAudioRoom.Material + Grass = ... # type: QAudioRoom.Material + LinoleumOnConcrete = ... # type: QAudioRoom.Material + Marble = ... # type: QAudioRoom.Material + Metal = ... # type: QAudioRoom.Material + ParquetOnConcrete = ... # type: QAudioRoom.Material + PlasterRough = ... # type: QAudioRoom.Material + PlasterSmooth = ... # type: QAudioRoom.Material + PlywoodPanel = ... # type: QAudioRoom.Material + PolishedConcreteOrTile = ... # type: QAudioRoom.Material + Sheetrock = ... # type: QAudioRoom.Material + WaterOrIceSurface = ... # type: QAudioRoom.Material + WoodCeiling = ... # type: QAudioRoom.Material + WoodPanel = ... # type: QAudioRoom.Material + UniformMaterial = ... # type: QAudioRoom.Material + + def __init__(self, engine: QAudioEngine|None) -> None: ... + + reverbBrightnessChanged: typing.ClassVar[QtCore.pyqtSignal] + reverbTimeChanged: typing.ClassVar[QtCore.pyqtSignal] + reverbGainChanged: typing.ClassVar[QtCore.pyqtSignal] + reflectionGainChanged: typing.ClassVar[QtCore.pyqtSignal] + wallsChanged: typing.ClassVar[QtCore.pyqtSignal] + rotationChanged: typing.ClassVar[QtCore.pyqtSignal] + dimensionsChanged: typing.ClassVar[QtCore.pyqtSignal] + positionChanged: typing.ClassVar[QtCore.pyqtSignal] + def reverbBrightness(self) -> float: ... + def setReverbBrightness(self, factor: float) -> None: ... + def reverbTime(self) -> float: ... + def setReverbTime(self, factor: float) -> None: ... + def reverbGain(self) -> float: ... + def setReverbGain(self, factor: float) -> None: ... + def reflectionGain(self) -> float: ... + def setReflectionGain(self, factor: float) -> None: ... + def wallMaterial(self, wall: 'QAudioRoom.Wall') -> 'QAudioRoom.Material': ... + def setWallMaterial(self, wall: 'QAudioRoom.Wall', material: 'QAudioRoom.Material') -> None: ... + def rotation(self) -> QtGui.QQuaternion: ... + def setRotation(self, q: QtGui.QQuaternion) -> None: ... + def dimensions(self) -> QtGui.QVector3D: ... + def setDimensions(self, dim: QtGui.QVector3D) -> None: ... + def position(self) -> QtGui.QVector3D: ... + def setPosition(self, pos: QtGui.QVector3D) -> None: ... + + +class QSpatialSound(QtCore.QObject): + + class Loops(enum.Enum): + Infinite = ... # type: QSpatialSound.Loops + Once = ... # type: QSpatialSound.Loops + + class DistanceModel(enum.Enum): + Logarithmic = ... # type: QSpatialSound.DistanceModel + Linear = ... # type: QSpatialSound.DistanceModel + ManualAttenuation = ... # type: QSpatialSound.DistanceModel + + def __init__(self, engine: QAudioEngine|None) -> None: ... + + def stop(self) -> None: ... + def pause(self) -> None: ... + def play(self) -> None: ... + nearFieldGainChanged: typing.ClassVar[QtCore.pyqtSignal] + directivityOrderChanged: typing.ClassVar[QtCore.pyqtSignal] + directivityChanged: typing.ClassVar[QtCore.pyqtSignal] + occlusionIntensityChanged: typing.ClassVar[QtCore.pyqtSignal] + manualAttenuationChanged: typing.ClassVar[QtCore.pyqtSignal] + distanceCutoffChanged: typing.ClassVar[QtCore.pyqtSignal] + sizeChanged: typing.ClassVar[QtCore.pyqtSignal] + distanceModelChanged: typing.ClassVar[QtCore.pyqtSignal] + volumeChanged: typing.ClassVar[QtCore.pyqtSignal] + rotationChanged: typing.ClassVar[QtCore.pyqtSignal] + positionChanged: typing.ClassVar[QtCore.pyqtSignal] + autoPlayChanged: typing.ClassVar[QtCore.pyqtSignal] + loopsChanged: typing.ClassVar[QtCore.pyqtSignal] + sourceChanged: typing.ClassVar[QtCore.pyqtSignal] + def engine(self) -> QAudioEngine|None: ... + def nearFieldGain(self) -> float: ... + def setNearFieldGain(self, gain: float) -> None: ... + def directivityOrder(self) -> float: ... + def setDirectivityOrder(self, alpha: float) -> None: ... + def directivity(self) -> float: ... + def setDirectivity(self, alpha: float) -> None: ... + def occlusionIntensity(self) -> float: ... + def setOcclusionIntensity(self, occlusion: float) -> None: ... + def manualAttenuation(self) -> float: ... + def setManualAttenuation(self, attenuation: float) -> None: ... + def distanceCutoff(self) -> float: ... + def setDistanceCutoff(self, cutoff: float) -> None: ... + def size(self) -> float: ... + def setSize(self, size: float) -> None: ... + def distanceModel(self) -> 'QSpatialSound.DistanceModel': ... + def setDistanceModel(self, model: 'QSpatialSound.DistanceModel') -> None: ... + def volume(self) -> float: ... + def setVolume(self, volume: float) -> None: ... + def rotation(self) -> QtGui.QQuaternion: ... + def setRotation(self, q: QtGui.QQuaternion) -> None: ... + def position(self) -> QtGui.QVector3D: ... + def setPosition(self, pos: QtGui.QVector3D) -> None: ... + def setAutoPlay(self, autoPlay: bool) -> None: ... + def autoPlay(self) -> bool: ... + def setLoops(self, loops: int) -> None: ... + def loops(self) -> int: ... + def source(self) -> QtCore.QUrl: ... + def setSource(self, url: QtCore.QUrl) -> None: ... diff --git a/typings/PyQt6/QtSql.pyi b/typings/PyQt6/QtSql.pyi new file mode 100644 index 00000000..4680fafe --- /dev/null +++ b/typings/PyQt6/QtSql.pyi @@ -0,0 +1,660 @@ +# The PEP 484 type hints stub file for the QtSql module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui +from PyQt6 import QtWidgets + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QSqlDriverCreatorBase(PyQt6.sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QSqlDriverCreatorBase') -> None: ... + + def createObject(self) -> 'QSqlDriver|None': ... + + +class QSqlDatabase(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QSqlDatabase') -> None: ... + @typing.overload + def __init__(self, type: str|None) -> None: ... + @typing.overload + def __init__(self, driver: 'QSqlDriver|None') -> None: ... + + def thread(self) -> QtCore.QThread|None: ... + def moveToThread(self, targetThread: QtCore.QThread|None) -> bool: ... + def numericalPrecisionPolicy(self) -> 'QSql.NumericalPrecisionPolicy': ... + def setNumericalPrecisionPolicy(self, precisionPolicy: 'QSql.NumericalPrecisionPolicy') -> None: ... + @staticmethod + def isDriverAvailable(name: str|None) -> bool: ... + @staticmethod + def registerSqlDriver(name: str|None, creator: QSqlDriverCreatorBase|None) -> None: ... + @staticmethod + def connectionNames() -> list[str]: ... + @staticmethod + def drivers() -> list[str]: ... + @staticmethod + def contains(connectionName: str|None = ...) -> bool: ... + @staticmethod + def removeDatabase(connectionName: str|None) -> None: ... + @staticmethod + def database(connectionName: str|None = ..., open: bool = ...) -> 'QSqlDatabase': ... + @typing.overload + @staticmethod + def cloneDatabase(other: 'QSqlDatabase', connectionName: str|None) -> 'QSqlDatabase': ... + @typing.overload + @staticmethod + def cloneDatabase(other: str|None, connectionName: str|None) -> 'QSqlDatabase': ... + @typing.overload + @staticmethod + def addDatabase(type: str|None, connectionName: str|None = ...) -> 'QSqlDatabase': ... + @typing.overload + @staticmethod + def addDatabase(driver: 'QSqlDriver|None', connectionName: str|None = ...) -> 'QSqlDatabase': ... + def driver(self) -> 'QSqlDriver|None': ... + 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 = ...) -> None: ... + def setPort(self, p: int) -> None: ... + def setHostName(self, host: str|None) -> None: ... + def setPassword(self, password: str|None) -> None: ... + def setUserName(self, name: str|None) -> None: ... + def setDatabaseName(self, name: str|None) -> 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|None = ...) -> 'QSqlQuery': ... + def record(self, tablename: str|None) -> 'QSqlRecord': ... + def primaryIndex(self, tablename: str|None) -> 'QSqlIndex': ... + def tables(self, type: 'QSql.TableType' = ...) -> 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|None, password: str|None) -> bool: ... + + +class QSqlDriver(QtCore.QObject): + + class DbmsType(enum.Enum): + 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 + MimerSQL = ... # type: QSqlDriver.DbmsType + + class NotificationSource(enum.Enum): + UnknownSource = ... # type: QSqlDriver.NotificationSource + SelfSource = ... # type: QSqlDriver.NotificationSource + OtherSource = ... # type: QSqlDriver.NotificationSource + + class IdentifierType(enum.Enum): + FieldName = ... # type: QSqlDriver.IdentifierType + TableName = ... # type: QSqlDriver.IdentifierType + + class StatementType(enum.Enum): + WhereStatement = ... # type: QSqlDriver.StatementType + SelectStatement = ... # type: QSqlDriver.StatementType + UpdateStatement = ... # type: QSqlDriver.StatementType + InsertStatement = ... # type: QSqlDriver.StatementType + DeleteStatement = ... # type: QSqlDriver.StatementType + + class DriverFeature(enum.Enum): + 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: QtCore.QObject|None = ...) -> None: ... + + def connectionName(self) -> str: ... + def maximumIdentifierLength(self, type: 'QSqlDriver.IdentifierType') -> int: ... + def dbmsType(self) -> 'QSqlDriver.DbmsType': ... + def numericalPrecisionPolicy(self) -> 'QSql.NumericalPrecisionPolicy': ... + def setNumericalPrecisionPolicy(self, precisionPolicy: 'QSql.NumericalPrecisionPolicy') -> None: ... + def stripDelimiters(self, identifier: str|None, type: 'QSqlDriver.IdentifierType') -> str: ... + def isIdentifierEscaped(self, identifier: str|None, type: 'QSqlDriver.IdentifierType') -> bool: ... + notification: typing.ClassVar[QtCore.pyqtSignal] + def subscribedToNotifications(self) -> list[str]: ... + def unsubscribeFromNotification(self, name: str|None) -> bool: ... + def subscribeToNotification(self, name: str|None) -> bool: ... + def setLastError(self, e: 'QSqlError') -> None: ... + def setOpenError(self, e: bool) -> None: ... + def setOpen(self, o: bool) -> None: ... + def open(self, db: str|None, user: str|None = ..., password: str|None = ..., host: str|None = ..., port: int = ..., options: str|None = ...) -> bool: ... + def createResult(self) -> 'QSqlResult|None': ... + 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|None, rec: 'QSqlRecord', preparedStatement: bool) -> str: ... + def escapeIdentifier(self, identifier: str|None, type: 'QSqlDriver.IdentifierType') -> str: ... + def formatValue(self, field: 'QSqlField', trimStrings: bool = ...) -> str: ... + def record(self, tableName: str|None) -> 'QSqlRecord': ... + def primaryIndex(self, tableName: str|None) -> 'QSqlIndex': ... + def tables(self, tableType: 'QSql.TableType') -> list[str]: ... + def rollbackTransaction(self) -> bool: ... + def commitTransaction(self) -> bool: ... + def beginTransaction(self) -> bool: ... + def isOpenError(self) -> bool: ... + def isOpen(self) -> bool: ... + + +class QSqlError(PyQt6.sip.simplewrapper): + + class ErrorType(enum.Enum): + 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|None = ..., databaseText: str|None = ..., type: 'QSqlError.ErrorType' = ..., errorCode: str|None = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QSqlError') -> None: ... + + def swap(self, other: 'QSqlError') -> None: ... + def nativeErrorCode(self) -> str: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def isValid(self) -> bool: ... + def text(self) -> str: ... + def type(self) -> 'QSqlError.ErrorType': ... + def databaseText(self) -> str: ... + def driverText(self) -> str: ... + + +class QSqlField(PyQt6.sip.simplewrapper): + + class RequiredStatus(enum.Enum): + Unknown = ... # type: QSqlField.RequiredStatus + Optional = ... # type: QSqlField.RequiredStatus + Required = ... # type: QSqlField.RequiredStatus + + @typing.overload + def __init__(self, fieldName: str|None = ..., type: QtCore.QMetaType = ..., tableName: str|None = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QSqlField') -> None: ... + + def swap(self, other: 'QSqlField') -> None: ... + def setMetaType(self, type: QtCore.QMetaType) -> None: ... + def metaType(self) -> QtCore.QMetaType: ... + def tableName(self) -> str: ... + def setTableName(self, tableName: str|None) -> 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 isAutoValue(self) -> bool: ... + 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) -> None: ... + def value(self) -> typing.Any: ... + def setValue(self, value: typing.Any) -> None: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + +class QSqlRecord(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QSqlRecord') -> None: ... + + def swap(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: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> 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: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, 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: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ... + @typing.overload + def field(self, i: int) -> QSqlField: ... + @typing.overload + def field(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> QSqlField: ... + def fieldName(self, i: int) -> str: ... + def indexOf(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> int: ... + @typing.overload + def isNull(self, i: int) -> bool: ... + @typing.overload + def isNull(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ... + @typing.overload + def setNull(self, i: int) -> None: ... + @typing.overload + def setNull(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> None: ... + @typing.overload + def setValue(self, i: int, val: typing.Any) -> None: ... + @typing.overload + def setValue(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, val: typing.Any) -> None: ... + @typing.overload + def value(self, i: int) -> typing.Any: ... + @typing.overload + def value(self, name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> typing.Any: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + +class QSqlIndex(QSqlRecord): + + @typing.overload + def __init__(self, cursorName: str|None = ..., name: str|None = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QSqlIndex') -> None: ... + + def swap(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) -> None: ... + def cursorName(self) -> str: ... + def setCursorName(self, cursorName: str|None) -> None: ... + + +class QSqlQuery(PyQt6.sip.simplewrapper): + + class BatchExecutionMode(enum.Enum): + ValuesAsRows = ... # type: QSqlQuery.BatchExecutionMode + ValuesAsColumns = ... # type: QSqlQuery.BatchExecutionMode + + @typing.overload + def __init__(self, db: QSqlDatabase) -> None: ... + @typing.overload + def __init__(self, query: str|None = ..., db: QSqlDatabase = ...) -> None: ... + @typing.overload + def __init__(self, r: 'QSqlResult|None') -> None: ... + @typing.overload + def __init__(self, other: 'QSqlQuery') -> None: ... + + def isPositionalBindingEnabled(self) -> bool: ... + def setPositionalBindingEnabled(self, enable: bool) -> None: ... + def boundValueName(self, pos: int) -> str: ... + def boundValueNames(self) -> list[str]: ... + def swap(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) -> list[typing.Any]: ... + @typing.overload + def boundValue(self, placeholder: str|None) -> typing.Any: ... + @typing.overload + def boundValue(self, pos: int) -> typing.Any: ... + def addBindValue(self, val: typing.Any, type: 'QSql.ParamTypeFlag' = ...) -> None: ... + @typing.overload + def bindValue(self, placeholder: str|None, val: typing.Any, type: 'QSql.ParamTypeFlag' = ...) -> None: ... + @typing.overload + def bindValue(self, pos: int, val: typing.Any, type: 'QSql.ParamTypeFlag' = ...) -> None: ... + def prepare(self, query: str|None) -> 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: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> typing.Any: ... + @typing.overload + def exec(self, query: str|None) -> 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|None': ... + def driver(self) -> QSqlDriver|None: ... + 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: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ... + def isActive(self) -> bool: ... + def isValid(self) -> bool: ... + + +class QSqlQueryModel(QtCore.QAbstractTableModel): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def refresh(self) -> None: ... + def roleNames(self) -> 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|None, 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) -> QSqlRecord: ... + @typing.overload + def record(self, row: int) -> QSqlRecord: ... + def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ... + + +class QSqlRelationalDelegate(QtWidgets.QStyledItemDelegate): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def setModelData(self, editor: QtWidgets.QWidget|None, model: QtCore.QAbstractItemModel|None, index: QtCore.QModelIndex) -> None: ... + def setEditorData(self, editor: QtWidgets.QWidget|None, index: QtCore.QModelIndex) -> None: ... + def createEditor(self, parent: QtWidgets.QWidget|None, option: QtWidgets.QStyleOptionViewItem, index: QtCore.QModelIndex) -> QtWidgets.QWidget|None: ... + + +class QSqlRelation(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, aTableName: str|None, indexCol: str|None, displayCol: str|None) -> 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(enum.Enum): + OnFieldChange = ... # type: QSqlTableModel.EditStrategy + OnRowChange = ... # type: QSqlTableModel.EditStrategy + OnManualSubmit = ... # type: QSqlTableModel.EditStrategy + + def __init__(self, parent: QtCore.QObject|None = ..., db: QSqlDatabase = ...) -> None: ... + + def clearItemData(self, index: QtCore.QModelIndex) -> bool: ... + @typing.overload + def record(self) -> QSqlRecord: ... + @typing.overload + def record(self, row: int) -> QSqlRecord: ... + def selectRow(self, row: int) -> bool: ... + def primaryValues(self, row: int) -> QSqlRecord: ... + def indexInQuery(self, item: QtCore.QModelIndex) -> QtCore.QModelIndex: ... + 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: ... + beforeDelete: typing.ClassVar[QtCore.pyqtSignal] + beforeUpdate: typing.ClassVar[QtCore.pyqtSignal] + beforeInsert: typing.ClassVar[QtCore.pyqtSignal] + primeInsert: typing.ClassVar[QtCore.pyqtSignal] + 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) -> 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|None) -> 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.ItemFlag: ... + def tableName(self) -> str: ... + def setTable(self, tableName: str|None) -> None: ... + def select(self) -> bool: ... + + +class QSqlRelationalTableModel(QSqlTableModel): + + class JoinMode(enum.Enum): + InnerJoin = ... # type: QSqlRelationalTableModel.JoinMode + LeftJoin = ... # type: QSqlRelationalTableModel.JoinMode + + def __init__(self, parent: QtCore.QObject|None = ..., 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|None: ... + def relation(self, column: int) -> QSqlRelation: ... + def setRelation(self, column: int, relation: QSqlRelation) -> None: ... + def setTable(self, tableName: str|None) -> None: ... + def select(self) -> bool: ... + def clear(self) -> None: ... + def setData(self, item: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ... + def data(self, item: QtCore.QModelIndex, role: int = ...) -> typing.Any: ... + + +class QSqlResult(PyQt6.sip.wrapper): + + class BindingSyntax(enum.Enum): + PositionalBinding = ... # type: QSqlResult.BindingSyntax + NamedBinding = ... # type: QSqlResult.BindingSyntax + + def __init__(self, db: QSqlDriver|None) -> None: ... + + def isPositionalBindingEnabled(self) -> bool: ... + def setPositionalBindingEnabled(self, enable: bool) -> None: ... + def boundValueNames(self) -> list[str]: ... + 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|None) -> 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) -> list[typing.Any]: ... + def boundValueCount(self) -> int: ... + @typing.overload + def bindValueType(self, placeholder: str|None) -> 'QSql.ParamTypeFlag': ... + @typing.overload + def bindValueType(self, pos: int) -> 'QSql.ParamTypeFlag': ... + @typing.overload + def boundValue(self, placeholder: str|None) -> typing.Any: ... + @typing.overload + def boundValue(self, pos: int) -> typing.Any: ... + def addBindValue(self, val: typing.Any, type: 'QSql.ParamTypeFlag') -> None: ... + @typing.overload + def bindValue(self, pos: int, val: typing.Any, type: 'QSql.ParamTypeFlag') -> None: ... + @typing.overload + def bindValue(self, placeholder: str|None, val: typing.Any, type: 'QSql.ParamTypeFlag') -> None: ... + def savePrepare(self, sqlquery: str|None) -> bool: ... + def prepare(self, query: str|None) -> bool: ... + def exec(self) -> bool: ... + def setForwardOnly(self, forward: bool) -> None: ... + def setSelect(self, s: bool) -> None: ... + def setQuery(self, query: str|None) -> None: ... + def setLastError(self, e: QSqlError) -> None: ... + def setActive(self, a: bool) -> None: ... + def setAt(self, at: int) -> None: ... + def driver(self) -> QSqlDriver|None: ... + 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(PyQt6.sip.simplewrapper): + + class NumericalPrecisionPolicy(enum.Enum): + LowPrecisionInt32 = ... # type: QSql.NumericalPrecisionPolicy + LowPrecisionInt64 = ... # type: QSql.NumericalPrecisionPolicy + LowPrecisionDouble = ... # type: QSql.NumericalPrecisionPolicy + HighPrecision = ... # type: QSql.NumericalPrecisionPolicy + + class TableType(enum.Enum): + Tables = ... # type: QSql.TableType + SystemTables = ... # type: QSql.TableType + Views = ... # type: QSql.TableType + AllTables = ... # type: QSql.TableType + + class ParamTypeFlag(enum.Flag): + In = ... # type: QSql.ParamTypeFlag + Out = ... # type: QSql.ParamTypeFlag + InOut = ... # type: QSql.ParamTypeFlag + Binary = ... # type: QSql.ParamTypeFlag + + class Location(enum.Enum): + BeforeFirstRow = ... # type: QSql.Location + AfterLastRow = ... # type: QSql.Location diff --git a/typings/PyQt6/QtStateMachine.pyi b/typings/PyQt6/QtStateMachine.pyi new file mode 100644 index 00000000..bb519089 --- /dev/null +++ b/typings/PyQt6/QtStateMachine.pyi @@ -0,0 +1,280 @@ +# The PEP 484 type hints stub file for the QtStateMachine module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QAbstractState(QtCore.QObject): + + def __init__(self, parent: 'QState|None' = ...) -> None: ... + + def event(self, e: QtCore.QEvent|None) -> bool: ... + def onExit(self, event: QtCore.QEvent|None) -> None: ... + def onEntry(self, event: QtCore.QEvent|None) -> None: ... + exited: typing.ClassVar[QtCore.pyqtSignal] + entered: typing.ClassVar[QtCore.pyqtSignal] + activeChanged: typing.ClassVar[QtCore.pyqtSignal] + def active(self) -> bool: ... + def machine(self) -> 'QStateMachine|None': ... + def parentState(self) -> 'QState|None': ... + + +class QAbstractTransition(QtCore.QObject): + + class TransitionType(enum.Enum): + ExternalTransition = ... # type: QAbstractTransition.TransitionType + InternalTransition = ... # type: QAbstractTransition.TransitionType + + def __init__(self, sourceState: 'QState|None' = ...) -> None: ... + + def event(self, e: QtCore.QEvent|None) -> bool: ... + def onTransition(self, event: QtCore.QEvent|None) -> None: ... + def eventTest(self, event: QtCore.QEvent|None) -> bool: ... + targetStatesChanged: typing.ClassVar[QtCore.pyqtSignal] + targetStateChanged: typing.ClassVar[QtCore.pyqtSignal] + triggered: typing.ClassVar[QtCore.pyqtSignal] + def animations(self) -> list[QtCore.QAbstractAnimation]: ... + def removeAnimation(self, animation: QtCore.QAbstractAnimation|None) -> None: ... + def addAnimation(self, animation: QtCore.QAbstractAnimation|None) -> None: ... + def machine(self) -> 'QStateMachine|None': ... + def setTransitionType(self, type: 'QAbstractTransition.TransitionType') -> None: ... + def transitionType(self) -> 'QAbstractTransition.TransitionType': ... + def setTargetStates(self, targets: collections.abc.Iterable[QAbstractState]) -> None: ... + def targetStates(self) -> list[QAbstractState]: ... + def setTargetState(self, target: QAbstractState|None) -> None: ... + def targetState(self) -> QAbstractState|None: ... + def sourceState(self) -> 'QState|None': ... + + +class QEventTransition(QAbstractTransition): + + @typing.overload + def __init__(self, sourceState: 'QState|None' = ...) -> None: ... + @typing.overload + def __init__(self, object: QtCore.QObject|None, type: QtCore.QEvent.Type, sourceState: 'QState|None' = ...) -> None: ... + + def event(self, e: QtCore.QEvent|None) -> bool: ... + def onTransition(self, event: QtCore.QEvent|None) -> None: ... + def eventTest(self, event: QtCore.QEvent|None) -> bool: ... + def setEventType(self, type: QtCore.QEvent.Type) -> None: ... + def eventType(self) -> QtCore.QEvent.Type: ... + def setEventSource(self, object: QtCore.QObject|None) -> None: ... + def eventSource(self) -> QtCore.QObject|None: ... + + +class QFinalState(QAbstractState): + + def __init__(self, parent: 'QState|None' = ...) -> None: ... + + def event(self, e: QtCore.QEvent|None) -> bool: ... + def onExit(self, event: QtCore.QEvent|None) -> None: ... + def onEntry(self, event: QtCore.QEvent|None) -> None: ... + + +class QHistoryState(QAbstractState): + + class HistoryType(enum.Enum): + ShallowHistory = ... # type: QHistoryState.HistoryType + DeepHistory = ... # type: QHistoryState.HistoryType + + @typing.overload + def __init__(self, parent: 'QState|None' = ...) -> None: ... + @typing.overload + def __init__(self, type: 'QHistoryState.HistoryType', parent: 'QState|None' = ...) -> None: ... + + def event(self, e: QtCore.QEvent|None) -> bool: ... + def onExit(self, event: QtCore.QEvent|None) -> None: ... + def onEntry(self, event: QtCore.QEvent|None) -> None: ... + historyTypeChanged: typing.ClassVar[QtCore.pyqtSignal] + defaultStateChanged: typing.ClassVar[QtCore.pyqtSignal] + defaultTransitionChanged: typing.ClassVar[QtCore.pyqtSignal] + def setHistoryType(self, type: 'QHistoryState.HistoryType') -> None: ... + def historyType(self) -> 'QHistoryState.HistoryType': ... + def setDefaultState(self, state: QAbstractState|None) -> None: ... + def defaultState(self) -> QAbstractState|None: ... + def setDefaultTransition(self, transition: QAbstractTransition|None) -> None: ... + def defaultTransition(self) -> QAbstractTransition|None: ... + + +class QKeyEventTransition(QEventTransition): + + @typing.overload + def __init__(self, sourceState: 'QState|None' = ...) -> None: ... + @typing.overload + def __init__(self, object: QtCore.QObject|None, type: QtCore.QEvent.Type, key: int, sourceState: 'QState|None' = ...) -> None: ... + + def eventTest(self, event: QtCore.QEvent|None) -> bool: ... + def onTransition(self, event: QtCore.QEvent|None) -> None: ... + def setModifierMask(self, modifiers: QtCore.Qt.KeyboardModifier) -> None: ... + def modifierMask(self) -> QtCore.Qt.KeyboardModifier: ... + def setKey(self, key: int) -> None: ... + def key(self) -> int: ... + + +class QMouseEventTransition(QEventTransition): + + @typing.overload + def __init__(self, sourceState: 'QState|None' = ...) -> None: ... + @typing.overload + def __init__(self, object: QtCore.QObject|None, type: QtCore.QEvent.Type, button: QtCore.Qt.MouseButton, sourceState: 'QState|None' = ...) -> None: ... + + def eventTest(self, event: QtCore.QEvent|None) -> bool: ... + def onTransition(self, event: QtCore.QEvent|None) -> None: ... + def setHitTestPath(self, path: QtGui.QPainterPath) -> None: ... + def hitTestPath(self) -> QtGui.QPainterPath: ... + def setModifierMask(self, modifiers: QtCore.Qt.KeyboardModifier) -> None: ... + def modifierMask(self) -> QtCore.Qt.KeyboardModifier: ... + def setButton(self, button: QtCore.Qt.MouseButton) -> None: ... + def button(self) -> QtCore.Qt.MouseButton: ... + + +class QSignalTransition(QAbstractTransition): + + @typing.overload + def __init__(self, sourceState: 'QState|None' = ...) -> None: ... + @typing.overload + def __init__(self, signal: pyqtBoundSignal, sourceState: 'QState|None' = ...) -> None: ... + + signalChanged: typing.ClassVar[QtCore.pyqtSignal] + senderObjectChanged: typing.ClassVar[QtCore.pyqtSignal] + def event(self, e: QtCore.QEvent|None) -> bool: ... + def onTransition(self, event: QtCore.QEvent|None) -> None: ... + def eventTest(self, event: QtCore.QEvent|None) -> bool: ... + def setSignal(self, signal: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def signal(self) -> QtCore.QByteArray: ... + def setSenderObject(self, sender: QtCore.QObject|None) -> None: ... + def senderObject(self) -> QtCore.QObject|None: ... + + +class QState(QAbstractState): + + class RestorePolicy(enum.Enum): + DontRestoreProperties = ... # type: QState.RestorePolicy + RestoreProperties = ... # type: QState.RestorePolicy + + class ChildMode(enum.Enum): + ExclusiveStates = ... # type: QState.ChildMode + ParallelStates = ... # type: QState.ChildMode + + @typing.overload + def __init__(self, parent: 'QState|None' = ...) -> None: ... + @typing.overload + def __init__(self, childMode: 'QState.ChildMode', parent: 'QState|None' = ...) -> None: ... + + def event(self, e: QtCore.QEvent|None) -> bool: ... + def onExit(self, event: QtCore.QEvent|None) -> None: ... + def onEntry(self, event: QtCore.QEvent|None) -> None: ... + errorStateChanged: typing.ClassVar[QtCore.pyqtSignal] + initialStateChanged: typing.ClassVar[QtCore.pyqtSignal] + childModeChanged: typing.ClassVar[QtCore.pyqtSignal] + propertiesAssigned: typing.ClassVar[QtCore.pyqtSignal] + finished: typing.ClassVar[QtCore.pyqtSignal] + def assignProperty(self, object: QtCore.QObject|None, name: str, value: typing.Any) -> None: ... + def setChildMode(self, mode: 'QState.ChildMode') -> None: ... + def childMode(self) -> 'QState.ChildMode': ... + def setInitialState(self, state: QAbstractState|None) -> None: ... + def initialState(self) -> QAbstractState|None: ... + def transitions(self) -> list[QAbstractTransition]: ... + def removeTransition(self, transition: QAbstractTransition|None) -> None: ... + @typing.overload + def addTransition(self, transition: QAbstractTransition|None) -> None: ... + @typing.overload + def addTransition(self, signal: pyqtBoundSignal, target: QAbstractState|None) -> QSignalTransition|None: ... + @typing.overload + def addTransition(self, target: QAbstractState|None) -> QAbstractTransition|None: ... + def setErrorState(self, state: QAbstractState|None) -> None: ... + def errorState(self) -> QAbstractState|None: ... + + +class QStateMachine(QState): + + class Error(enum.Enum): + NoError = ... # type: QStateMachine.Error + NoInitialStateError = ... # type: QStateMachine.Error + NoDefaultStateInHistoryStateError = ... # type: QStateMachine.Error + NoCommonAncestorForTransitionError = ... # type: QStateMachine.Error + StateMachineChildModeSetToParallelError = ... # type: QStateMachine.Error + + class EventPriority(enum.Enum): + NormalPriority = ... # type: QStateMachine.EventPriority + HighPriority = ... # type: QStateMachine.EventPriority + + class SignalEvent(QtCore.QEvent): + + def arguments(self) -> list[typing.Any]: ... + def signalIndex(self) -> int: ... + def sender(self) -> QtCore.QObject|None: ... + + class WrappedEvent(QtCore.QEvent): + + def event(self) -> QtCore.QEvent|None: ... + def object(self) -> QtCore.QObject|None: ... + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, childMode: QState.ChildMode, parent: QtCore.QObject|None = ...) -> None: ... + + def event(self, e: QtCore.QEvent|None) -> bool: ... + def onExit(self, event: QtCore.QEvent|None) -> None: ... + def onEntry(self, event: QtCore.QEvent|None) -> None: ... + runningChanged: typing.ClassVar[QtCore.pyqtSignal] + stopped: typing.ClassVar[QtCore.pyqtSignal] + started: typing.ClassVar[QtCore.pyqtSignal] + def setRunning(self, running: bool) -> None: ... + def stop(self) -> None: ... + def start(self) -> None: ... + def eventFilter(self, watched: QtCore.QObject|None, event: QtCore.QEvent|None) -> bool: ... + def configuration(self) -> set[QAbstractState]: ... + def cancelDelayedEvent(self, id: int) -> bool: ... + def postDelayedEvent(self, event: QtCore.QEvent|None, delay: int) -> int: ... + def postEvent(self, event: QtCore.QEvent|None, priority: 'QStateMachine.EventPriority' = ...) -> None: ... + def setGlobalRestorePolicy(self, restorePolicy: QState.RestorePolicy) -> None: ... + def globalRestorePolicy(self) -> QState.RestorePolicy: ... + def removeDefaultAnimation(self, animation: QtCore.QAbstractAnimation|None) -> None: ... + def defaultAnimations(self) -> list[QtCore.QAbstractAnimation]: ... + def addDefaultAnimation(self, animation: QtCore.QAbstractAnimation|None) -> 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) -> None: ... + def addState(self, state: QAbstractState|None) -> None: ... diff --git a/typings/PyQt6/QtSvg.pyi b/typings/PyQt6/QtSvg.pyi new file mode 100644 index 00000000..783329fe --- /dev/null +++ b/typings/PyQt6/QtSvg.pyi @@ -0,0 +1,137 @@ +# The PEP 484 type hints stub file for the QtSvg module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QtSvg(PyQt6.sip.simplewrapper): + + class Option(enum.Enum): + NoOption = ... # type: QtSvg.Option + Tiny12FeaturesOnly = ... # type: QtSvg.Option + AssumeTrustedSource = ... # type: QtSvg.Option + DisableSMILAnimations = ... # type: QtSvg.Option + DisableCSSAnimations = ... # type: QtSvg.Option + DisableAnimations = ... # type: QtSvg.Option + + +class QSvgGenerator(QtGui.QPaintDevice): + + class SvgVersion(enum.Enum): + SvgTiny12 = ... # type: QSvgGenerator.SvgVersion + Svg11 = ... # type: QSvgGenerator.SvgVersion + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, version: 'QSvgGenerator.SvgVersion') -> None: ... + + def initPainter(self, a0: QtGui.QPainter|None) -> None: ... + def svgVersion(self) -> 'QSvgGenerator.SvgVersion': ... + def metric(self, metric: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ... + def paintEngine(self) -> QtGui.QPaintEngine|None: ... + @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) -> None: ... + def description(self) -> str: ... + def setTitle(self, title: str|None) -> None: ... + def title(self) -> str: ... + def setResolution(self, resolution: int) -> None: ... + def resolution(self) -> int: ... + def setOutputDevice(self, outputDevice: QtCore.QIODevice|None) -> None: ... + def outputDevice(self) -> QtCore.QIODevice|None: ... + def setFileName(self, fileName: str|None) -> 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: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, filename: str|None, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, contents: QtCore.QByteArray|bytes|bytearray|memoryview, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, contents: QtCore.QXmlStreamReader|None, parent: QtCore.QObject|None = ...) -> None: ... + + @staticmethod + def setDefaultOptions(flags: QtSvg.Option) -> None: ... + def setAnimationEnabled(self, enable: bool) -> None: ... + def isAnimationEnabled(self) -> bool: ... + def setOptions(self, flags: QtSvg.Option) -> None: ... + def options(self) -> QtSvg.Option: ... + def transformForElement(self, id: str|None) -> QtGui.QTransform: ... + def setAspectRatioMode(self, mode: QtCore.Qt.AspectRatioMode) -> None: ... + def aspectRatioMode(self) -> QtCore.Qt.AspectRatioMode: ... + repaintNeeded: typing.ClassVar[QtCore.pyqtSignal] + @typing.overload + def render(self, p: QtGui.QPainter|None) -> None: ... + @typing.overload + def render(self, p: QtGui.QPainter|None, bounds: QtCore.QRectF) -> None: ... + @typing.overload + def render(self, painter: QtGui.QPainter|None, elementId: str|None, bounds: QtCore.QRectF = ...) -> None: ... + @typing.overload + def load(self, filename: str|None) -> bool: ... + @typing.overload + def load(self, contents: QtCore.QByteArray|bytes|bytearray|memoryview) -> bool: ... + @typing.overload + def load(self, contents: QtCore.QXmlStreamReader|None) -> 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|None) -> 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|None) -> bool: ... + def defaultSize(self) -> QtCore.QSize: ... + def isValid(self) -> bool: ... diff --git a/typings/PyQt6/QtSvgWidgets.pyi b/typings/PyQt6/QtSvgWidgets.pyi new file mode 100644 index 00000000..75050e54 --- /dev/null +++ b/typings/PyQt6/QtSvgWidgets.pyi @@ -0,0 +1,78 @@ +# The PEP 484 type hints stub file for the QtSvgWidgets module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui +from PyQt6 import QtSvg +from PyQt6 import QtWidgets + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QGraphicsSvgItem(QtWidgets.QGraphicsObject): + + @typing.overload + def __init__(self, parent: QtWidgets.QGraphicsItem|None = ...) -> None: ... + @typing.overload + def __init__(self, fileName: str|None, parent: QtWidgets.QGraphicsItem|None = ...) -> None: ... + + def type(self) -> int: ... + def paint(self, painter: QtGui.QPainter|None, option: QtWidgets.QStyleOptionGraphicsItem|None, widget: QtWidgets.QWidget|None = ...) -> 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) -> None: ... + def renderer(self) -> QtSvg.QSvgRenderer|None: ... + def setSharedRenderer(self, renderer: QtSvg.QSvgRenderer|None) -> None: ... + + +class QSvgWidget(QtWidgets.QWidget): + + @typing.overload + def __init__(self, parent: QtWidgets.QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, file: str|None, parent: QtWidgets.QWidget|None = ...) -> None: ... + + def setOptions(self, options: QtSvg.QtSvg.Option) -> None: ... + def options(self) -> QtSvg.QtSvg.Option: ... + def paintEvent(self, event: QtGui.QPaintEvent|None) -> None: ... + @typing.overload + def load(self, file: str|None) -> None: ... + @typing.overload + def load(self, contents: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + def renderer(self) -> QtSvg.QSvgRenderer|None: ... diff --git a/typings/PyQt6/QtTest.pyi b/typings/PyQt6/QtTest.pyi new file mode 100644 index 00000000..6c3c3b5a --- /dev/null +++ b/typings/PyQt6/QtTest.pyi @@ -0,0 +1,155 @@ +# The PEP 484 type hints stub file for the QtTest module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui +from PyQt6 import QtWidgets + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QAbstractItemModelTester(QtCore.QObject): + + class FailureReportingMode(enum.Enum): + QtTest = ... # type: QAbstractItemModelTester.FailureReportingMode + Warning = ... # type: QAbstractItemModelTester.FailureReportingMode + Fatal = ... # type: QAbstractItemModelTester.FailureReportingMode + + @typing.overload + def __init__(self, model: QtCore.QAbstractItemModel|None, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, model: QtCore.QAbstractItemModel|None, mode: 'QAbstractItemModelTester.FailureReportingMode', parent: QtCore.QObject|None = ...) -> None: ... + + def setUseFetchMore(self, value: bool) -> None: ... + def failureReportingMode(self) -> 'QAbstractItemModelTester.FailureReportingMode': ... + def model(self) -> QtCore.QAbstractItemModel|None: ... + + +class QSignalSpy(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self, signal: QtCore.pyqtBoundSignal) -> None: ... + @typing.overload + def __init__(self, obj: QtCore.QObject|None, signal: QtCore.QMetaMethod) -> None: ... + + def __delitem__(self, i: int) -> None: ... + def __setitem__(self, i: int, value: collections.abc.Iterable[typing.Any]) -> None: ... + def __getitem__(self, i: int) -> list[typing.Any]: ... + def __len__(self) -> int: ... + def wait(self, timeout: int = ...) -> bool: ... + def signal(self) -> QtCore.QByteArray: ... + def isValid(self) -> bool: ... + + +class QTest(PyQt6.sip.simplewrapper): + + class KeyAction(enum.Enum): + Press = ... # type: QTest.KeyAction + Release = ... # type: QTest.KeyAction + Click = ... # type: QTest.KeyAction + Shortcut = ... # type: QTest.KeyAction + + @typing.overload + def qWaitForWindowExposed(self, window: QtGui.QWindow|None, timeout: int = ...) -> bool: ... + @typing.overload + def qWaitForWindowExposed(self, widget: QtWidgets.QWidget|None, timeout: int = ...) -> bool: ... + @typing.overload + def qWaitForWindowActive(self, window: QtGui.QWindow|None, timeout: int = ...) -> bool: ... + @typing.overload + def qWaitForWindowActive(self, widget: QtWidgets.QWidget|None, timeout: int = ...) -> bool: ... + def qWait(self, ms: int) -> None: ... + @typing.overload + def mouseRelease(self, widget: QtWidgets.QWidget|None, button: QtCore.Qt.MouseButton, modifier: QtCore.Qt.KeyboardModifier = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def mouseRelease(self, window: QtGui.QWindow|None, button: QtCore.Qt.MouseButton, modifier: QtCore.Qt.KeyboardModifier = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def mousePress(self, widget: QtWidgets.QWidget|None, button: QtCore.Qt.MouseButton, modifier: QtCore.Qt.KeyboardModifier = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def mousePress(self, window: QtGui.QWindow|None, button: QtCore.Qt.MouseButton, modifier: QtCore.Qt.KeyboardModifier = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def mouseMove(self, widget: QtWidgets.QWidget|None, pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def mouseMove(self, window: QtGui.QWindow|None, pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def mouseDClick(self, widget: QtWidgets.QWidget|None, button: QtCore.Qt.MouseButton, modifier: QtCore.Qt.KeyboardModifier = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def mouseDClick(self, window: QtGui.QWindow|None, button: QtCore.Qt.MouseButton, modifier: QtCore.Qt.KeyboardModifier = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def mouseClick(self, widget: QtWidgets.QWidget|None, button: QtCore.Qt.MouseButton, modifier: QtCore.Qt.KeyboardModifier = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def mouseClick(self, window: QtGui.QWindow|None, button: QtCore.Qt.MouseButton, modifier: QtCore.Qt.KeyboardModifier = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... + @typing.overload + def sendKeyEvent(self, action: 'QTest.KeyAction', widget: QtWidgets.QWidget|None, code: QtCore.Qt.Key, ascii: str, modifier: QtCore.Qt.KeyboardModifier, delay: int = ...) -> None: ... + @typing.overload + def sendKeyEvent(self, action: 'QTest.KeyAction', widget: QtWidgets.QWidget|None, code: QtCore.Qt.Key, text: str|None, modifier: QtCore.Qt.KeyboardModifier, delay: int = ...) -> None: ... + def simulateEvent(self, widget: QtWidgets.QWidget|None, press: bool, code: int, modifier: QtCore.Qt.KeyboardModifier, text: str|None, repeat: bool, delay: int = ...) -> None: ... + @typing.overload + def keySequence(self, widget: QtWidgets.QWidget|None, keySequence: QtGui.QKeySequence|QtGui.QKeySequence.StandardKey|str|None|int) -> None: ... + @typing.overload + def keySequence(self, window: QtGui.QWindow|None, keySequence: QtGui.QKeySequence|QtGui.QKeySequence.StandardKey|str|None|int) -> None: ... + @typing.overload + def keyRelease(self, widget: QtWidgets.QWidget|None, key: QtCore.Qt.Key, modifier: QtCore.Qt.KeyboardModifier = ..., delay: int = ...) -> None: ... + @typing.overload + def keyRelease(self, widget: QtWidgets.QWidget|None, key: str, modifier: QtCore.Qt.KeyboardModifier = ..., delay: int = ...) -> None: ... + @typing.overload + def keyRelease(self, window: QtGui.QWindow|None, key: QtCore.Qt.Key, modifier: QtCore.Qt.KeyboardModifier = ..., delay: int = ...) -> None: ... + @typing.overload + def keyRelease(self, window: QtGui.QWindow|None, key: str, modifier: QtCore.Qt.KeyboardModifier = ..., delay: int = ...) -> None: ... + @typing.overload + def keyPress(self, widget: QtWidgets.QWidget|None, key: QtCore.Qt.Key, modifier: QtCore.Qt.KeyboardModifier = ..., delay: int = ...) -> None: ... + @typing.overload + def keyPress(self, widget: QtWidgets.QWidget|None, key: str, modifier: QtCore.Qt.KeyboardModifier = ..., delay: int = ...) -> None: ... + @typing.overload + def keyPress(self, window: QtGui.QWindow|None, key: QtCore.Qt.Key, modifier: QtCore.Qt.KeyboardModifier = ..., delay: int = ...) -> None: ... + @typing.overload + def keyPress(self, window: QtGui.QWindow|None, key: str, modifier: QtCore.Qt.KeyboardModifier = ..., delay: int = ...) -> None: ... + @typing.overload + def keyEvent(self, action: 'QTest.KeyAction', widget: QtWidgets.QWidget|None, key: QtCore.Qt.Key, modifier: QtCore.Qt.KeyboardModifier = ..., delay: int = ...) -> None: ... + @typing.overload + def keyEvent(self, action: 'QTest.KeyAction', widget: QtWidgets.QWidget|None, ascii: str, modifier: QtCore.Qt.KeyboardModifier = ..., delay: int = ...) -> None: ... + @typing.overload + def keyEvent(self, action: 'QTest.KeyAction', window: QtGui.QWindow|None, key: QtCore.Qt.Key, modifier: QtCore.Qt.KeyboardModifier = ..., delay: int = ...) -> None: ... + @typing.overload + def keyEvent(self, action: 'QTest.KeyAction', window: QtGui.QWindow|None, ascii: str, modifier: QtCore.Qt.KeyboardModifier = ..., delay: int = ...) -> None: ... + def keyClicks(self, widget: QtWidgets.QWidget|None, sequence: str|None, modifier: QtCore.Qt.KeyboardModifier = ..., delay: int = ...) -> None: ... + @typing.overload + def keyClick(self, widget: QtWidgets.QWidget|None, key: QtCore.Qt.Key, modifier: QtCore.Qt.KeyboardModifier = ..., delay: int = ...) -> None: ... + @typing.overload + def keyClick(self, widget: QtWidgets.QWidget|None, key: str, modifier: QtCore.Qt.KeyboardModifier = ..., delay: int = ...) -> None: ... + @typing.overload + def keyClick(self, window: QtGui.QWindow|None, key: QtCore.Qt.Key, modifier: QtCore.Qt.KeyboardModifier = ..., delay: int = ...) -> None: ... + @typing.overload + def keyClick(self, window: QtGui.QWindow|None, key: str, modifier: QtCore.Qt.KeyboardModifier = ..., delay: int = ...) -> None: ... diff --git a/typings/PyQt6/QtTextToSpeech.pyi b/typings/PyQt6/QtTextToSpeech.pyi new file mode 100644 index 00000000..c101cd88 --- /dev/null +++ b/typings/PyQt6/QtTextToSpeech.pyi @@ -0,0 +1,146 @@ +# The PEP 484 type hints stub file for the QtTextToSpeech module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 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[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QTextToSpeech(QtCore.QObject): + + class Capability(enum.Enum): + None_ = ... # type: QTextToSpeech.Capability + Speak = ... # type: QTextToSpeech.Capability + PauseResume = ... # type: QTextToSpeech.Capability + WordByWordProgress = ... # type: QTextToSpeech.Capability + Synthesize = ... # type: QTextToSpeech.Capability + + class State(enum.Enum): + Ready = ... # type: QTextToSpeech.State + Speaking = ... # type: QTextToSpeech.State + Paused = ... # type: QTextToSpeech.State + Error = ... # type: QTextToSpeech.State + Synthesizing = ... # type: QTextToSpeech.State + + class ErrorReason(enum.Enum): + NoError = ... # type: QTextToSpeech.ErrorReason + Initialization = ... # type: QTextToSpeech.ErrorReason + Configuration = ... # type: QTextToSpeech.ErrorReason + Input = ... # type: QTextToSpeech.ErrorReason + Playback = ... # type: QTextToSpeech.ErrorReason + + class BoundaryHint(enum.Enum): + Default = ... # type: QTextToSpeech.BoundaryHint + Immediate = ... # type: QTextToSpeech.BoundaryHint + Word = ... # type: QTextToSpeech.BoundaryHint + Sentence = ... # type: QTextToSpeech.BoundaryHint + Utterance = ... # type: QTextToSpeech.BoundaryHint + + @typing.overload + def __init__(self, engine: str|None, params: dict[str|None, typing.Any], parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, engine: str|None, parent: QtCore.QObject|None = ...) -> None: ... + + aboutToSynthesize: typing.ClassVar[QtCore.pyqtSignal] + sayingWord: typing.ClassVar[QtCore.pyqtSignal] + def enqueue(self, text: str|None) -> int: ... + def engineCapabilities(self) -> 'QTextToSpeech.Capability': ... + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + engineChanged: typing.ClassVar[QtCore.pyqtSignal] + voiceChanged: typing.ClassVar[QtCore.pyqtSignal] + volumeChanged: typing.ClassVar[QtCore.pyqtSignal] + pitchChanged: typing.ClassVar[QtCore.pyqtSignal] + rateChanged: typing.ClassVar[QtCore.pyqtSignal] + localeChanged: typing.ClassVar[QtCore.pyqtSignal] + stateChanged: typing.ClassVar[QtCore.pyqtSignal] + def setVoice(self, voice: 'QVoice') -> None: ... + def setVolume(self, volume: float) -> None: ... + def setPitch(self, pitch: float) -> None: ... + def setRate(self, rate: float) -> None: ... + def setLocale(self, locale: QtCore.QLocale) -> None: ... + def resume(self) -> None: ... + def pause(self, boundaryHint: 'QTextToSpeech.BoundaryHint' = ...) -> None: ... + def stop(self, boundaryHint: 'QTextToSpeech.BoundaryHint' = ...) -> None: ... + def say(self, text: str|None) -> None: ... + @staticmethod + def availableEngines() -> list[str]: ... + def volume(self) -> float: ... + def pitch(self) -> float: ... + def rate(self) -> float: ... + def availableVoices(self) -> list['QVoice']: ... + def voice(self) -> 'QVoice': ... + def locale(self) -> QtCore.QLocale: ... + def availableLocales(self) -> list[QtCore.QLocale]: ... + def state(self) -> 'QTextToSpeech.State': ... + def errorString(self) -> str: ... + def errorReason(self) -> 'QTextToSpeech.ErrorReason': ... + def engine(self) -> str: ... + def setEngine(self, engine: str|None, params: dict[str|None, typing.Any] = ...) -> bool: ... + + +class QVoice(PyQt6.sip.simplewrapper): + + class Age(enum.Enum): + Child = ... # type: QVoice.Age + Teenager = ... # type: QVoice.Age + Adult = ... # type: QVoice.Age + Senior = ... # type: QVoice.Age + Other = ... # type: QVoice.Age + + class Gender(enum.Enum): + Male = ... # type: QVoice.Gender + Female = ... # type: QVoice.Gender + Unknown = ... # type: QVoice.Gender + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QVoice') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def language(self) -> QtCore.QLocale.Language: ... + def locale(self) -> QtCore.QLocale: ... + def swap(self, other: 'QVoice') -> None: ... + @staticmethod + def ageName(age: 'QVoice.Age') -> str: ... + @staticmethod + def genderName(gender: 'QVoice.Gender') -> str: ... + def age(self) -> 'QVoice.Age': ... + def gender(self) -> 'QVoice.Gender': ... + def name(self) -> str: ... diff --git a/typings/PyQt6/QtWebChannel.pyi b/typings/PyQt6/QtWebChannel.pyi new file mode 100644 index 00000000..4f87e1ca --- /dev/null +++ b/typings/PyQt6/QtWebChannel.pyi @@ -0,0 +1,64 @@ +# The PEP 484 type hints stub file for the QtWebChannel module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 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[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QWebChannel(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + blockUpdatesChanged: typing.ClassVar[QtCore.pyqtSignal] + def disconnectFrom(self, transport: 'QWebChannelAbstractTransport|None') -> None: ... + def connectTo(self, transport: 'QWebChannelAbstractTransport|None') -> None: ... + def setPropertyUpdateInterval(self, ms: int) -> None: ... + def propertyUpdateInterval(self) -> int: ... + def setBlockUpdates(self, block: bool) -> None: ... + def blockUpdates(self) -> bool: ... + def deregisterObject(self, object: QtCore.QObject|None) -> None: ... + def registerObject(self, id: str|None, object: QtCore.QObject|None) -> None: ... + def registeredObjects(self) -> dict[str, QtCore.QObject]: ... + def registerObjects(self, objects: dict[str|None, QtCore.QObject]) -> None: ... + + +class QWebChannelAbstractTransport(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + messageReceived: typing.ClassVar[QtCore.pyqtSignal] + def sendMessage(self, message: dict[str|None, QtCore.QJsonValue|QtCore.QJsonValue.Type|collections.abc.Iterable[QtCore.QJsonValue]|dict[str|None, QtCore.QJsonValue]|bool|int|float|None|str|None]) -> None: ... diff --git a/typings/PyQt6/QtWebSockets.pyi b/typings/PyQt6/QtWebSockets.pyi new file mode 100644 index 00000000..f3264698 --- /dev/null +++ b/typings/PyQt6/QtWebSockets.pyi @@ -0,0 +1,239 @@ +# The PEP 484 type hints stub file for the QtWebSockets module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtNetwork + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QMaskGenerator(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def nextMask(self) -> int: ... + def seed(self) -> bool: ... + + +class QWebSocket(QtCore.QObject): + + def __init__(self, origin: str|None = ..., version: 'QWebSocketProtocol.Version' = ..., parent: QtCore.QObject|None = ...) -> None: ... + + authenticationRequired: typing.ClassVar[QtCore.pyqtSignal] + errorOccurred: typing.ClassVar[QtCore.pyqtSignal] + def subprotocol(self) -> str: ... + def handshakeOptions(self) -> 'QWebSocketHandshakeOptions': ... + handshakeInterruptedOnError: typing.ClassVar[QtCore.pyqtSignal] + alertReceived: typing.ClassVar[QtCore.pyqtSignal] + alertSent: typing.ClassVar[QtCore.pyqtSignal] + peerVerifyError: typing.ClassVar[QtCore.pyqtSignal] + def continueInterruptedHandshake(self) -> None: ... + @staticmethod + def maxOutgoingFrameSize() -> int: ... + def outgoingFrameSize(self) -> int: ... + def setOutgoingFrameSize(self, outgoingFrameSize: int) -> None: ... + @staticmethod + def maxIncomingFrameSize() -> int: ... + @staticmethod + def maxIncomingMessageSize() -> int: ... + def maxAllowedIncomingMessageSize(self) -> int: ... + def setMaxAllowedIncomingMessageSize(self, maxAllowedIncomingMessageSize: int) -> None: ... + def maxAllowedIncomingFrameSize(self) -> int: ... + def setMaxAllowedIncomingFrameSize(self, maxAllowedIncomingFrameSize: int) -> None: ... + def bytesToWrite(self) -> int: ... + preSharedKeyAuthenticationRequired: typing.ClassVar[QtCore.pyqtSignal] + sslErrors: typing.ClassVar[QtCore.pyqtSignal] + bytesWritten: typing.ClassVar[QtCore.pyqtSignal] + pong: typing.ClassVar[QtCore.pyqtSignal] + binaryMessageReceived: typing.ClassVar[QtCore.pyqtSignal] + textMessageReceived: typing.ClassVar[QtCore.pyqtSignal] + binaryFrameReceived: typing.ClassVar[QtCore.pyqtSignal] + textFrameReceived: typing.ClassVar[QtCore.pyqtSignal] + readChannelFinished: typing.ClassVar[QtCore.pyqtSignal] + proxyAuthenticationRequired: typing.ClassVar[QtCore.pyqtSignal] + stateChanged: typing.ClassVar[QtCore.pyqtSignal] + disconnected: typing.ClassVar[QtCore.pyqtSignal] + connected: typing.ClassVar[QtCore.pyqtSignal] + aboutToClose: typing.ClassVar[QtCore.pyqtSignal] + def ping(self, payload: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> None: ... + @typing.overload + def open(self, request: QtNetwork.QNetworkRequest, options: 'QWebSocketHandshakeOptions') -> None: ... + @typing.overload + def open(self, url: QtCore.QUrl, options: 'QWebSocketHandshakeOptions') -> 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 = ...) -> None: ... + def request(self) -> QtNetwork.QNetworkRequest: ... + def sslConfiguration(self) -> QtNetwork.QSslConfiguration: ... + def setSslConfiguration(self, sslConfiguration: QtNetwork.QSslConfiguration) -> None: ... + @typing.overload + def ignoreSslErrors(self, errors: collections.abc.Iterable[QtNetwork.QSslError]) -> None: ... + @typing.overload + def ignoreSslErrors(self) -> None: ... + def sendBinaryMessage(self, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> int: ... + def sendTextMessage(self, message: str|None) -> 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: QtNetwork.QAbstractSocket.PauseMode) -> None: ... + def resume(self) -> None: ... + def setReadBufferSize(self, size: int) -> None: ... + def readBufferSize(self) -> int: ... + def maskGenerator(self) -> QMaskGenerator|None: ... + def setMaskGenerator(self, maskGenerator: QMaskGenerator|None) -> 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.PauseMode: ... + def localPort(self) -> int: ... + def localAddress(self) -> QtNetwork.QHostAddress: ... + def isValid(self) -> bool: ... + def flush(self) -> bool: ... + def errorString(self) -> str: ... + error: typing.ClassVar[QtCore.pyqtSignal] + def abort(self) -> None: ... + + +class QWebSocketCorsAuthenticator(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self, origin: str|None) -> 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 QWebSocketHandshakeOptions(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QWebSocketHandshakeOptions') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + def setSubprotocols(self, protocols: collections.abc.Iterable[str|None]) -> None: ... + def subprotocols(self) -> list[str]: ... + def swap(self, other: 'QWebSocketHandshakeOptions') -> None: ... + + +class QWebSocketProtocol(PyQt6.sip.simplewrapper): + + class CloseCode(enum.Enum): + 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(enum.Enum): + 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(enum.Enum): + SecureMode = ... # type: QWebSocketServer.SslMode + NonSecureMode = ... # type: QWebSocketServer.SslMode + + def __init__(self, serverName: str|None, secureMode: 'QWebSocketServer.SslMode', parent: QtCore.QObject|None = ...) -> None: ... + + sslErrorsOccurred: typing.ClassVar[QtCore.pyqtSignal] + def supportedSubprotocols(self) -> list[str]: ... + def setSupportedSubprotocols(self, protocols: collections.abc.Iterable[str|None]) -> None: ... + def handshakeTimeoutMS(self) -> int: ... + def setHandshakeTimeout(self, msec: int) -> None: ... + preSharedKeyAuthenticationRequired: typing.ClassVar[QtCore.pyqtSignal] + closed: typing.ClassVar[QtCore.pyqtSignal] + sslErrors: typing.ClassVar[QtCore.pyqtSignal] + peerVerifyError: typing.ClassVar[QtCore.pyqtSignal] + newConnection: typing.ClassVar[QtCore.pyqtSignal] + originAuthenticationRequired: typing.ClassVar[QtCore.pyqtSignal] + serverError: typing.ClassVar[QtCore.pyqtSignal] + acceptError: typing.ClassVar[QtCore.pyqtSignal] + def handleConnection(self, socket: QtNetwork.QTcpSocket|None) -> None: ... + def serverUrl(self) -> QtCore.QUrl: ... + def supportedVersions(self) -> 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) -> None: ... + def resumeAccepting(self) -> None: ... + def pauseAccepting(self) -> None: ... + def errorString(self) -> str: ... + def error(self) -> QWebSocketProtocol.CloseCode: ... + def nextPendingConnection(self) -> QWebSocket|None: ... + def hasPendingConnections(self) -> bool: ... + def socketDescriptor(self) -> PyQt6.sip.voidptr: ... + def setSocketDescriptor(self, socketDescriptor: PyQt6.sip.voidptr) -> 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: QtNetwork.QHostAddress|QtNetwork.QHostAddress.SpecialAddress = ..., port: int = ...) -> bool: ... diff --git a/typings/PyQt6/QtWidgets.pyi b/typings/PyQt6/QtWidgets.pyi new file mode 100644 index 00000000..9d540bfe --- /dev/null +++ b/typings/PyQt6/QtWidgets.pyi @@ -0,0 +1,8909 @@ +# The PEP 484 type hints stub file for the QtWidgets module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections.abc, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 import QtCore +from PyQt6 import QtGui + +# Support for QDate, QDateTime and QTime. +import datetime + +# Convenient type aliases. +PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QWidget(QtCore.QObject, QtGui.QPaintDevice): + + class RenderFlag(enum.Flag): + DrawWindowBackground = ... # type: QWidget.RenderFlag + DrawChildren = ... # type: QWidget.RenderFlag + IgnoreMask = ... # type: QWidget.RenderFlag + + def __init__(self, parent: 'QWidget|None' = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + def setAccessibleIdentifier(self, identifier: str|None) -> None: ... + def accessibleIdentifier(self) -> str: ... + def setScreen(self, a0: QtGui.QScreen|None) -> None: ... + def screen(self) -> QtGui.QScreen|None: ... + def setWindowFlag(self, a0: QtCore.Qt.WindowType, on: bool = ...) -> None: ... + def hasTabletTracking(self) -> bool: ... + def setTabletTracking(self, enable: bool) -> None: ... + windowIconTextChanged: typing.ClassVar[QtCore.pyqtSignal] + windowIconChanged: typing.ClassVar[QtCore.pyqtSignal] + windowTitleChanged: typing.ClassVar[QtCore.pyqtSignal] + def toolTipDuration(self) -> int: ... + def setToolTipDuration(self, msec: int) -> None: ... + def initPainter(self, painter: QtGui.QPainter|None) -> None: ... + def sharedPainter(self) -> QtGui.QPainter|None: ... + def nativeEvent(self, eventType: QtCore.QByteArray|bytes|bytearray|memoryview, message: PyQt6.sip.voidptr) -> typing.Tuple[bool, PyQt6.sip.voidptr]: ... + def windowHandle(self) -> QtGui.QWindow|None: ... + @staticmethod + def createWindowContainer(window: QtGui.QWindow|None, parent: 'QWidget|None' = ..., flags: QtCore.Qt.WindowType = ...) -> 'QWidget': ... + def grab(self, rectangle: QtCore.QRect = ...) -> QtGui.QPixmap: ... + def hasHeightForWidth(self) -> bool: ... + def setInputMethodHints(self, hints: QtCore.Qt.InputMethodHint) -> None: ... + def inputMethodHints(self) -> QtCore.Qt.InputMethodHint: ... + def previousInFocusChain(self) -> 'QWidget|None': ... + def contentsMargins(self) -> QtCore.QMargins: ... + def ungrabGesture(self, type: QtCore.Qt.GestureType) -> None: ... + def grabGesture(self, type: QtCore.Qt.GestureType, flags: QtCore.Qt.GestureFlag = ...) -> None: ... + def setGraphicsEffect(self, effect: 'QGraphicsEffect|None') -> None: ... + def graphicsEffect(self) -> 'QGraphicsEffect|None': ... + def graphicsProxyWidget(self) -> 'QGraphicsProxyWidget|None': ... + def windowFilePath(self) -> str: ... + def setWindowFilePath(self, filePath: str|None) -> None: ... + def nativeParentWidget(self) -> 'QWidget|None': ... + def effectiveWinId(self) -> PyQt6.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|None, targetOffset: QtCore.QPoint = ..., sourceRegion: QtGui.QRegion = ..., flags: 'QWidget.RenderFlag' = ...) -> None: ... + @typing.overload + def render(self, painter: QtGui.QPainter|None, targetOffset: QtCore.QPoint = ..., sourceRegion: QtGui.QRegion = ..., flags: 'QWidget.RenderFlag' = ...) -> None: ... + def restoreGeometry(self, geometry: QtCore.QByteArray|bytes|bytearray|memoryview) -> bool: ... + def saveGeometry(self) -> QtCore.QByteArray: ... + def setShortcutAutoRepeat(self, id: int, enabled: bool = ...) -> None: ... + def styleSheet(self) -> str: ... + def setStyleSheet(self, styleSheet: str|None) -> 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|None': ... + 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) -> PyQt6.sip.voidptr: ... + def windowFlags(self) -> QtCore.Qt.WindowType: ... + 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: PyQt6.sip.voidptr = ..., initializeWindow: bool = ..., destroyOldWindow: bool = ...) -> None: ... + def updateMicroFocus(self, query: QtCore.Qt.InputMethodQuery = ...) -> None: ... + def inputMethodQuery(self, a0: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + def inputMethodEvent(self, a0: QtGui.QInputMethodEvent|None) -> None: ... + def metric(self, a0: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ... + def changeEvent(self, a0: QtCore.QEvent|None) -> None: ... + def hideEvent(self, a0: QtGui.QHideEvent|None) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent|None) -> None: ... + def dropEvent(self, a0: QtGui.QDropEvent|None) -> None: ... + def dragLeaveEvent(self, a0: QtGui.QDragLeaveEvent|None) -> None: ... + def dragMoveEvent(self, a0: QtGui.QDragMoveEvent|None) -> None: ... + def dragEnterEvent(self, a0: QtGui.QDragEnterEvent|None) -> None: ... + def actionEvent(self, a0: QtGui.QActionEvent|None) -> None: ... + def tabletEvent(self, a0: QtGui.QTabletEvent|None) -> None: ... + def contextMenuEvent(self, a0: QtGui.QContextMenuEvent|None) -> None: ... + def closeEvent(self, a0: QtGui.QCloseEvent|None) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + def moveEvent(self, a0: QtGui.QMoveEvent|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def leaveEvent(self, a0: QtCore.QEvent|None) -> None: ... + def enterEvent(self, event: QtGui.QEnterEvent|None) -> None: ... + def focusOutEvent(self, a0: QtGui.QFocusEvent|None) -> None: ... + def focusInEvent(self, a0: QtGui.QFocusEvent|None) -> None: ... + def keyReleaseEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def wheelEvent(self, a0: QtGui.QWheelEvent|None) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def event(self, a0: QtCore.QEvent|None) -> bool: ... + customContextMenuRequested: typing.ClassVar[QtCore.pyqtSignal] + def isAncestorOf(self, child: 'QWidget|None') -> bool: ... + def ensurePolished(self) -> None: ... + def paintEngine(self) -> QtGui.QPaintEngine|None: ... + def setAttribute(self, attribute: QtCore.Qt.WidgetAttribute, on: bool = ...) -> None: ... + @typing.overload + def childAt(self, p: QtCore.QPoint) -> 'QWidget|None': ... + @typing.overload + def childAt(self, p: QtCore.QPointF) -> 'QWidget|None': ... + @typing.overload + def childAt(self, ax: int, ay: int) -> 'QWidget|None': ... + @staticmethod + def find(a0: PyQt6.sip.voidptr) -> 'QWidget|None': ... + def overrideWindowFlags(self, type: QtCore.Qt.WindowType) -> None: ... + def setWindowFlags(self, type: QtCore.Qt.WindowType) -> None: ... + def actions(self) -> list[QtGui.QAction]: ... + def removeAction(self, action: QtGui.QAction|None) -> None: ... + def insertActions(self, before: QtGui.QAction|None, actions: collections.abc.Iterable[QtGui.QAction]) -> None: ... + def insertAction(self, before: QtGui.QAction|None, action: QtGui.QAction|None) -> None: ... + def addActions(self, actions: collections.abc.Iterable[QtGui.QAction]) -> None: ... + @typing.overload + def addAction(self, icon: QtGui.QIcon, text: str|None) -> QtGui.QAction|None: ... + @typing.overload + def addAction(self, icon: QtGui.QIcon, text: str|None, slot: PYQT_SLOT, type: QtCore.Qt.ConnectionType = ...) -> QtGui.QAction|None: ... + @typing.overload + def addAction(self, icon: QtGui.QIcon, text: str|None, shortcut: QtGui.QKeySequence|QtGui.QKeySequence.StandardKey|str|None|int) -> QtGui.QAction|None: ... + @typing.overload + def addAction(self, icon: QtGui.QIcon, text: str|None, shortcut: QtGui.QKeySequence|QtGui.QKeySequence.StandardKey|str|None|int, slot: PYQT_SLOT, type: QtCore.Qt.ConnectionType = ...) -> QtGui.QAction|None: ... + @typing.overload + def addAction(self, text: str|None) -> QtGui.QAction|None: ... + @typing.overload + def addAction(self, text: str|None, shortcut: QtGui.QKeySequence|QtGui.QKeySequence.StandardKey|str|None|int) -> QtGui.QAction|None: ... + @typing.overload + def addAction(self, text: str|None, slot: PYQT_SLOT, type: QtCore.Qt.ConnectionType = ...) -> QtGui.QAction|None: ... + @typing.overload + def addAction(self, text: str|None, shortcut: QtGui.QKeySequence|QtGui.QKeySequence.StandardKey|str|None|int, slot: PYQT_SLOT, type: QtCore.Qt.ConnectionType = ...) -> QtGui.QAction|None: ... + @typing.overload + def addAction(self, action: QtGui.QAction|None) -> None: ... + def setAcceptDrops(self, on: bool) -> None: ... + def acceptDrops(self) -> bool: ... + def nextInFocusChain(self) -> 'QWidget|None': ... + def focusWidget(self) -> 'QWidget|None': ... + @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') -> None: ... + @typing.overload + def setParent(self, parent: 'QWidget|None', f: QtCore.Qt.WindowType) -> None: ... + def updateGeometry(self) -> None: ... + def setLayout(self, a0: 'QLayout|None') -> None: ... + def layout(self) -> 'QLayout|None': ... + def contentsRect(self) -> QtCore.QRect: ... + @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: QtCore.Qt.WindowState) -> None: ... + def setWindowState(self, state: QtCore.Qt.WindowState) -> None: ... + def windowState(self) -> QtCore.Qt.WindowState: ... + def isFullScreen(self) -> bool: ... + def isMaximized(self) -> bool: ... + def isMinimized(self) -> bool: ... + def isVisibleTo(self, a0: 'QWidget|None') -> 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') -> 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|None': ... + @staticmethod + def mouseGrabber() -> 'QWidget|None': ... + def setShortcutEnabled(self, id: int, enabled: bool = ...) -> None: ... + def releaseShortcut(self, id: int) -> None: ... + def grabShortcut(self, key: QtGui.QKeySequence|QtGui.QKeySequence.StandardKey|str|None|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: QtGui.QCursor|QtCore.Qt.CursorShape) -> None: ... + def setContextMenuPolicy(self, policy: QtCore.Qt.ContextMenuPolicy) -> None: ... + def contextMenuPolicy(self) -> QtCore.Qt.ContextMenuPolicy: ... + def focusProxy(self) -> 'QWidget|None': ... + def setFocusProxy(self, a0: 'QWidget|None') -> None: ... + @staticmethod + def setTabOrder(a0: 'QWidget|None', a1: 'QWidget|None') -> 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) -> None: ... + def accessibleDescription(self) -> str: ... + def setAccessibleName(self, name: str|None) -> None: ... + def accessibleName(self) -> str: ... + def whatsThis(self) -> str: ... + def setWhatsThis(self, a0: str|None) -> None: ... + def statusTip(self) -> str: ... + def setStatusTip(self, a0: str|None) -> None: ... + def toolTip(self) -> str: ... + def setToolTip(self, a0: str|None) -> 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) -> None: ... + def windowIconText(self) -> str: ... + def setWindowIconText(self, a0: str|None) -> None: ... + def windowIcon(self) -> QtGui.QIcon: ... + def setWindowIcon(self, icon: QtGui.QIcon) -> None: ... + def windowTitle(self) -> str: ... + def setWindowTitle(self, a0: str|None) -> 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: 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|None': ... + @typing.overload + def mapFrom(self, a0: 'QWidget|None', a1: QtCore.QPoint) -> QtCore.QPoint: ... + @typing.overload + def mapFrom(self, a0: 'QWidget|None', a1: QtCore.QPointF) -> QtCore.QPointF: ... + @typing.overload + def mapTo(self, a0: 'QWidget|None', a1: QtCore.QPoint) -> QtCore.QPoint: ... + @typing.overload + def mapTo(self, a0: 'QWidget|None', a1: QtCore.QPointF) -> QtCore.QPointF: ... + @typing.overload + def mapFromParent(self, a0: QtCore.QPoint) -> QtCore.QPoint: ... + @typing.overload + def mapFromParent(self, a0: QtCore.QPointF) -> QtCore.QPointF: ... + @typing.overload + def mapToParent(self, a0: QtCore.QPoint) -> QtCore.QPoint: ... + @typing.overload + def mapToParent(self, a0: QtCore.QPointF) -> QtCore.QPointF: ... + @typing.overload + def mapFromGlobal(self, a0: QtCore.QPoint) -> QtCore.QPoint: ... + @typing.overload + def mapFromGlobal(self, a0: QtCore.QPointF) -> QtCore.QPointF: ... + @typing.overload + def mapToGlobal(self, a0: QtCore.QPoint) -> QtCore.QPoint: ... + @typing.overload + def mapToGlobal(self, a0: QtCore.QPointF) -> QtCore.QPointF: ... + 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|None') -> bool: ... + def setStyle(self, a0: 'QStyle|None') -> None: ... + def style(self) -> 'QStyle|None': ... + def devType(self) -> int: ... + + +class QAbstractButton(QWidget): + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def timerEvent(self, e: QtCore.QTimerEvent|None) -> None: ... + def changeEvent(self, e: QtCore.QEvent|None) -> None: ... + def focusOutEvent(self, e: QtGui.QFocusEvent|None) -> None: ... + def focusInEvent(self, e: QtGui.QFocusEvent|None) -> None: ... + def mouseMoveEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def keyReleaseEvent(self, e: QtGui.QKeyEvent|None) -> None: ... + def keyPressEvent(self, e: QtGui.QKeyEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + def nextCheckState(self) -> None: ... + def checkStateSet(self) -> None: ... + def hitButton(self, pos: QtCore.QPoint) -> bool: ... + def paintEvent(self, e: QtGui.QPaintEvent|None) -> None: ... + toggled: typing.ClassVar[QtCore.pyqtSignal] + clicked: typing.ClassVar[QtCore.pyqtSignal] + released: typing.ClassVar[QtCore.pyqtSignal] + pressed: typing.ClassVar[QtCore.pyqtSignal] + def setChecked(self, a0: bool) -> None: ... + def toggle(self) -> None: ... + def click(self) -> None: ... + def animateClick(self) -> None: ... + def setIconSize(self, size: QtCore.QSize) -> None: ... + def group(self) -> 'QButtonGroup|None': ... + 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: QtGui.QKeySequence|QtGui.QKeySequence.StandardKey|str|None|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) -> 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(enum.Enum): + NoHint = ... # type: QAbstractItemDelegate.EndEditHint + EditNextItem = ... # type: QAbstractItemDelegate.EndEditHint + EditPreviousItem = ... # type: QAbstractItemDelegate.EndEditHint + SubmitModelCache = ... # type: QAbstractItemDelegate.EndEditHint + RevertModelCache = ... # type: QAbstractItemDelegate.EndEditHint + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def handleEditorEvent(self, object: QtCore.QObject|None, event: QtCore.QEvent|None) -> bool: ... + sizeHintChanged: typing.ClassVar[QtCore.pyqtSignal] + closeEditor: typing.ClassVar[QtCore.pyqtSignal] + commitData: typing.ClassVar[QtCore.pyqtSignal] + def helpEvent(self, event: QtGui.QHelpEvent|None, view: 'QAbstractItemView|None', option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> bool: ... + def editorEvent(self, event: QtCore.QEvent|None, model: QtCore.QAbstractItemModel|None, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> bool: ... + def destroyEditor(self, editor: QWidget|None, index: QtCore.QModelIndex) -> None: ... + def updateEditorGeometry(self, editor: QWidget|None, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> None: ... + def setModelData(self, editor: QWidget|None, model: QtCore.QAbstractItemModel|None, index: QtCore.QModelIndex) -> None: ... + def setEditorData(self, editor: QWidget|None, index: QtCore.QModelIndex) -> None: ... + def createEditor(self, parent: QWidget|None, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> QWidget|None: ... + def sizeHint(self, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> QtCore.QSize: ... + def paint(self, painter: QtGui.QPainter|None, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> None: ... + + +class QFrame(QWidget): + + class StyleMask(enum.Enum): + Shadow_Mask = ... # type: QFrame.StyleMask + Shape_Mask = ... # type: QFrame.StyleMask + + class Shape(enum.IntEnum): + 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(enum.IntEnum): + Plain = ... # type: QFrame.Shadow + Raised = ... # type: QFrame.Shadow + Sunken = ... # type: QFrame.Shadow + + def __init__(self, parent: QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + def initStyleOption(self, option: 'QStyleOptionFrame|None') -> None: ... + def drawFrame(self, a0: QtGui.QPainter|None) -> None: ... + def changeEvent(self, a0: QtCore.QEvent|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> 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(enum.Enum): + AdjustIgnored = ... # type: QAbstractScrollArea.SizeAdjustPolicy + AdjustToContentsOnFirstShow = ... # type: QAbstractScrollArea.SizeAdjustPolicy + AdjustToContents = ... # type: QAbstractScrollArea.SizeAdjustPolicy + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def setSizeAdjustPolicy(self, policy: 'QAbstractScrollArea.SizeAdjustPolicy') -> None: ... + def sizeAdjustPolicy(self) -> 'QAbstractScrollArea.SizeAdjustPolicy': ... + def setupViewport(self, viewport: QWidget|None) -> None: ... + def setViewport(self, widget: QWidget|None) -> None: ... + def scrollBarWidgets(self, alignment: QtCore.Qt.AlignmentFlag) -> list[QWidget]: ... + def addScrollBarWidget(self, widget: QWidget|None, alignment: QtCore.Qt.AlignmentFlag) -> None: ... + def setCornerWidget(self, widget: QWidget|None) -> None: ... + def cornerWidget(self) -> QWidget|None: ... + def setHorizontalScrollBar(self, scrollbar: 'QScrollBar|None') -> None: ... + def setVerticalScrollBar(self, scrollbar: 'QScrollBar|None') -> None: ... + def scrollContentsBy(self, dx: int, dy: int) -> None: ... + def eventFilter(self, a0: QtCore.QObject|None, a1: QtCore.QEvent|None) -> bool: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def dropEvent(self, a0: QtGui.QDropEvent|None) -> None: ... + def dragLeaveEvent(self, a0: QtGui.QDragLeaveEvent|None) -> None: ... + def dragMoveEvent(self, a0: QtGui.QDragMoveEvent|None) -> None: ... + def dragEnterEvent(self, a0: QtGui.QDragEnterEvent|None) -> None: ... + def contextMenuEvent(self, a0: QtGui.QContextMenuEvent|None) -> None: ... + def wheelEvent(self, a0: QtGui.QWheelEvent|None) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + def viewportEvent(self, a0: QtCore.QEvent|None) -> bool: ... + def event(self, a0: QtCore.QEvent|None) -> 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|None: ... + def horizontalScrollBar(self) -> 'QScrollBar|None': ... + def setHorizontalScrollBarPolicy(self, a0: QtCore.Qt.ScrollBarPolicy) -> None: ... + def horizontalScrollBarPolicy(self) -> QtCore.Qt.ScrollBarPolicy: ... + def verticalScrollBar(self) -> 'QScrollBar|None': ... + def setVerticalScrollBarPolicy(self, a0: QtCore.Qt.ScrollBarPolicy) -> None: ... + def verticalScrollBarPolicy(self) -> QtCore.Qt.ScrollBarPolicy: ... + + +class QAbstractItemView(QAbstractScrollArea): + + class DropIndicatorPosition(enum.Enum): + OnItem = ... # type: QAbstractItemView.DropIndicatorPosition + AboveItem = ... # type: QAbstractItemView.DropIndicatorPosition + BelowItem = ... # type: QAbstractItemView.DropIndicatorPosition + OnViewport = ... # type: QAbstractItemView.DropIndicatorPosition + + class State(enum.Enum): + 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(enum.Enum): + 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(enum.Enum): + NoSelection = ... # type: QAbstractItemView.SelectionMode + SingleSelection = ... # type: QAbstractItemView.SelectionMode + MultiSelection = ... # type: QAbstractItemView.SelectionMode + ExtendedSelection = ... # type: QAbstractItemView.SelectionMode + ContiguousSelection = ... # type: QAbstractItemView.SelectionMode + + class SelectionBehavior(enum.Enum): + SelectItems = ... # type: QAbstractItemView.SelectionBehavior + SelectRows = ... # type: QAbstractItemView.SelectionBehavior + SelectColumns = ... # type: QAbstractItemView.SelectionBehavior + + class ScrollMode(enum.Enum): + ScrollPerItem = ... # type: QAbstractItemView.ScrollMode + ScrollPerPixel = ... # type: QAbstractItemView.ScrollMode + + class ScrollHint(enum.Enum): + EnsureVisible = ... # type: QAbstractItemView.ScrollHint + PositionAtTop = ... # type: QAbstractItemView.ScrollHint + PositionAtBottom = ... # type: QAbstractItemView.ScrollHint + PositionAtCenter = ... # type: QAbstractItemView.ScrollHint + + class EditTrigger(enum.Flag): + 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(enum.Enum): + NoDragDrop = ... # type: QAbstractItemView.DragDropMode + DragOnly = ... # type: QAbstractItemView.DragDropMode + DropOnly = ... # type: QAbstractItemView.DragDropMode + DragDrop = ... # type: QAbstractItemView.DragDropMode + InternalMove = ... # type: QAbstractItemView.DragDropMode + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def setKeyboardSearchFlags(self, searchFlags: QtCore.Qt.MatchFlag) -> None: ... + def keyboardSearchFlags(self) -> QtCore.Qt.MatchFlag: ... + def setUpdateThreshold(self, threshold: int) -> None: ... + def updateThreshold(self) -> int: ... + def initViewItemOption(self, option: 'QStyleOptionViewItem|None') -> 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|None, event: QtCore.QEvent|None) -> bool: ... + def viewportSizeHint(self) -> QtCore.QSize: ... + def inputMethodEvent(self, event: QtGui.QInputMethodEvent|None) -> 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 itemDelegateForIndex(self, index: QtCore.QModelIndex) -> QAbstractItemDelegate|None: ... + def itemDelegateForColumn(self, column: int) -> QAbstractItemDelegate|None: ... + def setItemDelegateForColumn(self, column: int, delegate: QAbstractItemDelegate|None) -> None: ... + def itemDelegateForRow(self, row: int) -> QAbstractItemDelegate|None: ... + def setItemDelegateForRow(self, row: int, delegate: QAbstractItemDelegate|None) -> 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) -> None: ... + def resizeEvent(self, e: QtGui.QResizeEvent|None) -> None: ... + def keyPressEvent(self, e: QtGui.QKeyEvent|None) -> None: ... + def focusOutEvent(self, e: QtGui.QFocusEvent|None) -> None: ... + def focusInEvent(self, e: QtGui.QFocusEvent|None) -> None: ... + def dropEvent(self, e: QtGui.QDropEvent|None) -> None: ... + def dragLeaveEvent(self, e: QtGui.QDragLeaveEvent|None) -> None: ... + def dragMoveEvent(self, e: QtGui.QDragMoveEvent|None) -> None: ... + def dragEnterEvent(self, e: QtGui.QDragEnterEvent|None) -> None: ... + def mouseDoubleClickEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mouseMoveEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def viewportEvent(self, e: QtCore.QEvent|None) -> bool: ... + def event(self, event: QtCore.QEvent|None) -> 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 startDrag(self, supportedActions: QtCore.Qt.DropAction) -> None: ... + def selectionCommand(self, index: QtCore.QModelIndex, event: QtCore.QEvent|None = ...) -> QtCore.QItemSelectionModel.SelectionFlag: ... + def selectedIndexes(self) -> list[QtCore.QModelIndex]: ... + def visualRegionForSelection(self, selection: QtCore.QItemSelection) -> QtGui.QRegion: ... + def setSelection(self, rect: QtCore.QRect, command: 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: QtCore.Qt.KeyboardModifier) -> QtCore.QModelIndex: ... + iconSizeChanged: typing.ClassVar[QtCore.pyqtSignal] + viewportEntered: typing.ClassVar[QtCore.pyqtSignal] + entered: typing.ClassVar[QtCore.pyqtSignal] + activated: typing.ClassVar[QtCore.pyqtSignal] + doubleClicked: typing.ClassVar[QtCore.pyqtSignal] + clicked: typing.ClassVar[QtCore.pyqtSignal] + pressed: typing.ClassVar[QtCore.pyqtSignal] + def editorDestroyed(self, editor: QtCore.QObject|None) -> None: ... + def commitData(self, editor: QWidget|None) -> None: ... + def closeEditor(self, editor: QWidget|None, 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: collections.abc.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|None) -> bool: ... + def selectAll(self) -> None: ... + def setRootIndex(self, index: QtCore.QModelIndex) -> None: ... + def reset(self) -> None: ... + def indexWidget(self, index: QtCore.QModelIndex) -> QWidget|None: ... + def setIndexWidget(self, index: QtCore.QModelIndex, widget: QWidget|None) -> 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) -> 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.EditTrigger': ... + def setEditTriggers(self, triggers: '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: ... + def itemDelegate(self) -> QAbstractItemDelegate|None: ... + def setItemDelegate(self, delegate: QAbstractItemDelegate|None) -> None: ... + def selectionModel(self) -> QtCore.QItemSelectionModel|None: ... + def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel|None) -> None: ... + def model(self) -> QtCore.QAbstractItemModel|None: ... + def setModel(self, model: QtCore.QAbstractItemModel|None) -> None: ... + + +class QAbstractSlider(QWidget): + + class SliderChange(enum.Enum): + SliderRangeChange = ... # type: QAbstractSlider.SliderChange + SliderOrientationChange = ... # type: QAbstractSlider.SliderChange + SliderStepsChange = ... # type: QAbstractSlider.SliderChange + SliderValueChange = ... # type: QAbstractSlider.SliderChange + + class SliderAction(enum.Enum): + 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: QWidget|None = ...) -> None: ... + + def changeEvent(self, e: QtCore.QEvent|None) -> None: ... + def wheelEvent(self, e: QtGui.QWheelEvent|None) -> None: ... + def timerEvent(self, a0: QtCore.QTimerEvent|None) -> None: ... + def keyPressEvent(self, ev: QtGui.QKeyEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + def sliderChange(self, change: 'QAbstractSlider.SliderChange') -> None: ... + def repeatAction(self) -> 'QAbstractSlider.SliderAction': ... + def setRepeatAction(self, action: 'QAbstractSlider.SliderAction', thresholdTime: int = ..., repeatTime: int = ...) -> None: ... + actionTriggered: typing.ClassVar[QtCore.pyqtSignal] + rangeChanged: typing.ClassVar[QtCore.pyqtSignal] + sliderReleased: typing.ClassVar[QtCore.pyqtSignal] + sliderMoved: typing.ClassVar[QtCore.pyqtSignal] + sliderPressed: typing.ClassVar[QtCore.pyqtSignal] + valueChanged: typing.ClassVar[QtCore.pyqtSignal] + 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(enum.Enum): + DefaultStepType = ... # type: QAbstractSpinBox.StepType + AdaptiveDecimalStepType = ... # type: QAbstractSpinBox.StepType + + class CorrectionMode(enum.Enum): + CorrectToPreviousValue = ... # type: QAbstractSpinBox.CorrectionMode + CorrectToNearestValue = ... # type: QAbstractSpinBox.CorrectionMode + + class ButtonSymbols(enum.Enum): + UpDownArrows = ... # type: QAbstractSpinBox.ButtonSymbols + PlusMinus = ... # type: QAbstractSpinBox.ButtonSymbols + NoButtons = ... # type: QAbstractSpinBox.ButtonSymbols + + class StepEnabledFlag(enum.Flag): + StepNone = ... # type: QAbstractSpinBox.StepEnabledFlag + StepUpEnabled = ... # type: QAbstractSpinBox.StepEnabledFlag + StepDownEnabled = ... # type: QAbstractSpinBox.StepEnabledFlag + + def __init__(self, parent: QWidget|None = ...) -> 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') -> None: ... + def stepEnabled(self) -> 'QAbstractSpinBox.StepEnabledFlag': ... + def setLineEdit(self, e: 'QLineEdit|None') -> None: ... + def lineEdit(self) -> 'QLineEdit|None': ... + def showEvent(self, e: QtGui.QShowEvent|None) -> None: ... + def paintEvent(self, e: QtGui.QPaintEvent|None) -> None: ... + def timerEvent(self, e: QtCore.QTimerEvent|None) -> None: ... + def mouseMoveEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def hideEvent(self, e: QtGui.QHideEvent|None) -> None: ... + def closeEvent(self, e: QtGui.QCloseEvent|None) -> None: ... + def changeEvent(self, e: QtCore.QEvent|None) -> None: ... + def contextMenuEvent(self, e: QtGui.QContextMenuEvent|None) -> None: ... + def focusOutEvent(self, e: QtGui.QFocusEvent|None) -> None: ... + def focusInEvent(self, e: QtGui.QFocusEvent|None) -> None: ... + def wheelEvent(self, e: QtGui.QWheelEvent|None) -> None: ... + def keyReleaseEvent(self, e: QtGui.QKeyEvent|None) -> None: ... + def keyPressEvent(self, e: QtGui.QKeyEvent|None) -> None: ... + def resizeEvent(self, e: QtGui.QResizeEvent|None) -> None: ... + returnPressed: typing.ClassVar[QtCore.pyqtSignal] + editingFinished: typing.ClassVar[QtCore.pyqtSignal] + 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|None) -> str: ... + def validate(self, input: str|None, pos: int) -> typing.Tuple[QtGui.QValidator.State, str, int]: ... + def event(self, event: QtCore.QEvent|None) -> 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.AlignmentFlag: ... + def setAlignment(self, flag: 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) -> None: ... + def specialValueText(self) -> str: ... + def text(self) -> str: ... + def setButtonSymbols(self, bs: 'QAbstractSpinBox.ButtonSymbols') -> None: ... + def buttonSymbols(self) -> 'QAbstractSpinBox.ButtonSymbols': ... + + +class QApplication(QtGui.QGuiApplication): + + def __init__(self, argv: list[str]) -> None: ... + + def event(self, a0: QtCore.QEvent|None) -> bool: ... + def setStyleSheet(self, sheet: str|None) -> None: ... + def setAutoSipEnabled(self, enabled: bool) -> None: ... + @staticmethod + def closeAllWindows() -> None: ... + @staticmethod + def aboutQt() -> None: ... + focusChanged: typing.ClassVar[QtCore.pyqtSignal] + def styleSheet(self) -> str: ... + def autoSipEnabled(self) -> bool: ... + def notify(self, a0: QtCore.QObject|None, a1: QtCore.QEvent|None) -> bool: ... + @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 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|None, msecs: int = ...) -> None: ... + @staticmethod + def beep() -> None: ... + @typing.overload + @staticmethod + def topLevelAt(p: QtCore.QPoint) -> QWidget|None: ... + @typing.overload + @staticmethod + def topLevelAt(x: int, y: int) -> QWidget|None: ... + @typing.overload + @staticmethod + def widgetAt(p: QtCore.QPoint) -> QWidget|None: ... + @typing.overload + @staticmethod + def widgetAt(x: int, y: int) -> QWidget|None: ... + @staticmethod + def setActiveWindow(act: QWidget|None) -> None: ... + @staticmethod + def activeWindow() -> QWidget|None: ... + @staticmethod + def focusWidget() -> QWidget|None: ... + @staticmethod + def activeModalWidget() -> QWidget|None: ... + @staticmethod + def activePopupWidget() -> QWidget|None: ... + @staticmethod + def topLevelWidgets() -> list[QWidget]: ... + @staticmethod + def allWidgets() -> list[QWidget]: ... + @staticmethod + def setFont(a0: QtGui.QFont, className: str = ...) -> None: ... + @typing.overload + @staticmethod + def font() -> QtGui.QFont: ... + @typing.overload + @staticmethod + def font(a0: QWidget|None) -> QtGui.QFont: ... + @typing.overload + @staticmethod + def font(className: str) -> QtGui.QFont: ... + @staticmethod + def setPalette(a0: QtGui.QPalette, className: str = ...) -> None: ... + @typing.overload + @staticmethod + def palette() -> QtGui.QPalette: ... + @typing.overload + @staticmethod + def palette(a0: QWidget|None) -> QtGui.QPalette: ... + @typing.overload + @staticmethod + def palette(className: str) -> QtGui.QPalette: ... + @typing.overload + @staticmethod + def setStyle(a0: 'QStyle|None') -> None: ... + @typing.overload + @staticmethod + def setStyle(a0: str|None) -> 'QStyle|None': ... + @staticmethod + def style() -> 'QStyle|None': ... + + +class QLayoutItem(PyQt6.sip.wrapper): + + @typing.overload + def __init__(self, alignment: QtCore.Qt.AlignmentFlag = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QLayoutItem') -> None: ... + + def controlTypes(self) -> 'QSizePolicy.ControlType': ... + def setAlignment(self, a: QtCore.Qt.AlignmentFlag) -> None: ... + def alignment(self) -> QtCore.Qt.AlignmentFlag: ... + def spacerItem(self) -> 'QSpacerItem|None': ... + def layout(self) -> 'QLayout|None': ... + def widget(self) -> QWidget|None: ... + 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.Orientation: ... + def maximumSize(self) -> QtCore.QSize: ... + def minimumSize(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QLayout(QtCore.QObject, QLayoutItem): + + class SizeConstraint(enum.Enum): + SetDefaultConstraint = ... # type: QLayout.SizeConstraint + SetNoConstraint = ... # type: QLayout.SizeConstraint + SetMinimumSize = ... # type: QLayout.SizeConstraint + SetFixedSize = ... # type: QLayout.SizeConstraint + SetMaximumSize = ... # type: QLayout.SizeConstraint + SetMinAndMaxSize = ... # type: QLayout.SizeConstraint + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def verticalSizeConstraint(self) -> 'QLayout.SizeConstraint': ... + def setVerticalSizeConstraint(self, constraint: 'QLayout.SizeConstraint') -> None: ... + def horizontalSizeConstraint(self) -> 'QLayout.SizeConstraint': ... + def setHorizontalSizeConstraint(self, constraint: 'QLayout.SizeConstraint') -> None: ... + def setSizeConstraints(self, horizontal: 'QLayout.SizeConstraint', vertical: 'QLayout.SizeConstraint') -> None: ... + def unsetContentsMargins(self) -> None: ... + def replaceWidget(self, from_: QWidget|None, to: QWidget|None, options: QtCore.Qt.FindChildOption = ...) -> QLayoutItem|None: ... + def controlTypes(self) -> 'QSizePolicy.ControlType': ... + 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) -> None: ... + def addChildLayout(self, l: 'QLayout|None') -> None: ... + def childEvent(self, e: QtCore.QChildEvent|None) -> None: ... + def widgetEvent(self, a0: QtCore.QEvent|None) -> None: ... + @staticmethod + def closestAcceptableSize(w: QWidget|None, s: QtCore.QSize) -> QtCore.QSize: ... + def isEnabled(self) -> bool: ... + def setEnabled(self, a0: bool) -> None: ... + def layout(self) -> 'QLayout|None': ... + 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|None) -> int: ... + @typing.overload + def indexOf(self, a0: QLayoutItem|None) -> int: ... + def takeAt(self, index: int) -> QLayoutItem|None: ... + def itemAt(self, index: int) -> QLayoutItem|None: ... + def setGeometry(self, a0: QtCore.QRect) -> None: ... + def maximumSize(self) -> QtCore.QSize: ... + def minimumSize(self) -> QtCore.QSize: ... + def expandingDirections(self) -> QtCore.Qt.Orientation: ... + def removeItem(self, a0: QLayoutItem|None) -> None: ... + def removeWidget(self, w: QWidget|None) -> None: ... + def addItem(self, a0: QLayoutItem|None) -> None: ... + def addWidget(self, w: QWidget|None) -> None: ... + def update(self) -> None: ... + def activate(self) -> bool: ... + def geometry(self) -> QtCore.QRect: ... + def invalidate(self) -> None: ... + def parentWidget(self) -> QWidget|None: ... + def menuBar(self) -> QWidget|None: ... + def setMenuBar(self, w: QWidget|None) -> None: ... + def sizeConstraint(self) -> 'QLayout.SizeConstraint': ... + def setSizeConstraint(self, a0: 'QLayout.SizeConstraint') -> None: ... + @typing.overload + def setAlignment(self, w: QWidget|None, alignment: QtCore.Qt.AlignmentFlag) -> bool: ... + @typing.overload + def setAlignment(self, l: 'QLayout|None', alignment: QtCore.Qt.AlignmentFlag) -> bool: ... + @typing.overload + def setAlignment(self, a0: QtCore.Qt.AlignmentFlag) -> None: ... + def setSpacing(self, a0: int) -> None: ... + def spacing(self) -> int: ... + + +class QBoxLayout(QLayout): + + class Direction(enum.Enum): + 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: QWidget|None = ...) -> None: ... + + def insertItem(self, index: int, a1: QLayoutItem|None) -> None: ... + def stretch(self, index: int) -> int: ... + def setStretch(self, index: int, stretch: int) -> None: ... + def insertSpacerItem(self, index: int, spacerItem: 'QSpacerItem|None') -> None: ... + def addSpacerItem(self, spacerItem: 'QSpacerItem|None') -> 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|None: ... + def itemAt(self, a0: int) -> QLayoutItem|None: ... + def invalidate(self) -> None: ... + def expandingDirections(self) -> QtCore.Qt.Orientation: ... + 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|None, stretch: int) -> bool: ... + @typing.overload + def setStretchFactor(self, l: QLayout|None, stretch: int) -> bool: ... + def insertLayout(self, index: int, layout: QLayout|None, stretch: int = ...) -> None: ... + def insertWidget(self, index: int, widget: QWidget|None, stretch: int = ..., 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) -> None: ... + def addStrut(self, a0: int) -> None: ... + def addLayout(self, layout: QLayout|None, stretch: int = ...) -> None: ... + def addWidget(self, a0: QWidget|None, stretch: int = ..., 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) -> None: ... + + +class QVBoxLayout(QBoxLayout): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, parent: QWidget|None) -> None: ... + + +class QButtonGroup(QtCore.QObject): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + idToggled: typing.ClassVar[QtCore.pyqtSignal] + idReleased: typing.ClassVar[QtCore.pyqtSignal] + idPressed: typing.ClassVar[QtCore.pyqtSignal] + idClicked: typing.ClassVar[QtCore.pyqtSignal] + buttonToggled: typing.ClassVar[QtCore.pyqtSignal] + buttonReleased: typing.ClassVar[QtCore.pyqtSignal] + buttonPressed: typing.ClassVar[QtCore.pyqtSignal] + buttonClicked: typing.ClassVar[QtCore.pyqtSignal] + def checkedId(self) -> int: ... + def id(self, button: QAbstractButton|None) -> int: ... + def setId(self, button: QAbstractButton|None, id: int) -> None: ... + def checkedButton(self) -> QAbstractButton|None: ... + def button(self, id: int) -> QAbstractButton|None: ... + def buttons(self) -> list[QAbstractButton]: ... + def removeButton(self, a0: QAbstractButton|None) -> None: ... + def addButton(self, a0: QAbstractButton|None, id: int = ...) -> None: ... + def exclusive(self) -> bool: ... + def setExclusive(self, a0: bool) -> None: ... + + +class QCalendarWidget(QWidget): + + class SelectionMode(enum.Enum): + NoSelection = ... # type: QCalendarWidget.SelectionMode + SingleSelection = ... # type: QCalendarWidget.SelectionMode + + class VerticalHeaderFormat(enum.Enum): + NoVerticalHeader = ... # type: QCalendarWidget.VerticalHeaderFormat + ISOWeekNumbers = ... # type: QCalendarWidget.VerticalHeaderFormat + + class HorizontalHeaderFormat(enum.Enum): + NoHorizontalHeader = ... # type: QCalendarWidget.HorizontalHeaderFormat + SingleLetterDayNames = ... # type: QCalendarWidget.HorizontalHeaderFormat + ShortDayNames = ... # type: QCalendarWidget.HorizontalHeaderFormat + LongDayNames = ... # type: QCalendarWidget.HorizontalHeaderFormat + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def clearMaximumDate(self) -> None: ... + def clearMinimumDate(self) -> None: ... + def setCalendar(self, calendar: QtCore.QCalendar) -> None: ... + def calendar(self) -> QtCore.QCalendar: ... + 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: ... + selectionChanged: typing.ClassVar[QtCore.pyqtSignal] + currentPageChanged: typing.ClassVar[QtCore.pyqtSignal] + clicked: typing.ClassVar[QtCore.pyqtSignal] + activated: typing.ClassVar[QtCore.pyqtSignal] + 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: QtCore.QDate|datetime.date) -> None: ... + def setDateRange(self, min: QtCore.QDate|datetime.date, max: QtCore.QDate|datetime.date) -> None: ... + def setCurrentPage(self, year: int, month: int) -> None: ... + def paintCell(self, painter: QtGui.QPainter|None, rect: QtCore.QRect, date: QtCore.QDate|datetime.date) -> None: ... + def keyPressEvent(self, event: QtGui.QKeyEvent|None) -> None: ... + def resizeEvent(self, event: QtGui.QResizeEvent|None) -> None: ... + def mousePressEvent(self, event: QtGui.QMouseEvent|None) -> None: ... + def eventFilter(self, watched: QtCore.QObject|None, event: QtCore.QEvent|None) -> bool: ... + def event(self, event: QtCore.QEvent|None) -> bool: ... + def updateCells(self) -> None: ... + def updateCell(self, date: QtCore.QDate|datetime.date) -> None: ... + def setDateTextFormat(self, date: QtCore.QDate|datetime.date, format: QtGui.QTextCharFormat) -> None: ... + @typing.overload + def dateTextFormat(self) -> dict[QtCore.QDate, QtGui.QTextCharFormat]: ... + @typing.overload + def dateTextFormat(self, date: 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: QtCore.QDate|datetime.date) -> None: ... + def maximumDate(self) -> QtCore.QDate: ... + def setMinimumDate(self, date: 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: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, text: str|None, parent: QWidget|None = ...) -> None: ... + + def initStyleOption(self, option: 'QStyleOptionButton|None') -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + def nextCheckState(self) -> None: ... + def checkStateSet(self) -> None: ... + def hitButton(self, pos: QtCore.QPoint) -> bool: ... + checkStateChanged: typing.ClassVar[QtCore.pyqtSignal] + stateChanged: typing.ClassVar[QtCore.pyqtSignal] + 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(enum.IntEnum): + Rejected = ... # type: QDialog.DialogCode + Accepted = ... # type: QDialog.DialogCode + + def __init__(self, parent: QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + def eventFilter(self, a0: QtCore.QObject|None, a1: QtCore.QEvent|None) -> bool: ... + def contextMenuEvent(self, a0: QtGui.QContextMenuEvent|None) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent|None) -> None: ... + def closeEvent(self, a0: QtGui.QCloseEvent|None) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + rejected: typing.ClassVar[QtCore.pyqtSignal] + finished: typing.ClassVar[QtCore.pyqtSignal] + accepted: typing.ClassVar[QtCore.pyqtSignal] + def open(self) -> None: ... + def reject(self) -> None: ... + def accept(self) -> None: ... + def done(self, a0: int) -> None: ... + 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(enum.Flag): + ShowAlphaChannel = ... # type: QColorDialog.ColorDialogOption + NoButtons = ... # type: QColorDialog.ColorDialogOption + DontUseNativeDialog = ... # type: QColorDialog.ColorDialogOption + NoEyeDropperButton = ... # type: QColorDialog.ColorDialogOption + + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, initial: QtGui.QColor|QtCore.Qt.GlobalColor|int, parent: QWidget|None = ...) -> None: ... + + def setVisible(self, visible: bool) -> None: ... + def options(self) -> 'QColorDialog.ColorDialogOption': ... + def setOptions(self, options: '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: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + def done(self, result: int) -> None: ... + def changeEvent(self, e: QtCore.QEvent|None) -> None: ... + currentColorChanged: typing.ClassVar[QtCore.pyqtSignal] + colorSelected: typing.ClassVar[QtCore.pyqtSignal] + @typing.overload + def open(self) -> None: ... + @typing.overload + def open(self, slot: PYQT_SLOT) -> None: ... + @staticmethod + def setStandardColor(index: int, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + @staticmethod + def standardColor(index: int) -> QtGui.QColor: ... + @staticmethod + def setCustomColor(index: int, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + @staticmethod + def customColor(index: int) -> QtGui.QColor: ... + @staticmethod + def customCount() -> int: ... + @staticmethod + def getColor(initial: QtGui.QColor|QtCore.Qt.GlobalColor|int = ..., parent: QWidget|None = ..., title: str|None = ..., options: 'QColorDialog.ColorDialogOption' = ...) -> QtGui.QColor: ... + + +class QColumnView(QAbstractItemView): + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def isPreviewColumnVisible(self) -> bool: ... + def setPreviewColumnVisible(self, visible: bool) -> 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: QtCore.QItemSelectionModel.SelectionFlag) -> None: ... + def resizeEvent(self, event: QtGui.QResizeEvent|None) -> None: ... + def moveCursor(self, cursorAction: QAbstractItemView.CursorAction, modifiers: QtCore.Qt.KeyboardModifier) -> QtCore.QModelIndex: ... + def isIndexHidden(self, index: QtCore.QModelIndex) -> bool: ... + def initializeColumn(self, column: QAbstractItemView|None) -> None: ... + def createColumn(self, rootIndex: QtCore.QModelIndex) -> QAbstractItemView|None: ... + updatePreviewWidget: typing.ClassVar[QtCore.pyqtSignal] + def selectAll(self) -> None: ... + def setRootIndex(self, index: QtCore.QModelIndex) -> None: ... + def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel|None) -> None: ... + def setModel(self, model: QtCore.QAbstractItemModel|None) -> 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) -> None: ... + def setColumnWidths(self, list: collections.abc.Iterable[int]) -> None: ... + def resizeGripsVisible(self) -> bool: ... + def previewWidget(self) -> QWidget|None: ... + def columnWidths(self) -> list[int]: ... + + +class QComboBox(QWidget): + + class LabelDrawingMode(enum.Enum): + UseStyle = ... # type: QComboBox.LabelDrawingMode + UseDelegate = ... # type: QComboBox.LabelDrawingMode + + class SizeAdjustPolicy(enum.Enum): + AdjustToContents = ... # type: QComboBox.SizeAdjustPolicy + AdjustToContentsOnFirstShow = ... # type: QComboBox.SizeAdjustPolicy + AdjustToMinimumContentsLengthWithIcon = ... # type: QComboBox.SizeAdjustPolicy + + class InsertPolicy(enum.Enum): + 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: QWidget|None = ...) -> None: ... + + def setLabelDrawingMode(self, labelDrawing: 'QComboBox.LabelDrawingMode') -> None: ... + def labelDrawingMode(self) -> 'QComboBox.LabelDrawingMode': ... + def placeholderText(self) -> str: ... + def setPlaceholderText(self, placeholderText: str|None) -> None: ... + textHighlighted: typing.ClassVar[QtCore.pyqtSignal] + textActivated: typing.ClassVar[QtCore.pyqtSignal] + 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) -> None: ... + def contextMenuEvent(self, e: QtGui.QContextMenuEvent|None) -> None: ... + def wheelEvent(self, e: QtGui.QWheelEvent|None) -> None: ... + def keyReleaseEvent(self, e: QtGui.QKeyEvent|None) -> None: ... + def keyPressEvent(self, e: QtGui.QKeyEvent|None) -> None: ... + def mouseReleaseEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def hideEvent(self, e: QtGui.QHideEvent|None) -> None: ... + def showEvent(self, e: QtGui.QShowEvent|None) -> None: ... + def paintEvent(self, e: QtGui.QPaintEvent|None) -> None: ... + def resizeEvent(self, e: QtGui.QResizeEvent|None) -> None: ... + def changeEvent(self, e: QtCore.QEvent|None) -> None: ... + def focusOutEvent(self, e: QtGui.QFocusEvent|None) -> None: ... + def focusInEvent(self, e: QtGui.QFocusEvent|None) -> None: ... + def initStyleOption(self, option: 'QStyleOptionComboBox|None') -> None: ... + highlighted: typing.ClassVar[QtCore.pyqtSignal] + currentTextChanged: typing.ClassVar[QtCore.pyqtSignal] + currentIndexChanged: typing.ClassVar[QtCore.pyqtSignal] + activated: typing.ClassVar[QtCore.pyqtSignal] + editTextChanged: typing.ClassVar[QtCore.pyqtSignal] + def setCurrentText(self, text: str|None) -> None: ... + def setEditText(self, text: str|None) -> None: ... + def clearEditText(self) -> None: ... + def clear(self) -> None: ... + def insertSeparator(self, index: int) -> None: ... + def completer(self) -> 'QCompleter|None': ... + def setCompleter(self, c: 'QCompleter|None') -> None: ... + def event(self, event: QtCore.QEvent|None) -> 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) -> None: ... + def view(self) -> QAbstractItemView|None: ... + 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) -> None: ... + def removeItem(self, index: int) -> None: ... + def insertItems(self, index: int, texts: collections.abc.Iterable[str|None]) -> None: ... + @typing.overload + def insertItem(self, index: int, text: str|None, userData: typing.Any = ...) -> None: ... + @typing.overload + def insertItem(self, index: int, icon: QtGui.QIcon, text: str|None, userData: typing.Any = ...) -> None: ... + @typing.overload + def addItem(self, text: str|None, userData: typing.Any = ...) -> None: ... + @typing.overload + def addItem(self, icon: QtGui.QIcon, text: str|None, userData: typing.Any = ...) -> None: ... + def addItems(self, texts: collections.abc.Iterable[str|None]) -> 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) -> None: ... + def model(self) -> QtCore.QAbstractItemModel|None: ... + def setItemDelegate(self, delegate: QAbstractItemDelegate|None) -> None: ... + def itemDelegate(self) -> QAbstractItemDelegate|None: ... + def validator(self) -> QtGui.QValidator|None: ... + def setValidator(self, v: QtGui.QValidator|None) -> None: ... + def lineEdit(self) -> 'QLineEdit|None': ... + def setLineEdit(self, edit: 'QLineEdit|None') -> 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: QtCore.Qt.MatchFlag = ...) -> int: ... + def findText(self, text: str|None, flags: 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: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, text: str|None, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, icon: QtGui.QIcon, text: str|None, parent: QWidget|None = ...) -> None: ... + + def mouseMoveEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def hitButton(self, pos: QtCore.QPoint) -> bool: ... + def focusOutEvent(self, a0: QtGui.QFocusEvent|None) -> None: ... + def focusInEvent(self, a0: QtGui.QFocusEvent|None) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + def initStyleOption(self, option: 'QStyleOptionButton|None') -> None: ... + def showMenu(self) -> None: ... + def isFlat(self) -> bool: ... + def setFlat(self, a0: bool) -> None: ... + def menu(self) -> 'QMenu|None': ... + def setMenu(self, menu: 'QMenu|None') -> 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: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, text: str|None, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, text: str|None, description: str|None, parent: QWidget|None = ...) -> None: ... + + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + def initStyleOption(self, option: 'QStyleOptionButton|None') -> None: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def heightForWidth(self, a0: int) -> int: ... + def sizeHint(self) -> QtCore.QSize: ... + def setDescription(self, description: str|None) -> None: ... + def description(self) -> str: ... + + +class QStyle(QtCore.QObject): + + class RequestSoftwareInputPanel(enum.Enum): + RSIP_OnMouseClickAndAlreadyFocused = ... # type: QStyle.RequestSoftwareInputPanel + RSIP_OnMouseClick = ... # type: QStyle.RequestSoftwareInputPanel + + class StandardPixmap(enum.IntEnum): + 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_DialogYesToAllButton = ... # type: QStyle.StandardPixmap + SP_DialogNoToAllButton = ... # type: QStyle.StandardPixmap + SP_DialogSaveAllButton = ... # type: QStyle.StandardPixmap + SP_DialogAbortButton = ... # type: QStyle.StandardPixmap + SP_DialogRetryButton = ... # type: QStyle.StandardPixmap + SP_DialogIgnoreButton = ... # type: QStyle.StandardPixmap + SP_RestoreDefaultsButton = ... # type: QStyle.StandardPixmap + SP_TabCloseButton = ... # type: QStyle.StandardPixmap + SP_CustomBase = ... # type: QStyle.StandardPixmap + + class StyleHint(enum.IntEnum): + 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_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_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_TabBar_AllowWheelScrolling = ... # type: QStyle.StyleHint + SH_Table_AlwaysDrawLeftTopGridLines = ... # type: QStyle.StyleHint + SH_SpinBox_SelectOnStep = ... # type: QStyle.StyleHint + SH_ComboBox_ListMouseTracking_Current = ... # type: QStyle.StyleHint + SH_ComboBox_ListMouseTracking_Active = ... # type: QStyle.StyleHint + SH_CustomBase = ... # type: QStyle.StyleHint + + class ContentsType(enum.IntEnum): + 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(enum.IntEnum): + 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_MdiSubWindowMinimizedWidth = ... # 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_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_LineEditIconSize = ... # type: QStyle.PixelMetric + PM_LineEditIconMargin = ... # type: QStyle.PixelMetric + PM_CustomBase = ... # type: QStyle.PixelMetric + + class SubControl(enum.Flag): + 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(enum.IntEnum): + 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(enum.IntEnum): + 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_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_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_PushButtonBevel = ... # type: QStyle.SubElement + SE_CustomBase = ... # type: QStyle.SubElement + + class ControlElement(enum.IntEnum): + 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(enum.IntEnum): + 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_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_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(enum.Flag): + 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 + + def __init__(self) -> None: ... + + def name(self) -> str: ... + def proxy(self) -> 'QStyle|None': ... + def combinedLayoutSpacing(self, controls1: 'QSizePolicy.ControlType', controls2: 'QSizePolicy.ControlType', orientation: QtCore.Qt.Orientation, option: 'QStyleOption|None' = ..., widget: QWidget|None = ...) -> int: ... + def layoutSpacing(self, control1: 'QSizePolicy.ControlType', control2: 'QSizePolicy.ControlType', orientation: QtCore.Qt.Orientation, option: 'QStyleOption|None' = ..., widget: QWidget|None = ...) -> int: ... + @staticmethod + def alignedRect(direction: QtCore.Qt.LayoutDirection, alignment: QtCore.Qt.AlignmentFlag, size: QtCore.QSize, rectangle: QtCore.QRect) -> QtCore.QRect: ... + @staticmethod + def visualAlignment(direction: QtCore.Qt.LayoutDirection, alignment: QtCore.Qt.AlignmentFlag) -> QtCore.Qt.AlignmentFlag: ... + @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|None') -> QtGui.QPixmap: ... + def standardIcon(self, standardIcon: 'QStyle.StandardPixmap', option: 'QStyleOption|None' = ..., widget: QWidget|None = ...) -> QtGui.QIcon: ... + def standardPixmap(self, standardPixmap: 'QStyle.StandardPixmap', option: 'QStyleOption|None' = ..., widget: QWidget|None = ...) -> QtGui.QPixmap: ... + def styleHint(self, stylehint: 'QStyle.StyleHint', option: 'QStyleOption|None' = ..., widget: QWidget|None = ..., returnData: 'QStyleHintReturn|None' = ...) -> int: ... + def sizeFromContents(self, ct: 'QStyle.ContentsType', opt: 'QStyleOption|None', contentsSize: QtCore.QSize, widget: QWidget|None = ...) -> QtCore.QSize: ... + def pixelMetric(self, metric: 'QStyle.PixelMetric', option: 'QStyleOption|None' = ..., widget: QWidget|None = ...) -> int: ... + def subControlRect(self, cc: 'QStyle.ComplexControl', opt: 'QStyleOptionComplex|None', sc: 'QStyle.SubControl', widget: QWidget|None = ...) -> QtCore.QRect: ... + def hitTestComplexControl(self, cc: 'QStyle.ComplexControl', opt: 'QStyleOptionComplex|None', pt: QtCore.QPoint, widget: QWidget|None = ...) -> 'QStyle.SubControl': ... + def drawComplexControl(self, cc: 'QStyle.ComplexControl', opt: 'QStyleOptionComplex|None', p: QtGui.QPainter|None, widget: QWidget|None = ...) -> None: ... + def subElementRect(self, subElement: 'QStyle.SubElement', option: 'QStyleOption|None', widget: QWidget|None = ...) -> QtCore.QRect: ... + def drawControl(self, element: 'QStyle.ControlElement', opt: 'QStyleOption|None', p: QtGui.QPainter|None, widget: QWidget|None = ...) -> None: ... + def drawPrimitive(self, pe: 'QStyle.PrimitiveElement', opt: 'QStyleOption|None', p: QtGui.QPainter|None, widget: QWidget|None = ...) -> None: ... + def standardPalette(self) -> QtGui.QPalette: ... + def drawItemPixmap(self, painter: QtGui.QPainter|None, rect: QtCore.QRect, alignment: int, pixmap: QtGui.QPixmap) -> None: ... + def drawItemText(self, painter: QtGui.QPainter|None, rectangle: QtCore.QRect, alignment: int, palette: QtGui.QPalette, enabled: bool, text: str|None, 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|None) -> QtCore.QRect: ... + @typing.overload + def unpolish(self, a0: QWidget|None) -> None: ... + @typing.overload + def unpolish(self, a0: QApplication|None) -> None: ... + @typing.overload + def polish(self, a0: QWidget|None) -> None: ... + @typing.overload + def polish(self, a0: QApplication|None) -> 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: 'QStyleOption|None' = ..., widget: QWidget|None = ...) -> int: ... + def standardIcon(self, standardIcon: QStyle.StandardPixmap, option: 'QStyleOption|None' = ..., widget: QWidget|None = ...) -> QtGui.QIcon: ... + def generatedIconPixmap(self, iconMode: QtGui.QIcon.Mode, pixmap: QtGui.QPixmap, opt: 'QStyleOption|None') -> QtGui.QPixmap: ... + def standardPixmap(self, sp: QStyle.StandardPixmap, option: 'QStyleOption|None' = ..., widget: QWidget|None = ...) -> QtGui.QPixmap: ... + def styleHint(self, sh: QStyle.StyleHint, option: 'QStyleOption|None' = ..., widget: QWidget|None = ..., returnData: 'QStyleHintReturn|None' = ...) -> int: ... + def pixelMetric(self, m: QStyle.PixelMetric, option: 'QStyleOption|None' = ..., widget: QWidget|None = ...) -> int: ... + def sizeFromContents(self, ct: QStyle.ContentsType, opt: 'QStyleOption|None', contentsSize: QtCore.QSize, widget: QWidget|None = ...) -> QtCore.QSize: ... + def subControlRect(self, cc: QStyle.ComplexControl, opt: 'QStyleOptionComplex|None', sc: QStyle.SubControl, widget: QWidget|None = ...) -> QtCore.QRect: ... + def hitTestComplexControl(self, cc: QStyle.ComplexControl, opt: 'QStyleOptionComplex|None', pt: QtCore.QPoint, widget: QWidget|None = ...) -> QStyle.SubControl: ... + def drawComplexControl(self, cc: QStyle.ComplexControl, opt: 'QStyleOptionComplex|None', p: QtGui.QPainter|None, widget: QWidget|None = ...) -> None: ... + def subElementRect(self, r: QStyle.SubElement, opt: 'QStyleOption|None', widget: QWidget|None = ...) -> QtCore.QRect: ... + def drawControl(self, element: QStyle.ControlElement, opt: 'QStyleOption|None', p: QtGui.QPainter|None, widget: QWidget|None = ...) -> None: ... + def drawPrimitive(self, pe: QStyle.PrimitiveElement, opt: 'QStyleOption|None', p: QtGui.QPainter|None, widget: QWidget|None = ...) -> None: ... + @typing.overload + def unpolish(self, widget: QWidget|None) -> None: ... + @typing.overload + def unpolish(self, application: QApplication|None) -> None: ... + @typing.overload + def polish(self, widget: QWidget|None) -> None: ... + @typing.overload + def polish(self, app: QApplication|None) -> None: ... + @typing.overload + def polish(self, a0: QtGui.QPalette) -> QtGui.QPalette: ... + + +class QCompleter(QtCore.QObject): + + class ModelSorting(enum.Enum): + UnsortedModel = ... # type: QCompleter.ModelSorting + CaseSensitivelySortedModel = ... # type: QCompleter.ModelSorting + CaseInsensitivelySortedModel = ... # type: QCompleter.ModelSorting + + class CompletionMode(enum.Enum): + PopupCompletion = ... # type: QCompleter.CompletionMode + UnfilteredPopupCompletion = ... # type: QCompleter.CompletionMode + InlineCompletion = ... # type: QCompleter.CompletionMode + + @typing.overload + def __init__(self, model: QtCore.QAbstractItemModel|None, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, list: collections.abc.Iterable[str|None], parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def filterMode(self) -> QtCore.Qt.MatchFlag: ... + def setFilterMode(self, filterMode: QtCore.Qt.MatchFlag) -> None: ... + def setMaxVisibleItems(self, maxItems: int) -> None: ... + def maxVisibleItems(self) -> int: ... + highlighted: typing.ClassVar[QtCore.pyqtSignal] + activated: typing.ClassVar[QtCore.pyqtSignal] + def event(self, a0: QtCore.QEvent|None) -> bool: ... + def eventFilter(self, o: QtCore.QObject|None, e: QtCore.QEvent|None) -> bool: ... + def setWrapAround(self, wrap: bool) -> None: ... + def setCompletionPrefix(self, prefix: str|None) -> None: ... + def complete(self, rect: QtCore.QRect = ...) -> None: ... + def wrapAround(self) -> bool: ... + def splitPath(self, path: str|None) -> list[str]: ... + def pathFromIndex(self, index: QtCore.QModelIndex) -> str: ... + def completionPrefix(self) -> str: ... + def completionModel(self) -> QtCore.QAbstractItemModel|None: ... + 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) -> None: ... + def popup(self) -> QAbstractItemView|None: ... + def completionMode(self) -> 'QCompleter.CompletionMode': ... + def setCompletionMode(self, mode: 'QCompleter.CompletionMode') -> None: ... + def model(self) -> QtCore.QAbstractItemModel|None: ... + def setModel(self, c: QtCore.QAbstractItemModel|None) -> None: ... + def widget(self) -> QWidget|None: ... + def setWidget(self, widget: QWidget|None) -> None: ... + + +class QDataWidgetMapper(QtCore.QObject): + + class SubmitPolicy(enum.Enum): + AutoSubmit = ... # type: QDataWidgetMapper.SubmitPolicy + ManualSubmit = ... # type: QDataWidgetMapper.SubmitPolicy + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + currentIndexChanged: typing.ClassVar[QtCore.pyqtSignal] + 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|None: ... + def mappedSection(self, widget: QWidget|None) -> int: ... + def mappedPropertyName(self, widget: QWidget|None) -> QtCore.QByteArray: ... + def removeMapping(self, widget: QWidget|None) -> None: ... + @typing.overload + def addMapping(self, widget: QWidget|None, section: int) -> None: ... + @typing.overload + def addMapping(self, widget: QWidget|None, section: int, propertyName: QtCore.QByteArray|bytes|bytearray|memoryview) -> 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|None: ... + def setItemDelegate(self, delegate: QAbstractItemDelegate|None) -> None: ... + def model(self) -> QtCore.QAbstractItemModel|None: ... + def setModel(self, model: QtCore.QAbstractItemModel|None) -> None: ... + + +class QDateTimeEdit(QAbstractSpinBox): + + class Section(enum.Flag): + 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 + + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, datetime: QtCore.QDateTime|datetime.datetime, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, d: QtCore.QDate|datetime.date, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, t: QtCore.QTime|datetime.time, parent: QWidget|None = ...) -> None: ... + + def setTimeZone(self, zone: QtCore.QTimeZone) -> None: ... + def timeZone(self) -> QtCore.QTimeZone: ... + def setCalendar(self, calendar: QtCore.QCalendar) -> None: ... + def calendar(self) -> QtCore.QCalendar: ... + def setTimeSpec(self, spec: QtCore.Qt.TimeSpec) -> None: ... + def timeSpec(self) -> QtCore.Qt.TimeSpec: ... + def setCalendarWidget(self, calendarWidget: QCalendarWidget|None) -> None: ... + def calendarWidget(self) -> QCalendarWidget|None: ... + def setDateTimeRange(self, min: QtCore.QDateTime|datetime.datetime, max: QtCore.QDateTime|datetime.datetime) -> None: ... + def setMaximumDateTime(self, dt: QtCore.QDateTime|datetime.datetime) -> None: ... + def clearMaximumDateTime(self) -> None: ... + def maximumDateTime(self) -> QtCore.QDateTime: ... + def setMinimumDateTime(self, dt: QtCore.QDateTime|datetime.datetime) -> None: ... + def clearMinimumDateTime(self) -> None: ... + def minimumDateTime(self) -> QtCore.QDateTime: ... + def stepEnabled(self) -> QAbstractSpinBox.StepEnabledFlag: ... + def textFromDateTime(self, dt: QtCore.QDateTime|datetime.datetime) -> str: ... + def dateTimeFromText(self, text: str|None) -> QtCore.QDateTime: ... + def fixup(self, input: str|None) -> str: ... + def validate(self, input: str|None, pos: int) -> typing.Tuple[QtGui.QValidator.State, str, int]: ... + def paintEvent(self, event: QtGui.QPaintEvent|None) -> None: ... + def mousePressEvent(self, event: QtGui.QMouseEvent|None) -> None: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def focusInEvent(self, e: QtGui.QFocusEvent|None) -> None: ... + def wheelEvent(self, e: QtGui.QWheelEvent|None) -> None: ... + def keyPressEvent(self, e: QtGui.QKeyEvent|None) -> None: ... + def initStyleOption(self, option: 'QStyleOptionSpinBox|None') -> None: ... + def setTime(self, time: QtCore.QTime|datetime.time) -> None: ... + def setDate(self, date: QtCore.QDate|datetime.date) -> None: ... + def setDateTime(self, dateTime: QtCore.QDateTime|datetime.datetime) -> None: ... + dateChanged: typing.ClassVar[QtCore.pyqtSignal] + timeChanged: typing.ClassVar[QtCore.pyqtSignal] + dateTimeChanged: typing.ClassVar[QtCore.pyqtSignal] + 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|None) -> 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) -> 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.Section': ... + def setTimeRange(self, min: QtCore.QTime|datetime.time, max: QtCore.QTime|datetime.time) -> None: ... + def clearMaximumTime(self) -> None: ... + def setMaximumTime(self, max: QtCore.QTime|datetime.time) -> None: ... + def maximumTime(self) -> QtCore.QTime: ... + def clearMinimumTime(self) -> None: ... + def setMinimumTime(self, min: QtCore.QTime|datetime.time) -> None: ... + def minimumTime(self) -> QtCore.QTime: ... + def setDateRange(self, min: QtCore.QDate|datetime.date, max: QtCore.QDate|datetime.date) -> None: ... + def clearMaximumDate(self) -> None: ... + def setMaximumDate(self, max: QtCore.QDate|datetime.date) -> None: ... + def maximumDate(self) -> QtCore.QDate: ... + def clearMinimumDate(self) -> None: ... + def setMinimumDate(self, min: 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: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, time: QtCore.QTime|datetime.time, parent: QWidget|None = ...) -> None: ... + + +class QDateEdit(QDateTimeEdit): + + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, date: QtCore.QDate|datetime.date, parent: QWidget|None = ...) -> None: ... + + +class QDial(QAbstractSlider): + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def sliderChange(self, change: QAbstractSlider.SliderChange) -> None: ... + def mouseMoveEvent(self, me: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, me: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, me: QtGui.QMouseEvent|None) -> None: ... + def paintEvent(self, pe: QtGui.QPaintEvent|None) -> None: ... + def resizeEvent(self, re: QtGui.QResizeEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + def initStyleOption(self, option: 'QStyleOptionSlider|None') -> 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(enum.Flag): + 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(enum.Enum): + 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(enum.Enum): + WinLayout = ... # type: QDialogButtonBox.ButtonLayout + MacLayout = ... # type: QDialogButtonBox.ButtonLayout + KdeLayout = ... # type: QDialogButtonBox.ButtonLayout + GnomeLayout = ... # type: QDialogButtonBox.ButtonLayout + AndroidLayout = ... # type: QDialogButtonBox.ButtonLayout + + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, orientation: QtCore.Qt.Orientation, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, buttons: 'QDialogButtonBox.StandardButton', parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, buttons: 'QDialogButtonBox.StandardButton', orientation: QtCore.Qt.Orientation, parent: QWidget|None = ...) -> None: ... + + def event(self, event: QtCore.QEvent|None) -> bool: ... + def changeEvent(self, event: QtCore.QEvent|None) -> None: ... + rejected: typing.ClassVar[QtCore.pyqtSignal] + helpRequested: typing.ClassVar[QtCore.pyqtSignal] + clicked: typing.ClassVar[QtCore.pyqtSignal] + accepted: typing.ClassVar[QtCore.pyqtSignal] + def centerButtons(self) -> bool: ... + def setCenterButtons(self, center: bool) -> None: ... + def button(self, which: 'QDialogButtonBox.StandardButton') -> QPushButton|None: ... + def standardButton(self, button: QAbstractButton|None) -> 'QDialogButtonBox.StandardButton': ... + def standardButtons(self) -> 'QDialogButtonBox.StandardButton': ... + def setStandardButtons(self, buttons: 'QDialogButtonBox.StandardButton') -> None: ... + def buttonRole(self, button: QAbstractButton|None) -> 'QDialogButtonBox.ButtonRole': ... + def buttons(self) -> list[QAbstractButton]: ... + def clear(self) -> None: ... + def removeButton(self, button: QAbstractButton|None) -> None: ... + @typing.overload + def addButton(self, button: QAbstractButton|None, role: 'QDialogButtonBox.ButtonRole') -> None: ... + @typing.overload + def addButton(self, text: str|None, role: 'QDialogButtonBox.ButtonRole') -> QPushButton|None: ... + @typing.overload + def addButton(self, button: 'QDialogButtonBox.StandardButton') -> QPushButton|None: ... + def orientation(self) -> QtCore.Qt.Orientation: ... + def setOrientation(self, orientation: QtCore.Qt.Orientation) -> None: ... + + +class QDockWidget(QWidget): + + class DockWidgetFeature(enum.Flag): + DockWidgetClosable = ... # type: QDockWidget.DockWidgetFeature + DockWidgetMovable = ... # type: QDockWidget.DockWidgetFeature + DockWidgetFloatable = ... # type: QDockWidget.DockWidgetFeature + DockWidgetVerticalTitleBar = ... # type: QDockWidget.DockWidgetFeature + NoDockWidgetFeatures = ... # type: QDockWidget.DockWidgetFeature + + @typing.overload + def __init__(self, title: str|None, parent: QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + @typing.overload + def __init__(self, parent: QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + def dockLocation(self) -> QtCore.Qt.DockWidgetArea: ... + def setDockLocation(self, area: QtCore.Qt.DockWidgetArea) -> None: ... + def event(self, event: QtCore.QEvent|None) -> bool: ... + def paintEvent(self, event: QtGui.QPaintEvent|None) -> None: ... + def closeEvent(self, event: QtGui.QCloseEvent|None) -> None: ... + def changeEvent(self, event: QtCore.QEvent|None) -> None: ... + def initStyleOption(self, option: 'QStyleOptionDockWidget|None') -> None: ... + visibilityChanged: typing.ClassVar[QtCore.pyqtSignal] + dockLocationChanged: typing.ClassVar[QtCore.pyqtSignal] + allowedAreasChanged: typing.ClassVar[QtCore.pyqtSignal] + topLevelChanged: typing.ClassVar[QtCore.pyqtSignal] + featuresChanged: typing.ClassVar[QtCore.pyqtSignal] + def titleBarWidget(self) -> QWidget|None: ... + def setTitleBarWidget(self, widget: QWidget|None) -> None: ... + def toggleViewAction(self) -> QtGui.QAction|None: ... + def isAreaAllowed(self, area: QtCore.Qt.DockWidgetArea) -> bool: ... + def allowedAreas(self) -> QtCore.Qt.DockWidgetArea: ... + def setAllowedAreas(self, areas: QtCore.Qt.DockWidgetArea) -> None: ... + def isFloating(self) -> bool: ... + def setFloating(self, floating: bool) -> None: ... + def features(self) -> 'QDockWidget.DockWidgetFeature': ... + def setFeatures(self, features: 'QDockWidget.DockWidgetFeature') -> None: ... + def setWidget(self, widget: QWidget|None) -> None: ... + def widget(self) -> QWidget|None: ... + + +class QErrorMessage(QDialog): + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def done(self, a0: int) -> None: ... + def changeEvent(self, e: QtCore.QEvent|None) -> None: ... + @typing.overload + def showMessage(self, message: str|None) -> None: ... + @typing.overload + def showMessage(self, message: str|None, type: str|None) -> None: ... + @staticmethod + def qtHandler() -> 'QErrorMessage|None': ... + + +class QFileDialog(QDialog): + + class Option(enum.Flag): + ShowDirsOnly = ... # type: QFileDialog.Option + DontResolveSymlinks = ... # type: QFileDialog.Option + DontConfirmOverwrite = ... # type: QFileDialog.Option + DontUseNativeDialog = ... # type: QFileDialog.Option + ReadOnly = ... # type: QFileDialog.Option + HideNameFilterDetails = ... # type: QFileDialog.Option + DontUseCustomDirectoryIcons = ... # type: QFileDialog.Option + + class DialogLabel(enum.Enum): + LookIn = ... # type: QFileDialog.DialogLabel + FileName = ... # type: QFileDialog.DialogLabel + FileType = ... # type: QFileDialog.DialogLabel + Accept = ... # type: QFileDialog.DialogLabel + Reject = ... # type: QFileDialog.DialogLabel + + class AcceptMode(enum.Enum): + AcceptOpen = ... # type: QFileDialog.AcceptMode + AcceptSave = ... # type: QFileDialog.AcceptMode + + class FileMode(enum.Enum): + AnyFile = ... # type: QFileDialog.FileMode + ExistingFile = ... # type: QFileDialog.FileMode + Directory = ... # type: QFileDialog.FileMode + ExistingFiles = ... # type: QFileDialog.FileMode + + class ViewMode(enum.Enum): + Detail = ... # type: QFileDialog.ViewMode + List = ... # type: QFileDialog.ViewMode + + @typing.overload + def __init__(self, parent: QWidget|None, f: QtCore.Qt.WindowType) -> None: ... + @typing.overload + def __init__(self, parent: QWidget|None = ..., caption: str|None = ..., directory: str|None = ..., filter: str|None = ...) -> None: ... + + @typing.overload + @staticmethod + def saveFileContent(fileContent: QtCore.QByteArray|bytes|bytearray|memoryview, fileNameHint: str|None = ...) -> None: ... + @typing.overload + @staticmethod + def saveFileContent(fileContent: QtCore.QByteArray|bytes|bytearray|memoryview, fileNameHint: str|None, parent: QWidget|None = ...) -> None: ... + def selectedMimeTypeFilter(self) -> str: ... + def supportedSchemes(self) -> list[str]: ... + def setSupportedSchemes(self, schemes: collections.abc.Iterable[str|None]) -> None: ... + @staticmethod + def getSaveFileUrl(parent: QWidget|None = ..., caption: str|None = ..., directory: QtCore.QUrl = ..., filter: str|None = ..., initialFilter: str|None = ..., options: 'QFileDialog.Option' = ..., supportedSchemes: collections.abc.Iterable[str|None] = ...) -> tuple[QtCore.QUrl, str]: ... + @staticmethod + def getOpenFileUrls(parent: QWidget|None = ..., caption: str|None = ..., directory: QtCore.QUrl = ..., filter: str|None = ..., initialFilter: str|None = ..., options: 'QFileDialog.Option' = ..., supportedSchemes: collections.abc.Iterable[str|None] = ...) -> tuple[list[QtCore.QUrl], str]: ... + @staticmethod + def getOpenFileUrl(parent: QWidget|None = ..., caption: str|None = ..., directory: QtCore.QUrl = ..., filter: str|None = ..., initialFilter: str|None = ..., options: 'QFileDialog.Option' = ..., supportedSchemes: collections.abc.Iterable[str|None] = ...) -> tuple[QtCore.QUrl, str]: ... + directoryUrlEntered: typing.ClassVar[QtCore.pyqtSignal] + currentUrlChanged: typing.ClassVar[QtCore.pyqtSignal] + urlsSelected: typing.ClassVar[QtCore.pyqtSignal] + urlSelected: typing.ClassVar[QtCore.pyqtSignal] + def selectMimeTypeFilter(self, filter: str|None) -> None: ... + def mimeTypeFilters(self) -> list[str]: ... + def setMimeTypeFilters(self, filters: collections.abc.Iterable[str|None]) -> None: ... + def selectedUrls(self) -> 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.Option': ... + def setOptions(self, options: 'QFileDialog.Option') -> None: ... + def testOption(self, option: 'QFileDialog.Option') -> bool: ... + def setOption(self, option: 'QFileDialog.Option', on: bool = ...) -> None: ... + def setFilter(self, filters: QtCore.QDir.Filter) -> None: ... + def filter(self) -> QtCore.QDir.Filter: ... + def selectedNameFilter(self) -> str: ... + def selectNameFilter(self, filter: str|None) -> None: ... + def nameFilters(self) -> list[str]: ... + def setNameFilters(self, filters: collections.abc.Iterable[str|None]) -> None: ... + def setNameFilter(self, filter: str|None) -> None: ... + def proxyModel(self) -> QtCore.QAbstractProxyModel|None: ... + def setProxyModel(self, model: QtCore.QAbstractProxyModel|None) -> None: ... + def restoreState(self, state: QtCore.QByteArray|bytes|bytearray|memoryview) -> bool: ... + def saveState(self) -> QtCore.QByteArray: ... + def sidebarUrls(self) -> list[QtCore.QUrl]: ... + def setSidebarUrls(self, urls: collections.abc.Iterable[QtCore.QUrl]) -> None: ... + def changeEvent(self, e: QtCore.QEvent|None) -> None: ... + def accept(self) -> None: ... + def done(self, result: int) -> None: ... + @staticmethod + def getSaveFileName(parent: QWidget|None = ..., caption: str|None = ..., directory: str|None = ..., filter: str|None = ..., initialFilter: str|None = ..., options: 'QFileDialog.Option' = ...) -> tuple[str, str]: ... + @staticmethod + def getOpenFileNames(parent: QWidget|None = ..., caption: str|None = ..., directory: str|None = ..., filter: str|None = ..., initialFilter: str|None = ..., options: 'QFileDialog.Option' = ...) -> tuple[list[str], str]: ... + @staticmethod + def getOpenFileName(parent: QWidget|None = ..., caption: str|None = ..., directory: str|None = ..., filter: str|None = ..., initialFilter: str|None = ..., options: 'QFileDialog.Option' = ...) -> tuple[str, str]: ... + @staticmethod + def getExistingDirectoryUrl(parent: QWidget|None = ..., caption: str|None = ..., directory: QtCore.QUrl = ..., options: 'QFileDialog.Option' = ..., supportedSchemes: collections.abc.Iterable[str|None] = ...) -> QtCore.QUrl: ... + @staticmethod + def getExistingDirectory(parent: QWidget|None = ..., caption: str|None = ..., directory: str|None = ..., options: 'QFileDialog.Option' = ...) -> str: ... + fileSelected: typing.ClassVar[QtCore.pyqtSignal] + filterSelected: typing.ClassVar[QtCore.pyqtSignal] + filesSelected: typing.ClassVar[QtCore.pyqtSignal] + directoryEntered: typing.ClassVar[QtCore.pyqtSignal] + currentChanged: typing.ClassVar[QtCore.pyqtSignal] + def labelText(self, label: 'QFileDialog.DialogLabel') -> str: ... + def setLabelText(self, label: 'QFileDialog.DialogLabel', text: str|None) -> None: ... + def iconProvider(self) -> QtGui.QAbstractFileIconProvider|None: ... + def setIconProvider(self, provider: QtGui.QAbstractFileIconProvider|None) -> None: ... + def itemDelegate(self) -> QAbstractItemDelegate|None: ... + def setItemDelegate(self, delegate: QAbstractItemDelegate|None) -> None: ... + def history(self) -> list[str]: ... + def setHistory(self, paths: collections.abc.Iterable[str|None]) -> None: ... + def defaultSuffix(self) -> str: ... + def setDefaultSuffix(self, suffix: str|None) -> 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) -> list[str]: ... + def selectFile(self, filename: str|None) -> None: ... + def directory(self) -> QtCore.QDir: ... + @typing.overload + def setDirectory(self, directory: str|None) -> None: ... + @typing.overload + def setDirectory(self, adirectory: QtCore.QDir) -> None: ... + + +class QFileIconProvider(QtGui.QAbstractFileIconProvider): + + def __init__(self) -> None: ... + + @typing.overload + def icon(self, type: QtGui.QAbstractFileIconProvider.IconType) -> QtGui.QIcon: ... + @typing.overload + def icon(self, info: QtCore.QFileInfo) -> QtGui.QIcon: ... + + +class QFocusFrame(QWidget): + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + def eventFilter(self, a0: QtCore.QObject|None, a1: QtCore.QEvent|None) -> bool: ... + def initStyleOption(self, option: 'QStyleOption|None') -> None: ... + def widget(self) -> QWidget|None: ... + def setWidget(self, widget: QWidget|None) -> None: ... + + +class QFontComboBox(QComboBox): + + class FontFilter(enum.Flag): + AllFonts = ... # type: QFontComboBox.FontFilter + ScalableFonts = ... # type: QFontComboBox.FontFilter + NonScalableFonts = ... # type: QFontComboBox.FontFilter + MonospacedFonts = ... # type: QFontComboBox.FontFilter + ProportionalFonts = ... # type: QFontComboBox.FontFilter + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def displayFont(self, fontFamily: str|None) -> QtGui.QFont|None: ... + def setDisplayFont(self, fontFamily: str|None, font: QtGui.QFont) -> None: ... + def sampleTextForFont(self, fontFamily: str|None) -> str: ... + def setSampleTextForFont(self, fontFamily: str|None, sampleText: str|None) -> None: ... + def sampleTextForSystem(self, writingSystem: QtGui.QFontDatabase.WritingSystem) -> str: ... + def setSampleTextForSystem(self, writingSystem: QtGui.QFontDatabase.WritingSystem, sampleText: str|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + currentFontChanged: typing.ClassVar[QtCore.pyqtSignal] + def setCurrentFont(self, f: QtGui.QFont) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + def currentFont(self) -> QtGui.QFont: ... + def setFontFilters(self, filters: 'QFontComboBox.FontFilter') -> None: ... + def writingSystem(self) -> QtGui.QFontDatabase.WritingSystem: ... + def setWritingSystem(self, a0: QtGui.QFontDatabase.WritingSystem) -> None: ... + def fontFilters(self) -> 'QFontComboBox.FontFilter': ... + + +class QFontDialog(QDialog): + + class FontDialogOption(enum.Flag): + NoButtons = ... # type: QFontDialog.FontDialogOption + DontUseNativeDialog = ... # type: QFontDialog.FontDialogOption + ScalableFonts = ... # type: QFontDialog.FontDialogOption + NonScalableFonts = ... # type: QFontDialog.FontDialogOption + MonospacedFonts = ... # type: QFontDialog.FontDialogOption + ProportionalFonts = ... # type: QFontDialog.FontDialogOption + + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, initial: QtGui.QFont, parent: QWidget|None = ...) -> None: ... + + fontSelected: typing.ClassVar[QtCore.pyqtSignal] + currentFontChanged: typing.ClassVar[QtCore.pyqtSignal] + 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.FontDialogOption': ... + def setOptions(self, options: '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|None, event: QtCore.QEvent|None) -> bool: ... + def done(self, result: int) -> None: ... + def changeEvent(self, e: QtCore.QEvent|None) -> None: ... + @typing.overload + @staticmethod + def getFont(initial: QtGui.QFont, parent: QWidget|None = ..., caption: str|None = ..., options: 'QFontDialog.FontDialogOption' = ...) -> typing.Tuple[QtGui.QFont, bool]: ... + @typing.overload + @staticmethod + def getFont(parent: QWidget|None = ...) -> typing.Tuple[QtGui.QFont, bool]: ... + + +class QFormLayout(QLayout): + + class ItemRole(enum.Enum): + LabelRole = ... # type: QFormLayout.ItemRole + FieldRole = ... # type: QFormLayout.ItemRole + SpanningRole = ... # type: QFormLayout.ItemRole + + class RowWrapPolicy(enum.Enum): + DontWrapRows = ... # type: QFormLayout.RowWrapPolicy + WrapLongRows = ... # type: QFormLayout.RowWrapPolicy + WrapAllRows = ... # type: QFormLayout.RowWrapPolicy + + class FieldGrowthPolicy(enum.Enum): + FieldsStayAtSizeHint = ... # type: QFormLayout.FieldGrowthPolicy + ExpandingFieldsGrow = ... # type: QFormLayout.FieldGrowthPolicy + AllNonFixedFieldsGrow = ... # type: QFormLayout.FieldGrowthPolicy + + class TakeRowResult(PyQt6.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: QWidget|None = ...) -> None: ... + + @typing.overload + def isRowVisible(self, layout: QLayout|None) -> bool: ... + @typing.overload + def isRowVisible(self, widget: QWidget|None) -> bool: ... + @typing.overload + def isRowVisible(self, row: int) -> bool: ... + @typing.overload + def setRowVisible(self, layout: QLayout|None, on: bool) -> None: ... + @typing.overload + def setRowVisible(self, widget: QWidget|None, on: bool) -> None: ... + @typing.overload + def setRowVisible(self, row: int, on: bool) -> None: ... + @typing.overload + def takeRow(self, row: int) -> 'QFormLayout.TakeRowResult': ... + @typing.overload + def takeRow(self, widget: QWidget|None) -> 'QFormLayout.TakeRowResult': ... + @typing.overload + def takeRow(self, layout: QLayout|None) -> 'QFormLayout.TakeRowResult': ... + @typing.overload + def removeRow(self, row: int) -> None: ... + @typing.overload + def removeRow(self, widget: QWidget|None) -> None: ... + @typing.overload + def removeRow(self, layout: QLayout|None) -> None: ... + def rowCount(self) -> int: ... + def count(self) -> int: ... + def expandingDirections(self) -> QtCore.Qt.Orientation: ... + 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|None: ... + def addItem(self, item: QLayoutItem|None) -> None: ... + @typing.overload + def labelForField(self, field: QWidget|None) -> QWidget|None: ... + @typing.overload + def labelForField(self, field: QLayout|None) -> QWidget|None: ... + def getLayoutPosition(self, layout: QLayout|None) -> typing.Tuple[int, 'QFormLayout.ItemRole|None']: ... + def getWidgetPosition(self, widget: QWidget|None) -> typing.Tuple[int, 'QFormLayout.ItemRole|None']: ... + def getItemPosition(self, index: int) -> typing.Tuple[int, 'QFormLayout.ItemRole|None']: ... + @typing.overload + def itemAt(self, row: int, role: 'QFormLayout.ItemRole') -> QLayoutItem|None: ... + @typing.overload + def itemAt(self, index: int) -> QLayoutItem|None: ... + def setLayout(self, row: int, role: 'QFormLayout.ItemRole', layout: QLayout|None) -> None: ... + def setWidget(self, row: int, role: 'QFormLayout.ItemRole', widget: QWidget|None) -> None: ... + def setItem(self, row: int, role: 'QFormLayout.ItemRole', item: QLayoutItem|None) -> None: ... + @typing.overload + def insertRow(self, row: int, label: QWidget|None, field: QWidget|None) -> None: ... + @typing.overload + def insertRow(self, row: int, label: QWidget|None, field: QLayout|None) -> None: ... + @typing.overload + def insertRow(self, row: int, labelText: str|None, field: QWidget|None) -> None: ... + @typing.overload + def insertRow(self, row: int, labelText: str|None, field: QLayout|None) -> None: ... + @typing.overload + def insertRow(self, row: int, widget: QWidget|None) -> None: ... + @typing.overload + def insertRow(self, row: int, layout: QLayout|None) -> None: ... + @typing.overload + def addRow(self, label: QWidget|None, field: QWidget|None) -> None: ... + @typing.overload + def addRow(self, label: QWidget|None, field: QLayout|None) -> None: ... + @typing.overload + def addRow(self, labelText: str|None, field: QWidget|None) -> None: ... + @typing.overload + def addRow(self, labelText: str|None, field: QLayout|None) -> None: ... + @typing.overload + def addRow(self, widget: QWidget|None) -> None: ... + @typing.overload + def addRow(self, layout: QLayout|None) -> 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.AlignmentFlag: ... + def setFormAlignment(self, alignment: QtCore.Qt.AlignmentFlag) -> None: ... + def labelAlignment(self) -> QtCore.Qt.AlignmentFlag: ... + def setLabelAlignment(self, 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(enum.Enum): + CancelNone = ... # type: QGesture.GestureCancelPolicy + CancelAllInContext = ... # type: QGesture.GestureCancelPolicy + + def __init__(self, parent: QtCore.QObject|None = ...) -> 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: QtCore.QPointF) -> 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: QtCore.QObject|None = ...) -> None: ... + + def setAcceleration(self, value: float) -> None: ... + def setOffset(self, value: QtCore.QPointF) -> None: ... + def setLastOffset(self, value: QtCore.QPointF) -> 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(enum.Flag): + ScaleFactorChanged = ... # type: QPinchGesture.ChangeFlag + RotationAngleChanged = ... # type: QPinchGesture.ChangeFlag + CenterPointChanged = ... # type: QPinchGesture.ChangeFlag + + def __init__(self, parent: QtCore.QObject|None = ...) -> 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: QtCore.QPointF) -> None: ... + def setLastCenterPoint(self, value: QtCore.QPointF) -> None: ... + def setStartCenterPoint(self, value: QtCore.QPointF) -> None: ... + def centerPoint(self) -> QtCore.QPointF: ... + def lastCenterPoint(self) -> QtCore.QPointF: ... + def startCenterPoint(self) -> QtCore.QPointF: ... + def setChangeFlags(self, value: 'QPinchGesture.ChangeFlag') -> None: ... + def changeFlags(self) -> 'QPinchGesture.ChangeFlag': ... + def setTotalChangeFlags(self, value: 'QPinchGesture.ChangeFlag') -> None: ... + def totalChangeFlags(self) -> 'QPinchGesture.ChangeFlag': ... + + +class QSwipeGesture(QGesture): + + class SwipeDirection(enum.Enum): + NoDirection = ... # type: QSwipeGesture.SwipeDirection + Left = ... # type: QSwipeGesture.SwipeDirection + Right = ... # type: QSwipeGesture.SwipeDirection + Up = ... # type: QSwipeGesture.SwipeDirection + Down = ... # type: QSwipeGesture.SwipeDirection + + def __init__(self, parent: QtCore.QObject|None = ...) -> 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: QtCore.QObject|None = ...) -> None: ... + + def setPosition(self, pos: QtCore.QPointF) -> None: ... + def position(self) -> QtCore.QPointF: ... + + +class QTapAndHoldGesture(QGesture): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + @staticmethod + def timeout() -> int: ... + @staticmethod + def setTimeout(msecs: int) -> None: ... + def setPosition(self, pos: QtCore.QPointF) -> None: ... + def position(self) -> QtCore.QPointF: ... + + +class QGestureEvent(QtCore.QEvent): + + @typing.overload + def __init__(self, gestures: collections.abc.Iterable[QGesture]) -> None: ... + @typing.overload + def __init__(self, a0: 'QGestureEvent') -> None: ... + + def mapToGraphicsScene(self, gesturePoint: QtCore.QPointF) -> QtCore.QPointF: ... + def widget(self) -> QWidget|None: ... + @typing.overload + def ignore(self) -> None: ... + @typing.overload + def ignore(self, a0: QGesture|None) -> 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) -> None: ... + @typing.overload + def accept(self, a0: QtCore.Qt.GestureType) -> None: ... + @typing.overload + def isAccepted(self) -> bool: ... + @typing.overload + def isAccepted(self, a0: QGesture|None) -> 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|None, a1: bool) -> None: ... + @typing.overload + def setAccepted(self, a0: QtCore.Qt.GestureType, a1: bool) -> None: ... + def canceledGestures(self) -> list[QGesture]: ... + def activeGestures(self) -> list[QGesture]: ... + def gesture(self, type: QtCore.Qt.GestureType) -> QGesture|None: ... + def gestures(self) -> list[QGesture]: ... + + +class QGestureRecognizer(PyQt6.sip.wrapper): + + class ResultFlag(enum.Flag): + Ignore = ... # type: QGestureRecognizer.ResultFlag + MayBeGesture = ... # type: QGestureRecognizer.ResultFlag + TriggerGesture = ... # type: QGestureRecognizer.ResultFlag + FinishGesture = ... # type: QGestureRecognizer.ResultFlag + CancelGesture = ... # type: QGestureRecognizer.ResultFlag + ConsumeEventHint = ... # type: QGestureRecognizer.ResultFlag + + @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|None') -> QtCore.Qt.GestureType: ... + def reset(self, state: QGesture|None) -> None: ... + def recognize(self, state: QGesture|None, watched: QtCore.QObject|None, event: QtCore.QEvent|None) -> 'QGestureRecognizer.ResultFlag': ... + def create(self, target: QtCore.QObject|None) -> QGesture|None: ... + + +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(PyQt6.sip.wrapper): + + def __init__(self, parent: 'QGraphicsLayoutItem|None' = ..., isLayout: bool = ...) -> None: ... + + def setOwnedByLayout(self, ownedByLayout: bool) -> None: ... + def setGraphicsItem(self, item: 'QGraphicsItem|None') -> None: ... + def sizeHint(self, which: QtCore.Qt.SizeHint, constraint: QtCore.QSizeF = ...) -> QtCore.QSizeF: ... + def isEmpty(self) -> bool: ... + def ownedByLayout(self) -> bool: ... + def graphicsItem(self) -> 'QGraphicsItem|None': ... + 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') -> None: ... + def parentLayoutItem(self) -> 'QGraphicsLayoutItem|None': ... + 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: QGraphicsLayoutItem|None = ...) -> None: ... + + def addChildLayoutItem(self, layoutItem: QGraphicsLayoutItem|None) -> None: ... + def updateGeometry(self) -> None: ... + def removeAt(self, index: int) -> None: ... + def itemAt(self, i: int) -> QGraphicsLayoutItem|None: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def widgetEvent(self, e: QtCore.QEvent|None) -> 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: QGraphicsLayoutItem|None = ...) -> None: ... + + def sizeHint(self, which: QtCore.Qt.SizeHint, constraint: QtCore.QSizeF = ...) -> QtCore.QSizeF: ... + def invalidate(self) -> None: ... + def itemAt(self, index: int) -> QGraphicsLayoutItem|None: ... + 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|None, secondItem: QGraphicsLayoutItem|None, orientations: QtCore.Qt.Orientation = ...) -> None: ... + def addCornerAnchors(self, firstItem: QGraphicsLayoutItem|None, firstCorner: QtCore.Qt.Corner, secondItem: QGraphicsLayoutItem|None, secondCorner: QtCore.Qt.Corner) -> None: ... + def anchor(self, firstItem: QGraphicsLayoutItem|None, firstEdge: QtCore.Qt.AnchorPoint, secondItem: QGraphicsLayoutItem|None, secondEdge: QtCore.Qt.AnchorPoint) -> QGraphicsAnchor|None: ... + def addAnchor(self, firstItem: QGraphicsLayoutItem|None, firstEdge: QtCore.Qt.AnchorPoint, secondItem: QGraphicsLayoutItem|None, secondEdge: QtCore.Qt.AnchorPoint) -> QGraphicsAnchor|None: ... + + +class QGraphicsEffect(QtCore.QObject): + + class PixmapPadMode(enum.Enum): + NoPad = ... # type: QGraphicsEffect.PixmapPadMode + PadToTransparentBorder = ... # type: QGraphicsEffect.PixmapPadMode + PadToEffectiveBoundingRect = ... # type: QGraphicsEffect.PixmapPadMode + + class ChangeFlag(enum.Flag): + SourceAttached = ... # type: QGraphicsEffect.ChangeFlag + SourceDetached = ... # type: QGraphicsEffect.ChangeFlag + SourceBoundingRectChanged = ... # type: QGraphicsEffect.ChangeFlag + SourceInvalidated = ... # type: QGraphicsEffect.ChangeFlag + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def sourcePixmap(self, system: QtCore.Qt.CoordinateSystem = ..., mode: 'QGraphicsEffect.PixmapPadMode' = ...) -> typing.Tuple[QtGui.QPixmap, QtCore.QPoint|None]: ... + def drawSource(self, painter: QtGui.QPainter|None) -> None: ... + def sourceBoundingRect(self, system: QtCore.Qt.CoordinateSystem = ...) -> QtCore.QRectF: ... + def sourceIsPixmap(self) -> bool: ... + def updateBoundingRect(self) -> None: ... + def sourceChanged(self, flags: 'QGraphicsEffect.ChangeFlag') -> None: ... + def draw(self, painter: QtGui.QPainter|None) -> None: ... + enabledChanged: typing.ClassVar[QtCore.pyqtSignal] + 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: QtCore.QObject|None = ...) -> None: ... + + def draw(self, painter: QtGui.QPainter|None) -> None: ... + strengthChanged: typing.ClassVar[QtCore.pyqtSignal] + colorChanged: typing.ClassVar[QtCore.pyqtSignal] + def setStrength(self, strength: float) -> None: ... + def setColor(self, c: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + def strength(self) -> float: ... + def color(self) -> QtGui.QColor: ... + + +class QGraphicsBlurEffect(QGraphicsEffect): + + class BlurHint(enum.Flag): + PerformanceHint = ... # type: QGraphicsBlurEffect.BlurHint + QualityHint = ... # type: QGraphicsBlurEffect.BlurHint + AnimationHint = ... # type: QGraphicsBlurEffect.BlurHint + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def draw(self, painter: QtGui.QPainter|None) -> None: ... + blurHintsChanged: typing.ClassVar[QtCore.pyqtSignal] + blurRadiusChanged: typing.ClassVar[QtCore.pyqtSignal] + def setBlurHints(self, hints: 'QGraphicsBlurEffect.BlurHint') -> None: ... + def setBlurRadius(self, blurRadius: float) -> None: ... + def blurHints(self) -> 'QGraphicsBlurEffect.BlurHint': ... + def blurRadius(self) -> float: ... + def boundingRectFor(self, rect: QtCore.QRectF) -> QtCore.QRectF: ... + + +class QGraphicsDropShadowEffect(QGraphicsEffect): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def draw(self, painter: QtGui.QPainter|None) -> None: ... + colorChanged: typing.ClassVar[QtCore.pyqtSignal] + blurRadiusChanged: typing.ClassVar[QtCore.pyqtSignal] + offsetChanged: typing.ClassVar[QtCore.pyqtSignal] + def setColor(self, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> 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: QtCore.QPointF) -> 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: QtCore.QObject|None = ...) -> None: ... + + def draw(self, painter: QtGui.QPainter|None) -> None: ... + opacityMaskChanged: typing.ClassVar[QtCore.pyqtSignal] + opacityChanged: typing.ClassVar[QtCore.pyqtSignal] + def setOpacityMask(self, mask: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|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: QGraphicsLayoutItem|None = ...) -> None: ... + + def removeItem(self, item: QGraphicsLayoutItem|None) -> 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|None: ... + @typing.overload + def itemAt(self, index: int) -> QGraphicsLayoutItem|None: ... + def columnCount(self) -> int: ... + def rowCount(self) -> int: ... + def alignment(self, item: QGraphicsLayoutItem|None) -> QtCore.Qt.AlignmentFlag: ... + def setAlignment(self, item: QGraphicsLayoutItem|None, alignment: QtCore.Qt.AlignmentFlag) -> None: ... + def columnAlignment(self, column: int) -> QtCore.Qt.AlignmentFlag: ... + def setColumnAlignment(self, column: int, alignment: QtCore.Qt.AlignmentFlag) -> None: ... + def rowAlignment(self, row: int) -> QtCore.Qt.AlignmentFlag: ... + def setRowAlignment(self, row: int, 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|None, row: int, column: int, rowSpan: int, columnSpan: int, alignment: QtCore.Qt.AlignmentFlag = ...) -> None: ... + @typing.overload + def addItem(self, item: QGraphicsLayoutItem|None, row: int, column: int, alignment: QtCore.Qt.AlignmentFlag = ...) -> None: ... + + +class QGraphicsItem(PyQt6.sip.wrapper): + + class PanelModality(enum.Enum): + NonModal = ... # type: QGraphicsItem.PanelModality + PanelModal = ... # type: QGraphicsItem.PanelModality + SceneModal = ... # type: QGraphicsItem.PanelModality + + class GraphicsItemFlag(enum.Flag): + 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(enum.Enum): + ItemPositionChange = ... # 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(enum.Enum): + NoCache = ... # type: QGraphicsItem.CacheMode + ItemCoordinateCache = ... # type: QGraphicsItem.CacheMode + DeviceCoordinateCache = ... # type: QGraphicsItem.CacheMode + + Type = ... # type: int + UserType = ... # type: int + + def __init__(self, parent: 'QGraphicsItem|None' = ...) -> None: ... + + def updateMicroFocus(self) -> None: ... + def setInputMethodHints(self, hints: QtCore.Qt.InputMethodHint) -> None: ... + def inputMethodHints(self) -> QtCore.Qt.InputMethodHint: ... + def stackBefore(self, sibling: 'QGraphicsItem|None') -> None: ... + @typing.overload + def setTransformOriginPoint(self, origin: QtCore.QPointF) -> None: ... + @typing.overload + def setTransformOriginPoint(self, ax: float, ay: float) -> None: ... + def transformOriginPoint(self) -> QtCore.QPointF: ... + def setTransformations(self, transformations: collections.abc.Iterable['QGraphicsTransform']) -> None: ... + def transformations(self) -> 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|None': ... + def setFocusProxy(self, item: 'QGraphicsItem|None') -> None: ... + def focusProxy(self) -> 'QGraphicsItem|None': ... + 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) -> None: ... + def graphicsEffect(self) -> QGraphicsEffect|None: ... + def isBlockedByModalPanel(self) -> typing.Tuple[bool, 'QGraphicsItem|None']: ... + def setPanelModality(self, panelModality: 'QGraphicsItem.PanelModality') -> None: ... + def panelModality(self) -> 'QGraphicsItem.PanelModality': ... + def toGraphicsObject(self) -> 'QGraphicsObject|None': ... + def isPanel(self) -> bool: ... + def panel(self) -> 'QGraphicsItem|None': ... + def parentObject(self) -> 'QGraphicsObject|None': ... + @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|None', rect: QtCore.QRectF) -> QtCore.QRectF: ... + @typing.overload + def mapRectFromItem(self, item: 'QGraphicsItem|None', 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|None', rect: QtCore.QRectF) -> QtCore.QRectF: ... + @typing.overload + def mapRectToItem(self, item: 'QGraphicsItem|None', ax: float, ay: float, w: float, h: float) -> QtCore.QRectF: ... + def clipPath(self) -> QtGui.QPainterPath: ... + def isClipped(self) -> bool: ... + def itemTransform(self, other: 'QGraphicsItem|None') -> 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|None') -> 'QGraphicsItem|None': ... + 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|None') -> 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) -> list['QGraphicsItem']: ... + def window(self) -> 'QGraphicsWidget|None': ... + def topLevelWidget(self) -> 'QGraphicsWidget|None': ... + def parentWidget(self) -> 'QGraphicsWidget|None': ... + @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') -> None: ... + def sceneEventFilter(self, watched: 'QGraphicsItem|None', event: QtCore.QEvent|None) -> bool: ... + def sceneEvent(self, event: QtCore.QEvent|None) -> bool: ... + def prepareGeometryChange(self) -> None: ... + def mouseReleaseEvent(self, event: 'QGraphicsSceneMouseEvent|None') -> None: ... + def mousePressEvent(self, event: 'QGraphicsSceneMouseEvent|None') -> None: ... + def mouseMoveEvent(self, event: 'QGraphicsSceneMouseEvent|None') -> None: ... + def mouseDoubleClickEvent(self, event: 'QGraphicsSceneMouseEvent|None') -> None: ... + def keyReleaseEvent(self, event: QtGui.QKeyEvent|None) -> None: ... + def keyPressEvent(self, event: QtGui.QKeyEvent|None) -> 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) -> None: ... + def hoverMoveEvent(self, event: 'QGraphicsSceneHoverEvent|None') -> None: ... + def hoverLeaveEvent(self, event: 'QGraphicsSceneHoverEvent|None') -> None: ... + def hoverEnterEvent(self, event: 'QGraphicsSceneHoverEvent|None') -> None: ... + def focusOutEvent(self, event: QtGui.QFocusEvent|None) -> None: ... + def focusInEvent(self, event: QtGui.QFocusEvent|None) -> None: ... + def dropEvent(self, event: 'QGraphicsSceneDragDropEvent|None') -> None: ... + def dragMoveEvent(self, event: 'QGraphicsSceneDragDropEvent|None') -> None: ... + def dragLeaveEvent(self, event: 'QGraphicsSceneDragDropEvent|None') -> None: ... + def dragEnterEvent(self, event: 'QGraphicsSceneDragDropEvent|None') -> None: ... + def contextMenuEvent(self, event: 'QGraphicsSceneContextMenuEvent|None') -> None: ... + def removeSceneEventFilter(self, filterItem: 'QGraphicsItem|None') -> None: ... + def installSceneEventFilter(self, filterItem: 'QGraphicsItem|None') -> 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|None') -> bool: ... + @typing.overload + def mapFromScene(self, point: QtCore.QPointF) -> 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: QtCore.QPointF) -> 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|None', point: QtCore.QPointF) -> QtCore.QPointF: ... + @typing.overload + def mapFromItem(self, item: 'QGraphicsItem|None', rect: QtCore.QRectF) -> QtGui.QPolygonF: ... + @typing.overload + def mapFromItem(self, item: 'QGraphicsItem|None', polygon: QtGui.QPolygonF) -> QtGui.QPolygonF: ... + @typing.overload + def mapFromItem(self, item: 'QGraphicsItem|None', path: QtGui.QPainterPath) -> QtGui.QPainterPath: ... + @typing.overload + def mapFromItem(self, item: 'QGraphicsItem|None', ax: float, ay: float) -> QtCore.QPointF: ... + @typing.overload + def mapFromItem(self, item: 'QGraphicsItem|None', ax: float, ay: float, w: float, h: float) -> QtGui.QPolygonF: ... + @typing.overload + def mapToScene(self, point: QtCore.QPointF) -> 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: QtCore.QPointF) -> 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|None', point: QtCore.QPointF) -> QtCore.QPointF: ... + @typing.overload + def mapToItem(self, item: 'QGraphicsItem|None', rect: QtCore.QRectF) -> QtGui.QPolygonF: ... + @typing.overload + def mapToItem(self, item: 'QGraphicsItem|None', polygon: QtGui.QPolygonF) -> QtGui.QPolygonF: ... + @typing.overload + def mapToItem(self, item: 'QGraphicsItem|None', path: QtGui.QPainterPath) -> QtGui.QPainterPath: ... + @typing.overload + def mapToItem(self, item: 'QGraphicsItem|None', ax: float, ay: float) -> QtCore.QPointF: ... + @typing.overload + def mapToItem(self, item: 'QGraphicsItem|None', 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|None, option: 'QStyleOptionGraphicsItem|None', widget: QWidget|None = ...) -> None: ... + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: 'QGraphicsItem|None') -> bool: ... + def collidingItems(self, mode: QtCore.Qt.ItemSelectionMode = ...) -> list['QGraphicsItem']: ... + def collidesWithPath(self, path: QtGui.QPainterPath, mode: QtCore.Qt.ItemSelectionMode = ...) -> bool: ... + def collidesWithItem(self, other: 'QGraphicsItem|None', mode: QtCore.Qt.ItemSelectionMode = ...) -> bool: ... + def contains(self, point: QtCore.QPointF) -> 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: QtCore.QPointF) -> 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: QtCore.Qt.MouseButton) -> None: ... + def acceptedMouseButtons(self) -> QtCore.Qt.MouseButton: ... + 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: QtGui.QCursor|QtCore.Qt.CursorShape) -> None: ... + def cursor(self) -> QtGui.QCursor: ... + def setToolTip(self, toolTip: str|None) -> None: ... + def toolTip(self) -> str: ... + def setFlags(self, flags: 'QGraphicsItem.GraphicsItemFlag') -> None: ... + def setFlag(self, flag: 'QGraphicsItem.GraphicsItemFlag', enabled: bool = ...) -> None: ... + def flags(self) -> 'QGraphicsItem.GraphicsItemFlag': ... + def setGroup(self, group: 'QGraphicsItemGroup|None') -> None: ... + def group(self) -> 'QGraphicsItemGroup|None': ... + def setParentItem(self, parent: 'QGraphicsItem|None') -> None: ... + def topLevelItem(self) -> 'QGraphicsItem|None': ... + def parentItem(self) -> 'QGraphicsItem|None': ... + def scene(self) -> 'QGraphicsScene|None': ... + + +class QAbstractGraphicsShapeItem(QGraphicsItem): + + def __init__(self, parent: QGraphicsItem|None = ...) -> None: ... + + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: QGraphicsItem|None) -> bool: ... + def setBrush(self, brush: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient) -> None: ... + def brush(self) -> QtGui.QBrush: ... + def setPen(self, pen: QtGui.QPen|QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + def pen(self) -> QtGui.QPen: ... + + +class QGraphicsPathItem(QAbstractGraphicsShapeItem): + + @typing.overload + def __init__(self, parent: QGraphicsItem|None = ...) -> None: ... + @typing.overload + def __init__(self, path: QtGui.QPainterPath, parent: QGraphicsItem|None = ...) -> None: ... + + def type(self) -> int: ... + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: QGraphicsItem|None) -> bool: ... + def paint(self, painter: QtGui.QPainter|None, option: 'QStyleOptionGraphicsItem|None', widget: QWidget|None = ...) -> None: ... + def contains(self, point: QtCore.QPointF) -> 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: QGraphicsItem|None = ...) -> None: ... + @typing.overload + def __init__(self, rect: QtCore.QRectF, parent: QGraphicsItem|None = ...) -> None: ... + @typing.overload + def __init__(self, x: float, y: float, w: float, h: float, parent: QGraphicsItem|None = ...) -> None: ... + + def type(self) -> int: ... + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: QGraphicsItem|None) -> bool: ... + def paint(self, painter: QtGui.QPainter|None, option: 'QStyleOptionGraphicsItem|None', widget: QWidget|None = ...) -> None: ... + def contains(self, point: QtCore.QPointF) -> 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: QGraphicsItem|None = ...) -> None: ... + @typing.overload + def __init__(self, rect: QtCore.QRectF, parent: QGraphicsItem|None = ...) -> None: ... + @typing.overload + def __init__(self, x: float, y: float, w: float, h: float, parent: QGraphicsItem|None = ...) -> None: ... + + def type(self) -> int: ... + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: QGraphicsItem|None) -> bool: ... + def paint(self, painter: QtGui.QPainter|None, option: 'QStyleOptionGraphicsItem|None', widget: QWidget|None = ...) -> None: ... + def contains(self, point: QtCore.QPointF) -> 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: QGraphicsItem|None = ...) -> None: ... + @typing.overload + def __init__(self, polygon: QtGui.QPolygonF, parent: QGraphicsItem|None = ...) -> None: ... + + def type(self) -> int: ... + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: QGraphicsItem|None) -> bool: ... + def paint(self, painter: QtGui.QPainter|None, option: 'QStyleOptionGraphicsItem|None', widget: QWidget|None = ...) -> None: ... + def contains(self, point: QtCore.QPointF) -> 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: QGraphicsItem|None = ...) -> None: ... + @typing.overload + def __init__(self, line: QtCore.QLineF, parent: QGraphicsItem|None = ...) -> None: ... + @typing.overload + def __init__(self, x1: float, y1: float, x2: float, y2: float, parent: QGraphicsItem|None = ...) -> None: ... + + def type(self) -> int: ... + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: QGraphicsItem|None) -> bool: ... + def paint(self, painter: QtGui.QPainter|None, option: 'QStyleOptionGraphicsItem|None', widget: QWidget|None = ...) -> None: ... + def contains(self, point: QtCore.QPointF) -> 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: QtGui.QPen|QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + def pen(self) -> QtGui.QPen: ... + + +class QGraphicsPixmapItem(QGraphicsItem): + + class ShapeMode(enum.Enum): + MaskShape = ... # type: QGraphicsPixmapItem.ShapeMode + BoundingRectShape = ... # type: QGraphicsPixmapItem.ShapeMode + HeuristicMaskShape = ... # type: QGraphicsPixmapItem.ShapeMode + + @typing.overload + def __init__(self, parent: QGraphicsItem|None = ...) -> None: ... + @typing.overload + def __init__(self, pixmap: QtGui.QPixmap, parent: QGraphicsItem|None = ...) -> 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|None) -> bool: ... + def paint(self, painter: QtGui.QPainter|None, option: 'QStyleOptionGraphicsItem|None', widget: QWidget|None) -> None: ... + def contains(self, point: QtCore.QPointF) -> bool: ... + def shape(self) -> QtGui.QPainterPath: ... + def boundingRect(self) -> QtCore.QRectF: ... + @typing.overload + def setOffset(self, offset: QtCore.QPointF) -> 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: QGraphicsItem|None = ...) -> None: ... + @typing.overload + def __init__(self, text: str|None, parent: QGraphicsItem|None = ...) -> None: ... + + def type(self) -> int: ... + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: QGraphicsItem|None) -> bool: ... + def paint(self, painter: QtGui.QPainter|None, option: 'QStyleOptionGraphicsItem|None', widget: QWidget|None) -> None: ... + def contains(self, point: QtCore.QPointF) -> 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) -> None: ... + + +class QGraphicsItemGroup(QGraphicsItem): + + def __init__(self, parent: QGraphicsItem|None = ...) -> None: ... + + def type(self) -> int: ... + def opaqueArea(self) -> QtGui.QPainterPath: ... + def isObscuredBy(self, item: QGraphicsItem|None) -> bool: ... + def paint(self, painter: QtGui.QPainter|None, option: 'QStyleOptionGraphicsItem|None', widget: QWidget|None = ...) -> None: ... + def boundingRect(self) -> QtCore.QRectF: ... + def removeFromGroup(self, item: QGraphicsItem|None) -> None: ... + def addToGroup(self, item: QGraphicsItem|None) -> None: ... + + +class QGraphicsObject(QtCore.QObject, QGraphicsItem): + + def __init__(self, parent: QGraphicsItem|None = ...) -> None: ... + + def event(self, ev: QtCore.QEvent|None) -> bool: ... + def updateMicroFocus(self) -> None: ... + scaleChanged: typing.ClassVar[QtCore.pyqtSignal] + rotationChanged: typing.ClassVar[QtCore.pyqtSignal] + zChanged: typing.ClassVar[QtCore.pyqtSignal] + yChanged: typing.ClassVar[QtCore.pyqtSignal] + xChanged: typing.ClassVar[QtCore.pyqtSignal] + enabledChanged: typing.ClassVar[QtCore.pyqtSignal] + visibleChanged: typing.ClassVar[QtCore.pyqtSignal] + opacityChanged: typing.ClassVar[QtCore.pyqtSignal] + parentChanged: typing.ClassVar[QtCore.pyqtSignal] + def ungrabGesture(self, type: QtCore.Qt.GestureType) -> None: ... + def grabGesture(self, type: QtCore.Qt.GestureType, flags: QtCore.Qt.GestureFlag = ...) -> None: ... + + +class QGraphicsTextItem(QGraphicsObject): + + @typing.overload + def __init__(self, parent: QGraphicsItem|None = ...) -> None: ... + @typing.overload + def __init__(self, text: str|None, parent: QGraphicsItem|None = ...) -> None: ... + + def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + def hoverLeaveEvent(self, event: 'QGraphicsSceneHoverEvent|None') -> None: ... + def hoverMoveEvent(self, event: 'QGraphicsSceneHoverEvent|None') -> None: ... + def hoverEnterEvent(self, event: 'QGraphicsSceneHoverEvent|None') -> None: ... + def inputMethodEvent(self, event: QtGui.QInputMethodEvent|None) -> None: ... + def dropEvent(self, event: 'QGraphicsSceneDragDropEvent|None') -> None: ... + def dragMoveEvent(self, event: 'QGraphicsSceneDragDropEvent|None') -> None: ... + def dragLeaveEvent(self, event: 'QGraphicsSceneDragDropEvent|None') -> None: ... + def dragEnterEvent(self, event: 'QGraphicsSceneDragDropEvent|None') -> None: ... + def focusOutEvent(self, event: QtGui.QFocusEvent|None) -> None: ... + def focusInEvent(self, event: QtGui.QFocusEvent|None) -> None: ... + def keyReleaseEvent(self, event: QtGui.QKeyEvent|None) -> None: ... + def keyPressEvent(self, event: QtGui.QKeyEvent|None) -> None: ... + def contextMenuEvent(self, event: 'QGraphicsSceneContextMenuEvent|None') -> None: ... + def mouseDoubleClickEvent(self, event: 'QGraphicsSceneMouseEvent|None') -> None: ... + def mouseReleaseEvent(self, event: 'QGraphicsSceneMouseEvent|None') -> None: ... + def mouseMoveEvent(self, event: 'QGraphicsSceneMouseEvent|None') -> None: ... + def mousePressEvent(self, event: 'QGraphicsSceneMouseEvent|None') -> None: ... + def sceneEvent(self, event: QtCore.QEvent|None) -> bool: ... + linkHovered: typing.ClassVar[QtCore.pyqtSignal] + linkActivated: typing.ClassVar[QtCore.pyqtSignal] + 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.TextInteractionFlag: ... + def setTextInteractionFlags(self, flags: QtCore.Qt.TextInteractionFlag) -> None: ... + def document(self) -> QtGui.QTextDocument|None: ... + def setDocument(self, document: QtGui.QTextDocument|None) -> 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|None) -> bool: ... + def paint(self, painter: QtGui.QPainter|None, option: 'QStyleOptionGraphicsItem|None', widget: QWidget|None) -> None: ... + def contains(self, point: QtCore.QPointF) -> bool: ... + def shape(self) -> QtGui.QPainterPath: ... + def boundingRect(self) -> QtCore.QRectF: ... + def defaultTextColor(self) -> QtGui.QColor: ... + def setDefaultTextColor(self, c: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + def setFont(self, font: QtGui.QFont) -> None: ... + def font(self) -> QtGui.QFont: ... + def setPlainText(self, text: str|None) -> None: ... + def toPlainText(self) -> str: ... + def setHtml(self, html: str|None) -> None: ... + def toHtml(self) -> str: ... + + +class QGraphicsLinearLayout(QGraphicsLayout): + + @typing.overload + def __init__(self, parent: QGraphicsLayoutItem|None = ...) -> None: ... + @typing.overload + def __init__(self, orientation: QtCore.Qt.Orientation, parent: QGraphicsLayoutItem|None = ...) -> None: ... + + def sizeHint(self, which: QtCore.Qt.SizeHint, constraint: QtCore.QSizeF = ...) -> QtCore.QSizeF: ... + def invalidate(self) -> None: ... + def itemAt(self, index: int) -> QGraphicsLayoutItem|None: ... + def count(self) -> int: ... + def setGeometry(self, rect: QtCore.QRectF) -> None: ... + def alignment(self, item: QGraphicsLayoutItem|None) -> QtCore.Qt.AlignmentFlag: ... + def setAlignment(self, item: QGraphicsLayoutItem|None, alignment: QtCore.Qt.AlignmentFlag) -> None: ... + def stretchFactor(self, item: QGraphicsLayoutItem|None) -> int: ... + def setStretchFactor(self, item: QGraphicsLayoutItem|None, 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) -> None: ... + def insertStretch(self, index: int, stretch: int = ...) -> None: ... + def insertItem(self, index: int, item: QGraphicsLayoutItem|None) -> None: ... + def addStretch(self, stretch: int = ...) -> None: ... + def addItem(self, item: QGraphicsLayoutItem|None) -> None: ... + def orientation(self) -> QtCore.Qt.Orientation: ... + def setOrientation(self, orientation: QtCore.Qt.Orientation) -> None: ... + + +class QGraphicsWidget(QGraphicsObject, QGraphicsLayoutItem): + + def __init__(self, parent: QGraphicsItem|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + geometryChanged: typing.ClassVar[QtCore.pyqtSignal] + def setAutoFillBackground(self, enabled: bool) -> None: ... + def autoFillBackground(self) -> bool: ... + def ungrabKeyboardEvent(self, event: QtCore.QEvent|None) -> None: ... + def grabKeyboardEvent(self, event: QtCore.QEvent|None) -> None: ... + def ungrabMouseEvent(self, event: QtCore.QEvent|None) -> None: ... + def grabMouseEvent(self, event: QtCore.QEvent|None) -> None: ... + def hoverLeaveEvent(self, event: 'QGraphicsSceneHoverEvent|None') -> None: ... + def hoverMoveEvent(self, event: 'QGraphicsSceneHoverEvent|None') -> None: ... + def showEvent(self, event: QtGui.QShowEvent|None) -> None: ... + def resizeEvent(self, event: 'QGraphicsSceneResizeEvent|None') -> None: ... + def polishEvent(self) -> None: ... + def moveEvent(self, event: 'QGraphicsSceneMoveEvent|None') -> None: ... + def hideEvent(self, event: QtGui.QHideEvent|None) -> None: ... + def focusOutEvent(self, event: QtGui.QFocusEvent|None) -> None: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def focusInEvent(self, event: QtGui.QFocusEvent|None) -> None: ... + def closeEvent(self, event: QtGui.QCloseEvent|None) -> None: ... + def changeEvent(self, event: QtCore.QEvent|None) -> None: ... + def event(self, event: QtCore.QEvent|None) -> bool: ... + def windowFrameSectionAt(self, pos: QtCore.QPointF) -> QtCore.Qt.WindowFrameSection: ... + def windowFrameEvent(self, e: QtCore.QEvent|None) -> bool: ... + def sceneEvent(self, event: QtCore.QEvent|None) -> 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') -> None: ... + def close(self) -> bool: ... + def shape(self) -> QtGui.QPainterPath: ... + def boundingRect(self) -> QtCore.QRectF: ... + def paintWindowFrame(self, painter: QtGui.QPainter|None, option: 'QStyleOptionGraphicsItem|None', widget: QWidget|None = ...) -> None: ... + def paint(self, painter: QtGui.QPainter|None, option: 'QStyleOptionGraphicsItem|None', widget: QWidget|None = ...) -> 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) -> list[QtGui.QAction]: ... + def removeAction(self, action: QtGui.QAction|None) -> None: ... + def insertActions(self, before: QtGui.QAction|None, actions: collections.abc.Iterable[QtGui.QAction]) -> None: ... + def insertAction(self, before: QtGui.QAction|None, action: QtGui.QAction|None) -> None: ... + def addActions(self, actions: collections.abc.Iterable[QtGui.QAction]) -> None: ... + def addAction(self, action: QtGui.QAction|None) -> 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: QtGui.QKeySequence|QtGui.QKeySequence.StandardKey|str|None|int, context: QtCore.Qt.ShortcutContext = ...) -> int: ... + def focusWidget(self) -> 'QGraphicsWidget|None': ... + @staticmethod + def setTabOrder(first: 'QGraphicsWidget|None', second: 'QGraphicsWidget|None') -> 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) -> None: ... + def isActiveWindow(self) -> bool: ... + def setWindowFlags(self, wFlags: QtCore.Qt.WindowType) -> None: ... + def windowType(self) -> QtCore.Qt.WindowType: ... + def windowFlags(self) -> QtCore.Qt.WindowType: ... + def windowFrameRect(self) -> QtCore.QRectF: ... + def windowFrameGeometry(self) -> QtCore.QRectF: ... + def unsetWindowFrameMargins(self) -> None: ... + def getWindowFrameMargins(self) -> typing.Tuple[float, float, float, float]: ... + @typing.overload + def setWindowFrameMargins(self, margins: QtCore.QMarginsF) -> None: ... + @typing.overload + def setWindowFrameMargins(self, left: float, top: float, right: float, bottom: float) -> None: ... + def getContentsMargins(self) -> typing.Tuple[float, float, float, float]: ... + @typing.overload + def setContentsMargins(self, margins: QtCore.QMarginsF) -> None: ... + @typing.overload + 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) -> None: ... + def style(self) -> QStyle|None: ... + 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) -> None: ... + def layout(self) -> QGraphicsLayout|None: ... + + +class QGraphicsProxyWidget(QGraphicsWidget): + + def __init__(self, parent: QGraphicsItem|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + def inputMethodEvent(self, event: QtGui.QInputMethodEvent|None) -> None: ... + def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + def newProxyWidget(self, a0: QWidget|None) -> 'QGraphicsProxyWidget|None': ... + def dropEvent(self, event: 'QGraphicsSceneDragDropEvent|None') -> None: ... + def dragMoveEvent(self, event: 'QGraphicsSceneDragDropEvent|None') -> None: ... + def dragLeaveEvent(self, event: 'QGraphicsSceneDragDropEvent|None') -> None: ... + def dragEnterEvent(self, event: 'QGraphicsSceneDragDropEvent|None') -> None: ... + def resizeEvent(self, event: 'QGraphicsSceneResizeEvent|None') -> 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) -> None: ... + def focusInEvent(self, event: QtGui.QFocusEvent|None) -> None: ... + def keyReleaseEvent(self, event: QtGui.QKeyEvent|None) -> None: ... + def keyPressEvent(self, event: QtGui.QKeyEvent|None) -> None: ... + def wheelEvent(self, event: 'QGraphicsSceneWheelEvent|None') -> None: ... + def mouseDoubleClickEvent(self, event: 'QGraphicsSceneMouseEvent|None') -> None: ... + def mouseReleaseEvent(self, event: 'QGraphicsSceneMouseEvent|None') -> None: ... + def mousePressEvent(self, event: 'QGraphicsSceneMouseEvent|None') -> None: ... + def mouseMoveEvent(self, event: 'QGraphicsSceneMouseEvent|None') -> None: ... + def ungrabMouseEvent(self, event: QtCore.QEvent|None) -> None: ... + def grabMouseEvent(self, event: QtCore.QEvent|None) -> None: ... + def hoverMoveEvent(self, event: 'QGraphicsSceneHoverEvent|None') -> None: ... + def hoverLeaveEvent(self, event: 'QGraphicsSceneHoverEvent|None') -> None: ... + def hoverEnterEvent(self, event: 'QGraphicsSceneHoverEvent|None') -> None: ... + def contextMenuEvent(self, event: 'QGraphicsSceneContextMenuEvent|None') -> None: ... + def hideEvent(self, event: QtGui.QHideEvent|None) -> None: ... + def showEvent(self, event: QtGui.QShowEvent|None) -> None: ... + def eventFilter(self, object: QtCore.QObject|None, event: QtCore.QEvent|None) -> bool: ... + def event(self, event: QtCore.QEvent|None) -> bool: ... + def itemChange(self, change: QGraphicsItem.GraphicsItemChange, value: typing.Any) -> typing.Any: ... + def createProxyForChildWidget(self, child: QWidget|None) -> 'QGraphicsProxyWidget|None': ... + def type(self) -> int: ... + def paint(self, painter: QtGui.QPainter|None, option: 'QStyleOptionGraphicsItem|None', widget: QWidget|None) -> None: ... + def setGeometry(self, rect: QtCore.QRectF) -> None: ... + def subWidgetRect(self, widget: QWidget|None) -> QtCore.QRectF: ... + def widget(self) -> QWidget|None: ... + def setWidget(self, widget: QWidget|None) -> None: ... + + +class QGraphicsScene(QtCore.QObject): + + class SceneLayer(enum.Flag): + ItemLayer = ... # type: QGraphicsScene.SceneLayer + BackgroundLayer = ... # type: QGraphicsScene.SceneLayer + ForegroundLayer = ... # type: QGraphicsScene.SceneLayer + AllLayers = ... # type: QGraphicsScene.SceneLayer + + class ItemIndexMethod(enum.Enum): + BspTreeIndex = ... # type: QGraphicsScene.ItemIndexMethod + NoIndex = ... # type: QGraphicsScene.ItemIndexMethod + + @typing.overload + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, sceneRect: QtCore.QRectF, parent: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, x: float, y: float, width: float, height: float, parent: QtCore.QObject|None = ...) -> None: ... + + def setFocusOnTouch(self, enabled: bool) -> None: ... + def focusOnTouch(self) -> bool: ... + focusItemChanged: typing.ClassVar[QtCore.pyqtSignal] + def setMinimumRenderSize(self, minSize: float) -> None: ... + def minimumRenderSize(self) -> float: ... + def sendEvent(self, item: QGraphicsItem|None, event: QtCore.QEvent|None) -> bool: ... + def setActivePanel(self, item: QGraphicsItem|None) -> None: ... + def activePanel(self) -> QGraphicsItem|None: ... + def isActive(self) -> bool: ... + @typing.overload + def itemAt(self, pos: QtCore.QPointF, deviceTransform: QtGui.QTransform) -> QGraphicsItem|None: ... + @typing.overload + def itemAt(self, x: float, y: float, deviceTransform: QtGui.QTransform) -> QGraphicsItem|None: ... + def stickyFocus(self) -> bool: ... + def setStickyFocus(self, enabled: bool) -> None: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def eventFilter(self, watched: QtCore.QObject|None, event: QtCore.QEvent|None) -> bool: ... + def setActiveWindow(self, widget: QGraphicsWidget|None) -> None: ... + def activeWindow(self) -> QGraphicsWidget|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) -> None: ... + def style(self) -> QStyle|None: ... + def addWidget(self, widget: QWidget|None, flags: QtCore.Qt.WindowType = ...) -> QGraphicsProxyWidget|None: ... + def selectionArea(self) -> QtGui.QPainterPath: ... + def setBspTreeDepth(self, depth: int) -> None: ... + def bspTreeDepth(self) -> int: ... + def drawForeground(self, painter: QtGui.QPainter|None, rect: QtCore.QRectF) -> None: ... + def drawBackground(self, painter: QtGui.QPainter|None, rect: QtCore.QRectF) -> None: ... + def inputMethodEvent(self, event: QtGui.QInputMethodEvent|None) -> None: ... + def wheelEvent(self, event: 'QGraphicsSceneWheelEvent|None') -> None: ... + def mouseDoubleClickEvent(self, event: 'QGraphicsSceneMouseEvent|None') -> None: ... + def mouseReleaseEvent(self, event: 'QGraphicsSceneMouseEvent|None') -> None: ... + def mouseMoveEvent(self, event: 'QGraphicsSceneMouseEvent|None') -> None: ... + def mousePressEvent(self, event: 'QGraphicsSceneMouseEvent|None') -> None: ... + def keyReleaseEvent(self, event: QtGui.QKeyEvent|None) -> None: ... + def keyPressEvent(self, event: QtGui.QKeyEvent|None) -> None: ... + def helpEvent(self, event: 'QGraphicsSceneHelpEvent|None') -> None: ... + def focusOutEvent(self, event: QtGui.QFocusEvent|None) -> None: ... + def focusInEvent(self, event: QtGui.QFocusEvent|None) -> None: ... + def dropEvent(self, event: 'QGraphicsSceneDragDropEvent|None') -> None: ... + def dragLeaveEvent(self, event: 'QGraphicsSceneDragDropEvent|None') -> None: ... + def dragMoveEvent(self, event: 'QGraphicsSceneDragDropEvent|None') -> None: ... + def dragEnterEvent(self, event: 'QGraphicsSceneDragDropEvent|None') -> None: ... + def contextMenuEvent(self, event: 'QGraphicsSceneContextMenuEvent|None') -> None: ... + def event(self, event: QtCore.QEvent|None) -> bool: ... + selectionChanged: typing.ClassVar[QtCore.pyqtSignal] + sceneRectChanged: typing.ClassVar[QtCore.pyqtSignal] + changed: typing.ClassVar[QtCore.pyqtSignal] + def clear(self) -> None: ... + @typing.overload + def invalidate(self, rect: QtCore.QRectF = ..., layers: 'QGraphicsScene.SceneLayer' = ...) -> None: ... + @typing.overload + def invalidate(self, x: float, y: float, w: float, h: float, layers: '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) -> list['QGraphicsView']: ... + def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + def setForegroundBrush(self, brush: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient) -> None: ... + def foregroundBrush(self) -> QtGui.QBrush: ... + def setBackgroundBrush(self, brush: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient) -> None: ... + def backgroundBrush(self) -> QtGui.QBrush: ... + def mouseGrabberItem(self) -> QGraphicsItem|None: ... + def clearFocus(self) -> None: ... + def setFocus(self, focusReason: QtCore.Qt.FocusReason = ...) -> None: ... + def hasFocus(self) -> bool: ... + def setFocusItem(self, item: QGraphicsItem|None, focusReason: QtCore.Qt.FocusReason = ...) -> None: ... + def focusItem(self) -> QGraphicsItem|None: ... + def removeItem(self, item: QGraphicsItem|None) -> None: ... + def addText(self, text: str|None, font: QtGui.QFont = ...) -> QGraphicsTextItem|None: ... + def addSimpleText(self, text: str|None, font: QtGui.QFont = ...) -> QGraphicsSimpleTextItem|None: ... + @typing.overload + def addRect(self, rect: QtCore.QRectF, pen: QtGui.QPen|QtGui.QColor|QtCore.Qt.GlobalColor|int = ..., brush: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient = ...) -> QGraphicsRectItem|None: ... + @typing.overload + def addRect(self, x: float, y: float, w: float, h: float, pen: QtGui.QPen|QtGui.QColor|QtCore.Qt.GlobalColor|int = ..., brush: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient = ...) -> QGraphicsRectItem|None: ... + def addPolygon(self, polygon: QtGui.QPolygonF, pen: QtGui.QPen|QtGui.QColor|QtCore.Qt.GlobalColor|int = ..., brush: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient = ...) -> QGraphicsPolygonItem|None: ... + def addPixmap(self, pixmap: QtGui.QPixmap) -> QGraphicsPixmapItem|None: ... + def addPath(self, path: QtGui.QPainterPath, pen: QtGui.QPen|QtGui.QColor|QtCore.Qt.GlobalColor|int = ..., brush: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient = ...) -> QGraphicsPathItem|None: ... + @typing.overload + def addLine(self, line: QtCore.QLineF, pen: QtGui.QPen|QtGui.QColor|QtCore.Qt.GlobalColor|int = ...) -> QGraphicsLineItem|None: ... + @typing.overload + def addLine(self, x1: float, y1: float, x2: float, y2: float, pen: QtGui.QPen|QtGui.QColor|QtCore.Qt.GlobalColor|int = ...) -> QGraphicsLineItem|None: ... + @typing.overload + def addEllipse(self, rect: QtCore.QRectF, pen: QtGui.QPen|QtGui.QColor|QtCore.Qt.GlobalColor|int = ..., brush: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient = ...) -> QGraphicsEllipseItem|None: ... + @typing.overload + def addEllipse(self, x: float, y: float, w: float, h: float, pen: QtGui.QPen|QtGui.QColor|QtCore.Qt.GlobalColor|int = ..., brush: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient = ...) -> QGraphicsEllipseItem|None: ... + def addItem(self, item: QGraphicsItem|None) -> None: ... + def destroyItemGroup(self, group: QGraphicsItemGroup|None) -> None: ... + def createItemGroup(self, items: collections.abc.Iterable[QGraphicsItem]) -> QGraphicsItemGroup|None: ... + def clearSelection(self) -> None: ... + @typing.overload + def setSelectionArea(self, path: QtGui.QPainterPath, 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) -> list[QGraphicsItem]: ... + def collidingItems(self, item: QGraphicsItem|None, mode: QtCore.Qt.ItemSelectionMode = ...) -> list[QGraphicsItem]: ... + @typing.overload + def items(self, order: QtCore.Qt.SortOrder = ...) -> list[QGraphicsItem]: ... + @typing.overload + def items(self, pos: QtCore.QPointF, mode: QtCore.Qt.ItemSelectionMode = ..., order: QtCore.Qt.SortOrder = ..., deviceTransform: QtGui.QTransform = ...) -> list[QGraphicsItem]: ... + @typing.overload + def items(self, rect: QtCore.QRectF, mode: QtCore.Qt.ItemSelectionMode = ..., order: QtCore.Qt.SortOrder = ..., deviceTransform: QtGui.QTransform = ...) -> list[QGraphicsItem]: ... + @typing.overload + def items(self, polygon: QtGui.QPolygonF, mode: QtCore.Qt.ItemSelectionMode = ..., order: QtCore.Qt.SortOrder = ..., deviceTransform: QtGui.QTransform = ...) -> list[QGraphicsItem]: ... + @typing.overload + def items(self, path: QtGui.QPainterPath, mode: QtCore.Qt.ItemSelectionMode = ..., order: QtCore.Qt.SortOrder = ..., deviceTransform: QtGui.QTransform = ...) -> 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 = ...) -> 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|None, 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 timestamp(self) -> int: ... + def widget(self) -> QWidget|None: ... + + +class QGraphicsSceneMouseEvent(QGraphicsSceneEvent): + + def flags(self) -> QtCore.Qt.MouseEventFlag: ... + def source(self) -> QtCore.Qt.MouseEventSource: ... + def modifiers(self) -> QtCore.Qt.KeyboardModifier: ... + def button(self) -> QtCore.Qt.MouseButton: ... + def buttons(self) -> QtCore.Qt.MouseButton: ... + 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 isInverted(self) -> bool: ... + def pixelDelta(self) -> QtCore.QPoint: ... + def phase(self) -> QtCore.Qt.ScrollPhase: ... + def orientation(self) -> QtCore.Qt.Orientation: ... + def delta(self) -> int: ... + def modifiers(self) -> QtCore.Qt.KeyboardModifier: ... + def buttons(self) -> QtCore.Qt.MouseButton: ... + def screenPos(self) -> QtCore.QPoint: ... + def scenePos(self) -> QtCore.QPointF: ... + def pos(self) -> QtCore.QPointF: ... + + +class QGraphicsSceneContextMenuEvent(QGraphicsSceneEvent): + + class Reason(enum.Enum): + Mouse = ... # type: QGraphicsSceneContextMenuEvent.Reason + Keyboard = ... # type: QGraphicsSceneContextMenuEvent.Reason + Other = ... # type: QGraphicsSceneContextMenuEvent.Reason + + def reason(self) -> 'QGraphicsSceneContextMenuEvent.Reason': ... + def modifiers(self) -> QtCore.Qt.KeyboardModifier: ... + def screenPos(self) -> QtCore.QPoint: ... + def scenePos(self) -> QtCore.QPointF: ... + def pos(self) -> QtCore.QPointF: ... + + +class QGraphicsSceneHoverEvent(QGraphicsSceneEvent): + + def modifiers(self) -> QtCore.Qt.KeyboardModifier: ... + 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|None: ... + def source(self) -> QWidget|None: ... + 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.DropAction: ... + def modifiers(self) -> QtCore.Qt.KeyboardModifier: ... + def buttons(self) -> QtCore.Qt.MouseButton: ... + 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: QtCore.QObject|None = ...) -> None: ... + + def update(self) -> None: ... + def applyTo(self, matrix: QtGui.QMatrix4x4|None) -> None: ... + + +class QGraphicsScale(QGraphicsTransform): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + zScaleChanged: typing.ClassVar[QtCore.pyqtSignal] + yScaleChanged: typing.ClassVar[QtCore.pyqtSignal] + xScaleChanged: typing.ClassVar[QtCore.pyqtSignal] + scaleChanged: typing.ClassVar[QtCore.pyqtSignal] + originChanged: typing.ClassVar[QtCore.pyqtSignal] + def applyTo(self, matrix: QtGui.QMatrix4x4|None) -> 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: QtCore.QObject|None = ...) -> None: ... + + axisChanged: typing.ClassVar[QtCore.pyqtSignal] + angleChanged: typing.ClassVar[QtCore.pyqtSignal] + originChanged: typing.ClassVar[QtCore.pyqtSignal] + def applyTo(self, matrix: QtGui.QMatrix4x4|None) -> 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(enum.Flag): + DontSavePainterState = ... # type: QGraphicsView.OptimizationFlag + DontAdjustForAntialiasing = ... # type: QGraphicsView.OptimizationFlag + + class ViewportUpdateMode(enum.Enum): + FullViewportUpdate = ... # type: QGraphicsView.ViewportUpdateMode + MinimalViewportUpdate = ... # type: QGraphicsView.ViewportUpdateMode + SmartViewportUpdate = ... # type: QGraphicsView.ViewportUpdateMode + BoundingRectViewportUpdate = ... # type: QGraphicsView.ViewportUpdateMode + NoViewportUpdate = ... # type: QGraphicsView.ViewportUpdateMode + + class ViewportAnchor(enum.Enum): + NoAnchor = ... # type: QGraphicsView.ViewportAnchor + AnchorViewCenter = ... # type: QGraphicsView.ViewportAnchor + AnchorUnderMouse = ... # type: QGraphicsView.ViewportAnchor + + class DragMode(enum.Enum): + NoDrag = ... # type: QGraphicsView.DragMode + ScrollHandDrag = ... # type: QGraphicsView.DragMode + RubberBandDrag = ... # type: QGraphicsView.DragMode + + class CacheModeFlag(enum.Flag): + CacheNone = ... # type: QGraphicsView.CacheModeFlag + CacheBackground = ... # type: QGraphicsView.CacheModeFlag + + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, scene: QGraphicsScene|None, parent: QWidget|None = ...) -> None: ... + + rubberBandChanged: typing.ClassVar[QtCore.pyqtSignal] + 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: 'QGraphicsView.OptimizationFlag') -> None: ... + def setOptimizationFlag(self, flag: 'QGraphicsView.OptimizationFlag', enabled: bool = ...) -> None: ... + def optimizationFlags(self) -> 'QGraphicsView.OptimizationFlag': ... + def setViewportUpdateMode(self, mode: 'QGraphicsView.ViewportUpdateMode') -> None: ... + def viewportUpdateMode(self) -> 'QGraphicsView.ViewportUpdateMode': ... + def drawForeground(self, painter: QtGui.QPainter|None, rect: QtCore.QRectF) -> None: ... + def drawBackground(self, painter: QtGui.QPainter|None, rect: QtCore.QRectF) -> None: ... + def inputMethodEvent(self, event: QtGui.QInputMethodEvent|None) -> None: ... + def showEvent(self, event: QtGui.QShowEvent|None) -> None: ... + def scrollContentsBy(self, dx: int, dy: int) -> None: ... + def resizeEvent(self, event: QtGui.QResizeEvent|None) -> None: ... + def paintEvent(self, event: QtGui.QPaintEvent|None) -> None: ... + def wheelEvent(self, event: QtGui.QWheelEvent|None) -> None: ... + def mouseReleaseEvent(self, event: QtGui.QMouseEvent|None) -> None: ... + def mouseMoveEvent(self, event: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, event: QtGui.QMouseEvent|None) -> None: ... + def mouseDoubleClickEvent(self, event: QtGui.QMouseEvent|None) -> None: ... + def keyReleaseEvent(self, event: QtGui.QKeyEvent|None) -> None: ... + def keyPressEvent(self, event: QtGui.QKeyEvent|None) -> None: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def focusOutEvent(self, event: QtGui.QFocusEvent|None) -> None: ... + def focusInEvent(self, event: QtGui.QFocusEvent|None) -> None: ... + def dropEvent(self, event: QtGui.QDropEvent|None) -> None: ... + def dragMoveEvent(self, event: QtGui.QDragMoveEvent|None) -> None: ... + def dragLeaveEvent(self, event: QtGui.QDragLeaveEvent|None) -> None: ... + def dragEnterEvent(self, event: QtGui.QDragEnterEvent|None) -> None: ... + def contextMenuEvent(self, event: QtGui.QContextMenuEvent|None) -> None: ... + def viewportEvent(self, event: QtCore.QEvent|None) -> bool: ... + def event(self, event: QtCore.QEvent|None) -> bool: ... + def setupViewport(self, widget: QWidget|None) -> None: ... + def updateSceneRect(self, rect: QtCore.QRectF) -> None: ... + def updateScene(self, rects: collections.abc.Iterable[QtCore.QRectF]) -> None: ... + def invalidateScene(self, rect: QtCore.QRectF = ..., layers: QGraphicsScene.SceneLayer = ...) -> None: ... + def setForegroundBrush(self, brush: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient) -> None: ... + def foregroundBrush(self) -> QtGui.QBrush: ... + def setBackgroundBrush(self, brush: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient) -> None: ... + def backgroundBrush(self) -> QtGui.QBrush: ... + def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ... + @typing.overload + def mapFromScene(self, point: QtCore.QPointF) -> 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|None: ... + @typing.overload + def itemAt(self, ax: int, ay: int) -> QGraphicsItem|None: ... + @typing.overload + def items(self) -> list[QGraphicsItem]: ... + @typing.overload + def items(self, pos: QtCore.QPoint) -> list[QGraphicsItem]: ... + @typing.overload + def items(self, x: int, y: int) -> list[QGraphicsItem]: ... + @typing.overload + def items(self, x: int, y: int, w: int, h: int, mode: QtCore.Qt.ItemSelectionMode = ...) -> list[QGraphicsItem]: ... + @typing.overload + def items(self, rect: QtCore.QRect, mode: QtCore.Qt.ItemSelectionMode = ...) -> list[QGraphicsItem]: ... + @typing.overload + def items(self, polygon: QtGui.QPolygon, mode: QtCore.Qt.ItemSelectionMode = ...) -> list[QGraphicsItem]: ... + @typing.overload + def items(self, path: QtGui.QPainterPath, mode: QtCore.Qt.ItemSelectionMode = ...) -> list[QGraphicsItem]: ... + def render(self, painter: QtGui.QPainter|None, 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|None, 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|None, 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: QtCore.QPointF) -> None: ... + @typing.overload + def centerOn(self, item: QGraphicsItem|None) -> 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) -> None: ... + def scene(self) -> QGraphicsScene|None: ... + def setInteractive(self, allowed: bool) -> None: ... + def isInteractive(self) -> bool: ... + def resetCachedContent(self) -> None: ... + def setCacheMode(self, mode: 'QGraphicsView.CacheModeFlag') -> None: ... + def cacheMode(self) -> 'QGraphicsView.CacheModeFlag': ... + 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: QtCore.Qt.AlignmentFlag) -> None: ... + def alignment(self) -> QtCore.Qt.AlignmentFlag: ... + def setRenderHints(self, hints: QtGui.QPainter.RenderHint) -> None: ... + def setRenderHint(self, hint: QtGui.QPainter.RenderHint, on: bool = ...) -> None: ... + def renderHints(self) -> QtGui.QPainter.RenderHint: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QGridLayout(QLayout): + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def itemAtPosition(self, row: int, column: int) -> QLayoutItem|None: ... + 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|None, row: int, column: int, rowSpan: int = ..., columnSpan: int = ..., alignment: QtCore.Qt.AlignmentFlag = ...) -> None: ... + @typing.overload + def addItem(self, a0: QLayoutItem|None) -> None: ... + def setGeometry(self, a0: QtCore.QRect) -> None: ... + def count(self) -> int: ... + def takeAt(self, a0: int) -> QLayoutItem|None: ... + def itemAt(self, a0: int) -> QLayoutItem|None: ... + def originCorner(self) -> QtCore.Qt.Corner: ... + def setOriginCorner(self, a0: QtCore.Qt.Corner) -> None: ... + @typing.overload + def addLayout(self, a0: QLayout|None, row: int, column: int, alignment: QtCore.Qt.AlignmentFlag = ...) -> None: ... + @typing.overload + def addLayout(self, a0: QLayout|None, row: int, column: int, rowSpan: int, columnSpan: int, alignment: QtCore.Qt.AlignmentFlag = ...) -> None: ... + @typing.overload + def addWidget(self, w: QWidget|None) -> None: ... + @typing.overload + def addWidget(self, a0: QWidget|None, row: int, column: int, alignment: QtCore.Qt.AlignmentFlag = ...) -> None: ... + @typing.overload + def addWidget(self, a0: QWidget|None, row: int, column: int, rowSpan: int, columnSpan: int, alignment: QtCore.Qt.AlignmentFlag = ...) -> None: ... + def invalidate(self) -> None: ... + def expandingDirections(self) -> QtCore.Qt.Orientation: ... + 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: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, title: str|None, parent: QWidget|None = ...) -> None: ... + + def mouseReleaseEvent(self, event: QtGui.QMouseEvent|None) -> None: ... + def mouseMoveEvent(self, event: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, event: QtGui.QMouseEvent|None) -> None: ... + def changeEvent(self, a0: QtCore.QEvent|None) -> None: ... + def focusInEvent(self, a0: QtGui.QFocusEvent|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + def childEvent(self, a0: QtCore.QChildEvent|None) -> None: ... + def event(self, a0: QtCore.QEvent|None) -> bool: ... + def initStyleOption(self, option: 'QStyleOptionGroupBox|None') -> None: ... + toggled: typing.ClassVar[QtCore.pyqtSignal] + clicked: typing.ClassVar[QtCore.pyqtSignal] + 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.AlignmentFlag: ... + def setTitle(self, a0: str|None) -> None: ... + def title(self) -> str: ... + + +class QHeaderView(QAbstractItemView): + + class ResizeMode(enum.Enum): + 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: QWidget|None = ...) -> None: ... + + sortIndicatorClearableChanged: typing.ClassVar[QtCore.pyqtSignal] + def isSortIndicatorClearable(self) -> bool: ... + def setSortIndicatorClearable(self, clearable: bool) -> 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 initStyleOptionForIndex(self, option: 'QStyleOptionHeader|None', logicalIndex: int) -> None: ... + def initStyleOption(self, option: 'QStyleOptionHeader|None') -> None: ... + sortIndicatorChanged: typing.ClassVar[QtCore.pyqtSignal] + sectionEntered: typing.ClassVar[QtCore.pyqtSignal] + def setOffsetToLastSection(self) -> None: ... + def reset(self) -> None: ... + def restoreState(self, state: QtCore.QByteArray|bytes|bytearray|memoryview) -> 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: QtCore.Qt.AlignmentFlag) -> None: ... + def defaultAlignment(self) -> QtCore.Qt.AlignmentFlag: ... + 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: QtCore.QItemSelectionModel.SelectionFlag) -> None: ... + def moveCursor(self, a0: QAbstractItemView.CursorAction, a1: 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: collections.abc.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|None, rect: QtCore.QRect, logicalIndex: int) -> None: ... + def mouseDoubleClickEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mouseMoveEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def paintEvent(self, e: QtGui.QPaintEvent|None) -> None: ... + def viewportEvent(self, e: QtCore.QEvent|None) -> bool: ... + def event(self, e: QtCore.QEvent|None) -> 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: ... + sectionHandleDoubleClicked: typing.ClassVar[QtCore.pyqtSignal] + sectionCountChanged: typing.ClassVar[QtCore.pyqtSignal] + sectionDoubleClicked: typing.ClassVar[QtCore.pyqtSignal] + sectionClicked: typing.ClassVar[QtCore.pyqtSignal] + sectionPressed: typing.ClassVar[QtCore.pyqtSignal] + sectionResized: typing.ClassVar[QtCore.pyqtSignal] + sectionMoved: typing.ClassVar[QtCore.pyqtSignal] + geometriesChanged: typing.ClassVar[QtCore.pyqtSignal] + 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) -> None: ... + + +class QInputDialog(QDialog): + + class InputMode(enum.Enum): + TextInput = ... # type: QInputDialog.InputMode + IntInput = ... # type: QInputDialog.InputMode + DoubleInput = ... # type: QInputDialog.InputMode + + class InputDialogOption(enum.Flag): + NoButtons = ... # type: QInputDialog.InputDialogOption + UseListViewForComboBoxItems = ... # type: QInputDialog.InputDialogOption + UsePlainTextEditForTextInput = ... # type: QInputDialog.InputDialogOption + + def __init__(self, parent: QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + def doubleStep(self) -> float: ... + def setDoubleStep(self, step: float) -> None: ... + doubleValueSelected: typing.ClassVar[QtCore.pyqtSignal] + doubleValueChanged: typing.ClassVar[QtCore.pyqtSignal] + intValueSelected: typing.ClassVar[QtCore.pyqtSignal] + intValueChanged: typing.ClassVar[QtCore.pyqtSignal] + textValueSelected: typing.ClassVar[QtCore.pyqtSignal] + textValueChanged: typing.ClassVar[QtCore.pyqtSignal] + 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) -> None: ... + def okButtonText(self) -> str: ... + def setOkButtonText(self, text: str|None) -> 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) -> list[str]: ... + def setComboBoxItems(self, items: collections.abc.Iterable[str|None]) -> 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) -> None: ... + def options(self) -> 'QInputDialog.InputDialogOption': ... + def setOptions(self, options: '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) -> None: ... + def inputMode(self) -> 'QInputDialog.InputMode': ... + def setInputMode(self, mode: 'QInputDialog.InputMode') -> None: ... + @staticmethod + def getMultiLineText(parent: QWidget|None, title: str|None, label: str|None, text: str|None = ..., flags: QtCore.Qt.WindowType = ..., inputMethodHints: QtCore.Qt.InputMethodHint = ...) -> typing.Tuple[str, bool]: ... + @staticmethod + def getItem(parent: QWidget|None, title: str|None, label: str|None, items: collections.abc.Iterable[str|None], current: int = ..., editable: bool = ..., flags: QtCore.Qt.WindowType = ..., inputMethodHints: QtCore.Qt.InputMethodHint = ...) -> typing.Tuple[str, bool]: ... + @staticmethod + def getDouble(parent: QWidget|None, title: str|None, label: str|None, value: float = ..., min: float = ..., max: float = ..., decimals: int = ..., flags: QtCore.Qt.WindowType = ..., step: float = ...) -> typing.Tuple[float, bool]: ... + @staticmethod + def getInt(parent: QWidget|None, title: str|None, label: str|None, value: int = ..., min: int = ..., max: int = ..., step: int = ..., flags: QtCore.Qt.WindowType = ...) -> typing.Tuple[int, bool]: ... + @staticmethod + def getText(parent: QWidget|None, title: str|None, label: str|None, echo: 'QLineEdit.EchoMode' = ..., text: str|None = ..., flags: QtCore.Qt.WindowType = ..., inputMethodHints: QtCore.Qt.InputMethodHint = ...) -> typing.Tuple[str, bool]: ... + + +class QItemDelegate(QAbstractItemDelegate): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def editorEvent(self, event: QtCore.QEvent|None, model: QtCore.QAbstractItemModel|None, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> bool: ... + def eventFilter(self, object: QtCore.QObject|None, event: QtCore.QEvent|None) -> bool: ... + def drawFocus(self, painter: QtGui.QPainter|None, option: 'QStyleOptionViewItem', rect: QtCore.QRect) -> None: ... + def drawDisplay(self, painter: QtGui.QPainter|None, option: 'QStyleOptionViewItem', rect: QtCore.QRect, text: str|None) -> None: ... + def drawDecoration(self, painter: QtGui.QPainter|None, option: 'QStyleOptionViewItem', rect: QtCore.QRect, pixmap: QtGui.QPixmap) -> None: ... + def drawCheck(self, painter: QtGui.QPainter|None, option: 'QStyleOptionViewItem', rect: QtCore.QRect, state: QtCore.Qt.CheckState) -> None: ... + def drawBackground(self, painter: QtGui.QPainter|None, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> None: ... + def setClipping(self, clip: bool) -> None: ... + def hasClipping(self) -> bool: ... + def setItemEditorFactory(self, factory: 'QItemEditorFactory|None') -> None: ... + def itemEditorFactory(self) -> 'QItemEditorFactory|None': ... + def updateEditorGeometry(self, editor: QWidget|None, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> None: ... + def setModelData(self, editor: QWidget|None, model: QtCore.QAbstractItemModel|None, index: QtCore.QModelIndex) -> None: ... + def setEditorData(self, editor: QWidget|None, index: QtCore.QModelIndex) -> None: ... + def createEditor(self, parent: QWidget|None, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> QWidget|None: ... + def sizeHint(self, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> QtCore.QSize: ... + def paint(self, painter: QtGui.QPainter|None, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> None: ... + + +class QItemEditorCreatorBase(PyQt6.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|None) -> QWidget|None: ... + + +class QItemEditorFactory(PyQt6.sip.wrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QItemEditorFactory') -> None: ... + + @staticmethod + def setDefaultFactory(factory: 'QItemEditorFactory|None') -> None: ... + @staticmethod + def defaultFactory() -> 'QItemEditorFactory|None': ... + def registerEditor(self, userType: int, creator: QItemEditorCreatorBase|None) -> None: ... + def valuePropertyName(self, userType: int) -> QtCore.QByteArray: ... + def createEditor(self, userType: int, parent: QWidget|None) -> QWidget|None: ... + + +class QKeySequenceEdit(QWidget): + + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, keySequence: QtGui.QKeySequence|QtGui.QKeySequence.StandardKey|str|None|int, parent: QWidget|None = ...) -> None: ... + + def setMaximumSequenceLength(self, count: int) -> None: ... + def finishingKeyCombinations(self) -> list[QtCore.QKeyCombination]: ... + def setFinishingKeyCombinations(self, finishingKeyCombinations: collections.abc.Iterable[QtCore.QKeyCombination]) -> None: ... + def maximumSequenceLength(self) -> int: ... + def isClearButtonEnabled(self) -> bool: ... + def setClearButtonEnabled(self, enable: bool) -> None: ... + def focusOutEvent(self, a0: QtGui.QFocusEvent|None) -> None: ... + def timerEvent(self, a0: QtCore.QTimerEvent|None) -> None: ... + def keyReleaseEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def event(self, a0: QtCore.QEvent|None) -> bool: ... + keySequenceChanged: typing.ClassVar[QtCore.pyqtSignal] + editingFinished: typing.ClassVar[QtCore.pyqtSignal] + def clear(self) -> None: ... + def setKeySequence(self, keySequence: QtGui.QKeySequence|QtGui.QKeySequence.StandardKey|str|None|int) -> None: ... + def keySequence(self) -> QtGui.QKeySequence: ... + + +class QLabel(QFrame): + + @typing.overload + def __init__(self, parent: QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + @typing.overload + def __init__(self, text: str|None, parent: QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + def setResourceProvider(self, provider: collections.abc.Callable[[QtCore.QUrl], typing.Any]) -> None: ... + def resourceProvider(self) -> collections.abc.Callable[[QtCore.QUrl], typing.Any]: ... + 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) -> None: ... + def focusInEvent(self, ev: QtGui.QFocusEvent|None) -> None: ... + def contextMenuEvent(self, ev: QtGui.QContextMenuEvent|None) -> None: ... + def mouseReleaseEvent(self, ev: QtGui.QMouseEvent|None) -> None: ... + def mouseMoveEvent(self, ev: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, ev: QtGui.QMouseEvent|None) -> None: ... + def keyPressEvent(self, ev: QtGui.QKeyEvent|None) -> None: ... + def changeEvent(self, a0: QtCore.QEvent|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + linkHovered: typing.ClassVar[QtCore.pyqtSignal] + linkActivated: typing.ClassVar[QtCore.pyqtSignal] + def setText(self, a0: str|None) -> 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) -> None: ... + def clear(self) -> None: ... + def setOpenExternalLinks(self, open: bool) -> None: ... + def textInteractionFlags(self) -> QtCore.Qt.TextInteractionFlag: ... + def setTextInteractionFlags(self, flags: QtCore.Qt.TextInteractionFlag) -> None: ... + def openExternalLinks(self) -> bool: ... + def heightForWidth(self, a0: int) -> int: ... + def buddy(self) -> QWidget|None: ... + def setBuddy(self, a0: QWidget|None) -> 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: QtCore.Qt.AlignmentFlag) -> None: ... + def alignment(self) -> QtCore.Qt.AlignmentFlag: ... + def setTextFormat(self, a0: QtCore.Qt.TextFormat) -> None: ... + def textFormat(self) -> QtCore.Qt.TextFormat: ... + def movie(self) -> QtGui.QMovie|None: ... + 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|None': ... + def geometry(self) -> QtCore.QRect: ... + def setGeometry(self, a0: QtCore.QRect) -> None: ... + def isEmpty(self) -> bool: ... + def expandingDirections(self) -> QtCore.Qt.Orientation: ... + 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) -> None: ... + + def minimumHeightForWidth(self, a0: int) -> int: ... + def controlTypes(self) -> 'QSizePolicy.ControlType': ... + def heightForWidth(self, a0: int) -> int: ... + def hasHeightForWidth(self) -> bool: ... + def widget(self) -> QWidget|None: ... + def geometry(self) -> QtCore.QRect: ... + def setGeometry(self, a0: QtCore.QRect) -> None: ... + def isEmpty(self) -> bool: ... + def expandingDirections(self) -> QtCore.Qt.Orientation: ... + def maximumSize(self) -> QtCore.QSize: ... + def minimumSize(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QLCDNumber(QFrame): + + class SegmentStyle(enum.Enum): + Outline = ... # type: QLCDNumber.SegmentStyle + Filled = ... # type: QLCDNumber.SegmentStyle + Flat = ... # type: QLCDNumber.SegmentStyle + + class Mode(enum.Enum): + Hex = ... # type: QLCDNumber.Mode + Dec = ... # type: QLCDNumber.Mode + Oct = ... # type: QLCDNumber.Mode + Bin = ... # type: QLCDNumber.Mode + + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, numDigits: int, parent: QWidget|None = ...) -> None: ... + + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + overflow: typing.ClassVar[QtCore.pyqtSignal] + 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) -> 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(enum.Enum): + LeadingPosition = ... # type: QLineEdit.ActionPosition + TrailingPosition = ... # type: QLineEdit.ActionPosition + + class EchoMode(enum.Enum): + Normal = ... # type: QLineEdit.EchoMode + NoEcho = ... # type: QLineEdit.EchoMode + Password = ... # type: QLineEdit.EchoMode + PasswordEchoOnEdit = ... # type: QLineEdit.EchoMode + + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, contents: str|None, parent: QWidget|None = ...) -> None: ... + + inputRejected: typing.ClassVar[QtCore.pyqtSignal] + def selectionLength(self) -> int: ... + def selectionEnd(self) -> int: ... + @typing.overload + def addAction(self, a0: QtGui.QAction|None) -> None: ... + @typing.overload + def addAction(self, action: QtGui.QAction|None, position: 'QLineEdit.ActionPosition') -> None: ... + @typing.overload + def addAction(self, icon: QtGui.QIcon, position: 'QLineEdit.ActionPosition') -> QtGui.QAction|None: ... + 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) -> None: ... + def placeholderText(self) -> str: ... + def textMargins(self) -> QtCore.QMargins: ... + @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|None: ... + def setCompleter(self, completer: QCompleter|None) -> None: ... + def timerEvent(self, a0: QtCore.QTimerEvent|None) -> None: ... + def event(self, a0: QtCore.QEvent|None) -> 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 keyReleaseEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def inputMethodEvent(self, a0: QtGui.QInputMethodEvent|None) -> None: ... + def contextMenuEvent(self, a0: QtGui.QContextMenuEvent|None) -> None: ... + def changeEvent(self, a0: QtCore.QEvent|None) -> None: ... + def dropEvent(self, a0: QtGui.QDropEvent|None) -> None: ... + def dragLeaveEvent(self, e: QtGui.QDragLeaveEvent|None) -> None: ... + def dragMoveEvent(self, e: QtGui.QDragMoveEvent|None) -> None: ... + def dragEnterEvent(self, a0: QtGui.QDragEnterEvent|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def focusOutEvent(self, a0: QtGui.QFocusEvent|None) -> None: ... + def focusInEvent(self, a0: QtGui.QFocusEvent|None) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def initStyleOption(self, option: 'QStyleOptionFrame|None') -> None: ... + selectionChanged: typing.ClassVar[QtCore.pyqtSignal] + editingFinished: typing.ClassVar[QtCore.pyqtSignal] + returnPressed: typing.ClassVar[QtCore.pyqtSignal] + cursorPositionChanged: typing.ClassVar[QtCore.pyqtSignal] + textEdited: typing.ClassVar[QtCore.pyqtSignal] + textChanged: typing.ClassVar[QtCore.pyqtSignal] + def createStandardContextMenu(self) -> 'QMenu|None': ... + def insert(self, a0: str|None) -> 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) -> None: ... + def hasAcceptableInput(self) -> bool: ... + def setInputMask(self, inputMask: str|None) -> 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.AlignmentFlag: ... + def setAlignment(self, flag: 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|None: ... + def setValidator(self, a0: QtGui.QValidator|None) -> 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(enum.Enum): + ListMode = ... # type: QListView.ViewMode + IconMode = ... # type: QListView.ViewMode + + class LayoutMode(enum.Enum): + SinglePass = ... # type: QListView.LayoutMode + Batched = ... # type: QListView.LayoutMode + + class ResizeMode(enum.Enum): + Fixed = ... # type: QListView.ResizeMode + Adjust = ... # type: QListView.ResizeMode + + class Flow(enum.Enum): + LeftToRight = ... # type: QListView.Flow + TopToBottom = ... # type: QListView.Flow + + class Movement(enum.Enum): + Static = ... # type: QListView.Movement + Free = ... # type: QListView.Movement + Snap = ... # type: QListView.Movement + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def itemAlignment(self) -> QtCore.Qt.AlignmentFlag: ... + def setItemAlignment(self, alignment: QtCore.Qt.AlignmentFlag) -> None: ... + def initViewItemOption(self, option: 'QStyleOptionViewItem|None') -> 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) -> list[QtCore.QModelIndex]: ... + def visualRegionForSelection(self, selection: QtCore.QItemSelection) -> QtGui.QRegion: ... + def setSelection(self, rect: QtCore.QRect, command: 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: QtCore.Qt.KeyboardModifier) -> QtCore.QModelIndex: ... + def verticalOffset(self) -> int: ... + def horizontalOffset(self) -> int: ... + def paintEvent(self, e: QtGui.QPaintEvent|None) -> None: ... + def startDrag(self, supportedActions: QtCore.Qt.DropAction) -> None: ... + def wheelEvent(self, e: QtGui.QWheelEvent|None) -> None: ... + def dropEvent(self, e: QtGui.QDropEvent|None) -> None: ... + def dragLeaveEvent(self, e: QtGui.QDragLeaveEvent|None) -> None: ... + def dragMoveEvent(self, e: QtGui.QDragMoveEvent|None) -> None: ... + def resizeEvent(self, e: QtGui.QResizeEvent|None) -> None: ... + def timerEvent(self, e: QtCore.QTimerEvent|None) -> None: ... + def mouseReleaseEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mouseMoveEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> 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: collections.abc.Iterable[int] = ...) -> None: ... + def scrollContentsBy(self, dx: int, dy: int) -> None: ... + indexesMoved: typing.ClassVar[QtCore.pyqtSignal] + 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(PyQt6.sip.wrapper): + + class ItemType(enum.IntEnum): + Type = ... # type: QListWidgetItem.ItemType + UserType = ... # type: QListWidgetItem.ItemType + + @typing.overload + def __init__(self, parent: 'QListWidget|None' = ..., type: int = ...) -> None: ... + @typing.overload + def __init__(self, text: str|None, parent: 'QListWidget|None' = ..., type: int = ...) -> None: ... + @typing.overload + def __init__(self, icon: QtGui.QIcon, text: str|None, parent: 'QListWidget|None' = ..., type: int = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QListWidgetItem') -> None: ... + + def __ge__(self, other: 'QListWidgetItem') -> bool: ... + def isHidden(self) -> bool: ... + def setHidden(self, ahide: bool) -> None: ... + def isSelected(self) -> bool: ... + def setSelected(self, aselect: bool) -> None: ... + def setForeground(self, brush: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient) -> None: ... + def foreground(self) -> QtGui.QBrush: ... + def setBackground(self, brush: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient) -> None: ... + def background(self) -> QtGui.QBrush: ... + def setFont(self, afont: QtGui.QFont) -> None: ... + def setWhatsThis(self, awhatsThis: str|None) -> None: ... + def setToolTip(self, atoolTip: str|None) -> None: ... + def setStatusTip(self, astatusTip: str|None) -> None: ... + def setIcon(self, aicon: QtGui.QIcon) -> None: ... + def setText(self, atext: str|None) -> None: ... + def setFlags(self, aflags: QtCore.Qt.ItemFlag) -> None: ... + def type(self) -> int: ... + def write(self, out: QtCore.QDataStream) -> None: ... + def read(self, in_: QtCore.QDataStream) -> None: ... + def __lt__(self, other: 'QListWidgetItem') -> bool: ... + 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: ... + @typing.overload + def setTextAlignment(self, alignment: QtCore.Qt.AlignmentFlag) -> None: ... + @typing.overload + 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.ItemFlag: ... + def listWidget(self) -> 'QListWidget|None': ... + def clone(self) -> 'QListWidgetItem|None': ... + + +class QListWidget(QListView): + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def supportedDragActions(self) -> QtCore.Qt.DropAction: ... + def setSupportedDragActions(self, actions: QtCore.Qt.DropAction) -> None: ... + def isPersistentEditorOpen(self, item: QListWidgetItem|None) -> bool: ... + def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel|None) -> None: ... + def removeItemWidget(self, aItem: QListWidgetItem|None) -> None: ... + def isSortingEnabled(self) -> bool: ... + def setSortingEnabled(self, enable: bool) -> None: ... + def itemFromIndex(self, index: QtCore.QModelIndex) -> QListWidgetItem|None: ... + def indexFromItem(self, item: QListWidgetItem|None) -> QtCore.QModelIndex: ... + def items(self, data: QtCore.QMimeData|None) -> list[QListWidgetItem]: ... + def dropEvent(self, event: QtGui.QDropEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + def supportedDropActions(self) -> QtCore.Qt.DropAction: ... + def dropMimeData(self, index: int, data: QtCore.QMimeData|None, action: QtCore.Qt.DropAction) -> bool: ... + def mimeData(self, items: collections.abc.Iterable[QListWidgetItem]) -> QtCore.QMimeData|None: ... + def mimeTypes(self) -> list[str]: ... + itemSelectionChanged: typing.ClassVar[QtCore.pyqtSignal] + currentRowChanged: typing.ClassVar[QtCore.pyqtSignal] + currentTextChanged: typing.ClassVar[QtCore.pyqtSignal] + currentItemChanged: typing.ClassVar[QtCore.pyqtSignal] + itemChanged: typing.ClassVar[QtCore.pyqtSignal] + itemEntered: typing.ClassVar[QtCore.pyqtSignal] + itemActivated: typing.ClassVar[QtCore.pyqtSignal] + itemDoubleClicked: typing.ClassVar[QtCore.pyqtSignal] + itemClicked: typing.ClassVar[QtCore.pyqtSignal] + itemPressed: typing.ClassVar[QtCore.pyqtSignal] + def scrollToItem(self, item: QListWidgetItem|None, hint: QAbstractItemView.ScrollHint = ...) -> None: ... + def clear(self) -> None: ... + def findItems(self, text: str|None, flags: QtCore.Qt.MatchFlag) -> list[QListWidgetItem]: ... + def selectedItems(self) -> list[QListWidgetItem]: ... + def closePersistentEditor(self, item: QListWidgetItem|None) -> None: ... + def openPersistentEditor(self, item: QListWidgetItem|None) -> None: ... + def editItem(self, item: QListWidgetItem|None) -> None: ... + def sortItems(self, order: QtCore.Qt.SortOrder = ...) -> None: ... + def visualItemRect(self, item: QListWidgetItem|None) -> QtCore.QRect: ... + def setItemWidget(self, item: QListWidgetItem|None, widget: QWidget|None) -> None: ... + def itemWidget(self, item: QListWidgetItem|None) -> QWidget|None: ... + @typing.overload + def itemAt(self, p: QtCore.QPoint) -> QListWidgetItem|None: ... + @typing.overload + def itemAt(self, ax: int, ay: int) -> QListWidgetItem|None: ... + @typing.overload + def setCurrentRow(self, row: int) -> None: ... + @typing.overload + def setCurrentRow(self, row: int, command: QtCore.QItemSelectionModel.SelectionFlag) -> None: ... + def currentRow(self) -> int: ... + @typing.overload + def setCurrentItem(self, item: QListWidgetItem|None) -> None: ... + @typing.overload + def setCurrentItem(self, item: QListWidgetItem|None, command: QtCore.QItemSelectionModel.SelectionFlag) -> None: ... + def currentItem(self) -> QListWidgetItem|None: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def takeItem(self, row: int) -> QListWidgetItem|None: ... + def addItems(self, labels: collections.abc.Iterable[str|None]) -> None: ... + @typing.overload + def addItem(self, aitem: QListWidgetItem|None) -> None: ... + @typing.overload + def addItem(self, label: str|None) -> None: ... + def insertItems(self, row: int, labels: collections.abc.Iterable[str|None]) -> None: ... + @typing.overload + def insertItem(self, row: int, item: QListWidgetItem|None) -> None: ... + @typing.overload + def insertItem(self, row: int, label: str|None) -> None: ... + def row(self, item: QListWidgetItem|None) -> int: ... + def item(self, row: int) -> QListWidgetItem|None: ... + + +class QMainWindow(QWidget): + + class DockOption(enum.Flag): + AnimatedDocks = ... # type: QMainWindow.DockOption + AllowNestedDocks = ... # type: QMainWindow.DockOption + AllowTabbedDocks = ... # type: QMainWindow.DockOption + ForceTabbedDocks = ... # type: QMainWindow.DockOption + VerticalTabs = ... # type: QMainWindow.DockOption + GroupedDragging = ... # type: QMainWindow.DockOption + + def __init__(self, parent: QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + def resizeDocks(self, docks: collections.abc.Iterable[QDockWidget], sizes: collections.abc.Iterable[int], orientation: QtCore.Qt.Orientation) -> None: ... + def takeCentralWidget(self) -> QWidget|None: ... + def tabifiedDockWidgets(self, dockwidget: QDockWidget|None) -> list[QDockWidget]: ... + def setTabPosition(self, areas: 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|None) -> bool: ... + def unifiedTitleAndToolBarOnMac(self) -> bool: ... + def setUnifiedTitleAndToolBarOnMac(self, set: bool) -> None: ... + def toolBarBreak(self, toolbar: 'QToolBar|None') -> bool: ... + def removeToolBarBreak(self, before: 'QToolBar|None') -> None: ... + def dockOptions(self) -> 'QMainWindow.DockOption': ... + def setDockOptions(self, options: 'QMainWindow.DockOption') -> None: ... + def tabifyDockWidget(self, first: QDockWidget|None, second: QDockWidget|None) -> None: ... + def setMenuWidget(self, menubar: QWidget|None) -> None: ... + def menuWidget(self) -> QWidget|None: ... + def isSeparator(self, pos: QtCore.QPoint) -> bool: ... + def isDockNestingEnabled(self) -> bool: ... + def isAnimated(self) -> bool: ... + def event(self, event: QtCore.QEvent|None) -> bool: ... + def contextMenuEvent(self, event: QtGui.QContextMenuEvent|None) -> None: ... + tabifiedDockWidgetActivated: typing.ClassVar[QtCore.pyqtSignal] + toolButtonStyleChanged: typing.ClassVar[QtCore.pyqtSignal] + iconSizeChanged: typing.ClassVar[QtCore.pyqtSignal] + def setDockNestingEnabled(self, enabled: bool) -> None: ... + def setAnimated(self, enabled: bool) -> None: ... + def createPopupMenu(self) -> 'QMenu|None': ... + def restoreState(self, state: QtCore.QByteArray|bytes|bytearray|memoryview, version: int = ...) -> bool: ... + def saveState(self, version: int = ...) -> QtCore.QByteArray: ... + def dockWidgetArea(self, dockwidget: QDockWidget|None) -> QtCore.Qt.DockWidgetArea: ... + def removeDockWidget(self, dockwidget: QDockWidget|None) -> None: ... + def splitDockWidget(self, after: QDockWidget|None, dockwidget: QDockWidget|None, orientation: QtCore.Qt.Orientation) -> None: ... + @typing.overload + def addDockWidget(self, area: QtCore.Qt.DockWidgetArea, dockwidget: QDockWidget|None) -> None: ... + @typing.overload + def addDockWidget(self, area: QtCore.Qt.DockWidgetArea, dockwidget: QDockWidget|None, orientation: QtCore.Qt.Orientation) -> None: ... + def toolBarArea(self, toolbar: 'QToolBar|None') -> QtCore.Qt.ToolBarArea: ... + def removeToolBar(self, toolbar: 'QToolBar|None') -> None: ... + def insertToolBar(self, before: 'QToolBar|None', toolbar: 'QToolBar|None') -> None: ... + @typing.overload + def addToolBar(self, area: QtCore.Qt.ToolBarArea, toolbar: 'QToolBar|None') -> None: ... + @typing.overload + def addToolBar(self, toolbar: 'QToolBar|None') -> None: ... + @typing.overload + def addToolBar(self, title: str|None) -> 'QToolBar|None': ... + def insertToolBarBreak(self, before: 'QToolBar|None') -> 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) -> None: ... + def centralWidget(self) -> QWidget|None: ... + def setStatusBar(self, statusbar: 'QStatusBar|None') -> None: ... + def statusBar(self) -> 'QStatusBar|None': ... + def setMenuBar(self, menubar: 'QMenuBar|None') -> None: ... + def menuBar(self) -> 'QMenuBar|None': ... + 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(enum.Enum): + CreationOrder = ... # type: QMdiArea.WindowOrder + StackingOrder = ... # type: QMdiArea.WindowOrder + ActivationHistoryOrder = ... # type: QMdiArea.WindowOrder + + class ViewMode(enum.Enum): + SubWindowView = ... # type: QMdiArea.ViewMode + TabbedView = ... # type: QMdiArea.ViewMode + + class AreaOption(enum.Flag): + DontMaximizeSubWindowOnActivation = ... # type: QMdiArea.AreaOption + + def __init__(self, parent: QWidget|None = ...) -> 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|None) -> bool: ... + def showEvent(self, showEvent: QtGui.QShowEvent|None) -> None: ... + def timerEvent(self, timerEvent: QtCore.QTimerEvent|None) -> None: ... + def resizeEvent(self, resizeEvent: QtGui.QResizeEvent|None) -> None: ... + def childEvent(self, childEvent: QtCore.QChildEvent|None) -> None: ... + def paintEvent(self, paintEvent: QtGui.QPaintEvent|None) -> None: ... + def eventFilter(self, object: QtCore.QObject|None, event: QtCore.QEvent|None) -> bool: ... + def event(self, event: QtCore.QEvent|None) -> bool: ... + def setupViewport(self, viewport: QWidget|None) -> 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') -> None: ... + subWindowActivated: typing.ClassVar[QtCore.pyqtSignal] + def testOption(self, opton: 'QMdiArea.AreaOption') -> bool: ... + def setOption(self, option: 'QMdiArea.AreaOption', on: bool = ...) -> None: ... + def setBackground(self, background: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient) -> None: ... + def background(self) -> QtGui.QBrush: ... + def removeSubWindow(self, widget: QWidget|None) -> None: ... + def currentSubWindow(self) -> 'QMdiSubWindow|None': ... + def subWindowList(self, order: 'QMdiArea.WindowOrder' = ...) -> list['QMdiSubWindow']: ... + def addSubWindow(self, widget: QWidget|None, flags: QtCore.Qt.WindowType = ...) -> 'QMdiSubWindow|None': ... + def activeSubWindow(self) -> 'QMdiSubWindow|None': ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QMdiSubWindow(QWidget): + + class SubWindowOption(enum.Flag): + RubberBandResize = ... # type: QMdiSubWindow.SubWindowOption + RubberBandMove = ... # type: QMdiSubWindow.SubWindowOption + + def __init__(self, parent: QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + def childEvent(self, childEvent: QtCore.QChildEvent|None) -> None: ... + def focusOutEvent(self, focusOutEvent: QtGui.QFocusEvent|None) -> None: ... + def focusInEvent(self, focusInEvent: QtGui.QFocusEvent|None) -> None: ... + def contextMenuEvent(self, contextMenuEvent: QtGui.QContextMenuEvent|None) -> None: ... + def keyPressEvent(self, keyEvent: QtGui.QKeyEvent|None) -> None: ... + def mouseMoveEvent(self, mouseEvent: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, mouseEvent: QtGui.QMouseEvent|None) -> None: ... + def mouseDoubleClickEvent(self, mouseEvent: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, mouseEvent: QtGui.QMouseEvent|None) -> None: ... + def paintEvent(self, paintEvent: QtGui.QPaintEvent|None) -> None: ... + def moveEvent(self, moveEvent: QtGui.QMoveEvent|None) -> None: ... + def timerEvent(self, timerEvent: QtCore.QTimerEvent|None) -> None: ... + def resizeEvent(self, resizeEvent: QtGui.QResizeEvent|None) -> None: ... + def leaveEvent(self, leaveEvent: QtCore.QEvent|None) -> None: ... + def closeEvent(self, closeEvent: QtGui.QCloseEvent|None) -> None: ... + def changeEvent(self, changeEvent: QtCore.QEvent|None) -> None: ... + def hideEvent(self, hideEvent: QtGui.QHideEvent|None) -> None: ... + def showEvent(self, showEvent: QtGui.QShowEvent|None) -> None: ... + def event(self, event: QtCore.QEvent|None) -> bool: ... + def eventFilter(self, object: QtCore.QObject|None, event: QtCore.QEvent|None) -> bool: ... + def showShaded(self) -> None: ... + def showSystemMenu(self) -> None: ... + aboutToActivate: typing.ClassVar[QtCore.pyqtSignal] + windowStateChanged: typing.ClassVar[QtCore.pyqtSignal] + def mdiArea(self) -> QMdiArea|None: ... + def systemMenu(self) -> 'QMenu|None': ... + def setSystemMenu(self, systemMenu: 'QMenu|None') -> 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|None: ... + def setWidget(self, widget: QWidget|None) -> None: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QMenu(QWidget): + + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, title: str|None, parent: QWidget|None = ...) -> None: ... + + @staticmethod + def menuInAction(action: QtGui.QAction|None) -> 'QMenu|None': ... + @typing.overload + def showTearOffMenu(self) -> None: ... + @typing.overload + def showTearOffMenu(self, pos: QtCore.QPoint) -> None: ... + def setToolTipsVisible(self, visible: bool) -> None: ... + def toolTipsVisible(self) -> bool: ... + @typing.overload + def insertSection(self, before: QtGui.QAction|None, text: str|None) -> QtGui.QAction|None: ... + @typing.overload + def insertSection(self, before: QtGui.QAction|None, icon: QtGui.QIcon, text: str|None) -> QtGui.QAction|None: ... + @typing.overload + def addSection(self, text: str|None) -> QtGui.QAction|None: ... + @typing.overload + def addSection(self, icon: QtGui.QIcon, text: str|None) -> QtGui.QAction|None: ... + 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|None) -> bool: ... + def timerEvent(self, a0: QtCore.QTimerEvent|None) -> None: ... + def actionEvent(self, a0: QtGui.QActionEvent|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def hideEvent(self, a0: QtGui.QHideEvent|None) -> None: ... + def leaveEvent(self, a0: QtCore.QEvent|None) -> None: ... + def enterEvent(self, a0: QtGui.QEnterEvent|None) -> None: ... + def wheelEvent(self, a0: QtGui.QWheelEvent|None) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def changeEvent(self, a0: QtCore.QEvent|None) -> None: ... + def initStyleOption(self, option: 'QStyleOptionMenuItem|None', action: QtGui.QAction|None) -> None: ... + def columnCount(self) -> int: ... + triggered: typing.ClassVar[QtCore.pyqtSignal] + hovered: typing.ClassVar[QtCore.pyqtSignal] + aboutToShow: typing.ClassVar[QtCore.pyqtSignal] + aboutToHide: typing.ClassVar[QtCore.pyqtSignal] + def setNoReplayFor(self, widget: QWidget|None) -> None: ... + def setIcon(self, icon: QtGui.QIcon) -> None: ... + def icon(self) -> QtGui.QIcon: ... + def setTitle(self, title: str|None) -> None: ... + def title(self) -> str: ... + def menuAction(self) -> QtGui.QAction|None: ... + def actionAt(self, a0: QtCore.QPoint) -> QtGui.QAction|None: ... + def actionGeometry(self, a0: QtGui.QAction|None) -> QtCore.QRect: ... + def sizeHint(self) -> QtCore.QSize: ... + @typing.overload + def exec(self) -> QtGui.QAction|None: ... + @typing.overload + def exec(self, p: QtCore.QPoint, action: QtGui.QAction|None = ...) -> QtGui.QAction|None: ... + @typing.overload + @staticmethod + def exec(actions: collections.abc.Iterable[QtGui.QAction], pos: QtCore.QPoint, at: QtGui.QAction|None = ..., parent: QWidget|None = ...) -> QtGui.QAction|None: ... + def popup(self, p: QtCore.QPoint, action: QtGui.QAction|None = ...) -> None: ... + def activeAction(self) -> QtGui.QAction|None: ... + def setActiveAction(self, act: QtGui.QAction|None) -> None: ... + def defaultAction(self) -> QtGui.QAction|None: ... + def setDefaultAction(self, a0: QtGui.QAction|None) -> 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: QtGui.QAction|None) -> QtGui.QAction|None: ... + def insertMenu(self, before: QtGui.QAction|None, menu: 'QMenu|None') -> QtGui.QAction|None: ... + def addSeparator(self) -> QtGui.QAction|None: ... + @typing.overload + def addMenu(self, menu: 'QMenu|None') -> QtGui.QAction|None: ... + @typing.overload + def addMenu(self, title: str|None) -> 'QMenu|None': ... + @typing.overload + def addMenu(self, icon: QtGui.QIcon, title: str|None) -> 'QMenu|None': ... + + +class QMenuBar(QWidget): + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def setNativeMenuBar(self, nativeMenuBar: bool) -> None: ... + def isNativeMenuBar(self) -> bool: ... + def timerEvent(self, a0: QtCore.QTimerEvent|None) -> None: ... + def event(self, a0: QtCore.QEvent|None) -> bool: ... + def eventFilter(self, a0: QtCore.QObject|None, a1: QtCore.QEvent|None) -> bool: ... + def focusInEvent(self, a0: QtGui.QFocusEvent|None) -> None: ... + def focusOutEvent(self, a0: QtGui.QFocusEvent|None) -> None: ... + def actionEvent(self, a0: QtGui.QActionEvent|None) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def leaveEvent(self, a0: QtCore.QEvent|None) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def changeEvent(self, a0: QtCore.QEvent|None) -> None: ... + def initStyleOption(self, option: 'QStyleOptionMenuItem|None', action: QtGui.QAction|None) -> None: ... + hovered: typing.ClassVar[QtCore.pyqtSignal] + triggered: typing.ClassVar[QtCore.pyqtSignal] + def setVisible(self, visible: bool) -> None: ... + def cornerWidget(self, corner: QtCore.Qt.Corner = ...) -> QWidget|None: ... + def setCornerWidget(self, widget: QWidget|None, corner: QtCore.Qt.Corner = ...) -> None: ... + def actionAt(self, a0: QtCore.QPoint) -> QtGui.QAction|None: ... + def actionGeometry(self, a0: QtGui.QAction|None) -> 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: QtGui.QAction|None) -> None: ... + def activeAction(self) -> QtGui.QAction|None: ... + def clear(self) -> None: ... + def insertSeparator(self, before: QtGui.QAction|None) -> QtGui.QAction|None: ... + def insertMenu(self, before: QtGui.QAction|None, menu: QMenu|None) -> QtGui.QAction|None: ... + def addSeparator(self) -> QtGui.QAction|None: ... + @typing.overload + def addMenu(self, menu: QMenu|None) -> QtGui.QAction|None: ... + @typing.overload + def addMenu(self, title: str|None) -> QMenu|None: ... + @typing.overload + def addMenu(self, icon: QtGui.QIcon, title: str|None) -> QMenu|None: ... + + +class QMessageBox(QDialog): + + class Option(enum.Enum): + DontUseNativeDialog = ... # type: QMessageBox.Option + + class StandardButton(enum.IntFlag): + 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(enum.Enum): + NoIcon = ... # type: QMessageBox.Icon + Information = ... # type: QMessageBox.Icon + Warning = ... # type: QMessageBox.Icon + Critical = ... # type: QMessageBox.Icon + Question = ... # type: QMessageBox.Icon + + class ButtonRole(enum.Enum): + 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 + + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, icon: 'QMessageBox.Icon', title: str|None, text: str|None, buttons: 'QMessageBox.StandardButton' = ..., parent: QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + def options(self) -> 'QMessageBox.Option': ... + def setOptions(self, options: 'QMessageBox.Option') -> None: ... + def testOption(self, option: 'QMessageBox.Option') -> bool: ... + def setOption(self, option: 'QMessageBox.Option', on: bool = ...) -> None: ... + def checkBox(self) -> QCheckBox|None: ... + def setCheckBox(self, cb: QCheckBox|None) -> None: ... + def textInteractionFlags(self) -> QtCore.Qt.TextInteractionFlag: ... + def setTextInteractionFlags(self, flags: QtCore.Qt.TextInteractionFlag) -> None: ... + buttonClicked: typing.ClassVar[QtCore.pyqtSignal] + def buttonRole(self, button: QAbstractButton|None) -> 'QMessageBox.ButtonRole': ... + def buttons(self) -> 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) -> None: ... + def setDetailedText(self, text: str|None) -> None: ... + def detailedText(self) -> str: ... + def setInformativeText(self, text: str|None) -> None: ... + def informativeText(self) -> str: ... + def clickedButton(self) -> QAbstractButton|None: ... + @typing.overload + def setEscapeButton(self, button: QAbstractButton|None) -> None: ... + @typing.overload + def setEscapeButton(self, button: 'QMessageBox.StandardButton') -> None: ... + def escapeButton(self) -> QAbstractButton|None: ... + @typing.overload + def setDefaultButton(self, button: QPushButton|None) -> None: ... + @typing.overload + def setDefaultButton(self, button: 'QMessageBox.StandardButton') -> None: ... + def defaultButton(self) -> QPushButton|None: ... + def button(self, which: 'QMessageBox.StandardButton') -> QAbstractButton|None: ... + def standardButton(self, button: QAbstractButton|None) -> 'QMessageBox.StandardButton': ... + def standardButtons(self) -> 'QMessageBox.StandardButton': ... + def setStandardButtons(self, buttons: 'QMessageBox.StandardButton') -> None: ... + def removeButton(self, button: QAbstractButton|None) -> None: ... + @typing.overload + def addButton(self, button: QAbstractButton|None, role: 'QMessageBox.ButtonRole') -> None: ... + @typing.overload + def addButton(self, text: str|None, role: 'QMessageBox.ButtonRole') -> QPushButton|None: ... + @typing.overload + def addButton(self, button: 'QMessageBox.StandardButton') -> QPushButton|None: ... + def changeEvent(self, a0: QtCore.QEvent|None) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def closeEvent(self, a0: QtGui.QCloseEvent|None) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent|None) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + @staticmethod + def standardIcon(icon: 'QMessageBox.Icon') -> QtGui.QPixmap: ... + @staticmethod + def aboutQt(parent: QWidget|None, title: str|None = ...) -> None: ... + @staticmethod + def about(parent: QWidget|None, caption: str|None, text: str|None) -> None: ... + @staticmethod + def critical(parent: QWidget|None, title: str|None, text: str|None, buttons: 'QMessageBox.StandardButton' = ..., defaultButton: 'QMessageBox.StandardButton' = ...) -> 'QMessageBox.StandardButton': ... + @staticmethod + def warning(parent: QWidget|None, title: str|None, text: str|None, buttons: 'QMessageBox.StandardButton' = ..., defaultButton: 'QMessageBox.StandardButton' = ...) -> 'QMessageBox.StandardButton': ... + @staticmethod + def question(parent: QWidget|None, title: str|None, text: str|None, buttons: 'QMessageBox.StandardButton' = ..., defaultButton: 'QMessageBox.StandardButton' = ...) -> 'QMessageBox.StandardButton': ... + @staticmethod + def information(parent: QWidget|None, title: str|None, text: str|None, buttons: '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) -> None: ... + def text(self) -> str: ... + + +class QPlainTextEdit(QAbstractScrollArea): + + class LineWrapMode(enum.Enum): + NoWrap = ... # type: QPlainTextEdit.LineWrapMode + WidgetWidth = ... # type: QPlainTextEdit.LineWrapMode + + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, text: str|None, parent: QWidget|None = ...) -> None: ... + + def setTabStopDistance(self, distance: float) -> None: ... + def tabStopDistance(self) -> float: ... + def placeholderText(self) -> str: ... + def setPlaceholderText(self, placeholderText: str|None) -> 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) -> None: ... + def canInsertFromMimeData(self, source: QtCore.QMimeData|None) -> bool: ... + def createMimeDataFromSelection(self) -> QtCore.QMimeData|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) -> None: ... + def wheelEvent(self, e: QtGui.QWheelEvent|None) -> None: ... + def changeEvent(self, e: QtCore.QEvent|None) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent|None) -> None: ... + def focusOutEvent(self, e: QtGui.QFocusEvent|None) -> None: ... + def focusInEvent(self, e: QtGui.QFocusEvent|None) -> None: ... + def dropEvent(self, e: QtGui.QDropEvent|None) -> None: ... + def dragMoveEvent(self, e: QtGui.QDragMoveEvent|None) -> None: ... + def dragLeaveEvent(self, e: QtGui.QDragLeaveEvent|None) -> None: ... + def dragEnterEvent(self, e: QtGui.QDragEnterEvent|None) -> None: ... + def contextMenuEvent(self, e: QtGui.QContextMenuEvent|None) -> None: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def mouseDoubleClickEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mouseMoveEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def paintEvent(self, e: QtGui.QPaintEvent|None) -> None: ... + def resizeEvent(self, e: QtGui.QResizeEvent|None) -> None: ... + def keyReleaseEvent(self, e: QtGui.QKeyEvent|None) -> None: ... + def keyPressEvent(self, e: QtGui.QKeyEvent|None) -> None: ... + def timerEvent(self, e: QtCore.QTimerEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + modificationChanged: typing.ClassVar[QtCore.pyqtSignal] + blockCountChanged: typing.ClassVar[QtCore.pyqtSignal] + updateRequest: typing.ClassVar[QtCore.pyqtSignal] + cursorPositionChanged: typing.ClassVar[QtCore.pyqtSignal] + selectionChanged: typing.ClassVar[QtCore.pyqtSignal] + copyAvailable: typing.ClassVar[QtCore.pyqtSignal] + redoAvailable: typing.ClassVar[QtCore.pyqtSignal] + undoAvailable: typing.ClassVar[QtCore.pyqtSignal] + textChanged: typing.ClassVar[QtCore.pyqtSignal] + def centerCursor(self) -> None: ... + def appendHtml(self, html: str|None) -> None: ... + def appendPlainText(self, text: str|None) -> None: ... + def insertPlainText(self, text: str|None) -> 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) -> None: ... + def blockCount(self) -> int: ... + def print(self, printer: QtGui.QPagedPaintDevice|None) -> None: ... + def canPaste(self) -> bool: ... + def moveCursor(self, operation: QtGui.QTextCursor.MoveOperation, mode: QtGui.QTextCursor.MoveMode = ...) -> None: ... + def extraSelections(self) -> list['QTextEdit.ExtraSelection']: ... + def setExtraSelections(self, selections: collections.abc.Iterable['QTextEdit.ExtraSelection']) -> None: ... + def setCursorWidth(self, width: int) -> None: ... + def cursorWidth(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|None: ... + @typing.overload + def createStandardContextMenu(self, position: QtCore.QPoint) -> QMenu|None: ... + 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|None, options: QtGui.QTextDocument.FindFlag = ...) -> bool: ... + @typing.overload + def find(self, exp: QtCore.QRegularExpression, options: 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) -> 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.TextInteractionFlag: ... + def setTextInteractionFlags(self, flags: 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|None: ... + def setDocument(self, document: QtGui.QTextDocument|None) -> None: ... + + +class QPlainTextDocumentLayout(QtGui.QAbstractTextDocumentLayout): + + def __init__(self, document: QtGui.QTextDocument|None) -> 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|None) -> QtCore.QRectF: ... + def documentSize(self) -> QtCore.QSizeF: ... + def pageCount(self) -> int: ... + def hitTest(self, a0: QtCore.QPointF, a1: QtCore.Qt.HitTestAccuracy) -> int: ... + def draw(self, a0: QtGui.QPainter|None, a1: QtGui.QAbstractTextDocumentLayout.PaintContext) -> None: ... + + +class QProgressBar(QWidget): + + class Direction(enum.Enum): + TopToBottom = ... # type: QProgressBar.Direction + BottomToTop = ... # type: QProgressBar.Direction + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + def initStyleOption(self, option: 'QStyleOptionProgressBar|None') -> None: ... + valueChanged: typing.ClassVar[QtCore.pyqtSignal] + 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) -> 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: QtCore.Qt.AlignmentFlag) -> None: ... + def alignment(self) -> QtCore.Qt.AlignmentFlag: ... + 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: QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + @typing.overload + def __init__(self, labelText: str|None, cancelButtonText: str|None, minimum: int, maximum: int, parent: QWidget|None = ..., flags: 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) -> None: ... + def changeEvent(self, a0: QtCore.QEvent|None) -> None: ... + def closeEvent(self, a0: QtGui.QCloseEvent|None) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + canceled: typing.ClassVar[QtCore.pyqtSignal] + def setMinimumDuration(self, ms: int) -> None: ... + def setCancelButtonText(self, a0: str|None) -> None: ... + def setLabelText(self, a0: str|None) -> 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) -> None: ... + def setCancelButton(self, button: QPushButton|None) -> None: ... + def setLabel(self, label: QLabel|None) -> None: ... + + +class QProxyStyle(QCommonStyle): + + @typing.overload + def __init__(self, style: QStyle|None = ...) -> None: ... + @typing.overload + def __init__(self, key: str|None) -> None: ... + + def event(self, e: QtCore.QEvent|None) -> bool: ... + @typing.overload + def unpolish(self, widget: QWidget|None) -> None: ... + @typing.overload + def unpolish(self, app: QApplication|None) -> None: ... + @typing.overload + def polish(self, widget: QWidget|None) -> None: ... + @typing.overload + def polish(self, pal: QtGui.QPalette) -> QtGui.QPalette: ... + @typing.overload + def polish(self, app: QApplication|None) -> None: ... + def standardPalette(self) -> QtGui.QPalette: ... + def generatedIconPixmap(self, iconMode: QtGui.QIcon.Mode, pixmap: QtGui.QPixmap, opt: 'QStyleOption|None') -> QtGui.QPixmap: ... + def standardPixmap(self, standardPixmap: QStyle.StandardPixmap, opt: 'QStyleOption|None', widget: QWidget|None = ...) -> QtGui.QPixmap: ... + def standardIcon(self, standardIcon: QStyle.StandardPixmap, option: 'QStyleOption|None' = ..., widget: QWidget|None = ...) -> QtGui.QIcon: ... + def layoutSpacing(self, control1: 'QSizePolicy.ControlType', control2: 'QSizePolicy.ControlType', orientation: QtCore.Qt.Orientation, option: 'QStyleOption|None' = ..., widget: QWidget|None = ...) -> int: ... + def pixelMetric(self, metric: QStyle.PixelMetric, option: 'QStyleOption|None' = ..., widget: QWidget|None = ...) -> int: ... + def styleHint(self, hint: QStyle.StyleHint, option: 'QStyleOption|None' = ..., widget: QWidget|None = ..., returnData: 'QStyleHintReturn|None' = ...) -> int: ... + def hitTestComplexControl(self, control: QStyle.ComplexControl, option: 'QStyleOptionComplex|None', pos: QtCore.QPoint, widget: QWidget|None = ...) -> 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|None) -> QtCore.QRect: ... + def subControlRect(self, cc: QStyle.ComplexControl, opt: 'QStyleOptionComplex|None', sc: QStyle.SubControl, widget: QWidget|None) -> QtCore.QRect: ... + def subElementRect(self, element: QStyle.SubElement, option: 'QStyleOption|None', widget: QWidget|None) -> QtCore.QRect: ... + def sizeFromContents(self, type: QStyle.ContentsType, option: 'QStyleOption|None', size: QtCore.QSize, widget: QWidget|None) -> QtCore.QSize: ... + def drawItemPixmap(self, painter: QtGui.QPainter|None, rect: QtCore.QRect, alignment: int, pixmap: QtGui.QPixmap) -> None: ... + def drawItemText(self, painter: QtGui.QPainter|None, rect: QtCore.QRect, flags: int, pal: QtGui.QPalette, enabled: bool, text: str|None, textRole: QtGui.QPalette.ColorRole = ...) -> None: ... + def drawComplexControl(self, control: QStyle.ComplexControl, option: 'QStyleOptionComplex|None', painter: QtGui.QPainter|None, widget: QWidget|None = ...) -> None: ... + def drawControl(self, element: QStyle.ControlElement, option: 'QStyleOption|None', painter: QtGui.QPainter|None, widget: QWidget|None = ...) -> None: ... + def drawPrimitive(self, element: QStyle.PrimitiveElement, option: 'QStyleOption|None', painter: QtGui.QPainter|None, widget: QWidget|None = ...) -> None: ... + def setBaseStyle(self, style: QStyle|None) -> None: ... + def baseStyle(self) -> QStyle|None: ... + + +class QRadioButton(QAbstractButton): + + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, text: str|None, parent: QWidget|None = ...) -> None: ... + + def mouseMoveEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + def hitButton(self, a0: QtCore.QPoint) -> bool: ... + def initStyleOption(self, button: 'QStyleOptionButton|None') -> None: ... + def minimumSizeHint(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QRubberBand(QWidget): + + class Shape(enum.Enum): + Line = ... # type: QRubberBand.Shape + Rectangle = ... # type: QRubberBand.Shape + + def __init__(self, a0: 'QRubberBand.Shape', parent: QWidget|None = ...) -> None: ... + + def moveEvent(self, a0: QtGui.QMoveEvent|None) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent|None) -> None: ... + def changeEvent(self, a0: QtCore.QEvent|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + def initStyleOption(self, option: 'QStyleOptionRubberBand|None') -> 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: QWidget|None = ...) -> None: ... + + def viewportSizeHint(self) -> QtCore.QSize: ... + def scrollContentsBy(self, dx: int, dy: int) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + def eventFilter(self, a0: QtCore.QObject|None, a1: QtCore.QEvent|None) -> bool: ... + def event(self, a0: QtCore.QEvent|None) -> bool: ... + def ensureWidgetVisible(self, childWidget: QWidget|None, 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: QtCore.Qt.AlignmentFlag) -> None: ... + def alignment(self) -> QtCore.Qt.AlignmentFlag: ... + def setWidgetResizable(self, resizable: bool) -> None: ... + def widgetResizable(self) -> bool: ... + def takeWidget(self) -> QWidget|None: ... + def setWidget(self, w: QWidget|None) -> None: ... + def widget(self) -> QWidget|None: ... + + +class QScrollBar(QAbstractSlider): + + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, orientation: QtCore.Qt.Orientation, parent: QWidget|None = ...) -> None: ... + + def createStandardContextMenu(self, position: QtCore.QPoint) -> QMenu|None: ... + def sliderChange(self, change: QAbstractSlider.SliderChange) -> None: ... + def wheelEvent(self, a0: QtGui.QWheelEvent|None) -> None: ... + def contextMenuEvent(self, a0: QtGui.QContextMenuEvent|None) -> None: ... + def hideEvent(self, a0: QtGui.QHideEvent|None) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def initStyleOption(self, option: 'QStyleOptionSlider|None') -> None: ... + def event(self, event: QtCore.QEvent|None) -> bool: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QScroller(QtCore.QObject): + + class Input(enum.Enum): + InputPress = ... # type: QScroller.Input + InputMove = ... # type: QScroller.Input + InputRelease = ... # type: QScroller.Input + + class ScrollerGestureType(enum.Enum): + TouchGesture = ... # type: QScroller.ScrollerGestureType + LeftMouseButtonGesture = ... # type: QScroller.ScrollerGestureType + RightMouseButtonGesture = ... # type: QScroller.ScrollerGestureType + MiddleMouseButtonGesture = ... # type: QScroller.ScrollerGestureType + + class State(enum.Enum): + Inactive = ... # type: QScroller.State + Pressed = ... # type: QScroller.State + Dragging = ... # type: QScroller.State + Scrolling = ... # type: QScroller.State + + scrollerPropertiesChanged: typing.ClassVar[QtCore.pyqtSignal] + stateChanged: typing.ClassVar[QtCore.pyqtSignal] + 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: QtCore.QPointF) -> None: ... + @typing.overload + def scrollTo(self, pos: QtCore.QPointF, scrollTime: int) -> None: ... + def setScrollerProperties(self, prop: 'QScrollerProperties') -> None: ... + @typing.overload + def setSnapPositionsY(self, positions: collections.abc.Iterable[float]) -> None: ... + @typing.overload + def setSnapPositionsY(self, first: float, interval: float) -> None: ... + @typing.overload + def setSnapPositionsX(self, positions: collections.abc.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: QtCore.QPointF, timestamp: int = ...) -> bool: ... + def state(self) -> 'QScroller.State': ... + def target(self) -> QtCore.QObject|None: ... + @staticmethod + def activeScrollers() -> list['QScroller']: ... + @staticmethod + def ungrabGesture(target: QtCore.QObject|None) -> None: ... + @staticmethod + def grabbedGesture(target: QtCore.QObject|None) -> QtCore.Qt.GestureType: ... + @staticmethod + def grabGesture(target: QtCore.QObject|None, scrollGestureType: 'QScroller.ScrollerGestureType' = ...) -> QtCore.Qt.GestureType: ... + @staticmethod + def scroller(target: QtCore.QObject|None) -> 'QScroller|None': ... + @staticmethod + def hasScroller(target: QtCore.QObject|None) -> bool: ... + + +class QScrollerProperties(PyQt6.sip.simplewrapper): + + class ScrollMetric(enum.Enum): + 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(enum.Enum): + Standard = ... # type: QScrollerProperties.FrameRates + Fps60 = ... # type: QScrollerProperties.FrameRates + Fps30 = ... # type: QScrollerProperties.FrameRates + Fps20 = ... # type: QScrollerProperties.FrameRates + + class OvershootPolicy(enum.Enum): + 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: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + +class QSizeGrip(QWidget): + + def __init__(self, parent: QWidget|None) -> None: ... + + def hideEvent(self, hideEvent: QtGui.QHideEvent|None) -> None: ... + def showEvent(self, showEvent: QtGui.QShowEvent|None) -> None: ... + def moveEvent(self, moveEvent: QtGui.QMoveEvent|None) -> None: ... + def event(self, a0: QtCore.QEvent|None) -> bool: ... + def eventFilter(self, a0: QtCore.QObject|None, a1: QtCore.QEvent|None) -> bool: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, mouseEvent: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def setVisible(self, a0: bool) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + + +class QSizePolicy(PyQt6.sip.simplewrapper): + + class ControlType(enum.Flag): + 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(enum.Enum): + 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(enum.IntFlag): + GrowFlag = ... # type: QSizePolicy.PolicyFlag + ExpandFlag = ... # type: QSizePolicy.PolicyFlag + ShrinkFlag = ... # type: QSizePolicy.PolicyFlag + IgnoreFlag = ... # type: QSizePolicy.PolicyFlag + + @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 __ne__(self, other: object): ... + def __eq__(self, other: object): ... + def hasHeightForWidth(self) -> bool: ... + def setHeightForWidth(self, b: bool) -> None: ... + def expandingDirections(self) -> QtCore.Qt.Orientation: ... + 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(enum.Enum): + 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: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, orientation: QtCore.Qt.Orientation, parent: QWidget|None = ...) -> None: ... + + def mouseMoveEvent(self, ev: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, ev: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, ev: QtGui.QMouseEvent|None) -> None: ... + def paintEvent(self, ev: QtGui.QPaintEvent|None) -> None: ... + def initStyleOption(self, option: 'QStyleOptionSlider|None') -> None: ... + def event(self, event: QtCore.QEvent|None) -> 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: QWidget|None = ...) -> None: ... + + def setStepType(self, stepType: QAbstractSpinBox.StepType) -> None: ... + def stepType(self) -> QAbstractSpinBox.StepType: ... + def setDisplayIntegerBase(self, base: int) -> None: ... + def displayIntegerBase(self) -> int: ... + textChanged: typing.ClassVar[QtCore.pyqtSignal] + valueChanged: typing.ClassVar[QtCore.pyqtSignal] + def setValue(self, val: int) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + def fixup(self, str: str|None) -> str: ... + def textFromValue(self, v: int) -> str: ... + def valueFromText(self, text: str|None) -> int: ... + def validate(self, input: str|None, 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) -> None: ... + def suffix(self) -> str: ... + def setPrefix(self, p: str|None) -> None: ... + def prefix(self) -> str: ... + def value(self) -> int: ... + + +class QDoubleSpinBox(QAbstractSpinBox): + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def setStepType(self, stepType: QAbstractSpinBox.StepType) -> None: ... + def stepType(self) -> QAbstractSpinBox.StepType: ... + textChanged: typing.ClassVar[QtCore.pyqtSignal] + valueChanged: typing.ClassVar[QtCore.pyqtSignal] + def setValue(self, val: float) -> None: ... + def fixup(self, str: str|None) -> str: ... + def textFromValue(self, v: float) -> str: ... + def valueFromText(self, text: str|None) -> float: ... + def validate(self, input: str|None, 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) -> None: ... + def suffix(self) -> str: ... + def setPrefix(self, p: str|None) -> None: ... + def prefix(self) -> str: ... + def value(self) -> float: ... + + +class QSplashScreen(QWidget): + + @typing.overload + def __init__(self, pixmap: QtGui.QPixmap = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + @typing.overload + def __init__(self, screen: QtGui.QScreen|None, pixmap: QtGui.QPixmap = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + def mousePressEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + def drawContents(self, painter: QtGui.QPainter|None) -> None: ... + messageChanged: typing.ClassVar[QtCore.pyqtSignal] + def clearMessage(self) -> None: ... + def showMessage(self, message: str|None, alignment: int = ..., color: QtGui.QColor|QtCore.Qt.GlobalColor|int = ...) -> None: ... + def message(self) -> str: ... + def repaint(self) -> None: ... + def finish(self, w: QWidget|None) -> None: ... + def pixmap(self) -> QtGui.QPixmap: ... + def setPixmap(self, pixmap: QtGui.QPixmap) -> None: ... + + +class QSplitter(QFrame): + + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, orientation: QtCore.Qt.Orientation, parent: QWidget|None = ...) -> 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) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + def event(self, a0: QtCore.QEvent|None) -> bool: ... + def childEvent(self, a0: QtCore.QChildEvent|None) -> None: ... + def createHandle(self) -> 'QSplitterHandle|None': ... + splitterMoved: typing.ClassVar[QtCore.pyqtSignal] + def replaceWidget(self, index: int, widget: QWidget|None) -> QWidget|None: ... + def setStretchFactor(self, index: int, stretch: int) -> None: ... + def handle(self, index: int) -> 'QSplitterHandle|None': ... + def getRange(self, index: int) -> typing.Tuple[int, int]: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def widget(self, index: int) -> QWidget|None: ... + def indexOf(self, w: QWidget|None) -> int: ... + def setHandleWidth(self, a0: int) -> None: ... + def handleWidth(self) -> int: ... + def restoreState(self, state: QtCore.QByteArray|bytes|bytearray|memoryview) -> bool: ... + def saveState(self) -> QtCore.QByteArray: ... + def setSizes(self, list: collections.abc.Iterable[int]) -> None: ... + def sizes(self) -> 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) -> None: ... + def addWidget(self, widget: QWidget|None) -> None: ... + + +class QSplitterHandle(QWidget): + + def __init__(self, o: QtCore.Qt.Orientation, parent: QSplitter|None) -> None: ... + + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + def closestLegalPosition(self, p: int) -> int: ... + def moveSplitter(self, p: int) -> None: ... + def event(self, a0: QtCore.QEvent|None) -> bool: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def sizeHint(self) -> QtCore.QSize: ... + def splitter(self) -> QSplitter|None: ... + def opaqueResize(self) -> bool: ... + def orientation(self) -> QtCore.Qt.Orientation: ... + def setOrientation(self, o: QtCore.Qt.Orientation) -> None: ... + + +class QStackedLayout(QLayout): + + class StackingMode(enum.Enum): + StackOne = ... # type: QStackedLayout.StackingMode + StackAll = ... # type: QStackedLayout.StackingMode + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, parent: QWidget|None) -> None: ... + @typing.overload + def __init__(self, parentLayout: QLayout|None) -> 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) -> None: ... + def setCurrentIndex(self, index: int) -> None: ... + widgetAdded: typing.ClassVar[QtCore.pyqtSignal] + currentChanged: typing.ClassVar[QtCore.pyqtSignal] + widgetRemoved: typing.ClassVar[QtCore.pyqtSignal] + def setGeometry(self, rect: QtCore.QRect) -> None: ... + def takeAt(self, a0: int) -> QLayoutItem|None: ... + def itemAt(self, a0: int) -> QLayoutItem|None: ... + def minimumSize(self) -> QtCore.QSize: ... + def sizeHint(self) -> QtCore.QSize: ... + def addItem(self, item: QLayoutItem|None) -> None: ... + def count(self) -> int: ... + def widget(self, a0: int) -> QWidget|None: ... + def currentIndex(self) -> int: ... + def currentWidget(self) -> QWidget|None: ... + def insertWidget(self, index: int, w: QWidget|None) -> int: ... + def addWidget(self, w: QWidget|None) -> int: ... + + +class QStackedWidget(QFrame): + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def event(self, e: QtCore.QEvent|None) -> bool: ... + widgetRemoved: typing.ClassVar[QtCore.pyqtSignal] + widgetAdded: typing.ClassVar[QtCore.pyqtSignal] + currentChanged: typing.ClassVar[QtCore.pyqtSignal] + def setCurrentWidget(self, w: QWidget|None) -> None: ... + def setCurrentIndex(self, index: int) -> None: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def widget(self, a0: int) -> QWidget|None: ... + def indexOf(self, a0: QWidget|None) -> int: ... + def currentIndex(self) -> int: ... + def currentWidget(self) -> QWidget|None: ... + def removeWidget(self, w: QWidget|None) -> None: ... + def insertWidget(self, index: int, w: QWidget|None) -> int: ... + def addWidget(self, w: QWidget|None) -> int: ... + + +class QStatusBar(QWidget): + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def showEvent(self, a0: QtGui.QShowEvent|None) -> None: ... + def event(self, a0: QtCore.QEvent|None) -> bool: ... + def hideOrShow(self) -> None: ... + def reformat(self) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + messageChanged: typing.ClassVar[QtCore.pyqtSignal] + def clearMessage(self) -> None: ... + def showMessage(self, message: str|None, msecs: int = ...) -> None: ... + def insertPermanentWidget(self, index: int, widget: QWidget|None, stretch: int = ...) -> int: ... + def insertWidget(self, index: int, widget: QWidget|None, stretch: int = ...) -> int: ... + def currentMessage(self) -> str: ... + def isSizeGripEnabled(self) -> bool: ... + def setSizeGripEnabled(self, a0: bool) -> None: ... + def removeWidget(self, widget: QWidget|None) -> None: ... + def addPermanentWidget(self, widget: QWidget|None, stretch: int = ...) -> None: ... + def addWidget(self, widget: QWidget|None, stretch: int = ...) -> None: ... + + +class QStyledItemDelegate(QAbstractItemDelegate): + + def __init__(self, parent: QtCore.QObject|None = ...) -> None: ... + + def editorEvent(self, event: QtCore.QEvent|None, model: QtCore.QAbstractItemModel|None, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> bool: ... + def eventFilter(self, object: QtCore.QObject|None, event: QtCore.QEvent|None) -> bool: ... + def initStyleOption(self, option: 'QStyleOptionViewItem|None', index: QtCore.QModelIndex) -> None: ... + def displayText(self, value: typing.Any, locale: QtCore.QLocale) -> str: ... + def setItemEditorFactory(self, factory: QItemEditorFactory|None) -> None: ... + def itemEditorFactory(self) -> QItemEditorFactory|None: ... + def updateEditorGeometry(self, editor: QWidget|None, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> None: ... + def setModelData(self, editor: QWidget|None, model: QtCore.QAbstractItemModel|None, index: QtCore.QModelIndex) -> None: ... + def setEditorData(self, editor: QWidget|None, index: QtCore.QModelIndex) -> None: ... + def createEditor(self, parent: QWidget|None, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> QWidget|None: ... + def sizeHint(self, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> QtCore.QSize: ... + def paint(self, painter: QtGui.QPainter|None, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> None: ... + + +class QStyleFactory(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QStyleFactory') -> None: ... + + @staticmethod + def create(a0: str|None) -> QStyle|None: ... + @staticmethod + def keys() -> list[str]: ... + + +class QStyleOption(PyQt6.sip.simplewrapper): + + class StyleOptionVersion(enum.Enum): + Version = ... # type: QStyleOption.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOption.StyleOptionType + + class OptionType(enum.Enum): + 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: 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) -> None: ... + + +class QStyleOptionFocusRect(QStyleOption): + + class StyleOptionVersion(enum.Enum): + Version = ... # type: QStyleOptionFocusRect.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOptionFocusRect.StyleOptionType + + backgroundColor = ... # type: QtGui.QColor|QtCore.Qt.GlobalColor|int + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionFocusRect') -> None: ... + + +class QStyleOptionFrame(QStyleOption): + + class FrameFeature(enum.Flag): + None_ = ... # type: QStyleOptionFrame.FrameFeature + Flat = ... # type: QStyleOptionFrame.FrameFeature + Rounded = ... # type: QStyleOptionFrame.FrameFeature + + class StyleOptionVersion(enum.Enum): + Version = ... # type: QStyleOptionFrame.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOptionFrame.StyleOptionType + + features = ... # type: '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(enum.Enum): + Version = ... # type: QStyleOptionTabWidgetFrame.StyleOptionVersion + + class StyleOptionType(enum.Enum): + 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(enum.Enum): + Version = ... # type: QStyleOptionTabBarBase.StyleOptionVersion + + class StyleOptionType(enum.Enum): + 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(enum.Enum): + None_ = ... # type: QStyleOptionHeader.SortIndicator + SortUp = ... # type: QStyleOptionHeader.SortIndicator + SortDown = ... # type: QStyleOptionHeader.SortIndicator + + class SelectedPosition(enum.Enum): + NotAdjacent = ... # type: QStyleOptionHeader.SelectedPosition + NextIsSelected = ... # type: QStyleOptionHeader.SelectedPosition + PreviousIsSelected = ... # type: QStyleOptionHeader.SelectedPosition + NextAndPreviousAreSelected = ... # type: QStyleOptionHeader.SelectedPosition + + class SectionPosition(enum.Enum): + Beginning = ... # type: QStyleOptionHeader.SectionPosition + Middle = ... # type: QStyleOptionHeader.SectionPosition + End = ... # type: QStyleOptionHeader.SectionPosition + OnlyOneSection = ... # type: QStyleOptionHeader.SectionPosition + + class StyleOptionVersion(enum.Enum): + Version = ... # type: QStyleOptionHeader.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOptionHeader.StyleOptionType + + icon = ... # type: QtGui.QIcon + iconAlignment = ... # type: 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|None + textAlignment = ... # type: QtCore.Qt.AlignmentFlag + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionHeader') -> None: ... + + +class QStyleOptionHeaderV2(QStyleOptionHeader): + + class StyleOptionVersion(enum.Enum): + Version = ... # type: QStyleOptionHeaderV2.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOptionHeaderV2.StyleOptionType + + isSectionDragTarget = ... # type: bool + textElideMode = ... # type: QtCore.Qt.TextElideMode + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionHeaderV2') -> None: ... + + +class QStyleOptionButton(QStyleOption): + + class ButtonFeature(enum.Flag): + 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(enum.Enum): + Version = ... # type: QStyleOptionButton.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOptionButton.StyleOptionType + + features = ... # type: 'QStyleOptionButton.ButtonFeature' + icon = ... # type: QtGui.QIcon + iconSize = ... # type: QtCore.QSize + text = ... # type: str|None + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionButton') -> None: ... + + +class QStyleOptionTab(QStyleOption): + + class TabFeature(enum.Flag): + None_ = ... # type: QStyleOptionTab.TabFeature + HasFrame = ... # type: QStyleOptionTab.TabFeature + MinimumSizeHint = ... # type: QStyleOptionTab.TabFeature + + class CornerWidget(enum.Flag): + NoCornerWidgets = ... # type: QStyleOptionTab.CornerWidget + LeftCornerWidget = ... # type: QStyleOptionTab.CornerWidget + RightCornerWidget = ... # type: QStyleOptionTab.CornerWidget + + class SelectedPosition(enum.Enum): + NotAdjacent = ... # type: QStyleOptionTab.SelectedPosition + NextIsSelected = ... # type: QStyleOptionTab.SelectedPosition + PreviousIsSelected = ... # type: QStyleOptionTab.SelectedPosition + + class TabPosition(enum.Enum): + Beginning = ... # type: QStyleOptionTab.TabPosition + Middle = ... # type: QStyleOptionTab.TabPosition + End = ... # type: QStyleOptionTab.TabPosition + OnlyOneTab = ... # type: QStyleOptionTab.TabPosition + Moving = ... # type: QStyleOptionTab.TabPosition + + class StyleOptionVersion(enum.Enum): + Version = ... # type: QStyleOptionTab.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOptionTab.StyleOptionType + + cornerWidgets = ... # type: 'QStyleOptionTab.CornerWidget' + documentMode = ... # type: bool + features = ... # type: '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' + tabIndex = ... # type: int + text = ... # type: str|None + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionTab') -> None: ... + + +class QStyleOptionProgressBar(QStyleOption): + + class StyleOptionVersion(enum.Enum): + Version = ... # type: QStyleOptionProgressBar.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOptionProgressBar.StyleOptionType + + bottomToTop = ... # type: bool + invertedAppearance = ... # type: bool + maximum = ... # type: int + minimum = ... # type: int + progress = ... # type: int + text = ... # type: str|None + textAlignment = ... # type: 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(enum.Enum): + NotCheckable = ... # type: QStyleOptionMenuItem.CheckType + Exclusive = ... # type: QStyleOptionMenuItem.CheckType + NonExclusive = ... # type: QStyleOptionMenuItem.CheckType + + class MenuItemType(enum.Enum): + 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(enum.Enum): + Version = ... # type: QStyleOptionMenuItem.StyleOptionVersion + + class StyleOptionType(enum.Enum): + 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 + reservedShortcutWidth = ... # type: int + text = ... # type: str|None + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionMenuItem') -> None: ... + + +class QStyleOptionMenuItemV2(QStyleOptionMenuItem): + + class StyleOptionVersion(enum.Enum): + Version = ... # type: QStyleOptionMenuItemV2.StyleOptionVersion + + mouseDown = ... # type: bool + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionMenuItemV2') -> None: ... + + +class QStyleOptionDockWidget(QStyleOption): + + class StyleOptionVersion(enum.Enum): + Version = ... # type: QStyleOptionDockWidget.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOptionDockWidget.StyleOptionType + + closable = ... # type: bool + floatable = ... # type: bool + movable = ... # type: bool + title = ... # type: str|None + verticalTitleBar = ... # type: bool + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionDockWidget') -> None: ... + + +class QStyleOptionViewItem(QStyleOption): + + class ViewItemPosition(enum.Enum): + Invalid = ... # type: QStyleOptionViewItem.ViewItemPosition + Beginning = ... # type: QStyleOptionViewItem.ViewItemPosition + Middle = ... # type: QStyleOptionViewItem.ViewItemPosition + End = ... # type: QStyleOptionViewItem.ViewItemPosition + OnlyOne = ... # type: QStyleOptionViewItem.ViewItemPosition + + class ViewItemFeature(enum.Flag): + None_ = ... # type: QStyleOptionViewItem.ViewItemFeature + WrapText = ... # type: QStyleOptionViewItem.ViewItemFeature + Alternate = ... # type: QStyleOptionViewItem.ViewItemFeature + HasCheckIndicator = ... # type: QStyleOptionViewItem.ViewItemFeature + HasDisplay = ... # type: QStyleOptionViewItem.ViewItemFeature + HasDecoration = ... # type: QStyleOptionViewItem.ViewItemFeature + IsDecoratedRootColumn = ... # type: QStyleOptionViewItem.ViewItemFeature + IsDecorationForRootColumn = ... # type: QStyleOptionViewItem.ViewItemFeature + + class Position(enum.Enum): + Left = ... # type: QStyleOptionViewItem.Position + Right = ... # type: QStyleOptionViewItem.Position + Top = ... # type: QStyleOptionViewItem.Position + Bottom = ... # type: QStyleOptionViewItem.Position + + class StyleOptionVersion(enum.Enum): + Version = ... # type: QStyleOptionViewItem.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOptionViewItem.StyleOptionType + + backgroundBrush = ... # type: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient + checkState = ... # type: QtCore.Qt.CheckState + decorationAlignment = ... # type: QtCore.Qt.AlignmentFlag + decorationPosition = ... # type: 'QStyleOptionViewItem.Position' + decorationSize = ... # type: QtCore.QSize + displayAlignment = ... # type: QtCore.Qt.AlignmentFlag + features = ... # type: 'QStyleOptionViewItem.ViewItemFeature' + font = ... # type: QtGui.QFont + icon = ... # type: QtGui.QIcon + index = ... # type: QtCore.QModelIndex + locale = ... # type: QtCore.QLocale + showDecorationSelected = ... # type: bool + text = ... # type: str|None + 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(enum.Enum): + NotAdjacent = ... # type: QStyleOptionToolBox.SelectedPosition + NextIsSelected = ... # type: QStyleOptionToolBox.SelectedPosition + PreviousIsSelected = ... # type: QStyleOptionToolBox.SelectedPosition + + class TabPosition(enum.Enum): + Beginning = ... # type: QStyleOptionToolBox.TabPosition + Middle = ... # type: QStyleOptionToolBox.TabPosition + End = ... # type: QStyleOptionToolBox.TabPosition + OnlyOneTab = ... # type: QStyleOptionToolBox.TabPosition + + class StyleOptionVersion(enum.Enum): + Version = ... # type: QStyleOptionToolBox.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOptionToolBox.StyleOptionType + + icon = ... # type: QtGui.QIcon + position = ... # type: 'QStyleOptionToolBox.TabPosition' + selectedPosition = ... # type: 'QStyleOptionToolBox.SelectedPosition' + text = ... # type: str|None + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionToolBox') -> None: ... + + +class QStyleOptionRubberBand(QStyleOption): + + class StyleOptionVersion(enum.Enum): + Version = ... # type: QStyleOptionRubberBand.StyleOptionVersion + + class StyleOptionType(enum.Enum): + 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(enum.Enum): + Version = ... # type: QStyleOptionComplex.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOptionComplex.StyleOptionType + + activeSubControls = ... # type: QStyle.SubControl + subControls = ... # type: 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(enum.Enum): + Version = ... # type: QStyleOptionSlider.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOptionSlider.StyleOptionType + + dialWrapping = ... # type: bool + keyboardModifiers = ... # type: QtCore.Qt.KeyboardModifier + 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(enum.Enum): + Version = ... # type: QStyleOptionSpinBox.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOptionSpinBox.StyleOptionType + + buttonSymbols = ... # type: QAbstractSpinBox.ButtonSymbols + frame = ... # type: bool + stepEnabled = ... # type: QAbstractSpinBox.StepEnabledFlag + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionSpinBox') -> None: ... + + +class QStyleOptionToolButton(QStyleOptionComplex): + + class ToolButtonFeature(enum.Flag): + 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(enum.Enum): + Version = ... # type: QStyleOptionToolButton.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOptionToolButton.StyleOptionType + + arrowType = ... # type: QtCore.Qt.ArrowType + features = ... # type: 'QStyleOptionToolButton.ToolButtonFeature' + font = ... # type: QtGui.QFont + icon = ... # type: QtGui.QIcon + iconSize = ... # type: QtCore.QSize + pos = ... # type: QtCore.QPoint + text = ... # type: str|None + toolButtonStyle = ... # type: QtCore.Qt.ToolButtonStyle + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionToolButton') -> None: ... + + +class QStyleOptionComboBox(QStyleOptionComplex): + + class StyleOptionVersion(enum.Enum): + Version = ... # type: QStyleOptionComboBox.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOptionComboBox.StyleOptionType + + currentIcon = ... # type: QtGui.QIcon + currentText = ... # type: str|None + editable = ... # type: bool + frame = ... # type: bool + iconSize = ... # type: QtCore.QSize + popupRect = ... # type: QtCore.QRect + textAlignment = ... # type: QtCore.Qt.AlignmentFlag + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionComboBox') -> None: ... + + +class QStyleOptionTitleBar(QStyleOptionComplex): + + class StyleOptionVersion(enum.Enum): + Version = ... # type: QStyleOptionTitleBar.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOptionTitleBar.StyleOptionType + + icon = ... # type: QtGui.QIcon + text = ... # type: str|None + titleBarFlags = ... # type: QtCore.Qt.WindowType + titleBarState = ... # type: int + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionTitleBar') -> None: ... + + +class QStyleHintReturn(PyQt6.sip.simplewrapper): + + class StyleOptionVersion(enum.Enum): + Version = ... # type: QStyleHintReturn.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleHintReturn.StyleOptionType + + class HintReturnType(enum.Enum): + 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(enum.Enum): + Version = ... # type: QStyleHintReturnMask.StyleOptionVersion + + class StyleOptionType(enum.Enum): + 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(enum.Flag): + None_ = ... # type: QStyleOptionToolBar.ToolBarFeature + Movable = ... # type: QStyleOptionToolBar.ToolBarFeature + + class ToolBarPosition(enum.Enum): + Beginning = ... # type: QStyleOptionToolBar.ToolBarPosition + Middle = ... # type: QStyleOptionToolBar.ToolBarPosition + End = ... # type: QStyleOptionToolBar.ToolBarPosition + OnlyOne = ... # type: QStyleOptionToolBar.ToolBarPosition + + class StyleOptionVersion(enum.Enum): + Version = ... # type: QStyleOptionToolBar.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOptionToolBar.StyleOptionType + + features = ... # type: '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(enum.Enum): + Version = ... # type: QStyleOptionGroupBox.StyleOptionVersion + + class StyleOptionType(enum.Enum): + Type = ... # type: QStyleOptionGroupBox.StyleOptionType + + features = ... # type: QStyleOptionFrame.FrameFeature + lineWidth = ... # type: int + midLineWidth = ... # type: int + text = ... # type: str|None + textAlignment = ... # type: QtCore.Qt.AlignmentFlag + textColor = ... # type: QtGui.QColor|QtCore.Qt.GlobalColor|int + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QStyleOptionGroupBox') -> None: ... + + +class QStyleOptionSizeGrip(QStyleOptionComplex): + + class StyleOptionVersion(enum.Enum): + Version = ... # type: QStyleOptionSizeGrip.StyleOptionVersion + + class StyleOptionType(enum.Enum): + 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(enum.Enum): + Version = ... # type: QStyleOptionGraphicsItem.StyleOptionVersion + + class StyleOptionType(enum.Enum): + 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(enum.Enum): + Version = ... # type: QStyleHintReturnVariant.StyleOptionVersion + + class StyleOptionType(enum.Enum): + 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) -> None: ... + @typing.overload + def __init__(self, pd: QtGui.QPaintDevice|None, w: QWidget|None) -> 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|None, 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|None: ... + @typing.overload + def begin(self, w: QWidget|None) -> bool: ... + @typing.overload + def begin(self, pd: QtGui.QPaintDevice|None, w: QWidget|None) -> bool: ... + + +class QSystemTrayIcon(QtCore.QObject): + + class MessageIcon(enum.Enum): + NoIcon = ... # type: QSystemTrayIcon.MessageIcon + Information = ... # type: QSystemTrayIcon.MessageIcon + Warning = ... # type: QSystemTrayIcon.MessageIcon + Critical = ... # type: QSystemTrayIcon.MessageIcon + + class ActivationReason(enum.Enum): + 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: QtCore.QObject|None = ...) -> None: ... + @typing.overload + def __init__(self, icon: QtGui.QIcon, parent: QtCore.QObject|None = ...) -> None: ... + + def event(self, event: QtCore.QEvent|None) -> bool: ... + messageClicked: typing.ClassVar[QtCore.pyqtSignal] + activated: typing.ClassVar[QtCore.pyqtSignal] + 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|None, msg: str|None, icon: 'QSystemTrayIcon.MessageIcon' = ..., msecs: int = ...) -> None: ... + @typing.overload + def showMessage(self, title: str|None, msg: str|None, icon: QtGui.QIcon, msecs: int = ...) -> None: ... + @staticmethod + def supportsMessages() -> bool: ... + @staticmethod + def isSystemTrayAvailable() -> bool: ... + def setToolTip(self, tip: str|None) -> 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|None: ... + def setContextMenu(self, menu: QMenu|None) -> None: ... + + +class QTabBar(QWidget): + + class SelectionBehavior(enum.Enum): + SelectLeftTab = ... # type: QTabBar.SelectionBehavior + SelectRightTab = ... # type: QTabBar.SelectionBehavior + SelectPreviousTab = ... # type: QTabBar.SelectionBehavior + + class ButtonPosition(enum.Enum): + LeftSide = ... # type: QTabBar.ButtonPosition + RightSide = ... # type: QTabBar.ButtonPosition + + class Shape(enum.Enum): + 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: QWidget|None = ...) -> None: ... + + def setTabVisible(self, index: int, visible: bool) -> None: ... + def isTabVisible(self, index: int) -> bool: ... + def setAccessibleTabName(self, index: int, name: str|None) -> None: ... + def accessibleTabName(self, index: int) -> str: ... + def timerEvent(self, event: QtCore.QTimerEvent|None) -> None: ... + def setChangeCurrentOnDrag(self, change: bool) -> None: ... + def changeCurrentOnDrag(self) -> bool: ... + def setAutoHide(self, hide: bool) -> None: ... + def autoHide(self) -> bool: ... + tabBarDoubleClicked: typing.ClassVar[QtCore.pyqtSignal] + tabBarClicked: typing.ClassVar[QtCore.pyqtSignal] + def minimumTabSizeHint(self, index: int) -> QtCore.QSize: ... + def wheelEvent(self, event: QtGui.QWheelEvent|None) -> None: ... + def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def hideEvent(self, a0: QtGui.QHideEvent|None) -> None: ... + tabMoved: typing.ClassVar[QtCore.pyqtSignal] + tabCloseRequested: typing.ClassVar[QtCore.pyqtSignal] + 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|None: ... + def setTabButton(self, index: int, position: 'QTabBar.ButtonPosition', widget: QWidget|None) -> 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) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mouseMoveEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent|None) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + def event(self, a0: QtCore.QEvent|None) -> 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|None, tabIndex: int) -> None: ... + currentChanged: typing.ClassVar[QtCore.pyqtSignal] + 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) -> None: ... + def tabToolTip(self, index: int) -> str: ... + def setTabToolTip(self, index: int, tip: str|None) -> None: ... + def setTabIcon(self, index: int, icon: QtGui.QIcon) -> None: ... + def tabIcon(self, index: int) -> QtGui.QIcon: ... + def setTabTextColor(self, index: int, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + def tabTextColor(self, index: int) -> QtGui.QColor: ... + def setTabText(self, index: int, text: str|None) -> 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|None) -> int: ... + @typing.overload + def insertTab(self, index: int, icon: QtGui.QIcon, text: str|None) -> int: ... + @typing.overload + def addTab(self, text: str|None) -> int: ... + @typing.overload + def addTab(self, icon: QtGui.QIcon, text: str|None) -> int: ... + def setShape(self, shape: 'QTabBar.Shape') -> None: ... + def shape(self) -> 'QTabBar.Shape': ... + + +class QTableView(QAbstractItemView): + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def dropEvent(self, event: QtGui.QDropEvent|None) -> None: ... + def initViewItemOption(self, option: QStyleOptionViewItem|None) -> 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) -> list[QtCore.QModelIndex]: ... + def visualRegionForSelection(self, selection: QtCore.QItemSelection) -> QtGui.QRegion: ... + def setSelection(self, rect: QtCore.QRect, command: QtCore.QItemSelectionModel.SelectionFlag) -> None: ... + def moveCursor(self, cursorAction: QAbstractItemView.CursorAction, modifiers: QtCore.Qt.KeyboardModifier) -> QtCore.QModelIndex: ... + def verticalOffset(self) -> int: ... + def horizontalOffset(self) -> int: ... + def timerEvent(self, event: QtCore.QTimerEvent|None) -> None: ... + def paintEvent(self, e: QtGui.QPaintEvent|None) -> None: ... + 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) -> None: ... + def setHorizontalHeader(self, header: QHeaderView|None) -> None: ... + def verticalHeader(self) -> QHeaderView|None: ... + def horizontalHeader(self) -> QHeaderView|None: ... + def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel|None) -> None: ... + def setRootIndex(self, index: QtCore.QModelIndex) -> None: ... + def setModel(self, model: QtCore.QAbstractItemModel|None) -> None: ... + + +class QTableWidgetSelectionRange(PyQt6.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, a0: 'QTableWidgetSelectionRange') -> None: ... + + def __eq__(self, other: object): ... + def __ne__(self, other: object): ... + 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(PyQt6.sip.wrapper): + + class ItemType(enum.IntEnum): + Type = ... # type: QTableWidgetItem.ItemType + UserType = ... # type: QTableWidgetItem.ItemType + + @typing.overload + def __init__(self, type: int = ...) -> None: ... + @typing.overload + def __init__(self, text: str|None, type: int = ...) -> None: ... + @typing.overload + def __init__(self, icon: QtGui.QIcon, text: str|None, type: int = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QTableWidgetItem') -> None: ... + + def __ge__(self, other: 'QTableWidgetItem') -> bool: ... + def isSelected(self) -> bool: ... + def setSelected(self, aselect: bool) -> None: ... + def column(self) -> int: ... + def row(self) -> int: ... + def setForeground(self, brush: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient) -> None: ... + def foreground(self) -> QtGui.QBrush: ... + def setBackground(self, brush: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|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) -> None: ... + def setToolTip(self, atoolTip: str|None) -> None: ... + def setStatusTip(self, astatusTip: str|None) -> None: ... + def setIcon(self, aicon: QtGui.QIcon) -> None: ... + def setText(self, atext: str|None) -> None: ... + def setFlags(self, aflags: QtCore.Qt.ItemFlag) -> None: ... + def type(self) -> int: ... + def write(self, out: QtCore.QDataStream) -> None: ... + def read(self, in_: QtCore.QDataStream) -> None: ... + def __lt__(self, other: 'QTableWidgetItem') -> bool: ... + 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: ... + @typing.overload + def setTextAlignment(self, alignment: QtCore.Qt.AlignmentFlag) -> None: ... + @typing.overload + 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.ItemFlag: ... + def tableWidget(self) -> 'QTableWidget|None': ... + def clone(self) -> 'QTableWidgetItem|None': ... + + +class QTableWidget(QTableView): + + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, rows: int, columns: int, parent: QWidget|None = ...) -> None: ... + + def setSupportedDragActions(self, actions: QtCore.Qt.DropAction) -> None: ... + def supportedDragActions(self) -> QtCore.Qt.DropAction: ... + def isPersistentEditorOpen(self, item: QTableWidgetItem|None) -> bool: ... + def dropEvent(self, event: QtGui.QDropEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + def itemFromIndex(self, index: QtCore.QModelIndex) -> QTableWidgetItem|None: ... + def indexFromItem(self, item: QTableWidgetItem|None) -> QtCore.QModelIndex: ... + def items(self, data: QtCore.QMimeData|None) -> list[QTableWidgetItem]: ... + def supportedDropActions(self) -> QtCore.Qt.DropAction: ... + def dropMimeData(self, row: int, column: int, data: QtCore.QMimeData|None, action: QtCore.Qt.DropAction) -> bool: ... + def mimeData(self, items: collections.abc.Iterable[QTableWidgetItem]) -> QtCore.QMimeData|None: ... + def mimeTypes(self) -> list[str]: ... + currentCellChanged: typing.ClassVar[QtCore.pyqtSignal] + cellChanged: typing.ClassVar[QtCore.pyqtSignal] + cellEntered: typing.ClassVar[QtCore.pyqtSignal] + cellActivated: typing.ClassVar[QtCore.pyqtSignal] + cellDoubleClicked: typing.ClassVar[QtCore.pyqtSignal] + cellClicked: typing.ClassVar[QtCore.pyqtSignal] + cellPressed: typing.ClassVar[QtCore.pyqtSignal] + itemSelectionChanged: typing.ClassVar[QtCore.pyqtSignal] + currentItemChanged: typing.ClassVar[QtCore.pyqtSignal] + itemChanged: typing.ClassVar[QtCore.pyqtSignal] + itemEntered: typing.ClassVar[QtCore.pyqtSignal] + itemActivated: typing.ClassVar[QtCore.pyqtSignal] + itemDoubleClicked: typing.ClassVar[QtCore.pyqtSignal] + itemClicked: typing.ClassVar[QtCore.pyqtSignal] + itemPressed: typing.ClassVar[QtCore.pyqtSignal] + 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|None, hint: QAbstractItemView.ScrollHint = ...) -> None: ... + def setItemPrototype(self, item: QTableWidgetItem|None) -> None: ... + def itemPrototype(self) -> QTableWidgetItem|None: ... + def visualItemRect(self, item: QTableWidgetItem|None) -> QtCore.QRect: ... + @typing.overload + def itemAt(self, p: QtCore.QPoint) -> QTableWidgetItem|None: ... + @typing.overload + def itemAt(self, ax: int, ay: int) -> QTableWidgetItem|None: ... + def visualColumn(self, logicalColumn: int) -> int: ... + def visualRow(self, logicalRow: int) -> int: ... + def findItems(self, text: str|None, flags: QtCore.Qt.MatchFlag) -> list[QTableWidgetItem]: ... + def selectedItems(self) -> list[QTableWidgetItem]: ... + def selectedRanges(self) -> 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) -> None: ... + def cellWidget(self, row: int, column: int) -> QWidget|None: ... + def closePersistentEditor(self, item: QTableWidgetItem|None) -> None: ... + def openPersistentEditor(self, item: QTableWidgetItem|None) -> None: ... + def editItem(self, item: QTableWidgetItem|None) -> 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: QtCore.QItemSelectionModel.SelectionFlag) -> None: ... + @typing.overload + def setCurrentItem(self, item: QTableWidgetItem|None) -> None: ... + @typing.overload + def setCurrentItem(self, item: QTableWidgetItem|None, command: QtCore.QItemSelectionModel.SelectionFlag) -> None: ... + def currentItem(self) -> QTableWidgetItem|None: ... + def currentColumn(self) -> int: ... + def currentRow(self) -> int: ... + def setHorizontalHeaderLabels(self, labels: collections.abc.Iterable[str|None]) -> None: ... + def setVerticalHeaderLabels(self, labels: collections.abc.Iterable[str|None]) -> None: ... + def takeHorizontalHeaderItem(self, column: int) -> QTableWidgetItem|None: ... + def setHorizontalHeaderItem(self, column: int, item: QTableWidgetItem|None) -> None: ... + def horizontalHeaderItem(self, column: int) -> QTableWidgetItem|None: ... + def takeVerticalHeaderItem(self, row: int) -> QTableWidgetItem|None: ... + def setVerticalHeaderItem(self, row: int, item: QTableWidgetItem|None) -> None: ... + def verticalHeaderItem(self, row: int) -> QTableWidgetItem|None: ... + def takeItem(self, row: int, column: int) -> QTableWidgetItem|None: ... + def setItem(self, row: int, column: int, item: QTableWidgetItem|None) -> None: ... + def item(self, row: int, column: int) -> QTableWidgetItem|None: ... + def column(self, item: QTableWidgetItem|None) -> int: ... + def row(self, item: QTableWidgetItem|None) -> 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(enum.Enum): + Rounded = ... # type: QTabWidget.TabShape + Triangular = ... # type: QTabWidget.TabShape + + class TabPosition(enum.Enum): + North = ... # type: QTabWidget.TabPosition + South = ... # type: QTabWidget.TabPosition + West = ... # type: QTabWidget.TabPosition + East = ... # type: QTabWidget.TabPosition + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def setTabVisible(self, index: int, visible: bool) -> None: ... + def isTabVisible(self, index: int) -> bool: ... + def setTabBarAutoHide(self, enabled: bool) -> None: ... + def tabBarAutoHide(self) -> bool: ... + tabBarDoubleClicked: typing.ClassVar[QtCore.pyqtSignal] + tabBarClicked: typing.ClassVar[QtCore.pyqtSignal] + def hasHeightForWidth(self) -> bool: ... + def heightForWidth(self, width: int) -> int: ... + tabCloseRequested: typing.ClassVar[QtCore.pyqtSignal] + 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) -> None: ... + def tabBar(self) -> QTabBar|None: ... + def setTabBar(self, a0: QTabBar|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def keyPressEvent(self, a0: QtGui.QKeyEvent|None) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent|None) -> None: ... + def event(self, a0: QtCore.QEvent|None) -> bool: ... + def tabRemoved(self, index: int) -> None: ... + def tabInserted(self, index: int) -> None: ... + def initStyleOption(self, option: QStyleOptionTabWidgetFrame|None) -> None: ... + currentChanged: typing.ClassVar[QtCore.pyqtSignal] + def setCurrentWidget(self, widget: QWidget|None) -> None: ... + def setCurrentIndex(self, index: int) -> None: ... + def cornerWidget(self, corner: QtCore.Qt.Corner = ...) -> QWidget|None: ... + def setCornerWidget(self, widget: QWidget|None, 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|None) -> int: ... + def widget(self, index: int) -> QWidget|None: ... + def currentWidget(self) -> QWidget|None: ... + def currentIndex(self) -> int: ... + def tabWhatsThis(self, index: int) -> str: ... + def setTabWhatsThis(self, index: int, text: str|None) -> None: ... + def tabToolTip(self, index: int) -> str: ... + def setTabToolTip(self, index: int, tip: str|None) -> 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) -> 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|None, a2: str|None) -> int: ... + @typing.overload + def insertTab(self, index: int, widget: QWidget|None, icon: QtGui.QIcon, label: str|None) -> int: ... + @typing.overload + def addTab(self, widget: QWidget|None, a1: str|None) -> int: ... + @typing.overload + def addTab(self, widget: QWidget|None, icon: QtGui.QIcon, label: str|None) -> int: ... + def clear(self) -> None: ... + + +class QTextEdit(QAbstractScrollArea): + + class AutoFormattingFlag(enum.Flag): + AutoNone = ... # type: QTextEdit.AutoFormattingFlag + AutoBulletList = ... # type: QTextEdit.AutoFormattingFlag + AutoAll = ... # type: QTextEdit.AutoFormattingFlag + + class LineWrapMode(enum.Enum): + NoWrap = ... # type: QTextEdit.LineWrapMode + WidgetWidth = ... # type: QTextEdit.LineWrapMode + FixedPixelWidth = ... # type: QTextEdit.LineWrapMode + FixedColumnWidth = ... # type: QTextEdit.LineWrapMode + + class ExtraSelection(PyQt6.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: ... + + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, text: str|None, parent: QWidget|None = ...) -> None: ... + + def setMarkdown(self, markdown: str|None) -> None: ... + def toMarkdown(self, features: QtGui.QTextDocument.MarkdownFeature = ...) -> str: ... + def setTabStopDistance(self, distance: float) -> None: ... + def tabStopDistance(self) -> float: ... + def placeholderText(self) -> str: ... + def setPlaceholderText(self, placeholderText: str|None) -> None: ... + def setTextBackgroundColor(self, c: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> 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) -> None: ... + def insertFromMimeData(self, source: QtCore.QMimeData|None) -> None: ... + def canInsertFromMimeData(self, source: QtCore.QMimeData|None) -> bool: ... + def createMimeDataFromSelection(self) -> QtCore.QMimeData|None: ... + def wheelEvent(self, e: QtGui.QWheelEvent|None) -> None: ... + def changeEvent(self, e: QtCore.QEvent|None) -> None: ... + def showEvent(self, a0: QtGui.QShowEvent|None) -> None: ... + def focusOutEvent(self, e: QtGui.QFocusEvent|None) -> None: ... + def focusInEvent(self, e: QtGui.QFocusEvent|None) -> None: ... + def dropEvent(self, e: QtGui.QDropEvent|None) -> None: ... + def dragMoveEvent(self, e: QtGui.QDragMoveEvent|None) -> None: ... + def dragLeaveEvent(self, e: QtGui.QDragLeaveEvent|None) -> None: ... + def dragEnterEvent(self, e: QtGui.QDragEnterEvent|None) -> None: ... + def contextMenuEvent(self, e: QtGui.QContextMenuEvent|None) -> None: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def mouseDoubleClickEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mouseReleaseEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mouseMoveEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def paintEvent(self, e: QtGui.QPaintEvent|None) -> None: ... + def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ... + def keyReleaseEvent(self, e: QtGui.QKeyEvent|None) -> None: ... + def keyPressEvent(self, e: QtGui.QKeyEvent|None) -> None: ... + def timerEvent(self, e: QtCore.QTimerEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + cursorPositionChanged: typing.ClassVar[QtCore.pyqtSignal] + selectionChanged: typing.ClassVar[QtCore.pyqtSignal] + copyAvailable: typing.ClassVar[QtCore.pyqtSignal] + currentCharFormatChanged: typing.ClassVar[QtCore.pyqtSignal] + redoAvailable: typing.ClassVar[QtCore.pyqtSignal] + undoAvailable: typing.ClassVar[QtCore.pyqtSignal] + textChanged: typing.ClassVar[QtCore.pyqtSignal] + 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) -> None: ... + def insertHtml(self, text: str|None) -> None: ... + def insertPlainText(self, text: str|None) -> 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) -> None: ... + def setPlainText(self, text: str|None) -> None: ... + def setAlignment(self, a: QtCore.Qt.AlignmentFlag) -> None: ... + def setCurrentFont(self, f: QtGui.QFont) -> None: ... + def setTextColor(self, c: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ... + def setText(self, text: str|None) -> 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) -> None: ... + def setFontPointSize(self, s: float) -> None: ... + def print(self, printer: QtGui.QPagedPaintDevice|None) -> None: ... + def moveCursor(self, operation: QtGui.QTextCursor.MoveOperation, mode: QtGui.QTextCursor.MoveMode = ...) -> None: ... + def canPaste(self) -> bool: ... + def extraSelections(self) -> list['QTextEdit.ExtraSelection']: ... + def setExtraSelections(self, selections: collections.abc.Iterable['QTextEdit.ExtraSelection']) -> None: ... + def cursorWidth(self) -> int: ... + def setCursorWidth(self, width: int) -> None: ... + def textInteractionFlags(self) -> QtCore.Qt.TextInteractionFlag: ... + def setTextInteractionFlags(self, flags: QtCore.Qt.TextInteractionFlag) -> None: ... + def setAcceptRichText(self, accept: bool) -> None: ... + def acceptRichText(self) -> bool: ... + 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|None: ... + @typing.overload + def createStandardContextMenu(self, position: QtCore.QPoint) -> QMenu|None: ... + def loadResource(self, type: int, name: QtCore.QUrl) -> typing.Any: ... + def ensureCursorVisible(self) -> None: ... + def append(self, text: str|None) -> None: ... + def toHtml(self) -> str: ... + def toPlainText(self) -> str: ... + @typing.overload + def find(self, exp: str|None, options: QtGui.QTextDocument.FindFlag = ...) -> bool: ... + @typing.overload + def find(self, exp: QtCore.QRegularExpression, options: 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) -> None: ... + def setTabChangesFocus(self, b: bool) -> None: ... + def tabChangesFocus(self) -> bool: ... + def setAutoFormatting(self, features: 'QTextEdit.AutoFormattingFlag') -> None: ... + def autoFormatting(self) -> 'QTextEdit.AutoFormattingFlag': ... + def currentCharFormat(self) -> QtGui.QTextCharFormat: ... + def setCurrentCharFormat(self, format: QtGui.QTextCharFormat) -> None: ... + def mergeCurrentCharFormat(self, modifier: QtGui.QTextCharFormat) -> None: ... + def alignment(self) -> QtCore.Qt.AlignmentFlag: ... + 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|None: ... + def setDocument(self, document: QtGui.QTextDocument|None) -> None: ... + + +class QTextBrowser(QTextEdit): + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def doSetSource(self, name: QtCore.QUrl, type: QtGui.QTextDocument.ResourceType = ...) -> None: ... + def sourceType(self) -> QtGui.QTextDocument.ResourceType: ... + historyChanged: typing.ClassVar[QtCore.pyqtSignal] + 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) -> None: ... + def focusNextPrevChild(self, next: bool) -> bool: ... + def focusOutEvent(self, ev: QtGui.QFocusEvent|None) -> None: ... + def mouseReleaseEvent(self, ev: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, ev: QtGui.QMouseEvent|None) -> None: ... + def mouseMoveEvent(self, ev: QtGui.QMouseEvent|None) -> None: ... + def keyPressEvent(self, ev: QtGui.QKeyEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + anchorClicked: typing.ClassVar[QtCore.pyqtSignal] + highlighted: typing.ClassVar[QtCore.pyqtSignal] + sourceChanged: typing.ClassVar[QtCore.pyqtSignal] + forwardAvailable: typing.ClassVar[QtCore.pyqtSignal] + backwardAvailable: typing.ClassVar[QtCore.pyqtSignal] + def reload(self) -> None: ... + def home(self) -> None: ... + def forward(self) -> None: ... + def backward(self) -> None: ... + def setSource(self, name: QtCore.QUrl, type: QtGui.QTextDocument.ResourceType = ...) -> None: ... + def loadResource(self, type: int, name: QtCore.QUrl) -> typing.Any: ... + def setSearchPaths(self, paths: collections.abc.Iterable[str|None]) -> None: ... + def searchPaths(self) -> list[str]: ... + def source(self) -> QtCore.QUrl: ... + + +class QToolBar(QWidget): + + @typing.overload + def __init__(self, title: str|None, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def isFloating(self) -> bool: ... + def setFloatable(self, floatable: bool) -> None: ... + def isFloatable(self) -> bool: ... + def event(self, event: QtCore.QEvent|None) -> bool: ... + def paintEvent(self, event: QtGui.QPaintEvent|None) -> None: ... + def changeEvent(self, event: QtCore.QEvent|None) -> None: ... + def actionEvent(self, event: QtGui.QActionEvent|None) -> None: ... + def initStyleOption(self, option: QStyleOptionToolBar|None) -> None: ... + visibilityChanged: typing.ClassVar[QtCore.pyqtSignal] + topLevelChanged: typing.ClassVar[QtCore.pyqtSignal] + toolButtonStyleChanged: typing.ClassVar[QtCore.pyqtSignal] + iconSizeChanged: typing.ClassVar[QtCore.pyqtSignal] + orientationChanged: typing.ClassVar[QtCore.pyqtSignal] + allowedAreasChanged: typing.ClassVar[QtCore.pyqtSignal] + movableChanged: typing.ClassVar[QtCore.pyqtSignal] + actionTriggered: typing.ClassVar[QtCore.pyqtSignal] + def setToolButtonStyle(self, toolButtonStyle: QtCore.Qt.ToolButtonStyle) -> None: ... + def setIconSize(self, iconSize: QtCore.QSize) -> None: ... + def widgetForAction(self, action: QtGui.QAction|None) -> QWidget|None: ... + def toolButtonStyle(self) -> QtCore.Qt.ToolButtonStyle: ... + def iconSize(self) -> QtCore.QSize: ... + def toggleViewAction(self) -> QtGui.QAction|None: ... + @typing.overload + def actionAt(self, p: QtCore.QPoint) -> QtGui.QAction|None: ... + @typing.overload + def actionAt(self, ax: int, ay: int) -> QtGui.QAction|None: ... + def actionGeometry(self, action: QtGui.QAction|None) -> QtCore.QRect: ... + def insertWidget(self, before: QtGui.QAction|None, widget: QWidget|None) -> QtGui.QAction|None: ... + def addWidget(self, widget: QWidget|None) -> QtGui.QAction|None: ... + def insertSeparator(self, before: QtGui.QAction|None) -> QtGui.QAction|None: ... + def addSeparator(self) -> QtGui.QAction|None: ... + 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.ToolBarArea: ... + def setAllowedAreas(self, areas: QtCore.Qt.ToolBarArea) -> None: ... + def isMovable(self) -> bool: ... + def setMovable(self, movable: bool) -> None: ... + + +class QToolBox(QFrame): + + def __init__(self, parent: QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + def changeEvent(self, a0: QtCore.QEvent|None) -> None: ... + def showEvent(self, e: QtGui.QShowEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + def itemRemoved(self, index: int) -> None: ... + def itemInserted(self, index: int) -> None: ... + currentChanged: typing.ClassVar[QtCore.pyqtSignal] + def setCurrentWidget(self, widget: QWidget|None) -> None: ... + def setCurrentIndex(self, index: int) -> None: ... + def __len__(self) -> int: ... + def count(self) -> int: ... + def indexOf(self, widget: QWidget|None) -> int: ... + def widget(self, index: int) -> QWidget|None: ... + def currentWidget(self) -> QWidget|None: ... + def currentIndex(self) -> int: ... + def itemToolTip(self, index: int) -> str: ... + def setItemToolTip(self, index: int, toolTip: str|None) -> 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) -> 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|None, text: str|None) -> int: ... + @typing.overload + def insertItem(self, index: int, widget: QWidget|None, icon: QtGui.QIcon, text: str|None) -> int: ... + @typing.overload + def addItem(self, item: QWidget|None, text: str|None) -> int: ... + @typing.overload + def addItem(self, item: QWidget|None, iconSet: QtGui.QIcon, text: str|None) -> int: ... + + +class QToolButton(QAbstractButton): + + class ToolButtonPopupMode(enum.Enum): + DelayedPopup = ... # type: QToolButton.ToolButtonPopupMode + MenuButtonPopup = ... # type: QToolButton.ToolButtonPopupMode + InstantPopup = ... # type: QToolButton.ToolButtonPopupMode + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def checkStateSet(self) -> None: ... + def hitButton(self, pos: QtCore.QPoint) -> bool: ... + def nextCheckState(self) -> None: ... + def mouseReleaseEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def changeEvent(self, a0: QtCore.QEvent|None) -> None: ... + def timerEvent(self, a0: QtCore.QTimerEvent|None) -> None: ... + def leaveEvent(self, a0: QtCore.QEvent|None) -> None: ... + def enterEvent(self, a0: QtGui.QEnterEvent|None) -> None: ... + def actionEvent(self, a0: QtGui.QActionEvent|None) -> None: ... + def paintEvent(self, a0: QtGui.QPaintEvent|None) -> None: ... + def mousePressEvent(self, a0: QtGui.QMouseEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + def initStyleOption(self, option: QStyleOptionToolButton|None) -> None: ... + triggered: typing.ClassVar[QtCore.pyqtSignal] + def setDefaultAction(self, a0: QtGui.QAction|None) -> 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) -> QtGui.QAction|None: ... + def popupMode(self) -> 'QToolButton.ToolButtonPopupMode': ... + def setPopupMode(self, mode: 'QToolButton.ToolButtonPopupMode') -> None: ... + def menu(self) -> QMenu|None: ... + def setMenu(self, menu: QMenu|None) -> 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(PyQt6.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: ... + @staticmethod + def showText(pos: QtCore.QPoint, text: str|None, widget: QWidget|None = ..., rect: QtCore.QRect = ..., msecShowTime: int = ...) -> None: ... + + +class QTreeView(QAbstractItemView): + + def __init__(self, parent: QWidget|None = ...) -> 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|None) -> bool: ... + def dragMoveEvent(self, event: QtGui.QDragMoveEvent|None) -> 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) -> None: ... + def mouseDoubleClickEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def mouseMoveEvent(self, event: QtGui.QMouseEvent|None) -> None: ... + def mousePressEvent(self, e: QtGui.QMouseEvent|None) -> None: ... + def drawTree(self, painter: QtGui.QPainter|None, region: QtGui.QRegion) -> None: ... + def drawBranches(self, painter: QtGui.QPainter|None, rect: QtCore.QRect, index: QtCore.QModelIndex) -> None: ... + def drawRow(self, painter: QtGui.QPainter|None, options: QStyleOptionViewItem, index: QtCore.QModelIndex) -> None: ... + def mouseReleaseEvent(self, event: QtGui.QMouseEvent|None) -> None: ... + def timerEvent(self, event: QtCore.QTimerEvent|None) -> None: ... + def paintEvent(self, e: QtGui.QPaintEvent|None) -> None: ... + def changeEvent(self, event: QtCore.QEvent|None) -> None: ... + def selectedIndexes(self) -> list[QtCore.QModelIndex]: ... + def visualRegionForSelection(self, selection: QtCore.QItemSelection) -> QtGui.QRegion: ... + def setSelection(self, rect: QtCore.QRect, command: QtCore.QItemSelectionModel.SelectionFlag) -> None: ... + def verticalOffset(self) -> int: ... + def horizontalOffset(self) -> int: ... + def moveCursor(self, cursorAction: QAbstractItemView.CursorAction, modifiers: 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: collections.abc.Iterable[int] = ...) -> None: ... + collapsed: typing.ClassVar[QtCore.pyqtSignal] + expanded: typing.ClassVar[QtCore.pyqtSignal] + 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) -> 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) -> None: ... + def header(self) -> QHeaderView|None: ... + def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel|None) -> None: ... + def setRootIndex(self, index: QtCore.QModelIndex) -> None: ... + def setModel(self, model: QtCore.QAbstractItemModel|None) -> None: ... + + +class QTreeWidgetItem(PyQt6.sip.wrapper): + + class ChildIndicatorPolicy(enum.Enum): + ShowIndicator = ... # type: QTreeWidgetItem.ChildIndicatorPolicy + DontShowIndicator = ... # type: QTreeWidgetItem.ChildIndicatorPolicy + DontShowIndicatorWhenChildless = ... # type: QTreeWidgetItem.ChildIndicatorPolicy + + class ItemType(enum.IntEnum): + Type = ... # type: QTreeWidgetItem.ItemType + UserType = ... # type: QTreeWidgetItem.ItemType + + @typing.overload + def __init__(self, parent: 'QTreeWidgetItem|None', after: 'QTreeWidgetItem|None', type: int = ...) -> None: ... + @typing.overload + def __init__(self, parent: 'QTreeWidgetItem|None', strings: collections.abc.Iterable[str|None], type: int = ...) -> None: ... + @typing.overload + def __init__(self, parent: 'QTreeWidgetItem|None', type: int = ...) -> None: ... + @typing.overload + def __init__(self, parent: 'QTreeWidget|None', after: 'QTreeWidgetItem|None', type: int = ...) -> None: ... + @typing.overload + def __init__(self, parent: 'QTreeWidget|None', strings: collections.abc.Iterable[str|None], type: int = ...) -> None: ... + @typing.overload + def __init__(self, parent: 'QTreeWidget|None', type: int = ...) -> None: ... + @typing.overload + def __init__(self, strings: collections.abc.Iterable[str|None], type: int = ...) -> None: ... + @typing.overload + def __init__(self, type: int = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QTreeWidgetItem') -> None: ... + + def __ge__(self, other: 'QTreeWidgetItem') -> bool: ... + 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') -> 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: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient) -> None: ... + def foreground(self, column: int) -> QtGui.QBrush: ... + def setBackground(self, column: int, brush: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient) -> None: ... + def background(self, column: int) -> QtGui.QBrush: ... + def takeChildren(self) -> list['QTreeWidgetItem']: ... + def insertChildren(self, index: int, children: collections.abc.Iterable['QTreeWidgetItem']) -> None: ... + def addChildren(self, children: collections.abc.Iterable['QTreeWidgetItem']) -> None: ... + def setSizeHint(self, column: int, size: QtCore.QSize) -> None: ... + def sizeHint(self, column: int) -> QtCore.QSize: ... + def indexOfChild(self, achild: 'QTreeWidgetItem|None') -> int: ... + def setFont(self, column: int, afont: QtGui.QFont) -> None: ... + def setWhatsThis(self, column: int, awhatsThis: str|None) -> None: ... + def setToolTip(self, column: int, atoolTip: str|None) -> None: ... + def setStatusTip(self, column: int, astatusTip: str|None) -> None: ... + def setIcon(self, column: int, aicon: QtGui.QIcon) -> None: ... + def setText(self, column: int, atext: str|None) -> None: ... + def setFlags(self, aflags: QtCore.Qt.ItemFlag) -> None: ... + def type(self) -> int: ... + def takeChild(self, index: int) -> 'QTreeWidgetItem|None': ... + def insertChild(self, index: int, child: 'QTreeWidgetItem|None') -> None: ... + def addChild(self, child: 'QTreeWidgetItem|None') -> None: ... + def columnCount(self) -> int: ... + def childCount(self) -> int: ... + def child(self, index: int) -> 'QTreeWidgetItem|None': ... + def parent(self) -> 'QTreeWidgetItem|None': ... + def write(self, out: QtCore.QDataStream) -> None: ... + def read(self, in_: QtCore.QDataStream) -> None: ... + def __lt__(self, other: 'QTreeWidgetItem') -> bool: ... + 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: ... + @typing.overload + def setTextAlignment(self, column: int, alignment: QtCore.Qt.AlignmentFlag) -> None: ... + @typing.overload + 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.ItemFlag: ... + def treeWidget(self) -> 'QTreeWidget|None': ... + def clone(self) -> 'QTreeWidgetItem|None': ... + + +class QTreeWidget(QTreeView): + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def setSupportedDragActions(self, actions: QtCore.Qt.DropAction) -> None: ... + def supportedDragActions(self) -> QtCore.Qt.DropAction: ... + def isPersistentEditorOpen(self, item: QTreeWidgetItem|None, column: int = ...) -> bool: ... + def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel|None) -> None: ... + def removeItemWidget(self, item: QTreeWidgetItem|None, column: int) -> None: ... + def itemBelow(self, item: QTreeWidgetItem|None) -> QTreeWidgetItem|None: ... + def itemAbove(self, item: QTreeWidgetItem|None) -> QTreeWidgetItem|None: ... + def setHeaderLabel(self, alabel: str|None) -> None: ... + def invisibleRootItem(self) -> QTreeWidgetItem|None: ... + def dropEvent(self, event: QtGui.QDropEvent|None) -> None: ... + def event(self, e: QtCore.QEvent|None) -> bool: ... + def itemFromIndex(self, index: QtCore.QModelIndex) -> QTreeWidgetItem|None: ... + def indexFromItem(self, item: QTreeWidgetItem|None, column: int = ...) -> QtCore.QModelIndex: ... + def supportedDropActions(self) -> QtCore.Qt.DropAction: ... + def dropMimeData(self, parent: QTreeWidgetItem|None, index: int, data: QtCore.QMimeData|None, action: QtCore.Qt.DropAction) -> bool: ... + def mimeData(self, items: collections.abc.Iterable[QTreeWidgetItem]) -> QtCore.QMimeData|None: ... + def mimeTypes(self) -> list[str]: ... + itemSelectionChanged: typing.ClassVar[QtCore.pyqtSignal] + currentItemChanged: typing.ClassVar[QtCore.pyqtSignal] + itemCollapsed: typing.ClassVar[QtCore.pyqtSignal] + itemExpanded: typing.ClassVar[QtCore.pyqtSignal] + itemChanged: typing.ClassVar[QtCore.pyqtSignal] + itemEntered: typing.ClassVar[QtCore.pyqtSignal] + itemActivated: typing.ClassVar[QtCore.pyqtSignal] + itemDoubleClicked: typing.ClassVar[QtCore.pyqtSignal] + itemClicked: typing.ClassVar[QtCore.pyqtSignal] + itemPressed: typing.ClassVar[QtCore.pyqtSignal] + def clear(self) -> None: ... + def collapseItem(self, item: QTreeWidgetItem|None) -> None: ... + def expandItem(self, item: QTreeWidgetItem|None) -> None: ... + def scrollToItem(self, item: QTreeWidgetItem|None, hint: QAbstractItemView.ScrollHint = ...) -> None: ... + def findItems(self, text: str|None, flags: QtCore.Qt.MatchFlag, column: int = ...) -> list[QTreeWidgetItem]: ... + def selectedItems(self) -> list[QTreeWidgetItem]: ... + def setItemWidget(self, item: QTreeWidgetItem|None, column: int, widget: QWidget|None) -> None: ... + def itemWidget(self, item: QTreeWidgetItem|None, column: int) -> QWidget|None: ... + def closePersistentEditor(self, item: QTreeWidgetItem|None, column: int = ...) -> None: ... + def openPersistentEditor(self, item: QTreeWidgetItem|None, column: int = ...) -> None: ... + def editItem(self, item: QTreeWidgetItem|None, column: int = ...) -> None: ... + def sortItems(self, column: int, order: QtCore.Qt.SortOrder) -> None: ... + def sortColumn(self) -> int: ... + def visualItemRect(self, item: QTreeWidgetItem|None) -> QtCore.QRect: ... + @typing.overload + def itemAt(self, p: QtCore.QPoint) -> QTreeWidgetItem|None: ... + @typing.overload + def itemAt(self, ax: int, ay: int) -> QTreeWidgetItem|None: ... + @typing.overload + def setCurrentItem(self, item: QTreeWidgetItem|None) -> None: ... + @typing.overload + def setCurrentItem(self, item: QTreeWidgetItem|None, column: int) -> None: ... + @typing.overload + def setCurrentItem(self, item: QTreeWidgetItem|None, column: int, command: QtCore.QItemSelectionModel.SelectionFlag) -> None: ... + def currentColumn(self) -> int: ... + def currentItem(self) -> QTreeWidgetItem|None: ... + def setHeaderLabels(self, labels: collections.abc.Iterable[str|None]) -> None: ... + def setHeaderItem(self, item: QTreeWidgetItem|None) -> None: ... + def headerItem(self) -> QTreeWidgetItem|None: ... + def addTopLevelItems(self, items: collections.abc.Iterable[QTreeWidgetItem]) -> None: ... + def insertTopLevelItems(self, index: int, items: collections.abc.Iterable[QTreeWidgetItem]) -> None: ... + def indexOfTopLevelItem(self, item: QTreeWidgetItem|None) -> int: ... + def takeTopLevelItem(self, index: int) -> QTreeWidgetItem|None: ... + def addTopLevelItem(self, item: QTreeWidgetItem|None) -> None: ... + def insertTopLevelItem(self, index: int, item: QTreeWidgetItem|None) -> None: ... + def topLevelItemCount(self) -> int: ... + def topLevelItem(self, index: int) -> QTreeWidgetItem|None: ... + def setColumnCount(self, columns: int) -> None: ... + def columnCount(self) -> int: ... + + +class QTreeWidgetItemIterator(PyQt6.sip.simplewrapper): + + class IteratorFlag(enum.Flag): + 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 + + @typing.overload + def __init__(self, item: QTreeWidgetItem|None, flags: 'QTreeWidgetItemIterator.IteratorFlag' = ...) -> None: ... + @typing.overload + def __init__(self, widget: QTreeWidget|None, flags: 'QTreeWidgetItemIterator.IteratorFlag' = ...) -> None: ... + @typing.overload + def __init__(self, it: 'QTreeWidgetItemIterator') -> None: ... + + def __isub__(self, n: int) -> 'QTreeWidgetItemIterator': ... + def __iadd__(self, n: int) -> 'QTreeWidgetItemIterator': ... + def value(self) -> QTreeWidgetItem|None: ... + + +class QUndoView(QListView): + + @typing.overload + def __init__(self, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, stack: QtGui.QUndoStack|None, parent: QWidget|None = ...) -> None: ... + @typing.overload + def __init__(self, group: QtGui.QUndoGroup|None, parent: QWidget|None = ...) -> None: ... + + def setGroup(self, group: QtGui.QUndoGroup|None) -> None: ... + def setStack(self, stack: QtGui.QUndoStack|None) -> None: ... + def cleanIcon(self) -> QtGui.QIcon: ... + def setCleanIcon(self, icon: QtGui.QIcon) -> None: ... + def emptyLabel(self) -> str: ... + def setEmptyLabel(self, label: str|None) -> None: ... + def group(self) -> QtGui.QUndoGroup|None: ... + def stack(self) -> QtGui.QUndoStack|None: ... + + +class QWhatsThis(PyQt6.sip.simplewrapper): + + def __init__(self, a0: 'QWhatsThis') -> None: ... + + @staticmethod + def createAction(parent: QtCore.QObject|None = ...) -> QtGui.QAction|None: ... + @staticmethod + def hideText() -> None: ... + @staticmethod + def showText(pos: QtCore.QPoint, text: str|None, widget: QWidget|None = ...) -> None: ... + @staticmethod + def leaveWhatsThisMode() -> None: ... + @staticmethod + def inWhatsThisMode() -> bool: ... + @staticmethod + def enterWhatsThisMode() -> None: ... + + +class QWidgetAction(QtGui.QAction): + + def __init__(self, parent: QtCore.QObject|None) -> None: ... + + def createdWidgets(self) -> list[QWidget]: ... + def deleteWidget(self, widget: QWidget|None) -> None: ... + def createWidget(self, parent: QWidget|None) -> QWidget|None: ... + def eventFilter(self, a0: QtCore.QObject|None, a1: QtCore.QEvent|None) -> bool: ... + def event(self, a0: QtCore.QEvent|None) -> bool: ... + def releaseWidget(self, widget: QWidget|None) -> None: ... + def requestWidget(self, parent: QWidget|None) -> QWidget|None: ... + def defaultWidget(self) -> QWidget|None: ... + def setDefaultWidget(self, w: QWidget|None) -> None: ... + + +class QWizard(QDialog): + + class WizardOption(enum.Flag): + 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 + StretchBanner = ... # type: QWizard.WizardOption + + class WizardStyle(enum.Enum): + ClassicStyle = ... # type: QWizard.WizardStyle + ModernStyle = ... # type: QWizard.WizardStyle + MacStyle = ... # type: QWizard.WizardStyle + AeroStyle = ... # type: QWizard.WizardStyle + + class WizardPixmap(enum.Enum): + WatermarkPixmap = ... # type: QWizard.WizardPixmap + LogoPixmap = ... # type: QWizard.WizardPixmap + BannerPixmap = ... # type: QWizard.WizardPixmap + BackgroundPixmap = ... # type: QWizard.WizardPixmap + + class WizardButton(enum.Enum): + 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 + + def __init__(self, parent: QWidget|None = ..., flags: QtCore.Qt.WindowType = ...) -> None: ... + + def setCurrentId(self, id: int) -> None: ... + pageRemoved: typing.ClassVar[QtCore.pyqtSignal] + pageAdded: typing.ClassVar[QtCore.pyqtSignal] + def sideWidget(self) -> QWidget|None: ... + def setSideWidget(self, widget: QWidget|None) -> None: ... + def pageIds(self) -> 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) -> None: ... + def resizeEvent(self, event: QtGui.QResizeEvent|None) -> None: ... + def event(self, event: QtCore.QEvent|None) -> bool: ... + def restart(self) -> None: ... + def next(self) -> None: ... + def back(self) -> None: ... + customButtonClicked: typing.ClassVar[QtCore.pyqtSignal] + helpRequested: typing.ClassVar[QtCore.pyqtSignal] + currentIdChanged: typing.ClassVar[QtCore.pyqtSignal] + 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|None: ... + def setButton(self, which: 'QWizard.WizardButton', button: QAbstractButton|None) -> None: ... + def setButtonLayout(self, layout: collections.abc.Iterable['QWizard.WizardButton']) -> None: ... + def buttonText(self, which: 'QWizard.WizardButton') -> str: ... + def setButtonText(self, which: 'QWizard.WizardButton', text: str|None) -> None: ... + def options(self) -> 'QWizard.WizardOption': ... + def setOptions(self, options: '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|None) -> typing.Any: ... + def setField(self, name: str|None, value: typing.Any) -> None: ... + def nextId(self) -> int: ... + def validateCurrentPage(self) -> bool: ... + def currentId(self) -> int: ... + def currentPage(self) -> 'QWizardPage|None': ... + def startId(self) -> int: ... + def setStartId(self, id: int) -> None: ... + def visitedIds(self) -> list[int]: ... + def hasVisitedPage(self, id: int) -> bool: ... + def page(self, id: int) -> 'QWizardPage|None': ... + def setPage(self, id: int, page: 'QWizardPage|None') -> None: ... + def addPage(self, page: 'QWizardPage|None') -> int: ... + + +class QWizardPage(QWidget): + + def __init__(self, parent: QWidget|None = ...) -> None: ... + + def wizard(self) -> QWizard|None: ... + def registerField(self, name: str|None, widget: QWidget|None, property: str = ..., changedSignal: PYQT_SIGNAL = ...) -> None: ... + def field(self, name: str|None) -> typing.Any: ... + def setField(self, name: str|None, value: typing.Any) -> None: ... + completeChanged: typing.ClassVar[QtCore.pyqtSignal] + 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) -> 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) -> None: ... + def title(self) -> str: ... + def setTitle(self, title: str|None) -> None: ... + + +QWIDGETSIZE_MAX = ... # type: int + + +@typing.overload +def qDrawPlainRoundedRect(painter: QtGui.QPainter|None, rect: QtCore.QRect, rx: float, ry: float, lineColor: QtGui.QColor|QtCore.Qt.GlobalColor|int, lineWidth: int = ..., fill: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient = ...) -> None: ... +@typing.overload +def qDrawPlainRoundedRect(p: QtGui.QPainter|None, x: int, y: int, w: int, h: int, rx: float, ry: float, a7: QtGui.QColor|QtCore.Qt.GlobalColor|int, lineWidth: int = ..., fill: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient = ...) -> None: ... +def qDrawBorderPixmap(painter: QtGui.QPainter|None, target: QtCore.QRect, margins: QtCore.QMargins, pixmap: QtGui.QPixmap) -> None: ... +@typing.overload +def qDrawPlainRect(p: QtGui.QPainter|None, x: int, y: int, w: int, h: int, a5: QtGui.QColor|QtCore.Qt.GlobalColor|int, lineWidth: int = ..., fill: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient = ...) -> None: ... +@typing.overload +def qDrawPlainRect(p: QtGui.QPainter|None, r: QtCore.QRect, a2: QtGui.QColor|QtCore.Qt.GlobalColor|int, lineWidth: int = ..., fill: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient = ...) -> None: ... +@typing.overload +def qDrawWinPanel(p: QtGui.QPainter|None, x: int, y: int, w: int, h: int, pal: QtGui.QPalette, sunken: bool = ..., fill: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient = ...) -> None: ... +@typing.overload +def qDrawWinPanel(p: QtGui.QPainter|None, r: QtCore.QRect, pal: QtGui.QPalette, sunken: bool = ..., fill: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient = ...) -> None: ... +@typing.overload +def qDrawWinButton(p: QtGui.QPainter|None, x: int, y: int, w: int, h: int, pal: QtGui.QPalette, sunken: bool = ..., fill: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient = ...) -> None: ... +@typing.overload +def qDrawWinButton(p: QtGui.QPainter|None, r: QtCore.QRect, pal: QtGui.QPalette, sunken: bool = ..., fill: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient = ...) -> None: ... +@typing.overload +def qDrawShadePanel(p: QtGui.QPainter|None, x: int, y: int, w: int, h: int, pal: QtGui.QPalette, sunken: bool = ..., lineWidth: int = ..., fill: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient = ...) -> None: ... +@typing.overload +def qDrawShadePanel(p: QtGui.QPainter|None, r: QtCore.QRect, pal: QtGui.QPalette, sunken: bool = ..., lineWidth: int = ..., fill: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient = ...) -> None: ... +@typing.overload +def qDrawShadeRect(p: QtGui.QPainter|None, x: int, y: int, w: int, h: int, pal: QtGui.QPalette, sunken: bool = ..., lineWidth: int = ..., midLineWidth: int = ..., fill: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient = ...) -> None: ... +@typing.overload +def qDrawShadeRect(p: QtGui.QPainter|None, r: QtCore.QRect, pal: QtGui.QPalette, sunken: bool = ..., lineWidth: int = ..., midLineWidth: int = ..., fill: QtGui.QBrush|QtGui.QColor|QtCore.Qt.GlobalColor|int|QtGui.QGradient = ...) -> None: ... +@typing.overload +def qDrawShadeLine(p: QtGui.QPainter|None, 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|None, p1: QtCore.QPoint, p2: QtCore.QPoint, pal: QtGui.QPalette, sunken: bool = ..., lineWidth: int = ..., midLineWidth: int = ...) -> None: ... diff --git a/typings/PyQt6/QtXml.pyi b/typings/PyQt6/QtXml.pyi new file mode 100644 index 00000000..4fa7b24c --- /dev/null +++ b/typings/PyQt6/QtXml.pyi @@ -0,0 +1,431 @@ +# The PEP 484 type hints stub file for the QtXml module. +# +# Generated by SIP 6.15.3 +# +# Copyright (c) 2026 Riverbank Computing Limited +# +# This file is part of PyQt6. +# +# 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 collections, re, typing, enum + +try: + from warnings import deprecated +except ImportError: + pass + +import PyQt6.sip + +from PyQt6 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[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal] + + +class QDomImplementation(PyQt6.sip.simplewrapper): + + class InvalidDataPolicy(enum.Enum): + 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|None, qName: str|None, doctype: 'QDomDocumentType') -> 'QDomDocument': ... + def createDocumentType(self, qName: str|None, publicId: str|None, systemId: str|None) -> 'QDomDocumentType': ... + def hasFeature(self, feature: str|None, version: str|None) -> bool: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + +class QDomNode(PyQt6.sip.simplewrapper): + + class EncodingPolicy(enum.Enum): + EncodingFromDocument = ... # type: QDomNode.EncodingPolicy + EncodingFromTextStream = ... # type: QDomNode.EncodingPolicy + + class NodeType(enum.Enum): + 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|None = ..., namespaceURI: str|None = ...) -> 'QDomElement': ... + def previousSiblingElement(self, tagName: str|None = ..., namespaceURI: str|None = ...) -> 'QDomElement': ... + def lastChildElement(self, tagName: str|None = ..., namespaceURI: str|None = ...) -> 'QDomElement': ... + def firstChildElement(self, tagName: str|None = ..., namespaceURI: str|None = ...) -> '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|None) -> '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) -> None: ... + def prefix(self) -> str: ... + def setNodeValue(self, a0: str|None) -> 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|None, version: str|None) -> 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': ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + +class QDomNodeList(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDomNodeList') -> None: ... + + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + 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): + + class ParseOption(enum.Enum): + Default = ... # type: QDomDocument.ParseOption + UseNamespaceProcessing = ... # type: QDomDocument.ParseOption + PreserveSpacingOnlyNodes = ... # type: QDomDocument.ParseOption + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, name: str|None) -> 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, reader: QtCore.QXmlStreamReader|None, options: 'QDomDocument.ParseOption' = ...) -> tuple[bool, str, int, int]: ... + @typing.overload + def setContent(self, device: QtCore.QIODevice|None, options: 'QDomDocument.ParseOption' = ...) -> tuple[bool, str, int, int]: ... + @typing.overload + def setContent(self, data: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, options: 'QDomDocument.ParseOption' = ...) -> tuple[bool, str, int, int]: ... + @typing.overload + def setContent(self, text: QtCore.QByteArray|bytes|bytearray|memoryview, namespaceProcessing: bool) -> typing.Tuple[bool, str, int, int]: ... + @typing.overload + def setContent(self, text: str|None, namespaceProcessing: bool) -> typing.Tuple[bool, str, int, int]: ... + @typing.overload + def setContent(self, dev: QtCore.QIODevice|None, namespaceProcessing: bool) -> typing.Tuple[bool, str, int, int]: ... + @typing.overload + def setContent(self, reader: QtCore.QXmlStreamReader|None, namespaceProcessing: bool) -> 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|None) -> 'QDomElement': ... + def elementsByTagNameNS(self, nsURI: str|None, localName: str|None) -> QDomNodeList: ... + def createAttributeNS(self, nsURI: str|None, qName: str|None) -> 'QDomAttr': ... + def createElementNS(self, nsURI: str|None, qName: str|None) -> 'QDomElement': ... + def importNode(self, importedNode: QDomNode, deep: bool) -> QDomNode: ... + def elementsByTagName(self, tagname: str|None) -> QDomNodeList: ... + def createEntityReference(self, name: str|None) -> 'QDomEntityReference': ... + def createAttribute(self, name: str|None) -> 'QDomAttr': ... + def createProcessingInstruction(self, target: str|None, data: str|None) -> 'QDomProcessingInstruction': ... + def createCDATASection(self, data: str|None) -> 'QDomCDATASection': ... + def createComment(self, data: str|None) -> 'QDomComment': ... + def createTextNode(self, data: str|None) -> 'QDomText': ... + def createDocumentFragment(self) -> 'QDomDocumentFragment': ... + def createElement(self, tagName: str|None) -> 'QDomElement': ... + + +class QDomNamedNodeMap(PyQt6.sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QDomNamedNodeMap') -> None: ... + + def contains(self, name: str|None) -> 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|None, localName: str|None) -> QDomNode: ... + def setNamedItemNS(self, newNode: QDomNode) -> QDomNode: ... + def namedItemNS(self, nsURI: str|None, localName: str|None) -> QDomNode: ... + def item(self, index: int) -> QDomNode: ... + def removeNamedItem(self, name: str|None) -> QDomNode: ... + def setNamedItem(self, newNode: QDomNode) -> QDomNode: ... + def namedItem(self, name: str|None) -> QDomNode: ... + def __ne__(self, other: object): ... + def __eq__(self, other: object): ... + + +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) -> None: ... + def data(self) -> str: ... + def length(self) -> int: ... + def replaceData(self, offset: int, count: int, arg: str|None) -> None: ... + def deleteData(self, offset: int, count: int) -> None: ... + def insertData(self, offset: int, arg: str|None) -> None: ... + def appendData(self, arg: str|None) -> 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) -> 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) -> None: ... + def tagName(self) -> str: ... + def hasAttributeNS(self, nsURI: str|None, localName: str|None) -> bool: ... + def elementsByTagNameNS(self, nsURI: str|None, localName: str|None) -> QDomNodeList: ... + def setAttributeNodeNS(self, newAttr: QDomAttr) -> QDomAttr: ... + def attributeNodeNS(self, nsURI: str|None, localName: str|None) -> QDomAttr: ... + def removeAttributeNS(self, nsURI: str|None, localName: str|None) -> None: ... + @typing.overload + def setAttributeNS(self, nsURI: str|None, qName: str|None, value: str|None) -> None: ... + @typing.overload + def setAttributeNS(self, nsURI: str|None, qName: str|None, value: float) -> None: ... + @typing.overload + def setAttributeNS(self, nsURI: str|None, qName: str|None, value: int) -> None: ... + def attributeNS(self, nsURI: str|None, localName: str|None, defaultValue: str|None = ...) -> str: ... + def hasAttribute(self, name: str|None) -> bool: ... + def elementsByTagName(self, tagname: str|None) -> QDomNodeList: ... + def removeAttributeNode(self, oldAttr: QDomAttr) -> QDomAttr: ... + def setAttributeNode(self, newAttr: QDomAttr) -> QDomAttr: ... + def attributeNode(self, name: str|None) -> QDomAttr: ... + def removeAttribute(self, name: str|None) -> None: ... + @typing.overload + def setAttribute(self, name: str|None, value: str|None) -> None: ... + @typing.overload + def setAttribute(self, name: str|None, value: int) -> None: ... + @typing.overload + def setAttribute(self, name: str|None, value: int) -> None: ... + @typing.overload + def setAttribute(self, name: str|None, value: float) -> None: ... + @typing.overload + def setAttribute(self, name: str|None, value: int) -> None: ... + def attribute(self, name: str|None, defaultValue: str|None = ...) -> 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) -> None: ... + def data(self) -> str: ... + def target(self) -> str: ... diff --git a/typings/PyQt6/sip.pyi b/typings/PyQt6/sip.pyi new file mode 100644 index 00000000..9dfe657e --- /dev/null +++ b/typings/PyQt6/sip.pyi @@ -0,0 +1,99 @@ +# SPDX-License-Identifier: BSD-2-Clause + +# Copyright (c) 2024 Phil Thompson + + +from typing import Any, Generic, Iterable, overload, Sequence, TypeVar, Union + + +# PEP 484 has no explicit support for the buffer protocol so we just name types +# we know that implement it. +Buffer = Union[bytes, bytearray, memoryview, 'array', 'voidptr'] + + +# Constants. +SIP_VERSION = ... # type: int +SIP_VERSION_STR = ... # type: str + + +# The bases for SIP generated types. +class wrappertype: + def __init__(self, *args, **kwargs) -> None: ... + +class simplewrapper: + def __init__(self, *args, **kwargs) -> None: ... + +class wrapper(simplewrapper): ... + + +# The array type. +_T = TypeVar('_T') + +class array(Sequence[_T], Generic[_T]): + + @overload + def __getitem__(self, key: int) -> _T: ... + @overload + def __getitem__(self, key: slice) -> 'array[_T]': ... + + @overload + def __setitem__(self, key: int, value: _T) -> None: ... + @overload + def __setitem__(self, key: slice, value: Iterable[_T]) -> None: ... + + @overload + def __delitem__(self, key: int) -> None: ... + @overload + def __delitem__(self, key: slice) -> None: ... + + def __len__(self) -> int: ... + + +# The voidptr type. +class voidptr: + + def __init__(self, addr: Union[int, Buffer], size: int = -1, writeable: bool = True) -> None: ... + + def __int__(self) -> int: ... + + @overload + def __getitem__(self, i: int) -> bytes: ... + + @overload + def __getitem__(self, s: slice) -> 'voidptr': ... + + def __len__(self) -> int: ... + + def __setitem__(self, i: Union[int, slice], v: Buffer) -> None: ... + + def asarray(self, size: int = -1) -> array[int]: ... + + # Python doesn't expose the capsule type. + def ascapsule(self) -> Any: ... + + def asstring(self, size: int = -1) -> bytes: ... + + def getsize(self) -> int: ... + + def getwriteable(self) -> bool: ... + + def setsize(self, size: int) -> None: ... + + def setwriteable(self, writeable: bool) -> None: ... + + +# Remaining functions. +def assign(obj: simplewrapper, other: simplewrapper) -> None: ... +def cast(obj: simplewrapper, type: wrappertype) -> simplewrapper: ... +def delete(obj: simplewrapper) -> None: ... +def dump(obj: simplewrapper) -> None: ... +def enableautoconversion(type: wrappertype, enable: bool) -> bool: ... +def isdeleted(obj: simplewrapper) -> bool: ... +def ispycreated(obj: simplewrapper) -> bool: ... +def ispyowned(obj: simplewrapper) -> bool: ... +def setdeleted(obj: simplewrapper) -> None: ... +def settracemask(mask: int) -> None: ... +def transferback(obj: wrapper) -> None: ... +def transferto(obj: wrapper, owner: wrapper) -> None: ... +def unwrapinstance(obj: simplewrapper) -> None: ... +def wrapinstance(addr: int, type: wrappertype) -> simplewrapper: ... From 268a65a2d687ef8247c3b02101fda75c685c8de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Thu, 28 May 2026 11:28:49 +0200 Subject: [PATCH 2/4] Bump Python version in Github actions. --- .github/workflows/build.yml | 2 +- .github/workflows/linters.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef004674..7d4b314d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - name: Set environmental variables shell: bash diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 711a3a79..fbf83dc3 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -12,7 +12,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.12 + python-version: 3.13 - uses: abatilo/actions-poetry@v2 - name: Install run: | From cd3733be087088d3522b9990ebe7fe5e39a3d33a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Thu, 28 May 2026 19:36:19 +0200 Subject: [PATCH 3/4] Update README. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 83521882..805b1431 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Download the archive for your MO2 version and extract it directly into your MO2 - Mod Organizer **2.3.2**: [Download](https://github.com/ModOrganizer2/modorganizer-basic_games/releases/download/v0.0.3/basic_games-0.0.3.zip) and extract in your `plugins/` folder (see below). -- Mod Organizer **2.4**: Basic games is included in Mod Organizer 2.4. +- Mod Organizer **2.4 and later**: Basic games is already included. - If you want to use new game plugins that have not been included in the release, [download the latest archive](https://github.com/ModOrganizer2/modorganizer-basic_games/archive/master.zip) and extract the files in the existing `basic_games` folder, overwriting existing files. @@ -217,7 +217,7 @@ Game IDs can be found here: We recommend using a dedicated Python environment to write a new basic game plugins. -1. Install the required version of Python --- Currently Python 3.11 (MO2 2.5). +1. Install the required version of Python --- Currently Python 3.13 (MO2 2.6). 2. Remove the repository at `${MO2_INSTALL}/plugins/basic_games`. 3. Clone this repository at the location of the old plugin ( `${MO2_INSTALL}/plugins/basic_games`). @@ -225,7 +225,7 @@ We recommend using a dedicated Python environment to write a new basic game plug ```bash # create a virtual environment (recommended) - py -3.11 -m venv .\venv + py -3.13 -m venv .\venv .\venv\scripts\Activate.ps1 # "install" poetry and the development package From 0c71f1ed4793d2d77c3c3f05c04a5c0976430eb1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 28 May 2026 17:37:08 +0000 Subject: [PATCH 4/4] [pre-commit.ci] Auto fixes from pre-commit.com hooks. --- typings/PyQt6/QAxContainer.pyi | 8 ++++---- typings/PyQt6/QtBluetooth.pyi | 8 ++++---- typings/PyQt6/QtDBus.pyi | 8 ++++---- typings/PyQt6/QtDesigner.pyi | 8 ++++---- typings/PyQt6/QtGui.pyi | 8 ++++---- typings/PyQt6/QtHelp.pyi | 8 ++++---- typings/PyQt6/QtMultimedia.pyi | 8 ++++---- typings/PyQt6/QtMultimediaWidgets.pyi | 8 ++++---- typings/PyQt6/QtNetwork.pyi | 8 ++++---- typings/PyQt6/QtNfc.pyi | 8 ++++---- typings/PyQt6/QtOpenGL.pyi | 8 ++++---- typings/PyQt6/QtOpenGLWidgets.pyi | 8 ++++---- typings/PyQt6/QtPdf.pyi | 8 ++++---- typings/PyQt6/QtPdfWidgets.pyi | 8 ++++---- typings/PyQt6/QtPositioning.pyi | 8 ++++---- typings/PyQt6/QtPrintSupport.pyi | 8 ++++---- typings/PyQt6/QtQml.pyi | 8 ++++---- typings/PyQt6/QtQuick.pyi | 8 ++++---- typings/PyQt6/QtQuick3D.pyi | 8 ++++---- typings/PyQt6/QtQuickWidgets.pyi | 8 ++++---- typings/PyQt6/QtRemoteObjects.pyi | 8 ++++---- typings/PyQt6/QtSensors.pyi | 8 ++++---- typings/PyQt6/QtSerialPort.pyi | 8 ++++---- typings/PyQt6/QtSpatialAudio.pyi | 8 ++++---- typings/PyQt6/QtSql.pyi | 8 ++++---- typings/PyQt6/QtStateMachine.pyi | 8 ++++---- typings/PyQt6/QtSvg.pyi | 8 ++++---- typings/PyQt6/QtSvgWidgets.pyi | 8 ++++---- typings/PyQt6/QtTest.pyi | 8 ++++---- typings/PyQt6/QtTextToSpeech.pyi | 8 ++++---- typings/PyQt6/QtWebChannel.pyi | 8 ++++---- typings/PyQt6/QtWebSockets.pyi | 8 ++++---- typings/PyQt6/QtXml.pyi | 8 ++++---- 33 files changed, 132 insertions(+), 132 deletions(-) diff --git a/typings/PyQt6/QAxContainer.pyi b/typings/PyQt6/QAxContainer.pyi index f9b753dc..d3d528e5 100644 --- a/typings/PyQt6/QAxContainer.pyi +++ b/typings/PyQt6/QAxContainer.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtBluetooth.pyi b/typings/PyQt6/QtBluetooth.pyi index a9e0b1f9..4f9c220b 100644 --- a/typings/PyQt6/QtBluetooth.pyi +++ b/typings/PyQt6/QtBluetooth.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtDBus.pyi b/typings/PyQt6/QtDBus.pyi index 94a36d6c..a9f7d46b 100644 --- a/typings/PyQt6/QtDBus.pyi +++ b/typings/PyQt6/QtDBus.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtDesigner.pyi b/typings/PyQt6/QtDesigner.pyi index 707e168f..89c73b66 100644 --- a/typings/PyQt6/QtDesigner.pyi +++ b/typings/PyQt6/QtDesigner.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtGui.pyi b/typings/PyQt6/QtGui.pyi index 0a7bfbac..8c48e490 100644 --- a/typings/PyQt6/QtGui.pyi +++ b/typings/PyQt6/QtGui.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtHelp.pyi b/typings/PyQt6/QtHelp.pyi index 1c96f473..01f2eca0 100644 --- a/typings/PyQt6/QtHelp.pyi +++ b/typings/PyQt6/QtHelp.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtMultimedia.pyi b/typings/PyQt6/QtMultimedia.pyi index 0e3e3fe5..0ad7caab 100644 --- a/typings/PyQt6/QtMultimedia.pyi +++ b/typings/PyQt6/QtMultimedia.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtMultimediaWidgets.pyi b/typings/PyQt6/QtMultimediaWidgets.pyi index 987be5f8..a958df7a 100644 --- a/typings/PyQt6/QtMultimediaWidgets.pyi +++ b/typings/PyQt6/QtMultimediaWidgets.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtNetwork.pyi b/typings/PyQt6/QtNetwork.pyi index 2a012285..bd2216d9 100644 --- a/typings/PyQt6/QtNetwork.pyi +++ b/typings/PyQt6/QtNetwork.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtNfc.pyi b/typings/PyQt6/QtNfc.pyi index 9811ad6c..2b299c41 100644 --- a/typings/PyQt6/QtNfc.pyi +++ b/typings/PyQt6/QtNfc.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtOpenGL.pyi b/typings/PyQt6/QtOpenGL.pyi index a18c2ea9..7bdb50d1 100644 --- a/typings/PyQt6/QtOpenGL.pyi +++ b/typings/PyQt6/QtOpenGL.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtOpenGLWidgets.pyi b/typings/PyQt6/QtOpenGLWidgets.pyi index cf18716a..de62c272 100644 --- a/typings/PyQt6/QtOpenGLWidgets.pyi +++ b/typings/PyQt6/QtOpenGLWidgets.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtPdf.pyi b/typings/PyQt6/QtPdf.pyi index 65366855..77d0adc5 100644 --- a/typings/PyQt6/QtPdf.pyi +++ b/typings/PyQt6/QtPdf.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtPdfWidgets.pyi b/typings/PyQt6/QtPdfWidgets.pyi index 3d2b5c4e..6483bfc6 100644 --- a/typings/PyQt6/QtPdfWidgets.pyi +++ b/typings/PyQt6/QtPdfWidgets.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtPositioning.pyi b/typings/PyQt6/QtPositioning.pyi index c0c9335f..eed211da 100644 --- a/typings/PyQt6/QtPositioning.pyi +++ b/typings/PyQt6/QtPositioning.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtPrintSupport.pyi b/typings/PyQt6/QtPrintSupport.pyi index 66dc37a3..47540064 100644 --- a/typings/PyQt6/QtPrintSupport.pyi +++ b/typings/PyQt6/QtPrintSupport.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtQml.pyi b/typings/PyQt6/QtQml.pyi index 177afd73..e871d693 100644 --- a/typings/PyQt6/QtQml.pyi +++ b/typings/PyQt6/QtQml.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtQuick.pyi b/typings/PyQt6/QtQuick.pyi index 95b58e20..539f3e6a 100644 --- a/typings/PyQt6/QtQuick.pyi +++ b/typings/PyQt6/QtQuick.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtQuick3D.pyi b/typings/PyQt6/QtQuick3D.pyi index 67e82c4c..4bfcf577 100644 --- a/typings/PyQt6/QtQuick3D.pyi +++ b/typings/PyQt6/QtQuick3D.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtQuickWidgets.pyi b/typings/PyQt6/QtQuickWidgets.pyi index 80be5971..d1adf1ce 100644 --- a/typings/PyQt6/QtQuickWidgets.pyi +++ b/typings/PyQt6/QtQuickWidgets.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtRemoteObjects.pyi b/typings/PyQt6/QtRemoteObjects.pyi index fd4b0bb7..8c6f5acd 100644 --- a/typings/PyQt6/QtRemoteObjects.pyi +++ b/typings/PyQt6/QtRemoteObjects.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtSensors.pyi b/typings/PyQt6/QtSensors.pyi index ec21ac0b..022c6e9c 100644 --- a/typings/PyQt6/QtSensors.pyi +++ b/typings/PyQt6/QtSensors.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtSerialPort.pyi b/typings/PyQt6/QtSerialPort.pyi index 63822f26..8bc9aa03 100644 --- a/typings/PyQt6/QtSerialPort.pyi +++ b/typings/PyQt6/QtSerialPort.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtSpatialAudio.pyi b/typings/PyQt6/QtSpatialAudio.pyi index 08e4d3eb..dbdbcbad 100644 --- a/typings/PyQt6/QtSpatialAudio.pyi +++ b/typings/PyQt6/QtSpatialAudio.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtSql.pyi b/typings/PyQt6/QtSql.pyi index 4680fafe..9b7b639a 100644 --- a/typings/PyQt6/QtSql.pyi +++ b/typings/PyQt6/QtSql.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtStateMachine.pyi b/typings/PyQt6/QtStateMachine.pyi index bb519089..be332106 100644 --- a/typings/PyQt6/QtStateMachine.pyi +++ b/typings/PyQt6/QtStateMachine.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtSvg.pyi b/typings/PyQt6/QtSvg.pyi index 783329fe..1bb2c804 100644 --- a/typings/PyQt6/QtSvg.pyi +++ b/typings/PyQt6/QtSvg.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtSvgWidgets.pyi b/typings/PyQt6/QtSvgWidgets.pyi index 75050e54..491b4d70 100644 --- a/typings/PyQt6/QtSvgWidgets.pyi +++ b/typings/PyQt6/QtSvgWidgets.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtTest.pyi b/typings/PyQt6/QtTest.pyi index 6c3c3b5a..abde6b8f 100644 --- a/typings/PyQt6/QtTest.pyi +++ b/typings/PyQt6/QtTest.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtTextToSpeech.pyi b/typings/PyQt6/QtTextToSpeech.pyi index c101cd88..4fd4ae91 100644 --- a/typings/PyQt6/QtTextToSpeech.pyi +++ b/typings/PyQt6/QtTextToSpeech.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtWebChannel.pyi b/typings/PyQt6/QtWebChannel.pyi index 4f87e1ca..f8311ec8 100644 --- a/typings/PyQt6/QtWebChannel.pyi +++ b/typings/PyQt6/QtWebChannel.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtWebSockets.pyi b/typings/PyQt6/QtWebSockets.pyi index f3264698..3b567551 100644 --- a/typings/PyQt6/QtWebSockets.pyi +++ b/typings/PyQt6/QtWebSockets.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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. diff --git a/typings/PyQt6/QtXml.pyi b/typings/PyQt6/QtXml.pyi index 4fa7b24c..e0b69560 100644 --- a/typings/PyQt6/QtXml.pyi +++ b/typings/PyQt6/QtXml.pyi @@ -3,19 +3,19 @@ # Generated by SIP 6.15.3 # # Copyright (c) 2026 Riverbank Computing Limited -# +# # This file is part of PyQt6. -# +# # 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.