Quote Originally Posted by NewLegend View Post
This method does not work with .ui
Of course it does. Of course, as always, you need to deploy the classes generated from ui files to widgets first but I'm sure you already know that.