Close button only for some tabs in Qt

后端 未结 7 1932
天命终不由人
天命终不由人 2021-02-05 05:22

I am using Qt for an assignment I have for college, and I want to use QTabWidget to display a chat window much like Pidgin\'s. I want to make the \"group chat\" tab

相关标签:
7条回答
  • 2021-02-05 06:14

    I found an easier solution, I think. Simply access the relevant close button and resize it.

    tabWidget->tabBar()->tabButton(0, QTabBar::RightSide)->resize(0, 0);

    0 讨论(0)
提交回复
热议问题