Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Including QML Modules for Android, issue with QtQml.Models and QtQuick.Dialogs
Forum Updated to NodeBB v4.3 + New Features

Including QML Modules for Android, issue with QtQml.Models and QtQuick.Dialogs

Scheduled Pinned Locked Moved Solved Installation and Deployment
2 Posts 1 Posters 876 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MEMekaniske
    wrote on last edited by MEMekaniske
    #1

    Hello,

    I'm deploying my app for a test on a android phone, and my app crashes on startup because of module not installed.

    After connecting to adb logcat I can see that there is a few modules not installed. I tried searching a bit for the need on including modules manually, but I do not find much other than on the ones we create ourself. Except one other, where it was solved by copying all qml files from Qt/version/android/qml to the workdirectory, which i tried but it did not have any effect.

    The top of my main.qml is;

    import QtQuick 2.12
    import QtQuick.Window 2.12
    import QtQuick.Controls 2.3
    import QtQml.Models 2.1
    import QtQuick.Layouts 1.3
    import QtQuick.Controls 2.0
    import QtQuick.Dialogs 1.0
    import serverData 1.0
    

    So it seems to find almost every module..

    logcat extract

    05-07 09:10:09.930 14104 14119 W HadEM   : QQmlApplicationEngine failed to load component
    05-07 09:10:09.931 14104 14119 W HadEM   : qrc:/main.qml:7 module "QtQuick.Dialogs" is not installed
    05-07 09:10:09.931 14104 14119 W HadEM   : qrc:/main.qml:4 module "QtQml.Models" is not installed
    05-07 09:10:09.931 14104 14119 W HadEM   : qrc:/main.qml:7 module "QtQuick.Dialogs" is not installed
    05-07 09:10:09.931 14104 14119 W HadEM   : qrc:/main.qml:4 module "QtQml.Models" is not installed
    05-07 09:10:09.931 14104 14119 W HadEM   :
    05-07 09:10:09.940 14104 14119 W HadEM   : exit app 0
    

    And the only thing noticable in the compile output while building is this,

    Warning: QML import could not be resolved in any of the import paths: serverData
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl
    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.Imagine.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.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.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.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Fusion.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Fusion.impl
    
    

    But that output is not about any of the missing modules.. So I do not get it..

    Have I included qml modules from or to the wrong directory?
    Do I need to add any rules to the pro file?
    Anyone have any tips?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MEMekaniske
      wrote on last edited by
      #2

      Moved everything over to my mac instead of building and deploying with linux through virtualenv, much easier to debug etc.
      Seems like there just is a few qml modules that is not supported, like a filedialog..

      QtQml.Models seems to be supported when building the same environment through mac though :)

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved