qt-interest@trolltech.com
[Top] [All Lists]

stringlist, stringlistmodel and integer segfault

Subject: stringlist, stringlistmodel and integer segfault
From: Iuri Fiedoruk
Date: Fri, 23 Sep 2005 19:29:13 -0300
I'm trying to number some items I'm adding into a listview by using:

string_lista << QString("Linha %1").arg(n_linhas);
n_linhas++;
model->setStringList(string_lista);

But I'm getting a segfault on second line.
I'm probally messing with the types on stringlist, but the strange is that the 
first line works.
Can someone help me please to make it?

Basically I need that every item have a number on right side of it's name on 
the list. This number is given by the n_linhas integer.

-- 
Iuri Fiedoruk, programador PHP e administrador Linux
Santa Maria, RS, Brasil

--
To unsubscribe - send "unsubscribe" in the body to 
qt-interest-request@xxxxxxxxxxxxx
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>