Details
-
Bug
-
Resolution: Cannot Reproduce
-
Not Evaluated
-
None
-
5.15.0
-
None
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" } } }