Results 1 to 4 of 4

Thread: Resize a vertical an horizontal scrollbar.

  1. #1
    Join Date
    Jun 2009
    Posts
    41
    Qt products
    Qt4
    Platforms
    Windows

    Default Resize a vertical an horizontal scrollbar.

    Hey,

    I'm working with a widget where I have inserted a QScrollArea. In this scroll I use the vertical and horizontal scrollbar as needed. However I want to change the size of them.
    To achive my goal I have used these two sentences without seing any chage:

    ui.scrollArea->verticalScrollBar()->setMinimumWidth (70);
    ui.scrollArea->horizontalScrollBar()->setMinimumHeight(70);

    Can anyone help me?

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Resize a vertical an horizontal scrollbar.

    Do you have a layout?

  3. #3
    Join Date
    Jun 2009
    Posts
    41
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Resize a vertical an horizontal scrollbar.

    no I have not.

  4. #4
    Join Date
    Apr 2010
    Location
    Rostov-na-Donu, Russia
    Posts
    153
    Thanks
    2
    Thanked 26 Times in 23 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Resize a vertical an horizontal scrollbar.

    maybe you want to customize the view of scrolls. If yes, there is a styling for you

Similar Threads

  1. How to get vertical/horizontal zoom box?
    By knicewar in forum Qwt
    Replies: 3
    Last Post: 23rd March 2010, 04:09
  2. QGraphicsItem Horizontal/Vertical move only
    By prashant in forum Qt Programming
    Replies: 2
    Last Post: 9th November 2009, 09:02
  3. How to add a horizontal scrollbar to a treeview?
    By yangyunzhao in forum Qt Programming
    Replies: 1
    Last Post: 20th August 2009, 08:24
  4. Vertical scroll bar, but resizable horizontal content
    By minimoog in forum Qt Programming
    Replies: 0
    Last Post: 14th January 2009, 20:51
  5. Replies: 4
    Last Post: 27th September 2006, 13: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.