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. Make rectangle as popup element that all of back element does not receive inputs like scroll
Forum Updated to NodeBB v4.3 + New Features

Make rectangle as popup element that all of back element does not receive inputs like scroll

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
7 Posts 2 Posters 464 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.
  • C Offline
    C Offline
    ChrisPanda
    wrote on last edited by ChrisPanda
    #1

    Hello guys just want to ask how can i disable all input like scroll click and hover to the back element if i have rectanggal that i overlapped in the current element.

    J.HilkJ 1 Reply Last reply
    1
    • C ChrisPanda

      Hello guys just want to ask how can i disable all input like scroll click and hover to the back element if i have rectanggal that i overlapped in the current element.

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @ChrisPanda
      you could add a MouseArea to your rectangle. That will, by default, capture all mouse events and prevent them from going to underlying elements


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      C 1 Reply Last reply
      0
      • J.HilkJ J.Hilk

        @ChrisPanda
        you could add a MouseArea to your rectangle. That will, by default, capture all mouse events and prevent them from going to underlying elements

        C Offline
        C Offline
        ChrisPanda
        wrote on last edited by
        #3

        @J-Hilk Already tried that sir but its only works for mouse click and hover but not on scroll.

        J.HilkJ 1 Reply Last reply
        0
        • C ChrisPanda

          @J-Hilk Already tried that sir but its only works for mouse click and hover but not on scroll.

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @ChrisPanda try adding onWheel:accepted = true

          because according to the Documentations, wheel events are propagated by default 🤷‍♂️
          https://doc.qt.io/qt-5/qml-qtquick-wheelevent.html#accepted-prop


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            ChrisPanda
            wrote on last edited by
            #5

            It works! thanks. how about the tab key for focus? how can i disable it?

            J.HilkJ 1 Reply Last reply
            0
            • C ChrisPanda

              It works! thanks. how about the tab key for focus? how can i disable it?

              J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @ChrisPanda I do not know what you mean


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              C 1 Reply Last reply
              0
              • J.HilkJ J.Hilk

                @ChrisPanda I do not know what you mean

                C Offline
                C Offline
                ChrisPanda
                wrote on last edited by
                #7

                @J-Hilk like that also. i just want to not focus on the back item when i press tab. cause some of my back item focuses when i am pressing tab. i just want it to my current rectangle

                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