Results 1 to 1 of 1

Thread: paintEvent and the strange image distortion

  1. #1
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    8
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default paintEvent and the strange image distortion

    Hello! And again I have problems with the waveform rendering in my EKO wave editor (http://eko.git.sourceforge.net/git/g...eko/eko;a=tree).
    When I paint an image directly on the widget surface, I get some weird rectangles over my image. Here is a picture:



    You can see the current code at: http://eko.git.sourceforge.net/git/g...nt.cpp;hb=HEAD - at CWaveform:aintEvent

    It seems that the parent widget and the scrollbar affects the waveform widget in a some way, but I cannot figured out how exactly and what I can do with that.
    Last edited by roxton; 2nd September 2010 at 12:44.

Similar Threads

  1. strange behavior of paintEvent
    By hashb in forum Qt Programming
    Replies: 3
    Last Post: 30th August 2010, 07:48
  2. Replies: 3
    Last Post: 27th August 2010, 06:00
  3. Strange thing after override paintEvent function
    By Sheng in forum Qt Programming
    Replies: 9
    Last Post: 20th February 2009, 16:44
  4. Problems with drawing image in paintEvent of QTreeView
    By Tito Serenti in forum Qt Programming
    Replies: 7
    Last Post: 24th December 2008, 23:25
  5. Clever image zooming. What to write in PaintEvent?
    By ModeZt in forum Qt Programming
    Replies: 8
    Last Post: 16th December 2007, 13:39

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.