Results 1 to 1 of 1

Thread: qwt-6.1-multiaxes ASSERT failure in QVector<T>::operator[]: "index out of range"

  1. #1
    Join Date
    May 2012
    Thanked 27 Times in 24 Posts
    Qt products
    Qt3 Qt4 Qt5
    Unix/X11 Windows

    Default qwt-6.1-multiaxes ASSERT failure in QVector<T>::operator[]: "index out of range"

    At the momen im using qwt-6.1-multiaxes, but i'm getting a error after I removed a axis from the plot and do a replot, ASSERT failure in QVector<T>:perator[]: "index out of range"

    How to reproduce:
    * add multiple y-axes
    * attach a plot curve to each axis
    * detach the plot curve at the last y-axis (else you have to make a system to move curves from one axis to another)
    * setAxescount -1
    * do a replot (updateAxes()) it goes wrong in the updateAxes()

    at the moment i'm detaching all curves and set the new axis and reattach it to the plot but I still get the error

    does anyone know what to do to fix it?

    In the meanwhile I found the problem by using the source and not the lib.
    I made an error in the axis id.
    Last edited by StrikeByte; 9th January 2015 at 13:32.

Similar Threads

  1. Replies: 5
    Last Post: 20th November 2013, 11:20
  2. Replies: 5
    Last Post: 29th September 2012, 20:30
  3. Replies: 3
    Last Post: 26th September 2012, 21:21
  4. Replies: 3
    Last Post: 27th July 2011, 10:30
  5. Handling "index out of range"
    By liqxpil in forum Qt Programming
    Replies: 1
    Last Post: 29th December 2010, 00:25


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.