Qt项目中qss样式使用

20 篇文章 1 订阅
2 篇文章 0 订阅
QWidget#AppFrame,#TopWidget, #mechanicalArmPage, #twoMechanicalArmWidget, #threeMechanicalArmWidget, #fourMechanicalArmWidget
{
	background-color:rgb(19,43, 61);
}

QWidget#AppFrame
{
	background-color:rgb(255,255,255);
}

QWidget#BottomWidget, #patientPage, #addPatientInfoWidget, #mechanicalStatisticsWin, #settingMainWidget, #mechanicalArmWidget, #OutImageWidget, #ImageCarSettingWidget, #ImageCarProcessWidget, #ImageCarToolWidget
{
	background-color:rgb(14,32,46);
}

QWidget#mechanicalArmPage, #twoMechanicalArmWidget, #threeMechanicalArmWidget, #fourMechanicalArmWidget
{
	border-radius:12px;
}
QToolButton#closeButton
{
	border-image:url(:/setting/image/setting/close.png);
}

QWidget#armrestHeightWidget, #pitchingWidget, #pedalHeightWidget
{
	border-image:url(:/workFlow/image/workFlow/adjustBackground.png);
}

QFrame#frame, #frame_2
{
	background-color:#F5F5F5;
	border-radius: 8px;
	border:1px;
}

QFrame#leftOperationWidget
{
	background-color:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #0A575D,stop:1 #0A3D45);
	border-bottom-right-radius:32px;
	border-top-right-radius:32px;
	border:0px;
}

QFrame#rowFrame
{
	border-left:0px;
	border-right:0px;
	border-top:0px;
	border-bottom:2px solid rgb(62,77,88);
}

QFrame#outImageFrame
{
	border:0px;
	background-color:#142C3E;
}

QDialog#LockSysDialog, #LoadingDialog
{
	background-color:rgba(10, 10, 10, 80%);
}

QDialog#messageDialog>QFrame#dialogFrame
{
	background-color:rgb(20,44,62);
	border-radius:8px;
}

QDialog#messageDialog>QFrame#dialogFrame>QWidget#titleWidget
{
	background-color:rgb(7,128,127);
	border-top-left-radius:8px;
	border-top-right-radius:8px;
}

QWidget#scrollAreaWidgetContents
{
	background-color: transparent;
}


QScrollArea
{
	border:none;background-color:transparent;
}

QScrollArea QScrollBar:vertical
{
	width:5px;
	background:transparent;margin:0px,1px,0px,1px;
	padding-top:0px;padding-bottom:0px;border-radius:2px;
}

QScrollArea QScrollBar::handle:vertical
{
	background:#FFFFFF;
	border-radius:2px;
}

QScrollArea QScrollBar::handle:vertical:hover
{
	background:#47d5d5;
	border-radius:2px;
}

QScrollArea QScrollBar::add-page:vertical,QScrollBar::sub-page:vertical
{
	background:transparent;border-radius:2px;
}

QScrollArea QScrollBar::add-line:vertical,QScrollBar::sub-line:vertical
{
	height:0px;width:0px;
}

QScrollArea QScrollBar:horizontal
{
	width:10px;
	height:8px;
	background:transparent;margin:0px,1px,0px,1px;
	padding-top:0px;padding-bottom:0px;border-radius:3px;
}

QScrollArea QScrollBar::handle:horizontal
{
	width:10px;
	height:8px;
	background:#FFFFFF;
	border-radius:3px;
}

QScrollArea QScrollBar::handle:horizontal:hover
{
	width:10px;
	height:8px;
	background:#47d5d5;
	border-radius:3px;
}

QScrollArea QScrollBar::add-page:horizontal,QScrollBar::sub-page:horizontal
{
	background:transparent;border-radius:3px;
}

QScrollArea QScrollBar::add-line:horizontal,QScrollBar::sub-line:horizontal
{
	height:0px;width:0px;
}

QToolButton
{
	border:0px;
	padding:0px;
	font-weight: 400;
}

QToolButton#unLockButton
{
	width:70px;
	height:70px;
	background:url(:/topImage/image/lock.png)center no-repeat;
}

QToolButton#lockButton
{
	width:70px;
	height:70px;
	background:url(:/topImage/image/lock.png)center no-repeat;
}

QToolButton#quitButton
{
	width:50px;
	height:50px;
	background:url(:/topImage/image/quit.png)center no-repeat;
}

QToolButton#volumeAdjustButton
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/volume.png)center no-repeat;
}

QToolButton#volumeAdjustButton:checked
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/volumeChoose.png)center no-repeat;
}

QToolButton#powerValueButton
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/powerValue.png)center no-repeat;
}

QToolButton#powerValueButton:checked
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/powerValueChoose.png)center no-repeat;
}

QToolButton#cameraButton
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/camera.png)center no-repeat;
}

QToolButton#cameraButton:checked
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/cameraChoose.png)center no-repeat;
}

QToolButton#grabButton
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/grab.png)center no-repeat;
}

QToolButton#grabButton:checked
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/grabChoose.png)center no-repeat;
}

QToolButton#patientButton
{
	width:70px;
	height:70px;
	border-image:url(:/bottom/image/bottom/patientEnabled.png)center no-repeat;
}

QToolButton#patientButton:checked
{
	width:70px;
	height:70px;
	border-image:url(:/bottom/image/bottom/patient.png)center no-repeat;
}

QToolButton#addInfoButton
{
	width:70px;
	height:70px;
	border-image:url(:/bottom/image/bottom/addPatient.png)center no-repeat;
}

QToolButton#addInfoButton:checked
{
	width:70px;
	height:70px;
	border-image:url(:/bottom/image/bottom/addPatientChoose.png)center no-repeat;
}

QToolButton#deviceButton
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/device.png)center no-repeat;
}

QToolButton#deviceButton:checked
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/deviceChoose.png)center no-repeat;
}

QToolButton#settingButton
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/setting.png)center no-repeat;
}

QToolButton#settingButton:checked
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/settingChoose.png)center no-repeat;
}

QToolButton#videoButton
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/video.png)center no-repeat;
}

QToolButton#videoButton:checked
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/videoChoose.png)center no-repeat;
}

QToolButton#copyButton
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/changed.png)center no-repeat;
}

QToolButton#copyButton:checked
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/changedChoose.png)center no-repeat;
}

QToolButton#changedModelButton
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/changedModel3D.png)center no-repeat;
}

QToolButton#changedModelButton:checked
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/chanedModel2D.png)center no-repeat;
}

QToolButton#changedModelButton:!enabled
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/changedModelDisabled.png)center no-repeat;
}

QToolButton#openButton
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/import.png)center no-repeat;
}

QToolButton#openButton:checked
{
	width:70px;
	height:70px;
	background:url(:/bottom/image/bottom/importChoose.png)center no-repeat;
}

QToolButton#okAdd, #LoginButton 
{
	border-style:none;
	border:0px;
	color:#FFFFFF;
	padding:0px;
	border-radius:4px;
	font:24px Source Han Sans CN;
	font-weight: 400;
	background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #00FCEB,stop:1 #009389);

}

QToolButton#saveMechaincalInfoButton, #savePatientInfotButton, #okButton
{
	color:#FFFFFF;
	font:28px Source Han Sans CN;
	border-radius: 4px;
	background-color:rgb(7,117,117);
}

QToolButton#cancelButton
{
	color:rgb(0, 0, 0);
	font:28px Source Han Sans CN;
	border-radius: 4px;
	background-color:rgb(255,255,255);
}

QToolButton#armrestHeightDown, #pitchingDown, #pedalHeightDown
{
	border-radius: 40px;
	background-color:rgb(6,114,112);
	background-image:url(:/workFlow/image/workFlow/down.png);
	background-origin: content;
    background-position: center;	         /* 背景图片的位置 */
    padding-top: 2px;		    
    background-repeat: no-repeat;	         /* 设置背景图像的平铺模式 */
}

QToolButton#armrestHeightUp, #pitchingUp, #pedalHeightUp
{
	border-radius: 40px;
	background-color:rgb(6,114,112);
	background-image:url(:/workFlow/image/workFlow/up.png);
	background-origin: content;
    background-position: center;	         /* 背景图片的位置 */
    padding-top: 2px;		    
    background-repeat: no-repeat;	         /* 设置背景图像的平铺模式 */
}

QToolButton#displayerButton, #MapButton, #imageAddButton, #mainToSettingButton, #buttonSetting
{
	color:#FFFFFF;
	font:24px Source Han Sans CN;
	font-weight: 500;
}

QToolButton#reset3DButton, #reset2DButton, #resetFluorescenceButton, #factoryDataResetButton, #viewButton, #imageCarResetButton
{
	background-color:rgb(10,81,87);
	color:#FFFFFF;
	font:24px Source Han Sans CN;
	font-weight: 500;
	border-radius:4px;
}

QToolButton#displayerButton:checked, #MapButton:checked, #imageAddButton:checked, #mainToSettingButton:checked, #buttonSetting:checked
{
	color:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #00FCEB,stop:1 #009389);
}


QToolButton#zoomOneButton, #zoomTwoButton, #zoomThreeButton, #fluorescenceOnButton, #standardButton, #sensitiveButton, #mainToLeftOneButton, #mainToLeftTwoButton, #mainToLeftThreeButton, #mainToLeftFourButton, #mainToRightOneButton, #mainToRightTwoButton, #mainToRightThreeButton, #mainToRightFourButton, #imageCarToolFluorescenceOnButton, #imageCarToolStandardButton, #imageCarToolSensitiveButton
{
	color:#FFFFFF;
	font-weight: 500;
	font:32px Source Han Sans CN;
}

QToolButton#zoomOneButton:checked, #zoomTwoButton:checked, #zoomThreeButton:checked, #fluorescenceOnButton:checked, #standardButton:checked, #sensitiveButton:checked, #mainToLeftOneButton:checked, #mainToLeftTwoButton:checked, #mainToLeftThreeButton:checked, #mainToLeftFourButton:checked, #mainToRightOneButton:checked, #mainToRightTwoButton:checked, #mainToRightThreeButton:checked, #mainToRightFourButton:checked, #imageCarToolFluorescenceOnButton:checked, #imageCarToolStandardButton:checked, #imageCarToolSensitiveButton:checked
{
	color:#00FFEE;
}

QToolButton#adjustUpButton
{
	border-image:url(:/workFlow/image/workFlow/adjustUp.png);
}

QToolButton#adjustDownButton
{
	border-image:url(:/workFlow/image/workFlow/adjustDown.png);
}

QToolButton#toolButton_3
{
	border-image:url(:/workFlow/image/workFlow/button3.png);
}

QToolButton#toolButton_4
{
	border-image:url(:/workFlow/image/workFlow/button4.png);
}

QLabel#label_2, #label_3, #label_4, #label,#label_7, #label_6
{
	color:#1A3951;
	font-family: Source Han Sans CN;
	font-style: normal;
	font-weight: 500;
	font-size: 16px;
}

QLabel#patientIDLabel, #patientID, #patientNameLabel, #patientName
{
	color:rgb(207,210,213);
	font:18px Source Han Sans CN;
	font-weight: 400;
}

QLabel#ArmUseNumberLabel, #adjustUseNumberLabel
{
	color:rgb(255,255,255);
	font:24px Source Han Sans CN;
	background-color:#00BB25;
	border-radius:4px;
}

QWidget#mechanicalArmPage>QStackedWidget#stackedWidget>QWidget#page>QLabel#imageLabel
{
	border-image:url(:/workFlow/image/workFlow/mechanical.png);
}

QLineEdit#addPatientNameEdit, #addPatientAgeEdit, #addPatientIDEdit, QTextEdit#operationTypeInfoEdit, #operationinfoEdit
{
	border:0px;
	color:rgb(255,255,255);
	font:20px Source Han Sans CN;
	font-weight: 400;
	background:rgb(31,46,62);
	border-radius: 4px;
}

QLabel#addPatientName, #addPatientSex, #addPatientAge, #addPatientID, #operationTime, #operationType, #operationInfo
{
	color:rgb(255,255,255);
	font:18px Source Han Sans CN;
	font-weight: 400;
}

QLabel#titleLabel
{
	color:rgb(255,255,255);
	font:32px Source Han Sans CN;
	font-weight: 500;
}

QWidget#mechanicalArmPage>QLabel#titleLabel
{
	border-top-left-radius:12px;
	border-top-right-radius:12px;
	font:24px Source Han Sans CN;
	color:rgb(255,255,255);
	font-weight: 400;
}

QLabel#dateLabel
{
	color:#99A3AB;
	font:16px Source Han Sans CN;
	font-weight: 400;
}

QLabel#addNewUser
{
	font:16px Source Han Sans CN;
	color:#FBA518;
	background-color:#F5F5F5;
}

QLabel#backLogin
{
	font:16px Source Han Sans CN;
	color:#009389;
	background-color:#F5F5F5;
}

QLabel#CurrentVersion
{
	font-weight: 400;
	font:14px ource Han Sans CN;
	color:#009389;
	font-style: normal;
}

QLabel#memorySizeLabel
{
	background-image:url(:/topImage/image/GSize.png);
}

QLabel#powerLabel
{
	background-image:url(:/topImage/image/power.png);
}

QLabel#loginImage
{
	background-color:rgb(255,255,255);
	background-image:url(:/topImage/image/LOGO.png);
}

QLabel#titleLabel, #operaterTitleLabel, #pedalTitleLabel, #addPatientPageTitle, #title3DLabel, #title2DLabel, #zoomTitleLabel, #fluorescenceImageTitleLabel, #outImageTitleLabel, #mainToProportionLabel, #clutchLabel, #leftRightChangedLabel, #configLabel, #fourNumberLabel, #threeNumberLabel, #twoNumberLabel, #oneNumberLabel, #upValueLabel, #downValueLabel, #settingLabel, #imageCarToolTitleLabel,#imageprocess_label
{
	color:rgb(255,255,255);
	font:36px Source Han Sans CN;
	font-weight: 500;
}

QLabel#nameLabel
{
	color:#1A3951;
	font:36px Source Han Sans CN;
	font-weight: 500;
}

QLabel#heightLabel, #pitchingLabel, #pedalHeightLabel, #explainLabel, #dcNameLabel, #mechaniImage, #mechaniName, #mechaniModel, #mechaniUseNumber, #mechaniResidueNumber, #mechaniLastUseTime
{
	color:#FFFFFF;
	font:20px Source Han Sans CN;
	font-weight:400;
}

QLabel#armrestHeightValue, #pitchingValue, #pedalHeightValue
{
	color:rgb(255,255,255);
	font:60px Source Han Sans CN;
	font-weight:700;
}

QLabel#loadingLabel, #valueLabel, #messageLabel
{
	color:rgb(255,255,255);
	font:28px Source Han Sans CN;
	font-weight:500;
}

QToolButton#layout2DButton
{
	background-color:rgb(98,111,120);
	border-radius:4px;
}

QToolButton#layout2DButton:checked
{
	border-image:url(:/setting/image/setting/layout2D.png);
}

QToolButton#tubeLabel
{
	border-image:url(:/bottom/image/bottom/tube.png);
}

QToolButton#valumeValueLabel
{
	border-image:url(:/bottom/image/bottom/volumeLabel.png);
}

QLabel#brightness3D, #brightness2D, #colorBalance3D, #colorBalance2D, #dynamicContra3D, #dynamicContra2D, #fastSwitchLabel, #fluorescenceModelLabel, #fluorescenceChangedLabel, #fluorescenceIntensityLabel, #fluorescenceBackgroundLabel, #outImageSwitchLabel, #layout3DLabel, #layout2DLabel, #mainToLeftLabel, #mainToRightLabel, #videoLabel, #viewLabel, #imageCarToolModelLabel, #imageCarToolChangedLabel, #ImageCarToolintensityLabel, #imageCarToolBackgroundLabel
{
	color:#FFFFFF;
	font:24px Source Han Sans CN;
	font-weight:500;
}

QLineEdit#passWordLineEdit, #newUserName, #newPassWord
{
	border: 1px solid #DBDBDB;
	background: #FFFFFF;
	border-radius: 4px;
}

QComboBox
{
	background: #FFFFFF;
	border: 1px solid #DBDBDB;
	border-radius: 4px;
	color: #142C3E;
	font:16px Source Han Sans CN; 
}
QComboBox::down-arrow
{
	padding: 0px 17px 0px 0px;
	image: url(:/login/image/downArrows.png);
}
QComboBox::down-arrow:on
{
	image: url(:/login/image/downArrows.png);
}
QComboBox QAbstractItemView
{
	outline: 0px solid gray;
	border: 0px solid gray;
	color: #142C3E;
	background: #FFFFFF;
	selection-background-color: lightgreen;
}
QComboBox QAbstractItemView::item
{
	height: 50px;
}
	
QComboBox::drop-down
{
	subcontrol-origin: padding;
	subcontrol-position: top right;
	width: 15px;
	border-left-width: 0px;
	border-left-color: darkgray;
	border-left-style: solid;
	border-top-right-radius: 3px;
	border-bottom-right-radius: 3px;
}

QComboBox#addPatientSexChoose
{
	background: #1F2E3E;
	border: 0px solid #DBDBDB;
	border-radius: 4px;
	color: #FFFFFF;
	font:20px Source Han Sans CN; 
}

QComboBox#addPatientSexChoose::down-arrow
{
	padding: 0px 17px 0px 0px;
	image: url(:/login/image/downArrows.png);
}

QComboBox#addPatientSexChoose::down-arrow:on
{
	image: url(:/login/image/downArrows.png);
}

QComboBox#addPatientSexChoose QAbstractItemView
{
	outline: 0px solid gray;
	border: 0px solid gray;
	color: #142C3E;
	background: #FFFFFF;
	selection-background-color: lightgreen;
}

QComboBox#addPatientSexChoose QAbstractItemView::item
{
	height: 50px;
}

QProgressBar#progressBar
{
	background-color:rgba(255, 255, 255, 10);
	border: 0px solid #DDDDDD;
	border-radius:5px;
}

QProgressBar#progressBar::chunk
{
	background:qlineargradient(spread:pad,x1:0,y1:0,x2:0,y2:1,stop:0 #00FCEB,stop:1 #009389);
	width:5px;
	height:30px;
	margin:3px;
}

QProgressBar#ArmProgressBar
{
	background-color:rgba(19,43,61,30);
	border: 0px solid #DDDDDD;
	height:10px;
	border-radius:5px;
}

QProgressBar#ArmProgressBar::chunk
{
	border-radius:7px;
	background:qlineargradient(spread:pad,x1:0,y1:0,x2:1,y2:0,stop:0 #00CF07,stop:1 #FF1302);
	
}

QSlider::groove:horizontal{
    background:rgb(8,121,123);
    height:6px;
    border-radius:3px;
}

QSlider::handle:horizontal{
    width: 20px;
    margin-top: -8px;
    margin-bottom:-8px;
    border-radius: 10px;
    background: #00FFEE;
}

QSlider::sub-page:horizontal{
    border-radius:10px;
    background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #00CF07, stop:1 #00CF07);
}

QDateEdit{
	color: rgb(255,255,255);
	background-color: rgb(31,46,62);
    border:0px;
	font:20px Source Han Sans CN;
	border-radius:4px;
}
 
QDateEdit::drop-down
{
	image:url(:/workFlow/image/workFlow/date.png);
    subcontrol-origin:padding;
    subcontrol-position:top right;
    width:40px;
   	background-color: rgb(31,46,62);
    border:0px;
	border-radius:4px;
}
QDateEdit::drop-down:on
{
	image:url(:/workFlow/image/workFlow/date.png);
    
}
QTextEdit#imageprocess_textEdit
{
	border:0px;
	color:rgb(255,255,255);
	font:18px Source Han Sans CN;
	font-weight: 400;
	background:rgb(31,46,62);
	border-radius: 2px;
}
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Pailugou

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值