Results 1 to 2 of 2

Thread: QGraphicsscene Image drawing

  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 Image drawing

    Hi all,

    I am using QGraphicsscene to display a map and Circles. I need to draw a Radar image on top of this map and circles with transparency enabled, so that i can able to see the map and circles through radar image.

    the radar image gets updated in a memory location at every 40 ms..Below is the code on how do i take and try to display the image on the graphicsscene. this method doesn't give me perfect image

    How do i draw this image on graphicsscene and update , enable transparency to this image.

    Please guide me.


    Qt Code:
    1. image_Radar = QImage (get_bmap,512,512,QImage::Format_ARGB32_Premultiplied);
    2.  
    3. pixe = QPixmap::fromImage(image_Radar);
    4.  
    5. scene->addPixmap(pixe);
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QGraphicsscene Image drawing

    Could you explain what "perfect image" means?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Drawing grids efficiently in QGraphicsScene
    By Gopala Krishna in forum Qt Programming
    Replies: 16
    Last Post: 7th June 2012, 14:59
  2. QGraphicsScene load drawing
    By emrares in forum Qt Programming
    Replies: 3
    Last Post: 27th August 2009, 15:50
  3. Replies: 1
    Last Post: 30th April 2009, 07:16
  4. Optimizing polygon clipping in QGraphicsScene drawing
    By maverick_pol in forum Qt Programming
    Replies: 1
    Last Post: 28th September 2008, 20:41
  5. QWidget in QGraphicsScene not drawing
    By stevel in forum Qt Programming
    Replies: 3
    Last Post: 19th September 2008, 19:19

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.