Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
States and orientation change
i've got Row element with 3 Rectangles in it and States (page1, page2, page3) it works perfect with only one exception, when the page2 or page3 is shown it always goes to page1 (looses state?) when the orientation is changed anyone knows why? thanks
What target system do you use? If Symbian Belle see "Navigating with the PageStack (Advanced Method)" on "PageStack element" topic in qthelp://com.nokia.qtcomponentssymbian.110/doc/index.html.
seems like pagestack is a good solution but my pages have dynamically generated listviews is there any way of building pages before pushing them into pagestack?
this is similar to what my app looks like http://qtsource.files.wordpress.com/2011/01/sliding_list_scaled.png
A hard question. Personally I never used states. On Anna I made my own toolbar, something like ToolBarLayout on Bellle. I think you could build a class for a page and use it as a type to build page dynamicly, but really now I have no idea how to solve this. Perhaps easier could be seeking for an error in your code ;)
weird thing happened since im using pageStack NetworkInfo stopped working seems like it doesn't like this line: import com.nokia.symbian 1.1 which is required to use pageStack element
Do you have:
@Qt += declarative network
CONFIG += qt-components mobility@
in your .pro file?
no but this doesn't make any difference moving to this thread http://qt-project.org/forums/viewthread/15211/
Hmmmm... I have the same error. A bug? Searching..............................................
OK. I HAVE: import QtMobility.systeminfo 1.1 :D
and there's no problem :D any more
If I've helped please rate this post ;)
[quote] author="fgrs" date="1331063804"]is there any way of building pages before pushing them into pagestack?
Might it help: http://qt-project.org/wiki/QML-Dynamic-Objects ?