some minor changes to QtUtil