Thanks Lykurg .Thanks Urthas.
My Partner has been found it.
void MainWindow::on_pushButton_clicked()
{
QPixmap m
("/home/MALEK/QT-Creator/PROJECTs/soso/bomb.jpeg");
scene->setBackgroundBrush(m.scaled(100,100,Qt::IgnoreAspectRatio,Qt::SmoothTransformation));
ui->graphicsView->setScene(scene);
}
void MainWindow::on_pushButton_clicked()
{
QGraphicsScene *scene = new QGraphicsScene();
QPixmap m("/home/MALEK/QT-Creator/PROJECTs/soso/bomb.jpeg");
scene->setBackgroundBrush(m.scaled(100,100,Qt::IgnoreAspectRatio,Qt::SmoothTransformation));
ui->graphicsView->setScene(scene);
}
To copy to clipboard, switch view to plain text mode
}
But We still don't Know How to make it in the same size of white rectangle.And how to make it zoom-able.
Thank you very much .
Bookmarks