You should be able to use stylesheets to modify the tab margins. See the docs for details:
http://doc.trolltech.com/4.5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar

example:

QTabBar::tab {
   margin-left: 5;

   margin-right: 5;

}


The docs also provide examples on how to change the background color.
-Selim

Jebagnana Das wrote:
Hi all,

         I have two questions regarding QTabWidget..
1)Is it possible for us to leave space between the tab headers(between tab1 and tab2 in the header in this picture)... http://i48.tinypic.com/r2uhxf.jpg <http://i48.tinypic.com/r2uhxf.jpg%20> If yes could you tell me how it can be done??

2)Can we change the background color of only the headers(tab1 and tab2) but not completely?? or shall we place a readymade image instead of the tab header??

Your suggestions are much awaited...

Jeba ------------------------------------------------------------------------

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

<<attachment: Selim_Tuvi.vcf>>

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to