菜单栏QMenuBar/QMenu样式

菜单栏QMenuBar/QMenu

/* 菜单栏 */

QMenuBar

{

background-color: white;

color: #222222;

}

QMenuBar::item

{

background: transparent;

}

QMenuBar::item:hover

{

background: #DAEBF7;

}

QMenuBar::item:selected

{

background: #DAEBF7;

}

QMenuBar::item:pressed

{

}

/* 菜单 */

QMenu{

background:white;

border:1px solid lightgray;

}

QMenu::item{

padding:5px 15px;

margin:1px 2px;

color:#222222;

font-size:12px;

}

QMenu::item:hover{

background:#DAEBF7;

}

QMenu::item:selected{

background:#DAEBF7;

}

QMenu::item:disabled{

color:#727272;

}

QMenu::separator{

background:lightgray;

height:1px;

margin-left:2px;

margin-right:2px;

}

/* indicator */

QMenu::indicator {

width: 18px;

height: 18px;

}

你可能感兴趣的:(QT,qss,qt,前端)