Results 1 to 3 of 3

Thread: QTextEdit print

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Location
    Ukraine
    Posts
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QTextEdit print

    Hello!

    When I printed content from QTextEdit, then appears page number in footer of print preview dialog. How can I change page numbers in this footer?

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QTextEdit print

    You can find that some users requested turning off the page numbering, but it looks like its still to be done.
    Maybe you can use QTextDocument::drawContents to render the QTextEdit::document() and then manually render the page number with QPainter::drawText.

  3. #3
    Join Date
    Sep 2009
    Location
    Ukraine
    Posts
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTextEdit print

    Ok, Thanks for answer.

Similar Threads

  1. how to print a value in qt
    By qt_user in forum Qt Programming
    Replies: 5
    Last Post: 6th August 2010, 21:17
  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. Change margin on QTextEdit print()
    By Dii in forum Qt Programming
    Replies: 2
    Last Post: 20th May 2008, 22:45
  5. Replies: 1
    Last Post: 16th February 2007, 07:22

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
  •  
Qt is a trademark of The Qt Company.