diff options
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/bug_1048.py')
-rw-r--r-- | sources/pyside6/tests/QtWidgets/bug_1048.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sources/pyside6/tests/QtWidgets/bug_1048.py b/sources/pyside6/tests/QtWidgets/bug_1048.py index 18fc62782..0c5cdb0b5 100644 --- a/sources/pyside6/tests/QtWidgets/bug_1048.py +++ b/sources/pyside6/tests/QtWidgets/bug_1048.py @@ -35,11 +35,12 @@ sys.path.append(os.fspath(Path(__file__).resolve().parents[1] / "util")) from init_paths import init_test_paths init_test_paths() -from PySide6 import QtWidgets +from PySide6.QtWidgets import QApplication, QGridLayout, QWidget -a = QtWidgets.QApplication([]) -w = QtWidgets.QWidget() -l = QtWidgets.QGridLayout(w) +a = QApplication([]) + +w = QWidget() +l = QGridLayout(w) l.itemAtPosition(0, 0) |