QVector merge
General and Desktop
8
Posts
3
Posters
5.7k
Views
1
Watching
-
-
What do you mean by better ?
-
Then how would you create a new object of a different class that uses one element of both vectors ?
-
Well, the final goal is to easily handle a progressive graph.
I'm using qwt and the qwtdataseries class requires a QVector<QPointF>.I was going to create a "constant" (I mean I won't change its values) QVector for x axis: 0..1..2..3..4 and so on.
The y QVector will be instead pushed and popped every sample received.
In this way I easily create a scrolling graph in real-time.