Hi
I want to create longpress of a painted shape, how it should done?
Waiting for your reply.
Printable View
Hi
I want to create longpress of a painted shape, how it should done?
Waiting for your reply.
What is a painted shape, I mean what is the Qt type used for it
If your painted shape if of type QWidget then, it can be this way
Code:
{ long_press_timer = startTimer(4000); // 4 second Longpress } { long_press_timer = 0; } { if(long_press_timer == event->timerId()) { // processes long press } long_press_timer = 0; killTimer(vent->timerId()); }
If your shape is of type QGraphicsObject, it is similar, implement these
Code: