Qt QTreeView stylesheet bug (?) under Linux

Viewed 18

Currently I am working on a simple Qt application with Qt Designer, using stylesheets.

I ran into the following issue. There is the QMainWindow, which contains a QStackedWidget. One of this stacked widget's pages is a QTreeWidget. This QTreeWidget can be seen on the picture below. It is stretched by the stacked widget page size, but it's contents are NOT stretched. So, when applying stylesheets, yellow header and blue items leave some kind of almost-white upper right corner. This corner's color seems to be the same as the next parent widget's color (QStackedWidget is transparent, so that QMainWidget's color is used). How can I get rid of this corner?

QTreeWidget

P.S. Looks like this is a Qt bug under Linux, since under Windows everything looks fine. I am using Qt 5.6.3 (built from source).

Thanks in advance!

0 Answers
Related