设置QTabBar位置

发布于 2024-09-15 12:51:03 字数 152 浏览 0 评论 0原文

如果我使用 QTabWidget,我可以调用 setTabPosition 将其更改为“South”,并使选项卡显示在底部。

QTabBar 有类似的行为吗? 目前在 Mac 上,左上角和右上角是圆角的,而底部不是。 我希望反转这种外观和感觉 - 顶角为方形,底角为圆形。

If I use QTabWidget i can call setTabPosition to change it to "South" and have tabs appear at the bottom.

Is there a similar behavior for QTabBar?
Currently on Mac the top left and right corners are rounded and the bottom ones are not.
I wish to invert this look and feel - the top corners to be square and the bottom ones to be rounded.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

記憶穿過時間隧道 2024-09-22 12:51:03

我通过使用以下方法解决了我的问题:

this->myTabBar->setShape(QTabBar::RoundedSouth);

I resolved my problem by using:

this->myTabBar->setShape(QTabBar::RoundedSouth);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文