Adding Touch capability to my Qt App

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


Log in to reply