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. How to read graphs
QtWS25 Last Chance

How to read graphs

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 847 Views
  • 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 Offline
    K Offline
    karim24
    wrote on last edited by
    #1

    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
    0
    • S Offline
      S Offline
      Sashko
      wrote on last edited by
      #2

      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
      0
      • K Offline
        K Offline
        karim24
        wrote on last edited by
        #3

        "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
        0

        • Login

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