[Development] QML Signal handlers order.

Sorokin Vasiliy sorokin.vasiliy at gmail.com
Tue May 17 16:58:27 CEST 2016


Hello.

Example:

MyButton.qml

import QtQuick 2.5

import QtQuick.Controls 1.4


Button {

    onClicked: {

        console.log("inner")

    }

}


mail.qml

import QtQuick 2.5

import QtQuick.Window 2.2

import QtQuick.Controls 1.4

Window {

    visible: true


    MyButton {

        text: "OK"

        onClicked: {

            console.log("outter")

        }

    }

}


When I click on button I got this output:


qml: inner

qml: outter

And my question is:

Is this calls order guaranteed?

--
Best Regards,
Vasiliy Sorokin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160517/3d75caac/attachment.html>


More information about the Development mailing list