cleanup globals which keep references to Qt widgets

Merged Wout De Nolf requested to merge tests_widget_cleanup into main

Merge request reports