Results 1 to 3 of 3

Thread: save Qcanvas

  1. #1
    Join Date
    Apr 2009
    Posts
    10
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default save Qcanvas

    hi,
    how to save canvas items on canvas as images?
    i tried Qimage's save function. it didn't work..
    Qcanvas:drawarea - will do this? (somebody posted to use this )

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: save Qcanvas

    Hi,

    can't you just use QCanvasItem::draw( QPainter & painter ) with a QPixmap?

  3. #3
    Join Date
    Apr 2009
    Posts
    10
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: save Qcanvas

    hi,

    i am using qt3. so i tried QCanvasSprite::draw(Qpainter & p)
    with Qpixmap ....

    but it show errors... expected primary expression before '&' symbol...


    can u plz help me?

Similar Threads

  1. How to save file with QFileDialog
    By pnikolov in forum Qt Programming
    Replies: 11
    Last Post: 1st June 2012, 10:23
  2. Unable to resize a QCanvas.
    By yellowmat in forum Newbie
    Replies: 2
    Last Post: 21st June 2006, 12:52
  3. Replies: 7
    Last Post: 20th March 2006, 20:03
  4. save animate to gif
    By Dmitry in forum Qt Programming
    Replies: 2
    Last Post: 16th February 2006, 16:35
  5. What does "Save All" actually save?
    By Mariane in forum Newbie
    Replies: 7
    Last Post: 31st January 2006, 13:23

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.