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 can I move a qLabel with drag and drop?
Qt 6.11 is out! See what's new in the release blog

¿How can I move a qLabel with drag and drop?

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 428 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.
  • I Offline
    I Offline
    Isidro Perla
    wrote on last edited by
    #1

    I want to move a ui label called ruler, using the mouse, I know that I can use qMouseEvent, but I'm not sure how to drag and drop with that event my label. Some idea??

    jsulmJ 1 Reply Last reply
    0
    • I Isidro Perla

      I want to move a ui label called ruler, using the mouse, I know that I can use qMouseEvent, but I'm not sure how to drag and drop with that event my label. Some idea??

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Isidro-Perla Take a look at this example: https://doc.qt.io/qt-5/qtwidgets-draganddrop-draggableicons-example.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

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