PDA

View Full Version : Make lines on scene always the same size?



darktorres
1st November 2014, 11:37
I have made a image viewer that can make lines over the images but if the image have high resolution the lines become small (like in the images uploaded, the cat image as big lines and the macaw image has tiny lines). Is there a way to make the lines with a fixed size regardless of the scene size?

My scene is set like:


item[0]->setPixmap(image.at(img)->getPixmap(0));
scene[0]->setSceneRect(0, 0, item[0]->pixmap().width(), item[0]->pixmap().height());
ui->graphicsView0->fitInView(item[0], Qt::KeepAspectRatio);

10717
10718

anda_skoa
1st November 2014, 12:28
You can try makingthe line items ignore transformations or you only transform the image item.

Cheers,
_