I need to have array of oneitems.
So why dont you use QList ?
QList<oneitem> list;
QList<oneitem> list;
To copy to clipboard, switch view to plain text mode
Btw. you can skip the "struct" keyword when declaring the variable:
struct itemdetail {
double a;
double b;
} ;
struct oneitem
{
itemdetail originalitem; // 'struct' not needed here
QMap<int, QPair<itemdetail, int> > growth; // 'struct' not needed
};
struct itemdetail {
double a;
double b;
} ;
struct oneitem
{
itemdetail originalitem; // 'struct' not needed here
QString desc;
QMap<int, QPair<itemdetail, int> > growth; // 'struct' not needed
};
To copy to clipboard, switch view to plain text mode
Bookmarks