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. QML MouseArea.drag with any button but left button
Qt 6.11 is out! See what's new in the release blog

QML MouseArea.drag with any button but left button

Scheduled Pinned Locked Moved QML and Qt Quick
mouseareadrag and drop
2 Posts 2 Posters 1.3k Views 2 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.
  • D Offline
    D Offline
    dzimiwine
    wrote on last edited by
    #1

    Hi,
    Is there a way to drag target using middle button (I want to use left button for something else) using MouseArea.drag?

    Regards

    p3c0P 1 Reply Last reply
    0
    • D dzimiwine

      Hi,
      Is there a way to drag target using middle button (I want to use left button for something else) using MouseArea.drag?

      Regards

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @dzimiwine Did you try acceptedButtons ?

      acceptedButtons: Qt.MiddleButton : Qt.RightButton
      

      157

      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