void Route::SetCameraPositions(QVector<QPoint> *cam)
{
QVector<QPoint> bla;
int x,y;
for(int i=0; i<cam->size(); i++) {
x = cam->at(i).x();
y = cam->at(i).y();
t.setX(x);
t.setY(y);
bla.push_back(t) //Works
cameraPoints.push_back(t); //Doesn't work
}
}
void Route::SetCameraPositions(QVector<QPoint> *cam)
{
QVector<QPoint> bla;
QPoint t;
int x,y;
for(int i=0; i<cam->size(); i++) {
x = cam->at(i).x();
y = cam->at(i).y();
t.setX(x);
t.setY(y);
bla.push_back(t) //Works
cameraPoints.push_back(t); //Doesn't work
}
}
To copy to clipboard, switch view to plain text mode
private:
QVector<QPoint> cameraPoints;
private:
QVector<QPoint> cameraPoints;
To copy to clipboard, switch view to plain text mode
Bookmarks