Hiding bottom line in QTabBar

2019-06-23 17:32发布

问题:

There doesn't seem to be a way of setting a stylesheet for the bottom line (shown in the image below) of a QTabBar, which I want to be removed.

How can I remove it?

回答1:

Haven't used Qt in 6-7 months now so I'm not sure if this will work nor can I test it. Give QTabBar::drawBase a try. Plus the Qt library are very well documents so you should find a solution to your problems if you just carefully sift through it.

Hope you are using the Qt SDK.