Qt Forum

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

    How to read graphs

    General and Desktop
    2
    3
    694
    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.
    • K
      karim24 last edited by

      let's say that i want to make a program thar allows you to draw lines
      how do i read the coordinates of the drawn graph (lines)

      1 Reply Last reply Reply Quote 0
      • S
        Sashko last edited by

        Have a look at the documentation of Qt's graphics view framework and at how the scene manages the coordinate system and puting the graphic items onto the scene at a specific position.
        What do you mean by "read the coordinates"? Do you want to move your mouse over the graphics view and to show somewhere the current coordinates under the mouse cursor? In this case you'll need to map curser's coordinates to view's and to scene's coordinates and to show these values somewhere.

        1 Reply Last reply Reply Quote 0
        • K
          karim24 last edited by

          "move mouse over the graphics view and to show somewhere the current coordinates under the mouse cursor" that would be good too i will need this one too.

          what i want is that somebody draws anything with the mouse curser
          i mean anything like a face, circle or even a simple line and i have to read the coordinates into let's say a container.

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