Results 1 to 5 of 5

Thread: QScrollArea size of scroll bar is not getting changed

  1. #1
    Join Date
    Mar 2010
    Location
    Ahmedabad, Gujarat
    Posts
    35
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QScrollArea size of scroll bar is not getting changed

    hi guys,

    i'm working on xburst processor
    with qt 4.6.1.

    i'm using QScrollArea to display images. But when i press zoom button the scroll bar comes automatically.
    but it is width is very thin. I want to change the size of the scrollbar.

    to do this i have tried the following stylesheet lines.
    Qt Code:
    1. QString style = "QScrollBar:horizontal {height: 30px;}"
    2. "QScrollBar:vertical {width: 30px;}";
    3. scrollArea->setStyleSheet(style);
    To copy to clipboard, switch view to plain text mode 

    but size doesn't change.

    then i tried the following code
    Qt Code:
    1. QString style = "QScrollBar:horizontal {min-height: 30px;}"
    2. "QScrollBar:vertical {min-width: 30px;}";
    3. scrollArea->setStyleSheet(style);
    To copy to clipboard, switch view to plain text mode 
    using this code i'm able to change the size of scroll bar but
    but app shows half cut scroll bar. i.e. view area of scroll bar remains same and i can see only half scroll bar.


    any solution for this?

    thank you

    any comment will be appreciates!
    Last edited by jthacker; 21st June 2010 at 08:05.

  2. #2
    Join Date
    Mar 2010
    Location
    Ahmedabad, Gujarat
    Posts
    35
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Lightbulb Re: QScrollArea size of scroll bar is not getting changed

    hey guys...!
    are you getting what i'm trying to say..?

  3. #3
    Join Date
    Mar 2010
    Location
    Ahmedabad, Gujarat
    Posts
    35
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QScrollArea size of scroll bar is not getting changed

    hey guys can you help in this?

    thanks

  4. #4
    Join Date
    Mar 2010
    Location
    Ahmedabad, Gujarat
    Posts
    35
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QScrollArea size of scroll bar is not getting changed

    hey one more thing i want to add is that when the same thing i do for the desktop edition on linux platform the application show nicely resized scroll bars .
    but on embedded board scroll bars are seen half cut. .i.e. if it is vertical scroll bar the left half of the scroll bar i can see but right half i can't see...!

  5. #5
    Join Date
    Jul 2010
    Location
    Poland
    Posts
    184
    Thanks
    70
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QScrollArea size of scroll bar is not getting changed

    Hey!

    Have you resolve Your problem? I've got same one and have no idea what can I do about it.

    thanks in advance
    best regards
    Tomasz

Similar Threads

  1. Scroll Bar not appearing in QScrollArea
    By coolkaps in forum Newbie
    Replies: 1
    Last Post: 2nd May 2010, 16:12
  2. Force a Scroll in a QScrollArea
    By nmuntz in forum Qt Programming
    Replies: 2
    Last Post: 25th January 2009, 13:49
  3. Auto scroll down in QScrollArea
    By EricF in forum Qt Programming
    Replies: 2
    Last Post: 29th December 2008, 12:51
  4. Replies: 9
    Last Post: 23rd November 2006, 11:39
  5. QScrollArea's Scroll Bars
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 19th September 2006, 13:27

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.