Results 1 to 2 of 2

Thread: QScrollArea, Vertical Scrollbar flashes up while adding widgets

  1. #1
    Join Date
    Jul 2015
    Posts
    87
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default QScrollArea, Vertical Scrollbar flashes up while adding widgets

    Hello,

    i have a QScrollArea where i add some custom widgets. The horizontal scrollbar is "AlwaysOff"
    and the vertical is set to "AsNeeded". Now i have the small problem with the vertical scrollbar.
    When adding the widgets the vertical scrollbar flashed up and hide when adding the widgets is finished.
    The vertical scroll flahes up for some milliseconds, i can't say how long but it is visible very short.

    How can i prevent that the vertical scrollbar flashes up it it is set to "AsNeeded"?

    Thx

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QScrollArea, Vertical Scrollbar flashes up while adding widgets

    You could set the scrollbar policy to "off" before adding the widget and reset it to "as needed" when you are done.

    Cheers,
    _

Similar Threads

  1. Replies: 0
    Last Post: 4th August 2015, 09:12
  2. Adding widgets to QScrollArea
    By ser_bur in forum Qt Programming
    Replies: 6
    Last Post: 19th August 2013, 10:38
  3. How to address to vertical scrollbar, which appears in QWebView?
    By fromRussiaWithLove in forum Qt Programming
    Replies: 1
    Last Post: 30th August 2011, 02:04
  4. Resize a vertical an horizontal scrollbar.
    By IRON_MAN in forum Qt Programming
    Replies: 3
    Last Post: 19th April 2010, 15:45
  5. vertical scrollbar width
    By drkbkr in forum Qt Programming
    Replies: 25
    Last Post: 31st May 2008, 07:09

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.