rajil.s
25th January 2012, 10:33
Hi,
I want to convert the oneitem struct into one of Qts container classes. Oneitem has three components, so cannot use QPair or QList. I need to have array of oneitems. any ideas?
struct itemdetail {
double a;
double b;
} ;
struct oneitem
{
struct itemdetail originalitem;
QString desc;
QMap<int, QPair<struct itemdetail, int> > growth;
};
Cheers
I want to convert the oneitem struct into one of Qts container classes. Oneitem has three components, so cannot use QPair or QList. I need to have array of oneitems. any ideas?
struct itemdetail {
double a;
double b;
} ;
struct oneitem
{
struct itemdetail originalitem;
QString desc;
QMap<int, QPair<struct itemdetail, int> > growth;
};
Cheers