I downloaded some code and run it in VS2013+QT5.4, there is code like this:
parser.addOptions({
{ "nogui", QString("Using command line arguments, do not show GUI.") },
{ { "p", "path" }, QString("Path for job files or shape files."), QString("path") },
});
and I got an error:
error C2664 - cannot convert parameter 1 from 'initializer-list' to 'const QList<QCommandLineOption> &'
It seems about a VS problem of C++11?...and I wonder how to fix it?
Aucun commentaire:
Enregistrer un commentaire