我有这个代码:
QObject::connect(lineEdit_1, SIGNAL(textChanged(const QString &)), MainWindow, SLOT(myMethod(const QString &, QLineEdit* )) );
Run Code Online (Sandbox Code Playgroud)
当myMethod只有第一个参数(等于SIGNAL)时,此代码可以正常工作,但我需要传递一个指针lo lineEdit_1,以便myMethod知道它必须在哪个LineEdit上运行.我该怎么办?
非常感谢.