Results 1 to 1 of 1

Thread: QGraphicsscene item overlay issue

  1. #1
    Join Date
    Jun 2009
    Location
    India
    Posts
    143
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QGraphicsscene item overlay issue

    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

    Qt Code:
    1. scene->addPixmap(QPixmap("/aegean-60km.bmp") );
    2. QGraphicsEllipseItem *ellp=new QGraphicsEllipseItem (646,538,90,90);
    3. ellp->setPen(QColor(Qt::yellow));
    4. scene->addItem(ellp);
    5.  
    6. QGraphicsEllipseItem *ellp1=new QGraphicsEllipseItem (586,478,210,210);
    7. ellp1->setPen(QColor(Qt::magenta));
    8. scene->addItem(ellp1);
    9. /*********This code is on Timer Update Function*******************/
    10. pixe = QPixmap::fromImage(image_Radar);
    11. pic->setPixmap(pixe);
    To copy to clipboard, switch view to plain text mode 
    Attached Images Attached Images

Similar Threads

  1. Rotate Item qgraphicsscene
    By pispipepe in forum Qt Programming
    Replies: 5
    Last Post: 28th July 2010, 20:05
  2. QGraphicsScene item positioning
    By been_1990 in forum Qt Programming
    Replies: 7
    Last Post: 28th July 2009, 12:11
  3. Moving an item in QGraphicsScene
    By prosass in forum Newbie
    Replies: 4
    Last Post: 28th March 2007, 14:21
  4. Crazy over the QGraphicsScene/Item
    By Morea in forum Qt Programming
    Replies: 6
    Last Post: 20th November 2006, 09:18
  5. QWidget item in QGraphicsScene
    By IUnknown in forum Qt Programming
    Replies: 4
    Last Post: 4th November 2006, 00:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.