在 QTabBar 中隐藏底线 [英] Hiding bottom line in QTabBar

查看:68
本文介绍了在 QTabBar 中隐藏底线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎没有办法为 QTabBar 的底线(如下图所示)设置样式表,我想删除它.

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.

我怎样才能删除它?

推荐答案

现在有 6-7 个月没有使用 Qt,所以我不确定这是否有效,也无法对其进行测试.给 QTabBar::drawBase 试一试.另外,Qt 库是非常好的文档,因此如果您仔细筛选它,您应该会找到解决问题的方法.

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.

希望您使用的是 Qt SDK.

这篇关于在 QTabBar 中隐藏底线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆