[Interest] Using QtQuick Controls 2 on android
Wolfgang Baron
Wolfgang.Baron at gmx.net
Wed Aug 31 18:43:46 CEST 2016
Your comment about the shader errors made me think. I grabbed a physical
android device and voila, it worked. Apparently, the AVDs provided by
the AVD manager are just not good enough for running QtQuick (yes, even
QuickControls1 etc. don't work, just a white or a black screen). Maybe I
clicked on the wrong device or the wrong options?
Is there no way to create a QtQuick enabled AVD?
What's the point in having AVDs at all, if all I can do with it is run
Widget apps (not very usual on mobile devices) or system services?
Thanks Mitch for your helpful comment!
Am 31.08.2016 um 13:52 schrieb Mitch Curtis:
>
> I dunno about the shader errors, but what if you add
> qputenv(“QML_IMPORT_TRACE”, “1”) at the beginning of main.cpp?
>
> It looks like the material style etc. plugins are deployed, the QML
> engine just can’t find them when it tries to import them.
>
> *From:*Interest
> [mailto:interest-bounces+mitch.curtis=qt.io at qt-project.org] *On Behalf
> Of *Wolfgang Baron
> *Sent:* Wednesday, 31 August 2016 2:42 AM
> *To:* interest at qt-project.org
> *Subject:* [Interest] Using QtQuick Controls 2 on android
>
> Hi,
>
> I am trying to use QtQuick Controls on android (emulator for now). I
> cannot deploy a single project using QtQuick Controls 2 on android.
> The same project runs on windows classic and winrt. Other projects
> without QtQuick Controls 2 do run on android. The encountered error
> messages for the quickcontrols2 gallery example are:
>
>
> Warning: QML import could not be resolved in any of the import paths:
> QtQuick.Controls.impl
> Warning: QML import could not be resolved in any of the import paths:
> QtQuick.Controls.Material.impl
> Warning: QML import could not be resolved in any of the import paths:
> QtQuick.Controls.Universal.impl
>
> Although this may sound harmless, as it's just a warning, the
> resulting program will not run. With host GPU turned on, a white
> display is shown and the application output window shows:
>
>
> W System : ClassLoader referenced unknown path: [...]
>
> and so on...
>
> I am running this example on Windows 10. Do I need to change my
> environment or is this a bug? All bugs having similar content did not
> quite describe what I am experiencing.
>
> Thanks for an help!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160831/db1722a8/attachment.html>
More information about the Interest
mailing list