Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Drag and Drop Shape Objects
Qt 6.12 LTS is out! See what's new in the release blog

Drag and Drop Shape Objects

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 427 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.
  • T Offline
    T Offline
    TSqueak
    wrote on last edited by
    #1

    I am currently making a "sensor" that is a circle and that can move in any direction but it's direction is controlled through a rotation variable which is from 0 to 360 degrees. I am using Shape, ShapePath, and a PathLine to make it and it displays properly. My team and I wanted to be able to drag the line and influence the rotation value; however it seems all attempts at assigning a MouseArea to Shapes, ShapePaths, or PathLines haven't worked.
    Any suggestions?

    JKSHJ 1 Reply Last reply
    0
    • T TSqueak

      I am currently making a "sensor" that is a circle and that can move in any direction but it's direction is controlled through a rotation variable which is from 0 to 360 degrees. I am using Shape, ShapePath, and a PathLine to make it and it displays properly. My team and I wanted to be able to drag the line and influence the rotation value; however it seems all attempts at assigning a MouseArea to Shapes, ShapePaths, or PathLines haven't worked.
      Any suggestions?

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      @TSqueak said in Drag and Drop Shape Objects:

      all attempts at assigning a MouseArea to Shapes, ShapePaths, or PathLines haven't worked.

      Can you please post the code for one (or more) of your attempts?

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      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
      • Unsolved