Skip to content

Commit ede0c54

Browse files
committed
Also fixes QGroupBox() reported in python-qt-tools#147
1 parent c002ab0 commit ede0c54

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

PyQt5-stubs/QtWidgets.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6540,9 +6540,9 @@ class QGridLayout(QLayout):
65406540
class QGroupBox(QWidget):
65416541

65426542
@typing.overload
6543-
def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ...
6543+
def __init__(self, parent: typing.Optional[QWidget] = ..., *, objectName: str = ...) -> None: ...
65446544
@typing.overload
6545-
def __init__(self, title: str, parent: typing.Optional[QWidget] = ...) -> None: ...
6545+
def __init__(self, title: str, parent: typing.Optional[QWidget] = ..., *, objectName: str = ...) -> None: ...
65466546

65476547
def mouseReleaseEvent(self, event: QtGui.QMouseEvent) -> None: ...
65486548
def mouseMoveEvent(self, event: QtGui.QMouseEvent) -> None: ...

tests/qgroupbox.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from PyQt5.QtWidgets import QApplication, QGroupBox
2+
3+
app = QApplication(['my_program', '-platform', 'offscreen'])
4+
5+
groupBox = QGroupBox(objectName='some_name')

0 commit comments

Comments
 (0)