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

QtQuickWidgets using Switch control inside a QDockWidget make crash when moving the dock

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 5.15.0
    • PySide
    • None
    • Linux/X11

    Description

      The following code crashs  when I try to move the dock inside the QMainWindow

      from PySide2.QtWidgets import *
      from PySide2.QtCore import *
      from PySide2.QtGui import *
      from PySide2.QtQuick import QQuickView 
      from PySide2.QtQuickWidgets import QQuickWidget
      import sys
      sys.argv += ['--style', 'Fusion']
      app = QApplication(sys.argv)
      w = QMainWindow()
      q = QQuickWidget("test.qml")
      dock = QDockWidget()
      dock.setWidget(q)
      w.addDockWidget(Qt.LeftDockWidgetArea,dock)
      w.setCentralWidget(QListView())
      w.show()
      app.exec_()
      

      After some try, it seems  the crash only happened with the Switch Control . Here is my qml code : 

      import QtQuick 2.0
      import QtQuick.Controls 2
      
      Pane {
      Column{
      Switch {  # Remove this control won't crash 
       text: "Bluetooth"
       }
      }
      }
      

       

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            sschutz sacha schutz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes