QT之qss教程-QLineEdit

来源:互联网 发布:手机防锁机软件 编辑:程序博客网 时间:2024/05/29 23:24


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;}