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

Dynamically adding pages to QStackedWidget using a custom widget designed in Qt Creator

So I'm lost ... again. I have a QMainWindow with a empty QStackedWidget. I would like to dynamically populate the QStackedWidget using a custom widget that I created in Qt Creator. I tried following Creating a custom widget in PyQT5 in another…
artomason
  • 3,625
  • 5
  • 20
  • 43
0
votes
1 answer

Automatically create QStackedWidget pages based on Tuple

I'm fairly new to python, and I feel this is an advanced question, with that in mind it might be out of the scope of Stack Exchange. Please bear with me. I have a QTreeWidget and QStackedWidget. I have populated the QTreeWidget using a…
artomason
  • 3,625
  • 5
  • 20
  • 43
0
votes
1 answer

independently change the background image of each page of QStackedWidget

I would like to independently change the background image of each page of the stacked widget . However, when I add background-image: to the styleSheet tab on Qt creator, the result is that all the pages of the stacked widget get that background…
0
votes
1 answer

FindChild Method with StackedWidget fails

I'm using a qstackedwidget in my MainWindow class and I'm defining the widgets in another class (PageLayouts) in order to keep things seperate. But I'm doing the connections between the objects in the MainWindow class (change pages...), which fails.…
Hyperhyper
  • 25
  • 4
0
votes
1 answer

Two function one after the other when clicked pushbutton - Pyside

I have a little problem with py pyside script. I make a setup wizard and I want to change my current widget in my stackedwidget then make the all installation of librairies etc... I've tried two solutions: The first is this…
Max_xaM
  • 17
  • 1
  • 4
0
votes
1 answer

Adding QQuickWidget in QStackedWidget

I am trying to add a qquickwidget along with some other qwidgets in qstackedwidget. But when I am trying to set the current widget to the qquickwidget nothing appears on the window. Is there something else that need to be done? I am also setting the…
Vishwas
  • 506
  • 1
  • 5
  • 20
0
votes
1 answer

Accessing a widget within a QStackWidget

I'm creating dynamic widgets using the following code: //class constructor counter = 0; //int //class method vec_txt.push_back(new QTextBrowser()); //vector ui->stackedWidget->addWidget(vec_txt[counter]); counter++; Now, I want to save the text in…
Chechen Itza
  • 111
  • 8
0
votes
1 answer

QCombobox bigger in size for the first time only

class RangeSelection(QWidget): def __init__(self, parent=None): QWidget.__init__(self, parent) layout = QGridLayout(self) self.setLayout(layout) self._create_widgets() layout.addWidget(self.select_combo,…
crisron
  • 363
  • 2
  • 5
  • 21
0
votes
1 answer

qstackedwidget cannot link to qcombobox

I'm trying to use combo box to control multiple page. I have created some custom widget via coding and also some QFrame in widget form too. But I can't seem to find any solution to go around this. I have try to use Qstackwidget but the program hand…
0
votes
1 answer

Adding QWidget without layout to QStackedWidget inlay gap

I have a QStackedWidget that I add multiple QWidget() objects to. Each QWidget has its own layout. For some reason when it adds the QWidget to the QStacked widget, it doesn't add it to say location "0,0"... it seems to always inlay it by 3 or 4…
user2494298
  • 299
  • 3
  • 7
  • 23
0
votes
2 answers

PySide multi-window, get QStackWidget to work

I need to create multi-window GUI, first I tried it with QWidgets, but finally I discover QStackWidget tool I need to use. So Im trying to, but Ive got some problems. Thanks for Your time. class MainWindow(QMainWindow): def __init__(self): …
0
votes
1 answer

PySide - How to reset the CentralWidget after closing of a widget using QStackedWidget

I'm using a QTabWidget for some postprocessing. Initially, the content of the tab is a button to open a txt file. Once this button is clicked, the content of the tab changes and a plot is made based on the data inside the txt file. In addition,…
LievenB
  • 13
  • 4
-1
votes
1 answer

How to resize a PyQt5 stacked widget as per window size in PyQt5 Python?

I am designing a ui in qt-desginer. I have to create a UI which has a side menu bar with buttons and whichever button is pressed, its appropriate data will be shown on right side. To design this, I have I have placed two QFrame in horizontal layout…
S Andrew
  • 5,592
  • 27
  • 115
  • 237
-1
votes
1 answer

How to show proper QStackedWidget page after QListWidget selection

I have 1 QListWidget and 1 QStackedWidget. The QstackedWidget has three different widgets to be shown after selecting the entriesd on the QListWidget. The problem: as I select the first choice nothing happens and nothing happens if I select the…
Emanuele
  • 2,194
  • 6
  • 32
  • 71
-1
votes
1 answer

change labels by horizontal scrollbar

I have an horizontal scrollbar which change the value (number) of two labels when I scroll it. Bul, I also want that when you scroll it, it changes the picture on a stacket widget. one picture when the value goes to 0-40, other when it´s from 41-70…
Holly
  • 7
  • 4