[Interest] QObject::connect

Guido Seifert wargand at gmx.de
Thu Jun 26 19:11:31 CEST 2014


Wow, this question is already more than a year old. I wasn't aware that this
new connection syntax is already that old. So it was about time that I started
to use it, and even updated some old code to use it.  :-)

Guido


André Somers <andre at familiesomers.nl> wrote:

> 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é
> 



More information about the Interest mailing list