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. overlay on listview
QtWS25 Last Chance

overlay on listview

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
8 Posts 3 Posters 1.5k 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.
  • L Offline
    L Offline
    literA2
    wrote on last edited by
    #1

    Hi,

    Is there a way to put an overlay on top of listview so that when the user tries to scroll it without selecting any item, the onpressed signal of the delegate item won't be captured?

    p3c0P 1 Reply Last reply
    0
    • K Offline
      K Offline
      kolegs
      wrote on last edited by
      #2

      Did you try using onClicked instead?

      1 Reply Last reply
      0
      • L literA2

        Hi,

        Is there a way to put an overlay on top of listview so that when the user tries to scroll it without selecting any item, the onpressed signal of the delegate item won't be captured?

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

        @literA2 No need for overlay. Use pressDelay. Eg.
        pressDelay: 1000

        157

        L 1 Reply Last reply
        1
        • p3c0P p3c0

          @literA2 No need for overlay. Use pressDelay. Eg.
          pressDelay: 1000

          L Offline
          L Offline
          literA2
          wrote on last edited by literA2
          #4

          @p3c0 thank you very much for pointing that out! I forgot to look into Flickable component which is inherited by Listview.

          However, the onDoubleClicked on the delegate item isn't working, it worked as if two presses.

          p3c0P 1 Reply Last reply
          0
          • L literA2

            @p3c0 thank you very much for pointing that out! I forgot to look into Flickable component which is inherited by Listview.

            However, the onDoubleClicked on the delegate item isn't working, it worked as if two presses.

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

            @literA2 Aha. I didn't knew about that. It could be a bug or a limitation due to pressDelay. I think you should report it.

            157

            L 1 Reply Last reply
            0
            • p3c0P p3c0

              @literA2 Aha. I didn't knew about that. It could be a bug or a limitation due to pressDelay. I think you should report it.

              L Offline
              L Offline
              literA2
              wrote on last edited by
              #6

              @p3c0 I also tried to implement drag in delegate, it won't work once pressdelay is set.

              May I know where to report it?

              p3c0P 1 Reply Last reply
              0
              • L literA2

                @p3c0 I also tried to implement drag in delegate, it won't work once pressdelay is set.

                May I know where to report it?

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

                @literA2 Drag works. You need to mousepress and hold on for atleast the time set for pressDelay.

                157

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  literA2
                  wrote on last edited by literA2
                  #8

                  I already reported this here however there is no update yet.

                  Any work around on this one? Thanks!

                  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