Hi,

Use a Timer. When you get a "mousePressEvent" you can start the timer. On "mouseReleaseEvent" you can stop it. If the timer fires you can open the dialog.