Hi all,
I m using Qt 4.4.3
I have taken one QVBoxLayout ,in which I m displaying one image using QGraphicsView
Now I want to draw/add line over the image which I set for graphics scene.how to do that
Below is the code for above thing
QVBoxLayout *ArrowLayout;
QGraphicsView *LeftArrowGraphicsView = new QGraphicsView;
QGraphicsScene *scene_LeftArrow = new QGraphicsScene;
pPixMapItemLeftArrow = scene_LeftArrow->addPixmap(QPixmap(QString::fromUtf8("Images/Arrow1.PNG")));
LeftArrowGraphicsView->setScene(scene_LeftArrow);
LeftArrowGraphicsView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysO ff);
LeftArrowGraphicsView->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff );
ArrowLayout->addWidget(LeftArrowGraphicsView);
Bookmarks