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. About singal processing
Qt 6.11 is out! See what's new in the release blog

About singal processing

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 2.3k 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.
  • S Offline
    S Offline
    sfjam
    wrote on last edited by
    #1

    onclick and onPressAndHold appear at the same time ,but onclick does not work!who can tell me how to let it work?thank you!

    1 Reply Last reply
    0
    • T Offline
      T Offline
      thisisbhaskar
      wrote on last edited by
      #2

      @A click is defined as a press followed by a release, both inside the MouseArea (pressing, moving outside the MouseArea, and then moving back inside and releasing is also considered a click).@

      So, you should be getting onClicked: after onPressAndHold:. They can not come at same time.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sfjam
        wrote on last edited by
        #3

        in my code,onClicked is the child of onPressAndHold ,on one hand in GridView’s delegate i define a MousArea use onClick to implement display a a picture in full screen,on the other hand in GridView i define a MouseArea use onPressAndHold and onRelease to implement drag and drop,but onClicked does not work,i think the reason is that onClicked is the child of onPressAndHold,but i do not know how to change it ?

        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