Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.14.2
-
None
-
-
96203cf77e2e2367a4461946f47dd9205c7fbe9c
Description
The second last code block of the 'Using UI Files' tutorial on:
https://doc.qt.io/qtforpython/tutorials/basictutorial/uifiles.html
is missing an import from QtCore for QIODevice:
Traceback (most recent call last): File "mainwindow_2.py", line 11, in <module> if not ui_file.open(QIODevice.ReadOnly): NameError: name 'QIODevice' is not defined
Please add this import:
from PySide2.QtCore import QFile, QIODevice
Attachments
For Gerrit Dashboard: QTBUG-84270 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
302874,2 | Doc: Add import statement for QIODevice | 5.15 | pyside/pyside-setup | Status: MERGED | +2 | 0 |