Dispatch Qt widget creation and destruction to QApplication thread