Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Why does TouchArea is not in use anymore in QML ?
Qt 6.12 LTS is out! See what's new in the release blog

Why does TouchArea is not in use anymore in QML ?

Scheduled Pinned Locked Moved QML and Qt Quick
12 Posts 3 Posters 5.6k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #3

    But way it doesn't replace the MouseArea in QML ?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #4

      Why should it replace it? MouseArea works perfectly with both mouse and touch events... if TA is really good, I'm fine with adding it, though, as an additional element.

      (Z(:^

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #5

        Do you use TouchArea ?

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #6

          [quote author="aabc" date="1340700912"]Do you use TouchArea ?[/quote]

          -Yes, a lot :) Works also on Android with multitouch (well, MA + PinchArea).- Srx, I meant MouseArea. I do not use TouchArea.

          (Z(:^

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #7

            And did you use MouseArea on a devices with resistive touch ?

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #8

              Nope. I've tried it on my SGS2 only, and this guy comes with capacitative screen.

              (Z(:^

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #9

                Did you try to work with QML elements like ListView on this touch device ?

                1 Reply Last reply
                0
                • sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #10

                  Uh, am I being interviewed? xD

                  I think it was GridView in my case, but yes. Also works more or less ok (but one has to be careful with embedding other mouse areas inside and remember to set focus appropriately).

                  Anyway, you can take a look at the code here: "gitorious":https://gitorious.org/closecombatfree/closecombatfree/trees/master. I have ported it to Qt5 recently, so it won't work right now on Android. You can grab an older commit if you need it.

                  (Z(:^

                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #11

                    My problem is that I work with MouseArea and ListView on a resistive touch and I getting a lot of unwanted release events

                    1 Reply Last reply
                    0
                    • sierdzioS Offline
                      sierdzioS Offline
                      sierdzio
                      Moderators
                      wrote on last edited by
                      #12

                      Could be. I combine Flickables, GridViews and MouseAreas a lot in the linked projects, and sometimes there are problems, too. You can try filling a bug report if you have an easily-reproducible case.

                      (Z(:^

                      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
                      • Unsolved