Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    QML and Qt Quick
    2
    3
    1393
    Loading More Posts
    • 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
      felix99 last edited by felix99

      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 Reply Quote 0
      • jpnurmi
        jpnurmi last edited by

        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 Reply Quote 0
        • F
          felix99 @jpnurmi last edited by felix99

          @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 Reply Quote 0
          • First post
            Last post