Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Switch between MultiPointTouchAreas
Qt 6.11 is out! See what's new in the release blog

Switch between MultiPointTouchAreas

Scheduled Pinned Locked Moved Game Development
1 Posts 1 Posters 726 Views 2 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.
  • L Offline
    L Offline
    Lichtdrache
    wrote on last edited by
    #1

    Hi, I hope someone can find an answer to my problem.

    I'm working on a top down PVP shooter for a tablet. Each player navigates a tank by wiping over a small controller (MultiPointTouchArea). 2 big MultiPointTouchAreas split the screen in halves. By tapping outside of the controller within their half of the screen, they can place it somewhere else. This works perfectly fine.

    Now I want to improve the controls. The player currently needs to tap on the controller after placing it on the field to switch between the two MultiPointTouchAeas. I want him to be able to place the controller and immediately navigate the tank with one swipe over the screen.

    This means I have to switch from the playing field MultiPointTouchArea to the controller MultiPointTouchArea after receiving the first TouchPoint. How can I achieve that with one pressed() signal?

    Much appreciated.

    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