Results 1 to 3 of 3

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

  1. #1
    Join Date
    Nov 2010
    Posts
    13
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    2

    Angry Can I bold my QLineEdit border , don't use setStyleSheet()?

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Can I bold my QLineEdit border , don't use setStyleSheet()?

    Well, you can set semitransparent backgrounds with style sheets using rgba(). But if you don't like, subclass and do the background painting yourself.

  3. The following user says thank you to Lykurg for this useful post:

    zimang (25th November 2010)

  4. #3
    Join Date
    Nov 2010
    Posts
    13
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    2

    Smile Re: Can I bold my QLineEdit border , don't use setStyleSheet()?

    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.

Similar Threads

  1. QStandardItem : subpart of the text as bold
    By titoo in forum Qt Programming
    Replies: 5
    Last Post: 1st November 2012, 10:34
  2. Replies: 2
    Last Post: 21st March 2012, 15:30
  3. set Bold to MessageBox particular Text
    By BalaQT in forum Qt Programming
    Replies: 2
    Last Post: 5th November 2009, 12:53
  4. QAbstractItemModel bold items
    By SiLiZiUMM in forum Qt Programming
    Replies: 1
    Last Post: 21st April 2008, 20:48
  5. Replies: 3
    Last Post: 28th January 2007, 18:24

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.