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. QGraphicsItem pos error.

QGraphicsItem pos error.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 263 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
    Pada_
    wrote on last edited by
    #1

    Hello
    I am using Linux 16.04, Qt5.4.0.

    We have developed a feature to add items to QGraphicsView + QGraphicsScene on Linux in 10 and 10 locations and save them as xml.

    If you load the xml again in the development environment, the item will be created in 10, 10 position normally.

    If you load this xml file in windows 7, Qt5.4.0, items are created at 10, 10, but at a different size and location than Linux.

    Will QGraphicsScene's items be affected by my monitor's resolution or operating system? I want to be created in the same place. What should I do?

    A 1 Reply Last reply
    0
    • P Pada_

      Hello
      I am using Linux 16.04, Qt5.4.0.

      We have developed a feature to add items to QGraphicsView + QGraphicsScene on Linux in 10 and 10 locations and save them as xml.

      If you load the xml again in the development environment, the item will be created in 10, 10 position normally.

      If you load this xml file in windows 7, Qt5.4.0, items are created at 10, 10, but at a different size and location than Linux.

      Will QGraphicsScene's items be affected by my monitor's resolution or operating system? I want to be created in the same place. What should I do?

      A Offline
      A Offline
      Asperamanca
      wrote on last edited by
      #2

      @Pada_
      Please show some relevant code. What positions do you save? View coordinates? Scene coordinates? Item coordinates?

      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