Results 1 to 2 of 2

Thread: Need advices for build and print document.

  1. #1
    Join Date
    Jun 2008
    Location
    Rome, Italy
    Posts
    95
    Thanks
    19
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Need advices for build and print document.

    Hi to all,
    I really need help to build a specific document. That document shoul have five blocks(expressed in mm, see the 'Page Structure' in attach) populated by text or image or both. I read about three approaches, first, populating a QTextDocument
    with raw HTML, second, populating a QTextDocument using a QTextCursor, and
    third, painting a document with QPainter, so what is the best way, in your experience, to build that document? Moreover, do you know any examples?
    Thanks in advance.
    Attached Images Attached Images

  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: Need advices for build and print document.

    It depends what you want to do with the document and how long the document would be. If it is short and you only need to print it then using QPainter directly on a printer would be the simplest approach. Using HTML is also easy but it is hard to control the size of the document this way.
    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. QPainter and complex drawing : advices
    By toutarrive in forum Qt Programming
    Replies: 0
    Last Post: 18th November 2009, 11:51
  2. Cancelling Long-running Print/Print Preview
    By ChrisW67 in forum Newbie
    Replies: 4
    Last Post: 17th June 2009, 00:05
  3. Help document
    By weixj2003ld in forum Qt Programming
    Replies: 5
    Last Post: 17th May 2009, 13:04
  4. Advices for animating drawing of a QPainterPath?
    By Gnurou in forum Qt Programming
    Replies: 0
    Last Post: 4th July 2008, 16:17

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.