Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1973

PySide2.QtWidgets.style() crashes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.12.1
    • PySide
    • None
    • Linux centos 7.9.2009 / Python 2.17.8
    • Linux/X11

      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.

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            crmaurei Cristian Maureira-Fredes
            rajiv.perseedoss Rajiv Perseedoss
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes