I am currently working on customizing a QTabBar with a stylesheet in my tool. I use QIcon to create icons for the tabs, allowing me to set different modes such as normal, disabled, and selected. The challenge I am facing is trying to apply a global stylesheet to the QTabBar that will automatically set unselected tabs to the disabled mode without knowing what the tab's icon is.
To provide some context, I have a tool with multiple tabs where icons are set using QIcon during tab creation. My goal is to implement a global stylesheet that can be applied to the entire tool, adjusting the appearance of unselected tabs to the disabled state regardless of their individual icons.