Hi all,
I am using a QGraphicsscene and added a map image and over to the top added QGraphicsEllipseItem and on top added a radar image (ARGB32) which will be updated at milliseconds....Please refer the attached image
. ..Now i need the Ellipse items to be at top of (overlay) radar image ...how can i set this property or achieve this..please guide me...Only Radar image will be updated map and Ellipse items will be constant
scene
->addPixmap
(QPixmap("/aegean-60km.bmp") );
ellp
->setPen
(QColor(Qt
::yellow));
scene->addItem(ellp);
ellp1
->setPen
(QColor(Qt
::magenta));
scene->addItem(ellp1);
/*********This code is on Timer Update Function*******************/
pixe
= QPixmap::fromImage(image_Radar
);
pic->setPixmap(pixe);
scene->addPixmap(QPixmap("/aegean-60km.bmp") );
QGraphicsEllipseItem *ellp=new QGraphicsEllipseItem (646,538,90,90);
ellp->setPen(QColor(Qt::yellow));
scene->addItem(ellp);
QGraphicsEllipseItem *ellp1=new QGraphicsEllipseItem (586,478,210,210);
ellp1->setPen(QColor(Qt::magenta));
scene->addItem(ellp1);
/*********This code is on Timer Update Function*******************/
pixe = QPixmap::fromImage(image_Radar);
pic->setPixmap(pixe);
To copy to clipboard, switch view to plain text mode
Bookmarks