Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QGraphicsItem pos error.

    General and Desktop
    2
    2
    69
    Loading More Posts
    • 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
      Pada_ last edited by

      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 Reply Quote 0
      • A
        Asperamanca @Pada_ last edited by

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

        1 Reply Last reply Reply Quote 1
        • First post
          Last post