Solved QComboBox connect with lamba error
-
connect(mComboBox, &QComboBox::currentIndexChanged, [&]() { // ... });
error: C2664: 'QMetaObject::Connection QObject::connect(const QObject *,const char *,const char *,Qt::ConnectionType) const': cannot convert argument 2 from 'overloaded-function' to 'const char *'
-
-
-
To point you exactly in the specific place of @JNBarchan 's liks: http://doc.qt.io/qt-5/signalsandslots-syntaxes.html#selecting-overloaded-signals-and-slots
If your compiler supports C++14 you can use qOverload()
-
Thank you guys <3