Did Qt Quick controls 2.0 support IOS In QT5.7?
-
-
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. Addingimport QtQuick.Controls.Material 2.0
to yourmain.qml
or anywhere else should help with that. -
@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!!