Results 1 to 3 of 3

Thread: QGroupBox stylesheet

  1. #1
    Join Date
    Mar 2006
    Location
    Argentina - CABA
    Posts
    66
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Platforms
    Unix/X11

    Default QGroupBox stylesheet

    Hi!

    I have weird problem styleling QGroupBox, specially on border-color.
    Actually i have:

    Qt Code:
    1. background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
    2. stop: 0 #e6e6e6, stop: 0.8 #e6e6e6, stop: 1 transparent);
    3. border-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
    4. stop: 0 #b4b4b4, stop: 0.8 #b4b4b4, stop: 1 transparent);
    5. border-width: 1px; \
    6. border-style: solid; \
    7. border-radius: 5px;}
    To copy to clipboard, switch view to plain text mode 

    Now, the end (bottom) of the gradient of the border has a weird effect.
    Attached image.

    Any tip?

    EDIT: seems this behavior occurs with all widgets, but only on border-color using gradients with qlineargradient.

    Cheers.
    Attached Images Attached Images
    Last edited by GuS; 28th May 2008 at 18:29.
    Gustavo A. DÃ*az
    artistic.gdnet.com.ar

  2. #2
    Join Date
    Oct 2010
    Posts
    12
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: QGroupBox stylesheet

    Hello, I met this problem too. The border-color seems not effect on the groupbox. If you resolved this problem, Can you give me some suggests ? Thank you.

  3. #3
    Join Date
    Oct 2010
    Posts
    12
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: QGroupBox stylesheet

    I found the answer. Just add "border: 1px solid " before the border-color setting is ok.

Similar Threads

  1. Replies: 2
    Last Post: 19th May 2007, 18:25
  2. Dynamically changing QGroupBox size
    By T4ng10r in forum Qt Programming
    Replies: 5
    Last Post: 30th March 2007, 15:02
  3. Adding QGroupBox to QTabWidget
    By mclark in forum Newbie
    Replies: 2
    Last Post: 17th January 2007, 16:27
  4. QGroupBox Issues
    By ToddAtWSU in forum Qt Programming
    Replies: 8
    Last Post: 16th January 2007, 13:45
  5. QGroupBox title truncated on both sides
    By Gopala Krishna in forum Qt Programming
    Replies: 2
    Last Post: 7th October 2006, 15:02

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.