jano_alex_es
1st July 2009, 11:47
Hi,
I have a QList integrated with other QList<QPointF>, but it's impossible to add elements to the second QList.
For instance, the next code does not compile (2 overloads have no legal conversion for "this" pointer), but it should...
//Please note the blank space between the two ">"
QList<QList<QPointF> > my_list;
QPointF my_point(0, 10);
my_list.at(0).append(my_point);
then... how can I add elements to a lists of lists in qt? is it possible?
I have a QList integrated with other QList<QPointF>, but it's impossible to add elements to the second QList.
For instance, the next code does not compile (2 overloads have no legal conversion for "this" pointer), but it should...
//Please note the blank space between the two ">"
QList<QList<QPointF> > my_list;
QPointF my_point(0, 10);
my_list.at(0).append(my_point);
then... how can I add elements to a lists of lists in qt? is it possible?