Solved Store three values in a container
-
Hi guys, I wondering what is the option for that case: I want to save like this:
"name" => [ QIcon, MyClass * ]
, how can I reproduce that in Qt? -
Hi
Many ways to do so. :)struct MyItem{
QIcon ico;
MyClass *Class;
};http://doc.qt.io/qt-5/qmap.html
QMap<QString, MyItem > MyLookupList;Each string, will then give u struct ( with the 2 data in)
-
I juts got myself thinking: How could I forget about struct? haha.
-
Well that happens :)
-
Thank you, you are awesome