Results 1 to 1 of 1

Thread: Updating the leftmost pixels on a widget when scrolling to the right in a synced way

  1. #1
    Join Date
    Dec 2009
    Posts
    29
    Thanks
    2
    Thanked 3 Times in 3 Posts

    Default Updating the leftmost pixels on a widget when scrolling to the right in a synced way

    I am scrolling a widget but as I am updating the exposed area the widget keeps scrolling so I am left with a 'lag" that I need to compensate for or need to handle.

    I have setAttribute(Qt::WA_OpaquePaintEvent,true).
    From a mouseMoveEvent, I widget->scroll(delta,0); the widget.

    In other words, while the paint event is trying to draw the desired area, the widget is still scrolling. How can I draw the desired section in a synced manner?

    Only thing I can think of right now is to subclass qwidgewt or create my own custom version of it and insert code right after the actual scroll.
    Last edited by yodasoda; 10th June 2010 at 23:52.

Similar Threads

  1. Replies: 0
    Last Post: 26th November 2009, 15:49
  2. updating a widget's display
    By jhearon in forum Qt Programming
    Replies: 5
    Last Post: 10th November 2008, 16:59
  3. Real size in pixels of a widget
    By yosefm in forum Qt Programming
    Replies: 3
    Last Post: 27th October 2007, 16:01
  4. Scrolling in QTextEdit Widget
    By ajb_advance in forum Newbie
    Replies: 2
    Last Post: 25th September 2007, 11:34
  5. Replies: 15
    Last Post: 8th May 2007, 11:46

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.