Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtGraphs LineSeries onClicked signal gives integer coordinates?

QtGraphs LineSeries onClicked signal gives integer coordinates?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 25 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.
  • F Offline
    F Offline
    FishBoneEK
    wrote last edited by
    #1

    Hello!
    Just made a little demo on QtGraphs LineSeries, but the onClicked signal gives integer coordinates?
    E.g. it gives QPoint(2, 3) instead of float coordinates.
    It means this onClicked signal can't be combined with other functions, like find to get the point index after the user clicked a point.

    TBO I even don't know what's the use of it if it's integer.

    P.S. I think it would be nice if there's a fuzzyFind function, e.g. user clicks at a place a bit away from a point (instead of ON the point), and fuzzyFind gets the point index. It would save efforts for the user.
    Thanks!

    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