Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

How to grab the gesture for a particular component

$
0
0
I have QPushButton which is placed in a QWidget. I want to grab the gesture only for the QPushbutton. I tried, grabGesture(Qt::TapAndHoldGesture). this grabs the gesture for the whole Widget and not for the QPushButton alone. Then i tried it in this way, ui->PushButton->grabGesture(Qt::TapAndHoldGesture). but this doesn’t grabs anything. so can anyone please help me how to grab the Gesture for a particular component.

Viewing all articles
Browse latest Browse all 13965

Trending Articles