1 2 3 4 5 6 7 8 9
#include "ui_mainwindowsubdir.h" bool subdircheck() { MocWidget mw; Ui::WidgetSubdir mwUi; mwUi.setupUi(&mw); return mw.objectName() == "WidgetSubdir2"; }