PDA

View Full Version : assiging null to qvector



phillip_Qt
24th December 2007, 07:00
HI all
Im new to Oops programming. I ve a member like
QVector<qint32*> m_iElem;

Can any body tell me how to assign null value to this. i tried to searc on net but didnot find.

Thank you all.

nithinin2001
24th December 2007, 08:44
hiiiiiiiiiii

phillip_Qt
24th December 2007, 09:35
hiiiiiiiiiii

Hiiiiiiiiii :)

can u help me?

aamer4yu
24th December 2007, 11:57
how about using
QVector<T> & QVector::fill ( const T & value, int size = -1 ) ??

u can use m_iElem.fill(0);

hope it helps :)

wysota
24th December 2007, 13:06
What is wrong with m_iElem[x] = 0; ?