Qml for ios application is too slow
<p>I am developing an application with Qt and qml and I am building it for OSX, iOS and Android. The application contains a StackView which has only three pages. In the second page I have a five MenuItems and five Dialogs.</p>

<p>While this very simple application has an excellent performance when runs on OSX and Android, it delays up to 3-4 seconds to show the second page on iOS.</p>

<p>I have already tried "Qml Profiler" and I have found out that the delay happens during the creation of the qml file that describes the second page.</p>

<p>I have also tried "Qt Quick Compiler" (Commercial Qt) with no significant difference.</p>

<p>main.qml</p>

<pre><code>import QtQuick 2.4
import QtQuick.Window 2.2
import QtQuick.Controls 1.4

ApplicationWindow {
    id: app
    title: "MyApp"
    width: 1024
    height: 768
    visible: true
    StackView {
        id: stackView
        anchors.fill: parent
        initialItem: firstPage
    }
    Component {
        id:firstPage
        FirstPage {
        }
    }
}
</code></pre>

<p>firstPage.qml</p>

<pre><code>import QtQuick 2.3
import QtQuick.Controls 1.4
import QtQuick.Dialogs 1.2

Item {
    id:firstPage
    signal collectionClicked(string name)
    focus: true
    objectName: "firstPage"
    Rectangle {
        anchors.fill: parent
        color: "blue"
    }
    MouseArea {
        anchors.fill: parent
        onClicked: {
            stackView.push(Qt.resolvedUrl("SecondPage.qml"))
        }
    }
}
</code></pre>

<p>SecondPage.qml</p>

<pre><code>import QtQuick 2.3
import QtQuick.Window 2.2
import QtQuick.Controls 1.4
import QtQuick.Dialogs 1.2

Item {
    id: itemsPage
    signal itemClicked()

    Rectangle {
        id: myRectangle
        anchors.fill: parent
        color: "red"

        Dialog {
            id: dialog1
            height: 200
            width: 300
            //onAccepted: ;
        }
        Dialog {
            id: dialog2
            height: 200
            width: 300
            //onAccepted: ;
        }
        Dialog {
            id: dialog3
            height: 200
            width: 300
            //onAccepted: ;
        }
        Dialog {
            id: dialog4
            height: 200
            width: 300
            //onAccepted: ;
        }
        Dialog {
            id: dialog5
            height: 200
            width: 300
            //onAccepted: ;
        }

        Menu {
            id: myMenu
            title: "Menu"
            MenuItem {
                text: "Test"
                //onTriggered: ;
            }
            MenuItem {
                text: "Test"
                //onTriggered: ;
            }
            MenuItem {
                text: "Test"
                //onTriggered: ;
            }
            MenuItem {
                text: "Test"
                //onTriggered: ;
            }
            MenuItem {
                text: "Test"
                //onTriggered: ;
            }
        }
    }


    MouseArea {
        anchors.fill: parent
        onClicked: stackView.push(Qt.resolvedUrl("ThirdPage.qml"));
    }
}
</code></pre>

<p>ThirdPage.qml</p>

<pre><code>import QtQuick 2.0

    Item {
        Rectangle {
            anchors.fill: parent
            color: "green"
            Text {
                text: "third page"
            }
        }
    }
</code></pre>

<p>I have tried for such a long to find a solution. And I think that it is impossible that there is nobody that has ever tried to make a simple qml application for iOS and faced what I have faced.</p>

<p>Thank you,
Michael</p>