不能怪我,我看的是某中文word版本。。。确实少翻译了些内容,在英文版 我找到了答案
In the constructor, we call setupUi() to initialize the form. Thanks to multiple inheritance, we can access Ui::GoToCellDialog's members directly. After creating the user interface, setupUi() will also automatically connect any slots that follow the naming convention on_objectName_signalName() to the corresponding objectName's signalName() signal. In our example, this means that setupUi() will establish the following signalslot connection:
connect(lineEdit, SIGNAL(textChanged(const QString &)),
this, SLOT(on_lineEdit_textChanged()));
我就说嘛 按我昨天的理解 构造函数里应该有上面这句的 我加上了 也没错