[SOLVED] QQuickView not appearing on Android
-
Qt 5.4
Trying to implement the declarative camera example inside a standard widget application.
Code below. You can see I have tried several different methods to get it to appear. Strange thing is if I minimize the App and then maximize it, the QQuickView does appear along with the camera.
BTW, works perfectly on iOS.
this->hide(); ptr_quickViewCamera = new QQuickView(); ptr_quickViewCamera->setResizeMode(QQuickView::SizeRootObjectToView); ptr_quickViewCamera->setSource(QUrl("qrc:///declarative-camera.qml")); ptr_quickViewCamera->show(); ptr_quickViewCamera->setVisible(true); ptr_quickViewCamera->raise(); ptr_quickViewCamera->update();