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:
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
orQTabBar
focusPolicy property to NoFocus. The user won't be able to change between tabs using the keyboard. - Set the
QTabWidget
documentMode property to true.
精彩评论