QT之qss教程-QToolButton



QToolButton {
	border:2px solid #124d92;
	border-radius:5px;
	background-color:yellow;
	min-width:60px;
	min-height:40px;
}

QToolButton[pupupMode="1"] {
	padding-right:20px;
}

/* 鼠标按下时 */
QToolButton:pressed {
	background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                      stop: 0 #dadbde, stop: 1 #f6f7fa);
}

/* 按钮有菜单时 */
QToolButton::menu-button {
	border:2px solid red;
	border-top-right-radius:6px;
	border-bottom-right-radius:6px;
	width = 16px;
}

/* 菜单小箭头 */
QToolButton::menu-arrow {
	image:url(:/images/111.bmp);
}

/* 菜单打开时 */
QToolButton::menu-arrow:open {
	top:2px;
	left:2px;
}


你可能感兴趣的:(QT,QSS)