Results 1 to 2 of 2

Thread: Can't print QImage

  1. #1
    Join Date
    Jun 2010
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Post Can't print QImage

    Hi,

    I have qtextedit with some text and QImages in it when I pass it to printer with Qprinter only text print out, but i cant print images, what is wrong with this.

    QTextCursor cursor = ui.textEdit->textCursor();
    QImage image = pdfPage->renderToImage(resX, resY);
    cursor.insertImage( image, "image" );


    thanks.

  2. #2
    Join Date
    Jun 2010
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Can't print QImage

    any ideas...

Similar Threads

  1. print picture (QImage) from non GUI thread
    By valeron in forum Qt Programming
    Replies: 1
    Last Post: 30th April 2013, 19:35
  2. qwt print
    By manmohan in forum Qwt
    Replies: 0
    Last Post: 5th May 2010, 07:16
  3. Cancelling Long-running Print/Print Preview
    By ChrisW67 in forum Newbie
    Replies: 4
    Last Post: 16th June 2009, 23:05
  4. I can't print...
    By brevleq in forum Qt Programming
    Replies: 5
    Last Post: 22nd January 2008, 11:13
  5. Replies: 3
    Last Post: 15th March 2006, 11:44

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.