c++arrayslistqt5qlist

Two types in QList


I'm trying to return QList with two values in it, but each value should have different type. First value in QString, second value in integer or short integer (up to 6 digits).

I have no idea where to start, can you help me with this please?


Solution

  • If you realy need it as a list, I would simply use a QList of QPair.