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
0
votes
1 answer

QStackedWidget connect QActions to custom QGraphicsView of QWidget

I've made a MainWindow with a QStackedWidget and a QMenuBar. One of my widgets contains a QGraphicsView that I promoted to my custom QGraphicsView (DrawingView). I'd like to connect the QActions from the menuBar to my custom DrawingView. I managed…
0
votes
2 answers

How to set QStackedWidget size to child widgets minimum size?

Unable to get the QLabel in this example to be of the minimum size to contain its text. I need the layout and stacked widget to then size themselves to the minimum required to fit the label. I have used code from…
0
votes
1 answer

Position internal widget inside QStackedWidget object

I have several tabs and inside the "admin" tab I want to display two pages: one locked page (before entering credentials) and another unlocked page (after successful login). To do this, I'm using a QStackedWidget() to switch between the two pages. I…
nathancy
  • 42,661
  • 14
  • 115
  • 137
0
votes
1 answer

How to call Main Windows Function from Widget inside QStackedWidget in PyQt5

For reference purpose consider the above example. On the left I have two buttons PAGE1 and PAGE2 and on the right I have a QStackedWidget consisting of two widgets. I made two seperate UI files with names page1.ui and page2.ui I used "Promote…
manjy
  • 109
  • 1
  • 2
  • 12
0
votes
1 answer

Qt creator: stacked widget pop up

I´m kind of new in Qt Creator and have a few stacked widgets on my project so my question is: can the stacked widgets be pop up? and how can I do it? Also I have a Qt 5.5.1 with MinGW 32bit on pc. Thank you all.
Holly
  • 7
  • 4
0
votes
0 answers

QStackedWidget previous index

The signal currentChanged provides the index of the new current widget in a QStackedWidget. Is there a possibility to get the index of the last Widget before the signal currentChanged fired?
0
votes
0 answers

PyQt Exit Code 139 Stacked Widget

A little background: I am creating a script to run data collection and provide the UI/tasks for a research study. Primary libraries being used throughout are Pygame, PyQt5, and threading, plus a few minor utility libraries. I am running into an…
tvanfossen
  • 25
  • 8
0
votes
1 answer

compatability issues between QtDesigner5.11.0, python3.5, and pyside2?

I've had good success with QtDesigner5.11 and python3.5 in creating QtWindows. Now I want to use QtDesigner to create linked Qt objects(frames) in a StackedWidget. I read that PySide is obsolete and that I should use PySide2. From what I read,…
0
votes
1 answer

changing windows title while switching them using QtSackedWidget

While using the QtStackedWidget for switching windows in a big project, it doesn't seem to take in consideration the " setWindowTitle " part added in every window, and even for the size it takes only the first size precise in the QtStackedWidget…
0
votes
2 answers

QStackedWidget how to use it exactly?

I tried to use QStackedWidget before, but I didn't understand exactly how to. The code below makes me understand how to change the current window from the main window to another window, already called in the mainwindow, and this is working good. I…
MadHer
  • 91
  • 3
  • 11
0
votes
1 answer

Updating QStackedWidget content at Runtime

I'm creating a GUI in PyQT5 that should provide multiple views on data from multiple related SQLite tables. I have implemented these views to be displayed via a QStackedWidget. Now, some of these views are for overview purposes, others for more…
CodingCat
  • 4,999
  • 10
  • 37
  • 59
0
votes
2 answers

Using QTreeWidgetItems setData to store a QStackedWidget or QVariant

I am trying to make a QTreeWidget such that each row contains a series of comboboxes. Depending on how the user interacts with the comboboxes I would like certain comboboxes to becomes line edits and some to become buttons. It was suggested here…
0
votes
1 answer

Setting up QStackedWidget properly, signal cannot see function/slot

I am working on developing a GUI with PyQt5. This is my first step into OOP, and I'm trying to teach myself as I go. I'm struggling with understanding when classes inherit methods/attributes etc and what methods they have available -- I guess it is…
amoodie
  • 323
  • 2
  • 10
0
votes
1 answer

Switching between frames without erasing contents of each frame

I've been writing a GUI using the below setCentralWidget method (simplified here) for transitioning between frames - but didn't realize until pretty far in that it erased each window upon moving to the next (which I need to avoid). My actual code…
evambivalence
  • 113
  • 1
  • 12
0
votes
1 answer

Qt Multiple window design

I appologize for the long paragraph but its the only way I can explain this. Basic Question: How do I have multiple windows that share some UI functionality without having it all in one giant class? My Situation: I have a question regarding the…
user9150170