Questions tagged [qstackedwidget]

The QStackedWidget class provides a stack of widgets where only one widget is visible at a time. QStackedWidget can be used to create a user interface similar to the one provided by QTabWidget.

The QStackedWidget class provides a stack of widgets where only one widget is visible at a time.

Official information can be found here.

96 questions
-1
votes
1 answer

How to turn pages circularly in QStackedWidget in python?

I made some pages in pyqt and then edited them in python. I assume that there are 3 pages and I want this program to run 3 times, which means page1 to page2 to page3 to page1. I use the button 'Next' to connect each page. I tried the loop. Here's my…
J.Q
  • 11
  • 1
  • 3
-1
votes
1 answer

Qt, crash when QStackedWidget's button try to access to another QStackedWidget's label

Main creates two QStackedWidget, class Body and class Bottom. In class Body there is a button and when it is pressed it should change the text in the label in Bottom. The program crash when Body->button try to use the public function of Bottom which…
RobertAalto
  • 1,235
  • 1
  • 9
  • 12
-2
votes
1 answer

When changing screens with QStackedWidget, how to call a function in the changed screen?

I'm trying to call the init function of the screen I'm changing my screen index to For an example, i have this code: from PyQt5 import QtWidgets as qtw from PyQt5 import QtGui as qtg from sys import argv as sysArgv from sys import…
bosdos12
  • 11
  • 1
  • 6
-2
votes
1 answer

Why the widget btn1 in the subpage of QStackedWidget can only define signals for QStackedWidget, but not for page: deviceTypeSelect in QStackedWidget?

I want to use btn1 to send a signal to the slot function of deviceTypeSelect, but btn1 can only be associated with QStackedWidget.
Alex
  • 150
  • 9
-2
votes
1 answer

Qt5 Stacked Widgets

I created a Qt stacked widget that has 2 pages. The first page (stackedWidgetPage1) has 1 label and 1 button. The second page (stackedWidgetPage2) has 1 label. When I press the button the below code runs. The code is supposed to change the currently…
-3
votes
1 answer

Stackwidget in Pyqt5 python

I'm creating a screen with StackWidget consist of 3 pages. The problem is that only one page of the stackwidget pages showing all widgets inside it but the other pages cutting three element in the corners, see the photos the error page: correct…
Mohammad
  • 1
  • 2
1 2 3 4 5 6
7