Skip to content

Commit

Permalink
Add some missing stubs to QtCompat
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrese committed Feb 3, 2025
1 parent c5ecefc commit 8cabcdb
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions Qt-stubs/QtCompat.pyi
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import typing

from . import QtWidgets


from . import QtCore


class QHeaderView:
@typing.overload
@staticmethod
Expand All @@ -11,4 +12,23 @@ class QHeaderView:
@staticmethod
def setSectionResizeMode(header: QtWidgets.QHeaderView, mode: QtWidgets.QHeaderView.ResizeMode) -> None: ...


def delete(obj: object) -> None: ...


def getCppPointer(obj: object) -> typing.Tuple[int, ...]: ...


def isValid(obj: object) -> bool: ...


def loadUi(uifile: str, baseinstance: typing.Optional[None | QtWidgets.QWidget] = ...) -> QtWidgets.QWidget: ...


def load_ui(uifile: str, baseinstance: typing.Optional[None | QtWidgets.QWidget] = ...) -> QtWidgets.QWidget: ...


def translate(context: str, sourceText: str, *args: typing.Any) -> str: ...


def wrapInstance(address: int, qt_type: type) -> object | QtCore.QObject | QtWidgets.QWidget: ...

0 comments on commit 8cabcdb

Please sign in to comment.