Page 2 of 2 FirstFirst 12
Results 21 to 26 of 26

Thread: vertical scrollbar width

  1. #21
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: vertical scrollbar width

    Nice thread, but how do I "inherit" parent's widget (QTableView's in my case) and set it up as subclassed scrollbar height?
    Qt 5.3 Opensource & Creator 3.1.2

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

    Default Re: vertical scrollbar width

    Would you care to explain what you mean?

  3. #23
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: vertical scrollbar width

    I would like to achieve that QScrollbar's height is alwasy same as it's parent's object height (in my case, the parent is QTableView).
    Qt 5.3 Opensource & Creator 3.1.2

  4. #24
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: vertical scrollbar width

    Isn't like that, out of the box?
    J-P Nurmi

  5. #25
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: vertical scrollbar width

    What do you mean out of the box? If that is default, why then when reimplementing size do I need width (y) param?

    And how to fill scrollbar with some texture?
    Qt 5.3 Opensource & Creator 3.1.2

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

    Default Re: vertical scrollbar width

    Quote Originally Posted by MarkoSan View Post
    If that is default, why then when reimplementing size do I need width (y) param?
    Could you provide a snippet of code demonstrating what you mean?

    And how to fill scrollbar with some texture?
    Use stylesheets.

Similar Threads

  1. GraphicsView/GraphicsScene: scrollbar policy Qt::ScrollBarAsNeeded
    By Pieter from Belgium in forum Qt Programming
    Replies: 4
    Last Post: 21st March 2007, 13:15
  2. about scrollbar style
    By qtopiahooo in forum Qt Programming
    Replies: 1
    Last Post: 25th January 2007, 13:34
  3. How to obtain the width of a QTableWidget?
    By Giel Peters in forum Qt Programming
    Replies: 3
    Last Post: 9th January 2006, 22:34

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.