Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 9

Qt-interest Archive, March 2002
AW: QArray and QString


Message 1 in thread

Hello,

It's the ValueVector<QString>, you should use.

Hope this helps Christian

> -----Ursprüngliche Nachricht-----
> Von:	Liming Tsai [SMTP:ltsai79@yahoo.com]
> Gesendet am:	Montag, 25. März 2002 04:35
> An:	qt-interest@trolltech.com
> Betreff:	QArray and QString
> 
> Hello,
> 
> I'm getting seg faults when I try to assign a string
> to a QString within a QArray. Is this a bug or a
> problem with my code?
> 
> QArray<QString> str(10);
> str[0] = "a"; // Seg fault
> str[1] = "b";
> str[0] = str[1];
> 
> Thanks
> Liming
> Qt Non-Commercial 2.3.0
> VSC++ SP5
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards®
> http://movies.yahoo.com/
> 
> --
> List archive and information: http://qt-interest.trolltech.com