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

Qt学习 第31节:信号和槽出现函数重载最先出现在Python成神之路

版权声明:
作者:感冒的梵高
链接:https://www.techfm.club/p/13943.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>