Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Did Qt Quick controls 2.0 support IOS In QT5.7?
Forum Updated to NodeBB v4.3 + New Features

Did Qt Quick controls 2.0 support IOS In QT5.7?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 1.6k 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.
  • F Offline
    F Offline
    felix99
    wrote on last edited by felix99
    #1

    I created a project for osx, android and ios using material style.
    osx and android works fine, But IOS not.
    In the qml/qtquick/controls.2 directory, there are some qmls for osx and android; no qml for ios.

    What should I do?

    Thanks for your help.

    1 Reply Last reply
    0
    • jpnurmiJ Offline
      jpnurmiJ Offline
      jpnurmi
      wrote on last edited by
      #2

      What exactly does not work? What do you mean by "no QML for iOS"? Where? The .qml files are built into resources in static builds.

      What is likely the issue here is that the Material style does not get deployed, because qmlimportscanner does not detect the dependency. Adding import QtQuick.Controls.Material 2.0 to your main.qml or anywhere else should help with that.

      F 1 Reply Last reply
      0
      • jpnurmiJ jpnurmi

        What exactly does not work? What do you mean by "no QML for iOS"? Where? The .qml files are built into resources in static builds.

        What is likely the issue here is that the Material style does not get deployed, because qmlimportscanner does not detect the dependency. Adding import QtQuick.Controls.Material 2.0 to your main.qml or anywhere else should help with that.

        F Offline
        F Offline
        felix99
        wrote on last edited by felix99
        #3

        @jpnurmi said:

        What exactly does not work?

        Not work means the app is running but not material style.

        What do you mean by "no QML for iOS"? Where?

        Qt/5.7/ios/qml/QtQuick/Controls.2

        Adding import QtQuick.Controls.Material 2.0 to your main.qml or anywhere else should help with that.

        YEAH!

        But editor tell me "QML Module not found" after add "import QtQuick.Controls.Material 2.0", in desktop Kit.

        In IOS Kit,
        import QtQuick.Window 2.0
        import QtQuick.Controls 2.0
        import QtQuick.Layouts 1.0
        import QtQuick.Controls.Material 2.0
        All are "QML Module does not contain information about components contained in plugins",
        But "import QtQuick 2.7" is fine, I'm confused by editor.

        Anyway, the material style is running in IOS, Thank you!!

        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