Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
5.12.1
-
None
-
Linux centos 7.9.2009 / Python 2.17.8
Description
Calling style() on a QWidget subclass crashes with a segfault.
This is an example:
class Form(QtWidgets.QDialog): def __init__(self, parent=None): super(Form, self).__init__(parent) layout = QtWidgets.QVBoxLayout() layout.addWidget(QtWidgets.QLineEdit("Hello")) self.setLayout(layout) print("About to print style()") print("Form Style %s" % (self.style())) form = Form(parent_widget) form.show()
self.style() crashes!
Alternatively, calling QtWidgets.QApplication.style() does not crash.
Attachments
Issue Links
- relates to
-
PYSIDE-922 Crash when using QProxyStyle
- Closed