3

Is there a way to change the page of a QStackedWidget without appointing to the actual index.

self.homeb.clicked.connect(lambda: self.stackedWidget.setCurrentIndex(0))

So instead of just using a button to go directly to the appointed index 0, I want to navigate through them, my intentions are to create a "next", "previous" "home" function.

Lucas Abreu
  • 63
  • 1
  • 7

1 Answers1

1
 self.homeb_3.clicked.connect(lambda: self.stackedWidget.setCurrentIndex(self.stackedWidget.currentIndex() + 1))
Lucas Abreu
  • 63
  • 1
  • 7