What's about
private:
QList<GpioItem *> m_items;
//...
//c-tor
for (int i=0; i<24; ++i)
{
GpioItem *it = new GpioItem();
// do some stuff with it
m_items.append(it);
scene->addItem(it);
}
// access it via
m_item.at(0)->setPos(...); //...
private:
QList<GpioItem *> m_items;
//...
//c-tor
for (int i=0; i<24; ++i)
{
GpioItem *it = new GpioItem();
// do some stuff with it
m_items.append(it);
scene->addItem(it);
}
// access it via
m_item.at(0)->setPos(...); //...
To copy to clipboard, switch view to plain text mode
Bookmarks