Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QGraphicsScene custom coordinats
Qt 6.12 LTS is out! See what's new in the release blog

QGraphicsScene custom coordinats

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 770 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
    _compiler
    wrote on last edited by
    #1
    // a4 page size = 210mm*297mm
    QGraphicsScene* scene = new QGraphicsScene(0, 0, ?, ?);
    

    How can I do it in millimeters?

    jsulmJ 1 Reply Last reply
    0
    • _ _compiler
      // a4 page size = 210mm*297mm
      QGraphicsScene* scene = new QGraphicsScene(0, 0, ?, ?);
      

      How can I do it in millimeters?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @_compiler Don't know why you want to do it, but I think you will need to know the resolution of used display: how many pixels per millimeter? If you know the resolution then you can do: 96*100 (in this example 96 is the resolution and you want to have 100mm).

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      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
      • Unsolved