[Qt-interest] Setting the background color of a tab
Jonas Gehring
jonas.gehring at boolsoft.org
Thu Aug 4 11:45:27 CEST 2011
On 08/04/2011 11:41 AM, Stefan Löffler wrote:
> Wouldn't it be better to simply override initStyleOption in your
> subclass? Something like (not tested)
Unfortunately, initStyleOption() is not virtual, so you can't override
it. I don't have a clue why this function is non-virtual for QTabBar and
many other widgets, since this would be an easy way to extend their
visual representation.
- Jonas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110804/32f49e98/attachment.bin
More information about the Qt-interest-old
mailing list