[Interest] Attached properties with Namespaced imports
shaan7in at gmail.com
Fri Jan 27 18:47:53 CET 2017
I realized today that this doesn't work-
import QtQuick 2.7
import QtQuick.Controls 2.1 as C2
C2.StackView.onStatusChanged: console.log("Status is " +
"Status is" is never printed. However if I import without the "as C2"
and use "StackView.onStatusChanged", the message is printed.
The reason I need to do this is that we are still using QtQuick
Controls 1 throughout our project and want to use StackView from
QtQuick.Controls 2 because we need the "StackView.onRemoved"
Any idea how to make the attached property's signal work?
Shantanu Tushar (UTC +0530)
More information about the Interest