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. Mobile and Embedded
  4. Adding Touch capability to my Qt App
Qt 6.12 LTS is out! See what's new in the release blog

Adding Touch capability to my Qt App

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 827 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
    #1

    Hi All,
    I am new to Qt. I have developed a Qt GUI for my hardware. It is working fine for mouse events and keyboard.

    Now the hardware is being made with touch capability.

    Now, I want to add touch capability to my GUI. It consists mostly of QPushButtons and QListView.
    Is it enough if I set the attribute setAttribute(Qt::WA_AcceptTouchEvents,true); to my widget ? or do I need to do it for all the buttons individually ? Please advice.

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