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. SwipeView alternatives?

SwipeView alternatives?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 3 Posters 394 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.
  • C Offline
    C Offline
    Captain Haddock
    wrote on last edited by
    #1

    I have a UI with a workflow like button bar on top, a further navigation bar on bottom and then various frames (screens) in between. The frame changes based on selection of a button in the top button bar.

    How should I describe/implement the middle section to set the current screen based on the selected button in the workflow button bar?

    I have something working with a SwipeView, but I dont like the swipe effect .. I just want the current screen to hide and a new one to appear. When using Qt Widgets I was able to get this effect using a QStackedWidget and setting the stack index .. what is the equivalent I should be using with QML and QtQuick?

    GrecKoG 1 Reply Last reply
    0
    • GrecKoG GrecKo

      @Captain-Haddock StackView or StackLayout

      mzimmersM Offline
      mzimmersM Offline
      mzimmers
      wrote on last edited by
      #3

      I agree with @GrecKo, and personally would recommend StackLayout. You can manipulate its currentIndex property from the buttons on the navigation bar.

      1 Reply Last reply
      1
      • C Captain Haddock

        I have a UI with a workflow like button bar on top, a further navigation bar on bottom and then various frames (screens) in between. The frame changes based on selection of a button in the top button bar.

        How should I describe/implement the middle section to set the current screen based on the selected button in the workflow button bar?

        I have something working with a SwipeView, but I dont like the swipe effect .. I just want the current screen to hide and a new one to appear. When using Qt Widgets I was able to get this effect using a QStackedWidget and setting the stack index .. what is the equivalent I should be using with QML and QtQuick?

        GrecKoG Offline
        GrecKoG Offline
        GrecKo
        Qt Champions 2018
        wrote on last edited by
        #2

        @Captain-Haddock StackView or StackLayout

        mzimmersM 1 Reply Last reply
        3
        • GrecKoG GrecKo

          @Captain-Haddock StackView or StackLayout

          mzimmersM Offline
          mzimmersM Offline
          mzimmers
          wrote on last edited by
          #3

          I agree with @GrecKo, and personally would recommend StackLayout. You can manipulate its currentIndex property from the buttons on the navigation bar.

          1 Reply Last reply
          1
          • C Captain Haddock has marked this topic as solved on

          • Login

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