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. QChartView mouse double click
Qt 6.11 is out! See what's new in the release blog

QChartView mouse double click

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

    I want to know how to double-click the mouse.
    The last thing I want to do is double-click with gestures.

    Why doesn't gesture support double-click?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      You will override
      https://doc.qt.io/qt-5/qwidget.html#mouseDoubleClickEvent

      Do notice that double clicks are not real.
      its 2 single clicks and Qt keep track of time between and location if makes you a double click event.

      So if you override both mousePress and mouseDoubleClickEvent BOTH will be called by a double click.
      This is by design and it's up to you to write logic to handle both if you need to have both single and double click actions.

      • Why doesn't gesture support double-click?
        Well it does in QML
        https://doc.qt.io/qt-5/qml-qtquick-taphandler.html#details

      I dont know about QWidgets.

      1 Reply Last reply
      1

      • Login

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