QT5学习笔记
setStyleSheet:
QComboBox { #下拉菜单
border:none; #设置无边框
border-bottom:1px solid lightgray; #底部有边框,为1像素,淡蓝色
}
QComboBox:focus {
border-bottom:1px solid rgb(0, 85, 255) #鼠标放置
}
QComboBox::down-arrow {
image:url(:/newPrefix/QT5/tu.qrc/xiajiantou-2.jpg); #下拉菜单右边的箭头标识
width:20px;
hight:20px;
}
QPushButton {
background-color:rgb(85, 170, 255);
border-radius:2px; #边角
color:blue;
}
QPushButton:hover { #伪状态
background-color:rgb(85, 85, 255); #放上去的时候背景颜色
}
QPushButton:preesed {
background-color:rgb(85,85,255); #点击时的背景颜色
}
QWidget#MainWindow {
border-image: url(:/newPrefix/tu.qrc/caise.jpg);
}