#25433 Updated to make use of new qtwidgets framework.