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

How to change the label property of a QTabWidget on double click?

How do I recognize a double click on a tab in order to change its label? Preferrably I could edit the label in place but alternatively I could also get a string from another input box. Any suggestions? The tab gets added and the label specified…
stdcerr
  • 13,725
  • 25
  • 71
  • 128
0
votes
1 answer

QTabWidget tabs shelf as eclipse

I am trying to achieve tabs shelf when the number of max tabs is increasing. For Example: Max_Tabs = 5 if number of open tabs is getting greater than 5 then the oldest one should popout to the shelf. Can I use setcornerwidget for this? If yes then…
Vinod Puliyadi
  • 225
  • 1
  • 3
  • 14
0
votes
1 answer

create a table in Qt and fill it by the user

i want to create an Qt application containing a table of 3 columns and n row, the user will choose the number of row by putting it in the edit button and the table will have 3 columns and the number given by the user. then fill it with element i…
ner
  • 711
  • 3
  • 13
  • 30
0
votes
1 answer

Reset background color for QTabWidget

I see that QTabWidget background color is lighter than container widget. How to set its background to same as container widget has? Or better make it transparent? I have following code: tabWidget->setPalette(palette()); …
Aleksey Kontsevich
  • 4,671
  • 4
  • 46
  • 101
0
votes
1 answer

how to connect a QRadioButton to a QTabWidget?

i am creating a software using C++ and QT,and i have two widget one of type QRadioButon and one QTabWidget. My need is that i want to send signal from a radio button and i want that whenever the button is checked the content of tab get changed. Can…
CuriousCase
  • 745
  • 2
  • 9
  • 22
0
votes
0 answers

Call a class to add tabs in a QTabWidget

I am trying to create tabs each time that i press a button that i added to a toolbar. For this i create a windows in Pyqt, and call the class NewTab, which has the QWidget that i want to add in the QTabWidget. This is my code: class…
Pablo Flores
  • 667
  • 1
  • 13
  • 33
0
votes
2 answers

PyQt5 - Can QTabWidget content extend up to Main Window edges, even with no content?

I am new to PyQt5... Simple question here. I am using PyQt5 to build a simple application. This application has a Main Window containing a QTabWidget with 3 tabs. Once the application starts, all tab pages are empty and get filled later on. When tab…
martin_0004
  • 357
  • 1
  • 2
  • 15
0
votes
1 answer

How to make QTabWidget without pages

I with to use the tabs of QTabWidget but I don't need the pages as containers. I need only the tabs. Is there a way I can hide or disable the page containers and display only the tabs?
Gad D Lord
  • 6,620
  • 12
  • 60
  • 106
0
votes
1 answer

wrap text in the tabBar of QTabWidget

Im changing text of QTabWidget dynamically and also changing its font family. so the text in the tabBar header is exceeding the actual width. how i can control the text to wrap inside the tabBar width like "Text.." im setting the font family…
Wagmare
  • 1,354
  • 1
  • 24
  • 58
0
votes
0 answers

QTabWidget with sticky tabs

In a Python script, I'm creating a stack of tabbed widgets via QTabWidget. I would like one tab to be sticky; more precisely, regardless of how many widgets are created, I would like the tab associated with the initial widget to remain visible at…
Phillip M. Feldman
  • 468
  • 1
  • 7
  • 17
0
votes
1 answer

load image from the Top in TabWidget from PyQt

Below code, image loading from the specific Path and placing on the bottom of the Window.Here i need to load image from the top.So for that i need to change the placement of the Tab Widget(Tab01,Tab02,Tab03). I am unable to load the image from the…
user1335606
  • 479
  • 2
  • 5
  • 14
0
votes
1 answer

How can I create a system similar to QDockWidget but for tabs?

I had an idea I have no clue on how to implement. I'm working with Qt and I'ld like to have a system of tabs that allows me to use tabs in the same way one can use QDockWidgets, that is: with QDockWidgets one can pick a widget and use it floating…
Momergil
  • 2,213
  • 5
  • 29
  • 59
0
votes
2 answers

Qt Activex MainWindow on TabWidget becomes unresponsive

I have a very strange problem. The application is based on Qt C++. There is a TabWidget whose tabs are created dynamically. The tab contains QtMainWindow in ActiveX widget. When multiple apps are started, the selected one works fine. But when…
user967400
  • 53
  • 5
0
votes
3 answers

How to know what object type does QTabWidget tab hold?

Lets say there are 3 classes Foo1, Foo2 and Foo3. They are inherit QWidget. I now place each of them info a QTabWidget object. QWidget* foo1 = new Foo1(); ui->tbMain->addTab(foo1, "Untitled*"); QWidget* foo2 = new Foo2(); ui->tbMain->addTab(foo2,…
Łukasz Przeniosło
  • 2,725
  • 5
  • 38
  • 74
0
votes
1 answer

Track movable tabs in QTabWidget

I have a question regarding QTabWidget: It has a property called movable, it allow one to mix tab positions. When a tab position is moved, its index is updated. Here is my problem. Lets say I have 4 tabs, each representing some object Foo but with…
Łukasz Przeniosło
  • 2,725
  • 5
  • 38
  • 74