Results 1 to 1 of 1

Thread: Qwt with multiaxes support - bug?

  1. #1
    Join Date
    Sep 2015
    Posts
    36
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Qwt with multiaxes support - bug?

    It looks like there is some kind of bug when we use setAxesCount to set lower number of axes:

    posted image

    Looks like updateAxes method wants to get axis with ID 11. The problem is - axis with this ID doesn't exist anymore, as axes at position 1 are set to 1 (from 27). Curve with ID 11 was there before and was attached to this axis, but it was detached before I set new axes count. When I just set these axes invisible without setAxesCount(1,1) it's all good and stable.

    Crash is most likely caused by updateAxes. But replot() also calls for updateAxes(), so after we change setAxisCount to less than before we cannot safely replot. Maybe I do some kind of mistake somewhere, but I'm pretty sure that updateAxes calls for non-existant axis to update.

    I also discovered that if I delete curve attached to axis entirely and create it again - it will work normally. Looks like detaching curve from plot does not detach it from axis inside plot, and somehow keeps it's ID alive while axis itself is acually gone. It's just my observation though.
    Attached Images Attached Images

Similar Threads

  1. Replies: 0
    Last Post: 26th December 2015, 18:00
  2. Replies: 2
    Last Post: 30th January 2015, 09:29
  3. Replies: 0
    Last Post: 9th January 2015, 10:09
  4. Does Qt 4.6 for S60 support OMA DRM
    By coco in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 2nd February 2010, 03:06
  5. GIF support
    By talk2amulya in forum Qt Programming
    Replies: 4
    Last Post: 10th February 2009, 08:57

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.