Qt学习 第31节:信号和槽出现函数重载
https://doc.qt.io/qt-5/signalsandslots-syntaxes.html#https://doc.qt.io/qt-5/signalsandslots-syntaxes.html#
Selecting Overloaded Signals and Slots
With the string-based syntax, parameter types are explicitly specified. As a result, the desired instance of an overloaded signal or slot is unambiguous.
In contrast, with the functor-based syntax, an overloaded signal or slot must be casted to tell the compiler which instance to use.
For example, QLCDNumber has three versions
共有 0 条评论