Jiri Zaloudek
Jiri Zaloudek

Reputation: 380

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?

Upvotes: 0

Views: 297

Answers (1)

cyrsep
cyrsep

Reputation: 26

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

Upvotes: 1

Related Questions