Results 1 to 3 of 3

Thread: How to specify only a part of style ? I'd want to set the v size of slider -scrollbar

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default How to specify only a part of style ? I'd want to set the v size of slider -scrollbar

    I only want to set :
    QScrollBar::handle:vertical { min-height: 30px; }
    But it seems it need all QScrollBar definition ?
    Any trick ?
    Thanks

  2. #2
    Join Date
    Jul 2009
    Location
    Valladolid, Spain
    Posts
    125
    Thanks
    16
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to specify only a part of style ? I'd want to set the v size of slider -scrol

    I'm interested in that too.
    Is there something that will let us "overwrite" only certain parts of the style of a QWidget?

    Regards

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to specify only a part of style ? I'd want to set the v size of slider -scrol

    No, it's either all or none in this situation. However you may doing without using stylesheets. You just need a style proxy and return a proper value from within QStyle::pixelMetric() or QStyle::styleHint() (I don't remember which one is responsible for the size of the scrollbar handle).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Slider Style sheet
    By sijithjames in forum Qt Programming
    Replies: 2
    Last Post: 30th December 2009, 12:43
  2. Dock widget does not have a size slider
    By rakkar in forum Newbie
    Replies: 3
    Last Post: 9th September 2009, 08:33
  3. Replies: 1
    Last Post: 27th August 2007, 13:13
  4. about scrollbar style
    By qtopiahooo in forum Qt Programming
    Replies: 1
    Last Post: 25th January 2007, 13:34
  5. QScrollBar: custom slider's size ?
    By deweyjew in forum Qt Programming
    Replies: 1
    Last Post: 9th May 2006, 09:57

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.