Results 1 to 2 of 2

Thread: perviewing image on qgrapihcsview

  1. #1

    Default perviewing image on qgrapihcsview

    I need to preview image on qgraphics view control in the form
    ui.graphicsView=new QGraphicsView(&(CustomSlot::scene),this);
    QPixmap pix( "E:\\QT\\4.4.0\\Tree3\\pix_jpg.jpg");
    scene.addPixmap( pix );

    but this code dosn't show the image in the control ui.graphicsView

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: perviewing image on qgrapihcsview

    What are scene and CustomSlot::scene ??

Similar Threads

  1. Finding marks on scanned image for alignment
    By caduel in forum Qt Programming
    Replies: 1
    Last Post: 23rd September 2007, 02:10
  2. Explanation to Image Formats
    By sincnarf in forum Qt Programming
    Replies: 13
    Last Post: 6th July 2007, 17:02
  3. Help needed handling image data
    By toratora in forum General Programming
    Replies: 2
    Last Post: 11th May 2007, 09:24
  4. How and when to repaint a widget ?
    By yellowmat in forum Newbie
    Replies: 7
    Last Post: 3rd April 2006, 16:36
  5. Question about updating an image on screen
    By SkripT in forum Qt Programming
    Replies: 1
    Last Post: 24th February 2006, 19:01

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.