[Interest] QObject::connect

André Somers andre at familiesomers.nl
Thu Jun 26 17:49:52 CEST 2014


igor.mironchik at gmail.com schreef op 26-6-2014 18:43:
> Hi guys,
> I have one simple question:
> Is it possible to make connection with new syntax (using QMetaMethod) 
> if object has two or more signals with the same name but with 
> different argument's type?
> For example, QComboBox::currentIndexChanged... There are two signals 
> with int and QString...
Yes, it is, but you'll have to use an explicit cast to do so.
See 
http://stackoverflow.com/questions/16794695/qt5-overloaded-signals-and-slots 
for an example.

> Or for such connection user **must** use old syntax?
No, you don't have to.

André

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140626/ca1cfbd9/attachment.html>


More information about the Interest mailing list