Qt Code:
  1. void Route::SetCameraPositions(QVector<QPoint> *cam)
  2. {
  3. QVector<QPoint> bla;
  4. QPoint t;
  5. int x,y;
  6. for(int i=0; i<cam->size(); i++) {
  7. x = cam->at(i).x();
  8. y = cam->at(i).y();
  9. t.setX(x);
  10. t.setY(y);
  11. bla.push_back(t) //Works
  12. cameraPoints.push_back(t); //Doesn't work
  13. }
  14. }
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. private:
  2. QVector<QPoint> cameraPoints;
To copy to clipboard, switch view to plain text mode