Results 1 to 3 of 3

Thread: Legend items disappear sometimes (a bug in Qwt?)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2009
    Qt products
    Unix/X11 Windows

    Question Legend items disappear sometimes (a bug in Qwt?)


    I'm using Qwt6 SVN (latest) and I'm experiencing a strange bug - when removing / re-adding curves to a plot, the legend items (corresponding to curves) disappear sometimes.
    The problem seems timing-dependent, since it's easily reproducible when running on a fast machine, but hard (or almost impossible) to reproduce when running in valgrind. It's harder to reproduce with large plots, but still happens pretty often (and randomly).

    I modified the "bode" example to remove/re-add the curves whenever a "Replot" button (replacing the Print button) is pressed. On my computer only the blue curve's legend item remains after clicking it (unless I'm running in valgrind).

    I'm attaching the modified example.

    Thanks in advance!
    Attached Files Attached Files

Similar Threads

  1. Spacing around legend items
    By FilipeMaia in forum Qwt
    Replies: 5
    Last Post: 13th August 2015, 09:15
  2. Replies: 1
    Last Post: 15th May 2010, 18:22
  3. items in view would disappear on scrolling
    By sepehr in forum Qt Programming
    Replies: 4
    Last Post: 21st March 2009, 07:20
  4. Remove Legend items, move legends
    By giusepped in forum Qwt
    Replies: 0
    Last Post: 11th February 2009, 02:35
  5. QTableWidget: set items disappear after new insertion
    By Raccoon29 in forum Qt Programming
    Replies: 6
    Last Post: 16th March 2008, 18:28

Tags for this Thread


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.