1. 程式人生 > >QT之qss教程-QLineEdit

QT之qss教程-QLineEdit

QLineEdit {
	/* 外邊框 */
	border:2px solid red;
	
	/* 倒角 */
	border-radius: 10px;
	
	/*  內邊框:上下和左右的距離*/
	padding: 10 8px;
	
	/* 背景色 */
	background: yellow;
	
	/* 選中高亮背色 */
	selection-background-color:blue;
	min-width:200px;
	min-height:40px;
}

/* 密碼模式 */
QLineEdit[echoMode="2"] {
	lineedit-password-character:9679;
}

/* 當是只讀模式時 */
QLineEdit:read-only {
	background:red;
}