pyside6_qtads icon indicating copy to clipboard operation
pyside6_qtads copied to clipboard

Option to have close buttons present on each of the tabs yet only visible on the hovered tab

Open jdegeete opened this issue 2 months ago • 4 comments

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:

  1. Enabling the close button for each tab.
  2. Having two icon images for the close QPushButton. One having the same color as the background.
  3. 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.

jdegeete avatar Apr 07 '24 02:04 jdegeete