[Qt-interest] need a help in definition of items
tangke
tangk at lemote.com
Wed Jul 22 05:25:47 CEST 2009
you are right.
tangke
best regards
Chandru... wrote:
> 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
>>
>>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list