I included some QML inside my Qt app like this:-
QQuickView *mixtureinfoview = new QQuickView;
mixtureinfoview->rootContext()->setContextProperty("m", m);
mixtureinfoview->setSource(QUrl("qrc:/qml/mixtureinfo.qml"));
QWidget *mixtureinfowidget = QWidget::createWindowContainer(mixtureinfoview);
ui->verticalLayout_mixtureinfo->addWidget(mixtureinfowidget);
On my desktop it works fine. But the QML doesn’t display on my android. Whenever i Qt tries to load the QMLs, the following messages appear in the debug window
E/libEGL (29636): eglMakeCurrent:540 error 3002 (EGL_BAD_ACCESS)
W/Qt (29636): eglconvenience/qeglplatformcontext.cpp:119 (virtual bool QEGLPlatformContext::makeCurrent(QPlatformSurface*)): QEGLPlatformContext::makeCurrent: eglError: 3002, this: 0x67441850
W/Qt (29636):
E/libEGL (29636): eglMakeCurrent:540 error 3002 (EGL_BAD_ACCESS)
W/Qt (29636): eglconvenience/qeglplatformcontext.cpp:119 (virtual bool QEGLPlatformContext::makeCurrent(QPlatformSurface*)): QEGLPlatformContext::makeCurrent: eglError: 3002, this: 0x67441850
Any idea? All the other Qt Creator examples work in the tablet tho.
↧