Qt 6.11 is out! See what's new in the release
blog
Using enum in QMap
-
This post is deleted!
-
This post is deleted!
You will have to be more specific because, for example, this compiles just fine:
#include <QCoreApplication> enum MyEnum { param1 = 0, param2 = 1 }; int main(int argc, char *argv[]) { QMap<QString, MyEnum> map; map["zero"] = param1; map["one"] = param2; QCoreApplication a(argc, argv); return a.exec(); }