Issue
I've created a QTabWidget with images overlaid but the images start at the top of the TabWidget instead of the Tab. I want these images on top of each tab so I need to find out the size of the tab bar to adjust the images down correctly.
Currently on my computer the Tab height is 18 pixels but I need to make sure the adjustment will work across all platforms so is there any way to find out the height of the tabs as a variable?
To clarify - H, the height of the tab bar is what I'm after. Thanks
Solution
I think you should try, this might give your ans
self.widget.geometry().height() - self.any_tab_name.geometry().height()
Second portion will give height of tabs("Demo","tab_name"), subtract that from tabwidget height.
Answered By - Binit Amin
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.