I have lots of rectangle Item that I want to access to them with index so I want to make an array of RecItem, I declare it this way:
const int mySize = 200 QCPItemRect *item[mySize] = new QCPItemRect(ui->myCusomPlot);
but it is n't true. I've tested many ways but nothing has happened, by the way one of the reason that I want to declare an array is that when new many Items in a loop the program would become extremely slow. so I want to ask you how can I do that.