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

PySide2.QtWidgets.style() crashes

    XMLWordPrintable

Details

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

    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

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes