Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. States and orientation change
QtWS25 Last Chance

States and orientation change

Scheduled Pinned Locked Moved QML and Qt Quick
10 Posts 2 Posters 3.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fgrs
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • A Offline
      A Offline
      akrynski
      wrote on last edited by
      #2

      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.

      --
      Pozdrawiam i do następnego...
      Greetings and till next...

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fgrs
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • A Offline
          A Offline
          akrynski
          wrote on last edited by
          #4

          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 ;)

          --
          Pozdrawiam i do następnego...
          Greetings and till next...

          1 Reply Last reply
          0
          • F Offline
            F Offline
            fgrs
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • A Offline
              A Offline
              akrynski
              wrote on last edited by
              #6

              Do you have:
              @Qt += declarative network
              CONFIG += qt-components mobility@

              in your .pro file?

              --
              Pozdrawiam i do następnego...
              Greetings and till next...

              1 Reply Last reply
              0
              • F Offline
                F Offline
                fgrs
                wrote on last edited by
                #7

                no but this doesn't make any difference moving to this thread http://qt-project.org/forums/viewthread/15211/

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  akrynski
                  wrote on last edited by
                  #8

                  Hmmmm... I have the same error. A bug? Searching..............................................

                  --
                  Pozdrawiam i do następnego...
                  Greetings and till next...

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    akrynski
                    wrote on last edited by
                    #9

                    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 ;)

                    --
                    Pozdrawiam i do następnego...
                    Greetings and till next...

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      akrynski
                      wrote on last edited by
                      #10

                      [quote] author="fgrs" date="1331063804"]is there any way of building pages before pushing them into pagestack?

                      [/quote]

                      Might it help: http://qt-project.org/wiki/QML-Dynamic-Objects ?

                      --
                      Pozdrawiam i do następnego...
                      Greetings and till next...

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved