Results 1 to 9 of 9

Thread: style sheets

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Qt products
    Qt4
    Platforms
    Windows Android
    Thanks
    14
    Thanked 13 Times in 13 Posts

    Default Re: style sheets

    Hi,

    what's wrong with doing "QComboBox { border-width:1px; border-style: outset; border-color: red}" ?

    Are you trying to do it from the source or designer by the way?

  2. #2
    Join Date
    May 2008
    Posts
    61
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    9

    Default Re: style sheets

    actually I experienced this problem when I changed the QGroupBox main style.
    when that style is changed, the QGroupBox::title's padding is gone, so I had to modify it.

    the above can be observed by just putting the following style sheet in the designer to a widget:
    QGroupBox
    {
    border-width: 1px;
    border-color: #FF0000;
    border-radius: 1px;
    }

    actually I started thinking that I am missing a point about the style sheets.
    Last edited by alisami; 7th May 2009 at 10:42.

  3. #3
    Join Date
    May 2008
    Posts
    61
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    9

    Default Re: style sheets

    Quote Originally Posted by zgulser View Post
    Hi,

    what's wrong with doing "QComboBox { border-width:1px; border-style: outset; border-color: red}" ?

    Are you trying to do it from the source or designer by the way?
    the problem is that, I only want to change the border width. if I only specify the `border-width` nothing happens. I should also enter the `border-style` and `border-color` as well to see the border of the combo box.

    again, what I want to do is to only modify the border-width of any widget without entering the other parameters.

    I again tried in the designer but didn't manage to success.

Similar Threads

  1. Replies: 6
    Last Post: 14th April 2009, 18:40
  2. Performace problem with style sheets
    By Cruz in forum Qt Programming
    Replies: 0
    Last Post: 7th February 2009, 14:20
  3. style sheets select all except something
    By codeslicer in forum Qt Programming
    Replies: 4
    Last Post: 6th March 2008, 01:21
  4. BIG Problem with Background-image using Style Sheets
    By PiXeL16 in forum Qt Programming
    Replies: 1
    Last Post: 28th November 2007, 23:10
  5. Qt style sheets
    By locus in forum Qt Programming
    Replies: 5
    Last Post: 5th April 2007, 18:03

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.