QLineEdit[EchoMode="2"] {lineedit-password-character:42;}
EchoMode="2"表示编辑框的echoMode为Password;
默认状态下替换明文的是圆点,要更改为其他字符可以修改 lineedit-password-character,42表示“*”。
QSS设置不生效,设置stylesheet才能生效…
QLineEdit[EchoMode="2"] {lineedit-password-character:42;}
EchoMode="2"表示编辑框的echoMode为Password;
默认状态下替换明文的是圆点,要更改为其他字符可以修改 lineedit-password-character,42表示“*”。
QSS设置不生效,设置stylesheet才能生效…