Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.5.1
-
windows 7 sp1, qt 5.5.1 mingw 4.9.2
Description
Attached is a project with a widget and c++ code as simple as it gets, that crashes on launch.
Note, that uncommenting the two lines below fixes the crash.
//c++ part #include <QApplication> #include <QQuickWidget> int main(int argc, char *argv[]) { QApplication a(argc, argv); QQuickWidget* w= new QQuickWidget(); w->setSource(QUrl::fromLocalFile("w.qml")); //w->setResizeMode(QQuickWidget::SizeRootObjectToView); //w->resize(400,400); w->show(); return a.exec(); } //qml part import QtQuick 2.0 Rectangle { id:root }