Interruptible task infrastructure for qt 5