qtabbar

Qt Increase QTabWidget's QTabBar size

I need to make the tabs that I have oriented at the bottom of my QTabWidget larger. We'll be using a touch-screen, so the default sizes are a little too small. I see no easy way to do this (currently seeing no good way to even do it at all. The only methods pertaining to the QTabBar that I see in QTabWidget are protected, and I don't se...

QStackedWidget inside QTabWidget tab?

In my QT application I use a QTabWidget for the base navigation. This QTabWidget I setup in the ui. In some of the tabs of the QTabWidget I need to have QStackedWidget to be able to "drill down in the view". I tried adding the QStackedWidget inside the ui also but it automatically adds a page to the stack. I want to add the pages for th...

Qt, making UI that shrinks and expands

I'm trying to learn how to create the layout of my Qt Symbian application so that it will expand/shrink and fit into the screen size of different devices. In my default ui I have added a QTabWidget with five tabs that I want to fit into the screen of the device. I have two problems: How can I make the tabs to shrink to always fit into...

Change background of indexed QTabBar tabs using stylesheets

Using Qt stylesheets, is it possible to set a different background colour for each tab in a QTabBar that has 4 or more tabs? My Qt application has 6 tabs underneath the menu bar. I'd like to change their background colours to 6 different colours using stylesheets. 2 issues appear to be standing in my way: I can only style the "first"...

Using PyQt and Qt4, is this the proper way to get a throbber in a QTabWidget tab?

I have some code creating a QTabWidget from Python using PyQt4. I want to get a 'throbber' animated gif in the tab. The /only way/ I have found how to do this is the following convoluted method. tabBar = self.tabReports.tabBar() lbl = QtGui.QLabel(self.tabReports) movie = QtGui.QMovie(os.path.join(self.basedir, "images\\throbber.gif")) ...

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 invert this look and feel - the top corners to be square and the bottom ones to be rounded. ...