Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用旧语法,可以转发信号,例如:
connect(sender, SIGNAL(valueChanged(QString,QString)), this, SIGNAL(updateValue(QString,QString)));
我喜欢使用新的 Qt5 语法。是否可以使用新语法来转发信号?
信号只不过是一种简单的方法。所以你可以按原样使用它。像这样的东西:
connect(sender, &Sender::valueChanged, receiver, &Receiver::updateValue);