Results 1 to 14 of 14

Thread: Bugs in QwtMatrixRasterData?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2010
    Posts
    46
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation Bugs in QwtMatrixRasterData?

    Hello,

    I encountered 3 bugs in (or related to) QwtMatrixRasterData (I'm using Qwt6 SVN). My emails always get lost on sourceforge so I'm writing this here.
    I'm attaching a screenshot and a modified "rasterview" example to demonstrate.

    1. There seems to be a bug with Bilinear interpolation. I get these mosaic-like pictures (nearest-neighbor looks ok). Seems to be dependent on intervals and number of matrix elements. See attached screenshot, segment 2 (top right).

    2. There seems to be a bug when QwtMatrixRasterData's default pixelHint() implementation is used as it is. Randomly colored lines start to appear at interval borders (see picture segments 1 and 4). They're not always visible, but usually appear at the top and right sides, usually when zooming. Overriding pixelHint() in QwtMatrixRasterData's child class and returning QRectF() fixes this problem (see the commented block in the example), BUT introduces another one, which is probably a hidden bug because of QwtMatrixRasterData's default pixelHint():

    3. If returning QRectF() from QwtMatrixRasterData's pixelHint(), a solid line (with a small corner to the right) appears to at top of the interval. I overrode QwtMatrixRasterData's value() function and did a range check before getting the data from QVector, and it seems to have helped. So I guess it's an out-of-bounds problem.

    Thanks,
    Alexander

    qwt_matrix_bugs.jpg
    rasterview_modified.tar.gz
    Last edited by alex_sh; 12th December 2010 at 19:59. Reason: updated contents

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,318
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Bugs in QwtMatrixRasterData?

    1 is fixed in SVN trunk, but I couldn't reproduce the bugs described in 2 and 3 ?

    Uwe

  3. The following user says thank you to Uwe for this useful post:

    alex_sh (14th December 2010)

Similar Threads

  1. Qwt 6.0.0-rc3 bugs
    By Vortex in forum Qwt
    Replies: 1
    Last Post: 30th October 2010, 09:24
  2. [OT] closing of qt bugs
    By luf in forum Qt Programming
    Replies: 0
    Last Post: 26th July 2010, 13:55
  3. 4.3.1 vs 4.1.4 setfixedwidth (bugs??)
    By zorro68 in forum Qt Programming
    Replies: 1
    Last Post: 23rd September 2007, 14:21
  4. Qt 4.3.0 lots of Bugs!
    By VireX in forum Qt Programming
    Replies: 69
    Last Post: 20th June 2007, 22:05
  5. Bugs, style changes in 4.1.0?
    By simk in forum Qt Programming
    Replies: 13
    Last Post: 13th February 2006, 11:05

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.