Da ich Vista theme genutzt hatte bis jetzt ist mir nicht aufgefallen das setChecked
für ein QAction im ToolBar der Hintergrund nicht transparent ist,
sondern nur wenn man vista them hat,
Also wollte für setChecked hintergrund transparent haben,
habe versucht mit stylesheet eaber es funktioniert nicht.
Code: Alles auswählen
QToolBar {
background-color: transparent;
}
QToolButton: {
background-color: transparent;
}
Code: Alles auswählen
QMenu::item {
/* sets background of menu item. set this to something non-transparent
if you want menu color and menu item color to be different */
background-color: transparent;
}