Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.3.2, 5.4.0 Alpha, 5.4.0 Beta
-
Win 8.1, Android 4.4.4, Android 4.2.2, Android 5.0.1
-
-
8015ffef1ea1f2745d6554b2bc57d150439292b3
Description
Re-Open Update START
Since the latest 5.4.1 which includes the first patch for this issue, QQuickWidget won't work anymore at all.
A warning is thrown: "W/Qt (16609): qquickwidget.cpp:96 (void QQuickWidgetPrivate::init(QQmlEngine*)): QQuickWidget is not supported on this platform."
Tested on Galaxy Tab3 (4.2.2) and Nexus5 (5.0.1).
Before, the QQuickWIdget worked, and the sample I posted here worked also as described, aka it has shown the camera view after re-opening once.
Re-Open Update END
I’m trying to implement a QR Code Scanner for Android in a Qt Widget project.
The following code shows how I load the QML code. “camView” is the QQuickWidget. It should display a live stream of the camera video.
Instead it shows nothing but freezes the whole application, until I do minimize it via the Android home button. Once I resume the application from background, it shows the video feed perfectly.
void MainWindow::openScanner()
{ returnToCamview(); QGridLayout *layout = new QGridLayout; layout->addWidget(camView); camView->setSource(QUrl("qrc:/cameraView.qml")); camView->setResizeMode(QQuickWidget::SizeRootObjectToView); ui->camBox->setLayout(layout); camView->show(); }Attachments
Issue Links
- relates to
-
QTBUG-42058 QML Camera crash in QuickWidget or QuickView container on Android
- Closed