Questions tagged [qtabbar]

QTabBar is a class from the Qt Toolkit which provides a tab bar, e.g. for use in tabbed dialogs.

Documentation can be found here (Qt4) and here (Qt5).

95 questions
0
votes
1 answer

Confining background color to Triangular tab on QTabBar

I set up a QTabWidget using the Qt Designer and selected "Triangular" tabs instead of the "Rounded" tabs for the tabShape. I wanted the non selected tabs to be green. An answer from one of my prior questions …
Dennis
  • 269
  • 1
  • 13
0
votes
1 answer

Make every tab the same size and expandable

I was looking at this question asked 2 years ago: Make every tab the same width and also expandable The solution is exactly what I am looking for, except that it does not work for me. I think I lack some elements in my code. I used QtDesigner to…
Francky380
  • 233
  • 1
  • 12
0
votes
1 answer

QTabBar custom css

I'm trying to refine the Breeze Dark theme for konsole using custom CSS, but I cannot figure out the selector which gets picked when the konsole content changes and the tab get becomes highlighted (if you know what I mean; it merely means that the…
drookie
  • 179
  • 3
  • 11
0
votes
2 answers

Setting the colour of individual tabs within a QTabWidget

I need the user to be able to customize the tabs completely, I.E. right click on each tab and be able to bring up a colour palette which will allow them to change the colour of that individual tab. To do this, I've re-implemented the paintEvent…
0
votes
1 answer

Customize appearance QTabWidget

I am currently working on Qt application. There I am using QTabWidget with several tabs. QTabWidget is embedded into QVBoxLayout. My question is that tabs added appear centered and I would like them to be left aligned. How could I achieve that? I…
RuLoViC
  • 825
  • 7
  • 23
0
votes
1 answer

PyQt5 can't create Tabbars or Tabs

I have been struggling to learn PyQt5 (and object oriented programming). In my current script I need to create a tabbed interface but can't seem to manage it. I suspect the problem is related to OOP (I am a novice). "self" seems to be the problem,…
tscv11
  • 55
  • 1
  • 7
0
votes
2 answers

QPalette Does not work in QTabBar?

I have Tabbar in my form, What I want is to differentiate Active and Inactive Tab with different color text in it. My code is as below. I don't understand what is missing in it, It always show QPalette::Active text color in all the tab QPalette…
0
votes
1 answer

Expand QTabBar dynamically

I'm inserting tabs via QLineEdit dynamically which works fine. To fill the whole width of the screen (800px) I'm expanding the tabs using my own eventFilter: tabs.h class ResizeFilter : public QObject { QTabBar *target_tabs; public: …
MichaW.
  • 37
  • 5
0
votes
1 answer

Setup QTabBar position

If I use QTabWidget i can call setTabPosition to change it to "South" and have tabs appear at the bottom. Is there a similar behavior for QTabBar? Currently on Mac the top left and right corners are rounded and the bottom ones are not. I wish to…
Gad D Lord
  • 6,620
  • 12
  • 60
  • 106
0
votes
0 answers

QTabBar: Border of tabs disappearing when changing background color

I would like to change the default background colour of my QT-application (QT 4.8.6 based) to a different (darker) grey. I did this by adding background-color: #A3A3A3; to the QWidget-section in my QSS file. This works well, with the exception of…
Borkhuis
  • 141
  • 3
  • 11
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
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

QT Custom QStyle for QTabBar and QIcon

I have customize a Qtabbar's QMdiarea to get horizontal tab instead of vertical tab like this : http://www.qtcentre.org/wiki/index.php?title=Customizing_QTabWidget%27s_QTabBar But i want to insert icon in my QTabBar. If I apply my custom style to my…
Zennoi
  • 13
  • 3
0
votes
1 answer

Internal QWidgets of QTabBar's tab?

As a follow up of " Hide label text for Qt tabs without setting text to empty string " : Can I directly access the widgets within the tabs of the QTabBar. I do not mean the corresponding widget which is shown when I select a tab, but the tab's…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
0
votes
1 answer

QMdiArea in TabbedView glitch on tab switching

I have QMdiArea initialized like this: m_pMdiArea = new…
Mikhail
  • 20,685
  • 7
  • 70
  • 146