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 move a specified QLineSeries from one point to another point using mouse only?
Forum Updated to NodeBB v4.3 + New Features

How to move a specified QLineSeries from one point to another point using mouse only?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 580 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.
  • N Offline
    N Offline
    newKid
    wrote on last edited by
    #1

    I need to move a specified QLineSeries in a QChart from the point where the mouse left-button is pressed to the point where the mouse moves and the left-button is released.
    The key points to do so include what?
    Thanks in advance!
    By the way, the pressed event of one QLineSeries means what? Pressed on any points on it and holds? It seems that I must double-click to trigger this event, pressing on it and holding does nothing.

    Venkatesh VV 1 Reply Last reply
    0
    • N newKid

      I need to move a specified QLineSeries in a QChart from the point where the mouse left-button is pressed to the point where the mouse moves and the left-button is released.
      The key points to do so include what?
      Thanks in advance!
      By the way, the pressed event of one QLineSeries means what? Pressed on any points on it and holds? It seems that I must double-click to trigger this event, pressing on it and holding does nothing.

      Venkatesh VV Offline
      Venkatesh VV Offline
      Venkatesh V
      wrote on last edited by
      #2

      @newKid
      Hello,
      When you press mouse left-button on some point and drag the mouse and release it somewhere , QLineSeries will emit released(QPointF) signal. catch the signal and replace the point in lineseries using insert() method with the point received through signal.

      1 Reply Last reply
      1
      • N Offline
        N Offline
        newKid
        wrote on last edited by
        #3

        Thanks very much for your answer! I've made it to move or rotate the specified series!
        Anyway, thanks again!
        Best regards!

        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