Questions tagged [qtabwidget]

The QTabWidget class, part of the Qt framework, provides a stack of tabbed widgets.

The QTabWidget class provides a stack of tabbed widgets. A tab widget provides a tab bar and a "page area" that is used to display pages related to each tab.

Qt documentation for QTabWidget can be found here for Qt 5 and here for Qt 4.8.

365 questions
0
votes
0 answers

Change Qtabwidget text according to the Qtwebview it contains

I have Qtabwiget And everytime I load another tab it loads an instance of an Qtwebengineview class. What I need is when the every instance of qtwebengine finish loading it change the parent tab of it instead what i have which changes the current…
Maxwe11
  • 97
  • 1
  • 1
  • 9
0
votes
0 answers

Close qttab widget When clicking close button

I have qtabwiget with one qwidget and the problem is when i click the close button of the setclosable func. the qwidget is not closed as well so how i close them as well? BElow is the part of closing the tab: self.tabWidget =…
Maxwe11
  • 97
  • 1
  • 1
  • 9
0
votes
1 answer

How to make a widget attached to QTabWidget's gap and move accordingly with QSplitter in pyqt5

I want to make the button always next to the second tab's label, even when I use splitter to move the edge between two tabs. How to achieve that? I believe it's because I use the absolute position, but how make an widget attached in the gap in…
user6456568
  • 579
  • 9
  • 23
0
votes
1 answer

PyQt4: How to color each tab in QTabWidget separately?

I'm working on a project with a GUI, for which I am using Python with PyQt4 module. Here is my demo code: import sys from PyQt4 import QtGui, QtCore class Window(QtGui.QMainWindow): def __init__(self): super(Window, self).__init__() …
Zeds Zen
  • 123
  • 2
  • 8
0
votes
0 answers

How to add a graph in each tab of a QTabWidget

I am new to PyQt4, creating a simple GUI. I want to create a window which contains multiple tabs, and in each tab one graph should be plotted. I am able to create a tab with buttons in the bottom, but unable to add a graph in each tab, so I am…
0
votes
1 answer

ScrollArea does not display

I have an issue with the gui app I am building. The class Interface contains the menubar, the toolbar(which does not display neither), and call the class TabWidget_. The class TabWidget_ contains tabs. There is only one tab at the moment (the tab…
user8530765
0
votes
1 answer

PyQt - Tab Management from Outside Class

I am designing an application using PyQt that will manage multiple instances of Selenium. Each instance has a QFrame with unique information and controls and can be tabbed through from the main window. class Instance(QFrame): def…
0
votes
1 answer

Reuse QWidget PyQt5

I have a predefined widget with qtDesigner, and I want to use it in several tabs. If I add several times a new tab by adding the widget, it only does it once. For example: for i in range(3): self.tab_widget_name.addTab(self.widget_name, str(i))
Francesc
  • 140
  • 1
  • 12
0
votes
1 answer

Application crashes when adding QWidget obtained from shared library to QTabWidget

//the subclass of widget in shared library class MYWIDGETSHARED_EXPORT MyWidget : public QWidget { Q_OBJECT public: MyWidget(QWidget *parent = 0); void do_something(); }; extern "C"{ MYWIDGETSHARED_EXPORT…
Sloan
  • 11
  • 2
0
votes
1 answer

Dynamic implementation of QMdiSubWindow into QMdiArea in Qtabwidget

There is my problem, I want to implement new subwindow in the mdiArea of the active tab of tabwidget. But the only things y can do today, is adding a widget in the last tab/mdiArea created (my code below). How can I switch dynamically (without…
Enao
  • 1
  • 1
0
votes
2 answers

How to add an icon to a QTabWidget (not for each tab)?

I would like to add an icon at the top left of the QTabWidget. I don't want to add an icon for each tab. How to do that using a stylesheet or programmatically in C++?
John Smith
  • 771
  • 4
  • 11
  • 25
0
votes
0 answers

PyQT : How to control actions on tabs (tabwidget) having the same content?

I have tabs added dynamically to a tab widget and having the same content. I want to control actions on every tab for example a click on push button. However, I cannot distinguich between actions on a tab. For example, If I click on button on tab 1,…
Ammoun
  • 73
  • 2
  • 14
0
votes
2 answers

Identify Specific QTabWidget Tabs via Stylesheet

In my project, I have a QTabWidget with multiple tabs, each having a unique icon. I want the icon to change to a lighter version of the normal icon whenever the tab is selected. This is simple with stylesheets QTabBar::tab:selected{image:…
mrg95
  • 2,371
  • 11
  • 46
  • 89
0
votes
1 answer

Python 2.7 PyQt4 Add Main Window File to Tab of Another Main Window

I am creating a program with Python 2.7, and have run into a problem that hours of searching Google and the forums have not answered. My program consists of a Main_Window called sessions_window.py that holds a Tab Widget. Within each tab, there…
ksmith
  • 23
  • 5
0
votes
1 answer

how to can insert the value from txt file to the Qlist and work with QTablewideget

how i can to insert the value from txt file in to the Qlist... QList list_StRead; list_StRead.insert(); i can sorting txt file ... its mean that my file is a line by line... than after the insert to the Qlist i want to write in to…
Qasim
  • 83
  • 10