[Qt-interest] need a help in definition of items

Chandru... sekarwagmare at gmail.com
Tue Jul 21 15:13:56 CEST 2009


thanks to all ...  for reply
private:
  QList<GpioItem *> m_items;

for(int i=0; i<24; ++i)
{
        GpioItem*it = new GpioItem();
         m_item.append(it);
          scene->addItem(it);
}
this one looks good aaa ..?

On Tue, Jul 21, 2009 at 6:33 PM, Ender EREL <erelender at yahoo.com> wrote:

> I don't think this is a Qt specific question. I recommend reading a good
> C++ book first.
>
> Array:
> QGraphicsItem* myItemArray[28];
>
> Vector:
> QVector<QGraphicsItem*> myItemVector;
>
> for(int i = 0; i<28; i++)
> {
>        myItemVector.push_back(new QGraphicsItem());
> }
>
> --
> Ender EREL
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



-- 
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090721/6bf6339b/attachment.html 


More information about the Qt-interest-old mailing list