[PyQt] Tab labels not shown correctly

Souvik Dutta souvik.viksou at outlook.com
Mon Mar 9 12:25:00 GMT 2020


Did you use the correct selector like you should probably say,
self.setStyleSheet(<object name>: disabled{padding: 0px 0px 0px 0px})

On Mon, Mar 9, 2020, 5:34 PM Davide Liessi <davide.liessi at gmail.com> wrote:

> Il giorno lun 9 mar 2020 alle ore 12:40 Souvik Dutta Chowdhury
> <souvik.viksou at outlook.com> ha scritto:
> > Change the padding to 0px or 1px using stylesheets by writing
> > <your widget>.setStyleSheet("padding: 0px 0px 0px 0px")
> > It should work. Report if this works.
>
> I tried both
> win.tabBar.setStyleSheet("padding: 0px 0px 0px 0px")
> and
> mainwindow.setStyleSheet("padding: 0px 0px 0px 0px")
> (and with 1px as well), but there was no difference.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20200309/4286b47c/attachment.htm>


More information about the PyQt mailing list