Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Screen Transitions in QT
Forum Update on Tuesday, May 27th 2025

Screen Transitions in QT

Scheduled Pinned Locked Moved Mobile and Embedded
11 Posts 4 Posters 9.2k Views 1 Watching
  • 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.
  • N Offline
    N Offline
    neel2818
    wrote on last edited by
    #1

    Hi All,

    I have query regarding screen trasition in QT. I want push in/push out transition between two screens.

    Please refer below link for transition effect.

    http://wiki.forum.nokia.com/index.php/Mobile_Design_Patterns:_Screen_Transitions

    Can you please guide us how achieve screen transition or give me sample code or link so that i can understand the screen transition which are mostly used in mobile application.

    Thanks,
    Neel

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kamalakshantv
      wrote on last edited by
      #2

      Hi Neel,

      Refer to "this":http://wiki.forum.nokia.com/index.php/Extending_QStackedWidget_for_sliding_page_animations_in_Qt example.

      1 Reply Last reply
      0
      • N Offline
        N Offline
        neel2818
        wrote on last edited by
        #3

        Thanks for giving me link.
        I am not able to compile with my sample application.

        i want just simple example link in one dialog form there is three label and another dialog in which also three label and images are displayed in both qdialog form.

        If i press any Enter key then second dialog will be displayed with another three images in push in/push out transition effect.

        Thanks,
        Neel

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kamalakshantv
          wrote on last edited by
          #4

          Thats the simplest one available as an example. Just go through it and implement similar animations in your own code.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            gaba88
            wrote on last edited by
            #5

            yes QtK is correct simple use QPropertyAnimation and supply the widget you want to push out and set the duration and position start the animation you are done with that.

            And if you want to animate two widget then use the QParallelAnimationGroup thats all . :-)

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kamalakshantv
              wrote on last edited by
              #6

              [quote author="gaba88" date="1294125679"]yes QtK is correct simple use QPropertyAnimation and supply the widget you want to push out and set the duration and position start the animation you are done with that.

              And if you want to animate two widget then use the QParallelAnimationGroup thats all . :-)[/quote]

              Welcome to QDN

              1 Reply Last reply
              0
              • G Offline
                G Offline
                gaba88
                wrote on last edited by
                #7

                Hello QtK

                Thanks for the warm welcome. :-)

                1 Reply Last reply
                0
                • N Offline
                  N Offline
                  neel2818
                  wrote on last edited by
                  #8

                  Thanks QTK.
                  I have done with my sample application and also my sample application works on embedded platform.
                  Thanks a lot again.

                  Thanks,
                  Neel

                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    neel2818
                    wrote on last edited by
                    #9

                    I have one question.
                    I have done my sample allpication without making .ui file in QDesigner i have made it in .cpp file manualy.
                    If i want to add my four .ui file then how can i achieve this transition between four .ui files rather than creating manually in .cpp file ?

                    can anybody explain me with examples ?

                    Thanks,
                    Neel

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      kamalakshantv
                      wrote on last edited by
                      #10

                      AFAIK you will have to code it in cpp. You can't set the transitions using Qt Creator UI yet.

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        andre
                        wrote on last edited by
                        #11

                        Two approaches:

                        you can use your .ui files for the individual pages. These can be designed in designer, and then loaded as pages for your sliding view. That should work just fine.

                        You can extend the sliding-stacked-widget to a proper designer plugin. That way, you will be able to use it directly from designer itself.

                        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