Results 1 to 2 of 2

Thread: How to erase everything widget has painted?

  1. #1

    Default How to erase everything widget has painted?

    I have a transparent webview that has the following problem:

    1) on widget show: image is displayed

    2) image is deleted and widget is hidden

    3) widget is shown again (remember, the widget contains nothing now... It should just be a transparent canvas) and previous image flickers for a second prior to showing what is expected (a transparent canvas).

    So, I need a way to prevent that flicker... Does anyone know how?

  2. #2
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to erase everything widget has painted?

    in paintEvent erase option is there ...
    painter->eraseRect(rect());
    "Behind every great fortune lies a crime" - Balzac

Similar Threads

  1. QDockWidget inside another widget in the center?
    By Antebios in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2010, 08:06
  2. Remove widget from a QList
    By Eos Pengwern in forum Newbie
    Replies: 4
    Last Post: 16th October 2009, 22:25
  3. Widget not painted properly
    By qwakaw in forum Qt Programming
    Replies: 0
    Last Post: 11th November 2008, 12:30
  4. How to Open & Close a Widget ?!!
    By Fatla in forum Qt Programming
    Replies: 6
    Last Post: 13th June 2008, 21:39
  5. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 11:35

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.