Skip to content

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

@jdegeete

Description

@jdegeete

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions