Hi Everyone,

I want to Exclude several groups of Data. ( from a calculation...)
And i'am thinking about what the best way it will be, how to do it. I principal i intend to do something like this:
The range of the Wavelength to exclude should be selected in a QSpinBox: From and a QSpinBox To. and this should be stored somewhere.

1) Way i can try to edit the QSpinboxes, and with an Enter, a set of new QSpinboxes will be shown dynamically at runtime. (Maybe with new MyWidget...) The From - To -Data will be stored in an ascii file. because i need them to be available the next time the SW starts up. (without the white QListView in the picture below...)
Therefore i think i need to make my own Widget, as shown in the Picture.(actually in the pic there are several qt widgets..)
My Question here is: Whats the best way to implement this dynamically, and do it with some sliders? e.g. if i have 10 items how can i navigate through them?

2) Way I only have on pair of QSpinBoxes From To (already in the picture) and i try to get the Data in a QListView or QListWidget. Therefore i may have to subclass them to get my Data in there. like:

Qt Code:
  1. class CMyItem
  2. { // Wavelength to be excluded from Calculation..
  3. public:
  4. // Inline definition
  5. CMyItem() { LowerLimit = 0.0; UpperLimit = 0.0; }
  6. double LowerLimit;
  7. double UpperLimit;
  8. };
  9.  
  10. class CMyListView : public QListView
  11. {
  12. public:
  13. CMyListView(QWidget *parent = 0);
  14. // ~CMyQListView();
  15.  
  16. CMyItem MyItem;
  17. };
To copy to clipboard, switch view to plain text mode 

But QListView has not something like addData() which i can trace. In the QListWidget class reference is a hint that:For a more flexible list view widget, use the QListView class with a standard model.

3) Way Something complete other?

I've tested both versions an didn't come far until now. And i'm asking what maybe will be more easier or elegant to try to implement? Or is there already something similar around in Qt?

I'm a little stucked what the best way will be
Many thanks for any suggestions
Astronomy