Re: Tab labels not shown correctly

Davide Liessi <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <CAOXn3bqhziiGoXsfdjtiNHYUejR+AQFB4DGKiaZogpr4-_as_Q@mail.gmail.com>
Il giorno lun 9 mar 2020 alle ore 15:02 Damon Lynch
<[email protected]> ha scritto:
> [...] if you want to do it properly, you need to learn how Qt styles its widgets and work with its system.

In this case, the application I'm working on does not specify any
styling of the tab bar, but switching from Qt 4 to Qt 5 ruined the
default style on Mac (see the images attached to my first message in
the thread).
I'm actually working around a bug in Qt here (I believe it is
https://bugreports.qt.io/browse/QTBUG-74689).

I also expected that adding one single style sheet instruction would
add it to the default style.
Instead, the default style was mostly disrupted.
I would consider this a bug as well (hoping it is not intentional, in
which case I would consider it a bad design choice).
I don't know if this has already been reported.

> Whether it is worth it is up to each developer

I don't expect any problems in this case.
It is the only stylesheet used in the application and it has a very
specific purpose: should Qt's behaviour change in this respect, I have
only these few lines to possibly adapt.
Anyway, I would be grateful if you could point me to a better way of doing it.

Best wishes.

Davide
_______________________________________________
PyQt mailing list    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.