[PyQt] Spacing between tabs in QTabWidget etc...

Selim Tuvi Selim.Tuvi at pdi.dreamworks.com
Fri Dec 11 17:03:16 GMT 2009


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    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Selim_Tuvi.vcf
Type: text/x-vcard
Size: 375 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091211/78e2a290/Selim_Tuvi.vcf


More information about the PyQt mailing list