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. How to navigate from one page to another?
Forum Updated to NodeBB v4.3 + New Features

How to navigate from one page to another?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 650 Views 2 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.
  • D Offline
    D Offline
    dvlpr.bernard
    wrote on last edited by
    #1

    I'm in a Qt Widget Application, and I'm using Stacked Widget. The problem is I don't know how to navigate to the next or prev Stack using a Push Button Widget. Can anyone help me out? Thanks in advance.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to the forums.
      Its index based so you simply call
      setCurrentIndex(int index)
      it also has currentIndex()
      so you can say
      int indx = ui->stackedwidget-> currentIndex();
      ui->stackedwidget->setCurrentIndex(indx +1 ); to go to next and
      ui->stackedwidget->setCurrentIndex(indx -1 );

      1 Reply Last reply
      2
      • D Offline
        D Offline
        dvlpr.bernard
        wrote on last edited by
        #3

        Thank you so much sir! :))

        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