Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.3.0
-
None
-
Debian 7, X11
-
fdefb96476847a8fd8b7a074016b6de25f87eb95 (qtdeclarative), 8fdd11465cd17006a108a6f04b2fb1bf8fc5de2f (qtbase)
Description
This is a subtask of QTBUG-36935.
Take the attached minimal modification of the qquickwidget example and play around with the dock, detaching, attaching and moving around the qquickwidget. Sometimes it will show, sometimes the window will go completely black or completely white. Sometimes the rectangle will spin and sometimes it won't.
#include <QQuickWidget> #include <QtWidgets> int main(int argc, char **argv) { QApplication app(argc, argv); QMainWindow *toplevel = new QMainWindow; QDockWidget *lcdDock = new QDockWidget; QLCDNumber *lcd = new QLCDNumber; lcd->display(1337); lcd->setMinimumSize(250,100); lcdDock->setWidget(lcd); toplevel->addDockWidget(Qt::BottomDockWidgetArea, lcdDock); QUrl source("qrc:quickwidget/rotatingsquare.qml"); QDockWidget *quickDock = new QDockWidget; QQuickWidget *w = new QQuickWidget; w->resize(300,300); w->setResizeMode(QQuickWidget::SizeRootObjectToView ); w->setSource(source); quickDock->setWidget(w); toplevel->addDockWidget(Qt::BottomDockWidgetArea, quickDock); toplevel->show(); return app.exec(); }
Attachments
Issue Links
- is required for
-
QTBUG-36935 various problems when trying to use QQuickWidget in QML profiler
- Closed