[[ Bug 12506 ]] Make sure QT callbacks are removed before releasing QTKit objects.
Merge branch 'bugfix-12506' into develop