Hi I working on using a qlistview to display at
continuously changing table of values.
Something like this..
Time float data int data ...
1 0.5 5
2 1.11 89
3 6.3 100
What I want to be able to do is add or remove a column interactively
any position (front, middle or the end)
What I have been doing is storing a list of the columns ids in an array
and adjusting the array everytime a column is removed.
From the example above I have 3 columns with
ids 0, 1, 2
I then call removeColumn( ) on the list view with the column id.
the array now looks like this if I had removed the 2 column
This seems to only work when the column being removed is the last
All other valid indexes produce this warning.
QGArray::at: Absolute index 24 out of range
And cause erratic drawing behaviour in the qlistview widget.
I also tried using the actual index of the column as it was layed out
on the screen which producted the same results.
If anyone knows how to get this to work please let me know.
Thanks in advance.