[Interest] StackView not working properly on Qt 5.5

Gianluca gmaxera at gmail.com
Sat Jul 18 00:19:29 CEST 2015


Hello,
I’m trying to update Qt 5.5 for all my project and I’m having very bad behavior of StackView.
What has been changed on StackView that may break compatibility ?
All my app has a center item that it’s a StackView and I push/pop element on that. But It doesn’t work anymore.
I didn’t use any special function of StackView, so I don’t know what is happening and how to debug because I don’t get any error message.

My use of it is to have:
	StackView {
		id: mainArea
		anchors.top: (navigationBar.visible ? navigationBar.bottom : parent.top)
		anchors.bottom: parent.bottom
	}

and to push and pop item in the following way:
	function push( component ) {
		mainArea.push( backend.commonPath()+"/qml/"+component )
	}

	function pop() {
		mainArea.pop()
	}

And then pushing new items in the following way:
			mainArea.push( backend.commonPath()+"/qml/Login.qml" )

Where commonPath() is where I store the qml files:
#if defined(Q_OS_IOS)
	return QString::fromLatin1("%1").arg(QCoreApplication::applicationDirPath());
#else
	// suppose Android
	return "assets:";
#endif

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150717/ebda67cc/attachment.html>


More information about the Interest mailing list