Instead of having a slot that gets called by a timer, why not do what powerwindow does and check isActive() in the mouse release handler?