Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
Connect something with a slot and also sent a QVariant..
Leon last edited by
lets say for example we want to use the QTimer::singleShot to call a function but also send a qvariant, its impossible..
all i can do is
@QTimer::singleShot(200, this, SLOT(function_name()));@
when i wanted something like
@QString hello="hello world";
QTimer::singleShot(200, this, SLOT(function_name(hello)));@
Not quite in that way. You can, however, subclass QTimer and add a QVariant member to that class. Then it should work, sure.