QObject::connect: No such slot或者QObject::connect: No such signal

QObject::connect: No such slot或者QObject::connect: No such signal主要由于两个原因导致的:

1.传递参数的时候不能带变量名只能含有变量类型;

QObject::connect: No such slot或者QObject::connect: No such signal_第1张图片

2.类中必须包含Q_OBJECT。

QObject::connect: No such slot或者QObject::connect: No such signal_第2张图片

你可能感兴趣的:(ui,qt5)