Results 1 to 2 of 2

Thread: How to convert QTextDocument to PNG file?

  1. #1
    Join Date
    Jan 2006
    Posts
    8
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to convert QTextDocument to PNG file?

    I store in QTextDocument some images and text , i use the function print , to print this document into a paper.

    I try to make a PDF file with the new function in QPrinter , setOutputFormat(QPrinter::PdfFormat) , but it doesn't work.

    I also would like to make a PNG file of this document.

    My question is , How to convert QTextDocument to PNG file?

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    99
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to convert QTextDocument to PNG file?

    Quote Originally Posted by Gonzalez
    I store in QTextDocument some images and text , i use the function print , to print this document into a paper.

    I try to make a PDF file with the new function in QPrinter , setOutputFormat(QPrinter::PdfFormat) , but it doesn't work.
    Did you use
    void QPrinter::setOutputFileName ( const QString & fileName ) ?

    I don't know a solution for your second question.

    Cheers

Similar Threads

  1. Convert doc into txt file using Qt
    By live_07 in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2009, 14:27
  2. Apparent error in QtCore/quuid.h
    By cwp500 in forum Qt Programming
    Replies: 11
    Last Post: 18th December 2008, 20:51
  3. Read binary file and convert to QString
    By jaca in forum Qt Programming
    Replies: 12
    Last Post: 13th June 2008, 23:05
  4. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 06:51
  5. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21

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.