PDA

View Full Version : Can I bold my QLineEdit border , don't use setStyleSheet()?



zimang
25th November 2010, 04:03
Hi guys:

I want to bold thi bordre of QLineEdit, and set the background semitransparentï¼›I Know it can bold the bordre using setStyleSheet(), but the setStyleSheet() can't semitransparent the backgroud. so it seems conflict.


Help me, please.

Thancks.

Lykurg
25th November 2010, 08:28
Well, you can set semitransparent backgrounds with style sheets using rgba(). But if you don't like, subclass and do the background painting yourself.

zimang
25th November 2010, 09:43
Oh! yes, it works. I always thought the CSS can't set the semitransparent, so I repaint most of my widget.

Now I know the css can set the semitransparent .

Thanks a lot.:o:o:o:o