matulik
27th April 2010, 09:45
Hello.
I want to create multi-dimensional array of objects, but I have problem with it.
For example:
QTableWidgetItem *item = new QTableWidgetItem[10][10];
call me:
(...)mainwindow.cpp:54: error: cannot convert ‘QTableWidgetItem (*)[10]’ to ‘QTableWidgetItem*’ in initialization
What else do it to resolve error?
I want to create multi-dimensional array of objects, but I have problem with it.
For example:
QTableWidgetItem *item = new QTableWidgetItem[10][10];
call me:
(...)mainwindow.cpp:54: error: cannot convert ‘QTableWidgetItem (*)[10]’ to ‘QTableWidgetItem*’ in initialization
What else do it to resolve error?