QAction setChecked transparent?

Alles rund um die Programmierung mit Qt
Antworten
defenderLQ
Beiträge: 156
Registriert: 27. Juli 2006 20:53

QAction setChecked transparent?

Beitrag von defenderLQ »

Hi

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;
}
bei QMenu gehts:

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;
 }
Antworten