how about using
Qt Code:
  1. QVector<T> & QVector::fill ( const T & value, int size = -1 )
To copy to clipboard, switch view to plain text mode 
??

u can use m_iElem.fill(0);

hope it helps