How to return more than two value in QT?
-
I want to return more than two value in QT. For knowing if I want to return two value, I will use QPair<t1,t2>. But now I want to return more than two value?
@amarism
return a struct -
I want to return more than two value in QT. For knowing if I want to return two value, I will use QPair<t1,t2>. But now I want to return more than two value?
-
@amarism
... or a class (instance), depending on how lightweight/heavyweight is appropriate.
Or pass in a reference to a struct/class instead of returning one.
Lots of possibilities. -
-
I want to return more than two value in QT. For knowing if I want to return two value, I will use QPair<t1,t2>. But now I want to return more than two value?
@amarism said in How to return more than two value in QT?:
QPair<t1,t2>. But now I want to return more than two value?
QVector<...>, QList<...>, std::array
-
@amarism said in How to return more than two value in QT?:
QPair<t1,t2>. But now I want to return more than two value?
QVector<...>, QList<...>, std::array