<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 9, 2020 at 9:48 AM Davide Liessi <<a href="mailto:davide.liessi@gmail.com">davide.liessi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Il giorno lun 9 mar 2020 alle ore 13:27 Souvik Dutta<br>
<<a href="mailto:souvik.viksou@outlook.com" target="_blank">souvik.viksou@outlook.com</a>> ha scritto:<br>
> Did you use the correct selector like you should probably say,<br>
> self.setStyleSheet(<object name>: disabled{padding: 0px 0px 0px 0px})<br>
<br>
I started from the examples in<br>
<a href="https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar" rel="noreferrer" target="_blank">https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar</a><br>
and with the help of<br>
<a href="https://doc.qt.io/qt-5/stylesheet-reference.html" rel="noreferrer" target="_blank">https://doc.qt.io/qt-5/stylesheet-reference.html</a><br>
I arrived at the example below, which reproduces quite well the<br>
default style on Mac, while also fixing the display of the text in the<br>
tabs.<br>
<br>
Thanks for your help!<br>
Best wishes.<br>
Davide<br></blockquote><div><br></div><div>While I don't have the message in front of me, I do recall a senior Qt developer mentioning that while manipulating stylesheets has its uses, they are seriously limited and can get you into trouble. In short they're a hack. They might be fine for prototyping, but if you want to do it properly, you need to learn how Qt styles its widgets and work with its system. Which isĀ  definitely more difficult. The complexity is real. Whether it is worth it is up to each developer (I do use 
stylesheets 

myself for some things). It would be nice if the Qt documentation would do a better job of introducing Qt widget styling and how to get results quickly and efficiently without stylesheets. <br></div><div><br></div><div>Damon<br></div></div></div>