Setting On Off QIcons in Designer doesn't work
-
So I want a PushButton to show distinct QIcons depending on the Checkstate.

When I preview my Widgets UI it does work, but when i build and open the whole application the buttons icon wont change as intended and stays the same, although you can clearly see the QPushButton changing its state. Where am I wrong, is this a bug? Using QtCreator 14.0.1 and Qt 5.15 MSVC 2019 64Bit. Already tried deleting the build folder for a clean rebuild. -
What style do you use in your application?
-
This post is deleted!
-
What style do you use in your application?
// Set the dark style a.setStyle(QStyleFactory::create("Fusion")); -
Try with 'windows' style to see if it makes a difference.
-
Try with 'windows' style to see if it makes a difference.
@Christian-Ehrlicher It works with Windows style and with no style specified/default.How do i get it to work with fusion?
-
@Christian-Ehrlicher It works with Windows style and with no style specified/default.How do i get it to work with fusion?
@InTheBeninging said in Setting On Off QIcons in Designer doesn't work:
How do i get it to work with fusion?
Fix the fusion style.
-
I InTheBeninging has marked this topic as solved on