Results 1 to 2 of 2

Thread: update(), aber not erase the the widget's area?

  1. #1
    Join Date
    Sep 2008
    Posts
    38
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Exclamation update(), aber not erase the the widget's area?

    hallo,

    now i have a multithread program,
    the work threader get data and send it to main Widget, than the data(point) will be painted in Widget.

    to avoid flicker i used the updata() to schedule a paint event for the whole widget, but i still find flicker there and this method cost much time.

    now i want only updata a small area where only paint the new point.

    how I can do it?

  2. #2

    Default Re: update(), aber not erase the the widget's area?

    Use different overloaded functions QWidget::update(), which take a rectangle or coordinates of only a restricted region to be redrawn.

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.