开发者

how to get rid of visual tab focus

while running my qt application in linux, a tab focu开发者_StackOverflow中文版s appears on the selected

control- like this:

how to get rid of visual tab focus

that doesn't happened in windows.

how can i get rid from this visual focus?


Try one of these:

  • Explicitly set the QApplication style to one that doesn't draw a focus rectangle on the tabs, for example plastique. This might break any custom style sheets. The native look and feel will be gone, too.
  • Set the QTabWidget or QTabBar focusPolicy property to NoFocus. The user won't be able to change between tabs using the keyboard.
  • Set the QTabWidget documentMode property to true.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜