Skip to content

Commit 7a88d16

Browse files
authored
Merge pull request #428 from jdrese/master
Add some missing stubs to QtCompat
2 parents c5ecefc + 8cabcdb commit 7a88d16

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

Qt-stubs/QtCompat.pyi

+23-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import typing
2-
2+
33
from . import QtWidgets
4-
5-
4+
from . import QtCore
5+
6+
67
class QHeaderView:
78
@typing.overload
89
@staticmethod
@@ -11,4 +12,23 @@ class QHeaderView:
1112
@staticmethod
1213
def setSectionResizeMode(header: QtWidgets.QHeaderView, mode: QtWidgets.QHeaderView.ResizeMode) -> None: ...
1314

15+
16+
def delete(obj: object) -> None: ...
17+
18+
19+
def getCppPointer(obj: object) -> typing.Tuple[int, ...]: ...
20+
21+
22+
def isValid(obj: object) -> bool: ...
23+
24+
25+
def loadUi(uifile: str, baseinstance: typing.Optional[None | QtWidgets.QWidget] = ...) -> QtWidgets.QWidget: ...
26+
27+
28+
def load_ui(uifile: str, baseinstance: typing.Optional[None | QtWidgets.QWidget] = ...) -> QtWidgets.QWidget: ...
29+
30+
1431
def translate(context: str, sourceText: str, *args: typing.Any) -> str: ...
32+
33+
34+
def wrapInstance(address: int, qt_type: type) -> object | QtCore.QObject | QtWidgets.QWidget: ...

0 commit comments

Comments
 (0)