Skip to content Skip to sidebar Skip to footer

Qstackedwidget - Change Page One By One

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

Solution 1:

 self.homeb_3.clicked.connect(lambda: self.stackedWidget.setCurrentIndex(self.stackedWidget.currentIndex() + 1))

Post a Comment for "Qstackedwidget - Change Page One By One"