Issue with New Signal/Slot mechanism In mingw (Qt5.2)
-
I have downloaded Qt5.2 mingw32 with opengl support. When i compile my project with this new version i get following error:
@
error: no matching function for call to
mainwindow::connect(dialog*&, void (Dialog::*)(bool),dialog::on_btnExport_clicked()::__lambda0)
});
^
@
Here is where i have defined my signal/slot connection:
@
connect(dialog, &Dialog::progressChanged,
[=](bool started)
{
if (started)
{
// do something
}
else
{
// do something else!
}
});
@
This code was working fine with "Qt5.1 msvc 2010 opengl".
How can i solve this issue? -
What is the signal signature?
Have you enabled c++11 support in your project (CONFIG += c++11)? MSVC doesn't support language version selection but MinGW does and is set to C++03 by default.