Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. First line on a html page is half cut when I put an header
Qt 6.11 is out! See what's new in the release blog

First line on a html page is half cut when I put an header

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I explain myself : I had to print html pages from a QTextDocument, it worked. Then I wanted to have an header and a footer for each page : kind of : copy rights, ...whatever

    so I tried "this":http://qt-project.org/faq/answer/is_it_possible_to_set_a_header_and_footer_when_printing_a_qtextdocument

    and it works! My only problem is that my first line of every page is cut...I see about 75% of my words...I tried to fix it by changing the value of the QRect but I could not figure out how to do it. I just found out that the problem is not with the writeText : when I write the text somewhere else, it doesn't affect the other lines

    Any advice?

    Thanks

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved