Hi,
How to Display the image in Qt using Visual Studio.I'm using this code.
scene->setSceneRect(0, 0, 465, 615);
setScene(scene);
logo->setPos(30, 515);
setMinimumSize(470, 620);
setMaximumSize(470, 620);
QGraphicsScene *scene = new QGraphicsScene(this);
scene->setSceneRect(0, 0, 465, 615);
setScene(scene);
QGraphicsPixmapItem *logo = scene->addPixmap(QPixmap(":/redwood.png"));
logo->setPos(30, 515);
setMinimumSize(470, 620);
setMaximumSize(470, 620);
To copy to clipboard, switch view to plain text mode
but it shows setScene is not defined.
regards
S.Dastagir Hussain
Bookmarks