Connecting signals to slots with less params allowed in Qt?
Is it valid to call
QObject::connect(a, SIGNAL(somesig(someparam)), b, SLOT(someslot()));
without params? It seems to work (no runtime exception thrown) but I can't
find a reference in the docs. All I found is that this is possible if
someslot has a default parameter. It is valid in this case. But my method
someslot has not the same parameter set as default (no parameter here in
the example).
So it seems to be possible to wire signals to slots with less parameters?
No comments:
Post a Comment