No need to subclass anything.
Just use QPalette.
No need to subclass anything.
Just use QPalette.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
I didn't understand that you wanted each tab to have a different color, that is a different matter.
Hmm... maybe you can work around it by setting an icon, and setting its size to the tab size...
The other way (that I see) is to override the QTabBar:aintEvent() but you should know if you are up to it.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
my bad english..
tihs function use some a private member of private class... looks very hard... i think QTabBar not have good support for override
this is good idea, but here can be problem with translation support ( tr() ), i must use icon + text, .. i try this way, thx for help![]()
I've tried to override paintEvent(), but without success so far.
Was anyone able to do this?
Bookmarks