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

Editable QTabWidget

I want that user could rename tabs: clicking on current tab label should turn on editable mode. The only way I can see is to use stacked layout + scrollarea + custom widgets + stackedwidget. Can I do it with standard QTabWidget? And one more…
developer
  • 319
  • 2
  • 13
0
votes
1 answer

Setting color of Tab part of QTabWidget

When I change the background color of the QTabWidget, the tab part of the widget doesn't change colors. Looking online there doesn't seem to be a simple way to set this color. Suggestions?
user2494298
  • 299
  • 3
  • 7
  • 23
0
votes
1 answer

Tab creation in Qt

I wanted to create a new tab dynamically when a button is clicked in the mainwindow.Let this button be NEW. I have placed a QWidget in the mainwindow where I would like the QTabWidget to be visible. I have added a new form with class named TabWidget…
0
votes
1 answer

How to access properties of parent tab in Qt?

OK. So, I have a form in which there is Qt's Tab Widget. And, I have a custom widget in which I have Qt's Webkit. Now, I want to change the text in the parent tab of my custom widget when the website changes. I have got the function for the…
rqmok
  • 834
  • 2
  • 9
  • 20
0
votes
1 answer

Strat tabs from QTabWidget in threads

is it possible to start tabs from the QTabWidget in several threads? I want to append the continuous given answers from a server to a QTextEditWidget. The change of the QTextEditWidget should show always after the append of a new answer. Acctually i…
Andreas
  • 636
  • 1
  • 12
  • 29
0
votes
1 answer

Save the current position/order in a QTabWidget when a button is clicked - User Settings

Is it possible to save the current tab position/order in a QTabWidget in Qt? What I want is basically to be able to let the users arrange the tabs as they like and then let them save the position so when they open the application again the tabs are…
fs_tigre
  • 10,650
  • 13
  • 73
  • 146
0
votes
1 answer

Qt5 Force TabWidget to resize on window size change

I'm new to Qt and am trying to create a GUI application that will force the QTabWidget to resize to the maximum available size when the window is resized. I've read a few pages and questions on here but can't seem to get it working. Screenshot…
Jarrod Cabalzar
  • 408
  • 1
  • 5
  • 24
0
votes
1 answer

OSGViewer in Qt's TabWidget

I am using OpenSceneGraph 3.0.1 and having a problem with the Qt integration using the osgQt::GLWidget when adding it to a tab control during startup (inside the constructor of my main window. MainWindow::MainWindow(QWidget* parent) : …
Beachwalker
  • 7,685
  • 6
  • 52
  • 94
0
votes
2 answers

How to Make Tabs in QTabWidget Stretch to Avoid Scrolling

I have a QTabWidget with a few tabs of a fixed size. I'd like to place the tab widget in a layout to make it stretch with the main window, but this results in a scroller appearing to the right of the tabs when I shrink it or empty space on the right…
sj755
  • 3,944
  • 14
  • 59
  • 79
0
votes
1 answer

Tell where the showEvent is from

I have a QTabWidget, and I defined showEvent for one of the child widget. Now how can I know where the showEvent is from? It could be: Switched from other tabs The current index of tabwidget was not changed, the whole window just become visible Is…
daisy
  • 22,498
  • 29
  • 129
  • 265
0
votes
1 answer

error: 'QTabWidget::QTabWidget(const QTabWidget&)' is private

I develop a program and I have 10 backups of it. I added some lines to it and when I compiled the project and now it has the following error: C:\Qt\Qt5.0.1\5.0.1\mingw47_32\include\QtWidgets\qtabwidget.h:173: error: 'QTabWidget::QTabWidget(const…
Mahdi_Nine
  • 14,205
  • 26
  • 82
  • 117
0
votes
1 answer

QTabWidget with dynamic change widgets

I'm using QTabWidget (pHTab composed in AbstractManagerTab) to show some data (IpTrafficPage and SpecTrafficPage widgets), and I need to dynamically add QPushButtons to added tabs. When I start application, added buttons are visible only at the…
Pavel
  • 1
  • 1
0
votes
1 answer

How to get widget from QTabWidget?

I'm writing a simple text editor and using QTabWidget in it. For some QActon from QMenu I need to work with some widget from QTabWidget. QTabWidget::widget() return QWidget, but I need QTextEdit, which I added to QTabWidget using addTab(). How do I…
Ilya Glushchenko
  • 317
  • 1
  • 6
  • 13
0
votes
1 answer

Qt, QWidget, QTabWidget, QTabBar: How to move the text to the bottom of icon?

By default, the text is always on the right-side of the tab icon... What should I do to move the text to the bottom of it ? And is there an option to do icon/text alignment ?? (I'm designing the GUI base on Qt Creator Designer. I'm trying with…
aviit
  • 1,957
  • 1
  • 27
  • 50
0
votes
1 answer

Adding a text to the QTabWidget

I have class which inherits QTabWidget. Inside the generated tab I want to display some text.The text should not be editable by the user.But during the application execution there can be a case/s which will cause the text change. Which class should…
YAKOVM
  • 9,805
  • 31
  • 116
  • 217