backported things from qtwizvis branch (backported from configurator)