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

Why Ctrl+Tab doesn't work anymore in my QTabWidget?

There is QTabWidget in my application. Ctrl+Tab does not toggle tabs. But I noticed Ctrl+Tab works for new QTabWidget. May be I accidentally removed this action. I don't know. What can be a reason and how can I restore tabs toggling by Ctrl+Tab?
Ufx
  • 2,595
  • 12
  • 44
  • 83
0
votes
2 answers

QT: Escape from QTabWidget

I have a dialog and a tab QTabWidget inside it, and inside that tab there is a table view. Please see the screen shot below the problem is when I press tab key from the text box in dialog (text box Telp) it goes to the tab Items and then when I…
aldo
  • 312
  • 3
  • 12
0
votes
1 answer

QTabWidget does not respect spacing from layout

I have this test case: // Scroll QScrollArea *sa = new QScrollArea(ui->centralWidget); sa->setWidgetResizable( true ); // Layout for widgets QVBoxLayout *vl_2 = new QVBoxLayout(); vl_2->setSpacing(0); // Widget to attach the scroll to and the…
user985611
  • 139
  • 8
0
votes
1 answer

How to prevent tab buttons from shrinking in QTabWidget

How do I prevent the tab buttons of a Qt5 QTabWidget from shrinking, thus obscuring the full tab names, when I shrink the containing window? Here's a self-contained example of the problem: #include #include #include…
lcikgl
  • 759
  • 1
  • 8
  • 20
0
votes
1 answer

PyQt dynamic adding tab with buttons - layout issue

I'm trying to create a system that will automatically add tabs according to how many product types there are and then automatically add buttons within their corresponding tab for the items, but for some reason all the tabs have the same button as…
Inthu
  • 1,009
  • 1
  • 8
  • 16
0
votes
2 answers

Changing the tab widget design in Qt

I have been searching for a way to alter the standard tab widget in Qt off and on for about 2 weeks. Does anyone know how to do this? My goal is for it too like similar to the picture posted
user3878223
  • 441
  • 3
  • 7
  • 15
0
votes
1 answer

Pyqt close unselected tab

So to close tabs I've been using the QTabWidget.currentWidget() to find the selected tab to close, but now when I click the close icon on a different tab, it closes the current tab because of how I have set this up So how can I find the tab attached…
SketchyManDan
  • 176
  • 1
  • 10
0
votes
2 answers

QTabWidget - How do I edit each widget separately?

I am in the process of learning Qt and generally C++, and I am stuck on this problem. Hopefully, it will be simple to answer. I have a QTextEdit created by this code: void MainWindow::on_actionNewtab_triggered() { ui->tabWidget->addTab(new…
VOT Productions
  • 136
  • 1
  • 9
0
votes
1 answer

Change QCalendarWidget grid visibility/thickness

I would like to make the QCalendarWidget grid visible. As far as I know the days part in a QCalendarWidget is implemented as a QTableView but I don't know how to modify the grid bar thickness of a QTableView either. I would like it to look something…
Jacob Krieg
  • 2,834
  • 15
  • 68
  • 140
0
votes
1 answer

How to create new QPlainTextEdit widget in new tab of QTabWidget?

I am working on a muti-tab text editor project. I have a problem when I try to display text file in new tab. When openning a text file, I want the program display the content in a new tab with a new QPlainTextEdit widget and don't toutch old tabs…
user3654736
  • 55
  • 1
  • 5
0
votes
1 answer

Qt 5, Undo/Redo for every QTextBrowser in QTabWidget

I want to create multitab text and html editor .I ecountered the problem : i need to implement undo/redo operation for each text browser individually .But the operations are applied to all windows at oncee. How can i fix it ?
Creati8e
  • 21
  • 1
  • 7
0
votes
0 answers

Qt Use QTabBar in a Different QLayout

I have a custom QTabWidget and a custom QTabBar. Everything is working fine and I can go through the tabs and stuff. But the thing is, I wanna put the QTabBar in a different layout than the QTabWidget. This way I can make a Menu Bar type of layout…
David Ludwig
  • 967
  • 2
  • 12
  • 26
0
votes
1 answer

QTabWidget tab switch shortcuts don't work under some Linux DE

I'm writing a rather complex editor with a huge number of keyboard shortcuts (or "hotkeys"), using standard Qt's way like QShortcut/QKeySequence. I have no prob with all this until the recent time. For the QTabWidget easy tab switching i used…
eraxillan
  • 1,552
  • 1
  • 19
  • 40
0
votes
1 answer

QTabWidget not appearing

I have some difficulties to create my UI. What I need : 1 QTabWidget with 3 QWidget as tabs. One of these Widget contains QPushButtons, QLineEdits, and have to contain another QTabWidget. My problem : Where I've sucess on my other QTabWidget, this…
MokaT
  • 1,416
  • 16
  • 37
0
votes
1 answer

Access to a tableWidget inside tabWidget error

How do I access a tableWidget, which is inside the tab1 of a tabWidget?? This is what I have done so far... table = self.ui.tabWidget.widget(0) table.setRowCount(5) And the Error returned: Traceback (most recent call last): …
codeKiller
  • 5,493
  • 17
  • 60
  • 115