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:
  1. void Widget::abhi()
  2. {
  3. // QGraphicsSvgItem *svg1=new QGraphicsSvgItem();
  4.  
  5.  
  6.  
  7.  
  8. scene->addPixmap(QPixmap(":/dragon_head_nicu_buculei_01.svg"));
  9. scene->addPixmap(QPixmap(":/medicina_dottore_archite_01.svg"));
  10.  
  11. gview->setScene(scene);
  12. gview->setScene(scene);
  13. gview->adjustSize();
  14. gview->showMaximized();
  15.  
  16. }
To copy to clipboard, switch view to plain text mode