python - QLineEdit change border color without changing border style -


i can change background color of qlineedit widget in pyqt4 doing this:

myeditfield.setstylesheet("qlineedit { background-color : green;}") 

changing border color requires me this:

myeditfield.setstylesheet("qlineedit { border : 2px solid green;}") 

this undesirable because changes default shape , size of border, i've tried using border-color instead, apparently works if have specified border. there easy way this?

you can set stylesheet following values:

       border-style: outset;             border-width: 2px;             border-color: green; 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -