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

Remove blue line from tab widget in android

I have tried both android:tabStripEnabled="false" and tabHost.getTabWidget().setStripEnabled(false); for removing the blue line from tab widget that appears bottom of tabwidget but no luck is there something that I am missing
user1496151
0
votes
2 answers

delete qtabwidget

my program keeps crashing with returncode 0. The cause is somewhere in my qtabwidget but I can't find the error. QTabWidget *layout_tabs; // create tabs void myclass::fill_tabs(void) { kill_tabs(); // remove old tabs layout_tabs = new…
0
votes
1 answer

How can I resize a QTabWidget?

My program performs a calculation and outputs a few schematics, drawn onto a label (using QPixmap). I show a label on every tab. When the next calculation is done and the drawings are smaller, I want the size of the tabs to decrease as well. But…
0
votes
1 answer

QTabWidget with tabs both at the top and to the right.

I have a QTabWidget with two tabs. I want one to be on the east side and the other one at the top. I've tried these style sheets, but so far I couldn't get it…
SamuelNLP
  • 4,038
  • 9
  • 59
  • 102
0
votes
1 answer

Tab not being added to QTabWidget

This is quite odd. Using this code, I am attempting to add a tab to a QTabWidget: void SideWidget::changePanel(SearchablePanel* panel){ ui->nextButton->setEnabled(false); cout << pointer; widgetHistory[++pointer] = panel; QWidget*…
MirroredFate
  • 12,396
  • 14
  • 68
  • 100
0
votes
0 answers

Page focus in QtabWidget(pyQT)

May be this question appears to be realy basic thing, but i am not able to find the solution to the issue. I want to load the elements of the page(QWidget) in tab layout as i click on it. I changed the focus policy to click focus of the Qwidget(of…
Program Questions
  • 440
  • 2
  • 6
  • 20
0
votes
1 answer

How to have common control in QTabWidget

I want to use a common control (QTreeView) in two different tab pages in QTabWidget. how to do this ? I added a tabwidget and controls in tab pages in Qt designer. using qt creator version 2.4.1 in Win 7.
Prady
  • 663
  • 3
  • 11
  • 28
0
votes
1 answer

Change cursor of selected tab in a QTabWidget

I wonder if it's possible to change the cursor of the selected tab of a QTabWidget. I mean : I would like to have an arrow for the selected tab and the "hand" for the others. I was able to set the "hand" for the 4 tabs of the widget, but not…
castors33
  • 477
  • 10
  • 26
0
votes
1 answer

Error in adding QTabWidget to QDialog

I am trying to create UI like.. for this created a subclass from QDialog and trying to add Menubar and Tabwidget via QVBoxLayout, I am able to add MenuBar successfully, but when I add Tabwidget .. TabWidget = new…
Prady
  • 663
  • 3
  • 11
  • 28
0
votes
1 answer

QT QTableWidget not appearing in QTabWidget

I have an application which uses multiple tabs. I used QTabWidget. On some tabs I needed to show tables, so I used QTableWidget. The code snippet is: QWidget *qwgt = qPreviewTabs->widget(Index); QTableWidget *qDrvTab = new…
hiranes
  • 17
  • 10
-1
votes
1 answer

PyQt5: QAction -- QTextEdit.paste not working with QTabWidget?

PyQt5: QAction -- QTextEdit.paste not working with QTabWidget? Trying to learn python, I have started a project to write a tabbed markdown editor. In the code below everything works as expected, I can: Add and Remove tabs Use the keyboard to add…
Irvine
  • 11
  • 4
-1
votes
1 answer

Pyside6: Create QTabWidget with function rather than class

I've been trying to make an application using Pyside6 and can't seem to understand why we can't create a QDialog having QTabWidget with just functions. I am not sure if I am making a mistake somewhere so, here is the code I've wrote: Imports: from…
-1
votes
1 answer

How can I use QMenuBar to switch between widgets?

I don't know much about QT. I am trying to do my first GUI and actually this is the first thing that I want to do. How can I set up top menu bar to switch between layouts? Again, I don't know yet how to even set up these layouts and I don't know the…
Shmookoff
  • 146
  • 1
  • 10
-1
votes
1 answer

Qt tabView backgorund color change

I have a problem with changing the color of the background of my tabWidget into the same color as MainWindow. I have tried fiddling with palletes, but it didn't change anything. I want to change the white area to be gray.
Kestrel
  • 29
  • 5
-1
votes
1 answer

Loading different QWidgets dependant on highlighting row of QTableWidget

Having a QTableWidgets with a list of tables and two additional classes Combocells and Groupcells. They are shown with QTabWidget. I want to click and highlight a row or cell in the table then the two classes Combocells and Groupcells refreshs and…
Pavel.D
  • 561
  • 1
  • 15
  • 41
1 2 3
24
25