because of this "notice: QMetaObject::connectSlotsByName(this); is also used in generated ui_classname.h file."
read this QMetaObject::connectSlotsByName.