pyside6_qtads
pyside6_qtads copied to clipboard
Option to have close buttons present on each of the tabs yet only visible on the hovered tab
I am wondering whether there is an easy solution to provide this functionality. I have currently achieved this in my pyside6 application in the most horrible way by:
- Enabling the close button for each tab.
- Having two icon images for the close QPushButton. One having the same color as the background.
- By Installing a (global) event filter on the app. This event filter catches 'enter' and 'leave' events on the tab and changes the style of the QPushButton accordingly. Without this, the color of the QPushButton only changes by going over the QPushButton rather than the tab.