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 to use touchevent in QquickWidget on QMenu

How to use touchevent in QquickWidget on QMenu

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 430 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.
  • Q Offline
    Q Offline
    Qt.Jo.Ha
    wrote on last edited by Qt.Jo.Ha
    #1

    I just use QquickWidget, touch event comes (touchBegin, touchEnd), but when I use QquickWidget in QMenu, touch event does not come.

    Can you tell me why?

    raven-worxR 1 Reply Last reply
    0
    • Q Qt.Jo.Ha

      I just use QquickWidget, touch event comes (touchBegin, touchEnd), but when I use QquickWidget in QMenu, touch event does not come.

      Can you tell me why?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Qt-Jo-Ha
      try to set Qt::WA_AcceptTouchEvents on the QQuickWidget

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      Q 1 Reply Last reply
      0
      • raven-worxR raven-worx

        @Qt-Jo-Ha
        try to set Qt::WA_AcceptTouchEvents on the QQuickWidget

        Q Offline
        Q Offline
        Qt.Jo.Ha
        wrote on last edited by Qt.Jo.Ha
        #3

        @raven-worx said in How to use touchevent in QquickWidget on QMenu:

        @Qt-Jo-Ha
        try to set Qt::WA_AcceptTouchEvents on the QQuickWidget

        i tried it It was successful for general QquickWidgets, but it did not apply to QquickWidgets used in Qmenu. ( Use QWidgetAction)

        raven-worxR 1 Reply Last reply
        0
        • Q Qt.Jo.Ha

          @raven-worx said in How to use touchevent in QquickWidget on QMenu:

          @Qt-Jo-Ha
          try to set Qt::WA_AcceptTouchEvents on the QQuickWidget

          i tried it It was successful for general QquickWidgets, but it did not apply to QquickWidgets used in Qmenu. ( Use QWidgetAction)

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by raven-worx
          #4

          @Qt-Jo-Ha
          you might also need to set it on the QMenu itself

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          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