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. PDF reports
Qt 6.11 is out! See what's new in the release blog

PDF reports

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.1k 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.
  • P Offline
    P Offline
    panoramix
    wrote on last edited by
    #1

    Hello everyone
    I'm using the Qcustomplot library for drawing charts that I must then save in pdf documents. (Http://www.qcustomplot.com/index.php/introduction)
    To generate these reports I have started from this example:
    http://www.qcustomplot.com/index.php/tutorials/specialcases/textdocument

    When I generate the report I imposed fixed the size of the graph but using the program on PCs with different video resolution the result changes.
    Can you tell me a method to set the size of the chart so the dimension does not change depending on the resolution of the video card of the PC I'm using?

    Thanks so much

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Normally when you print a widget, u will scale to the printers DPI as not
      to get a really small widget.
      For PDF, i assume its the same.
      There is scale example here
      http://doc.qt.io/qt-4.8/printing.html

      1 Reply Last reply
      1

      • Login

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