سؤال

I need to name my class in qt-designer, Unfortunately after each change in qt-designer and genertaing *.ui file, i should change <class> MyClass</class> by hand.

My question is, How change my class name by qt-designer , not by hand?

هل كانت مفيدة؟

المحلول

To make Qt Designer generate ui files with custom names, you need to set the object names for your dialogs/windows/widgets. You can do that in Qt Designers Property Editor, after selecting an object.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top