i want to add custom svg items to QGraphicsScene, actually tried with scene and graphicsView, but how to add QGraphicsSvgItem to scene, also in following 2 svg's will overlap each other,
i want to add QGraphicsSvgItem to Scene and then achieve drag and drop........
so please tell how to do
Qt Code:
void Widget::abhi() { // QGraphicsSvgItem *svg1=new QGraphicsSvgItem(); gview->setScene(scene); gview->setScene(scene); gview->adjustSize(); gview->showMaximized(); }To copy to clipboard, switch view to plain text mode
Bookmarks