Ich möchte gern ein eigenes Menu machen da ich für mein Programm ein kompletes Design machen möchte und QMenuBar soweit ich weiß nicht positionieren läst. Ich versuche die ganze Zeit eine Menuleiste nach unten zu erstellen mit QLabel und den dazu gehörigen buttons.
Nun mein Problem ist das das hier nicht geht:
Code: Alles auswählen
qApp ->setStyleSheet("class_style QLabel#l_menu_start:hover {color:red;}");
oder
qApp ->setStyleSheet("QLabel#b_menu_start:hover {color:red;}");
Code: Alles auswählen
#menu :hover #sub {height:20px; display:block; position:absolute; width:130px; top:19px;padding-left:0px;padding-right:0px; }
#menu :hover #sub li a
{border:0px none; display:block;height: 20px; color: #0c7f9b; }
#menu :hover #sub li a:hover
{color: #0c7f9b; text-decoration: underline; }
#menu :hover #sub-sub {height:20px; display:block; position:absolute; width:130px; top:39px; padding-left:0px;padding-right:0px; }
#menu :hover #sub-sub li a
{border:0px none; display:block;height: 20px; color: #0c7f9b; }
#menu :hover #sub-sub li a:hover
{color: #0c7f9b; text-decoration: underline; }
Gruß,
Nico alias Gamebuntu