Qt QSS教程 QLineEdit

 1 QLineEdit {
 2     /* 外边框 */
 3     border:2px solid red;
 4     
 5     /* 倒角 */
 6     border-radius: 10px;
 7     
 8     /*  内边框:上下和左右的距离*/
 9     padding: 10 8px;
10     
11     /* 背景色 */
12     background: yellow;
13     
14     /* 选中高亮背色 */
15     selection-background-color:blue;
16     min-200px;
17     min-height:40px;
18 }
19 
20 /* 密码模式 */
21 QLineEdit[echoMode="2"] {
22     lineedit-password-character:9679;
23 }
24 
25 /* 当是只读模式时 */
26 QLineEdit:read-only {
27     background:red;
28 }
原文地址:https://www.cnblogs.com/ybqjymy/p/14713217.html