Re: Changing data in an QAbstractListModel

2007-09-10 Thread Jonathan Gardner
On Sep 7, 1:24 am, "exhuma.twn" <[EMAIL PROTECTED]> wrote: > Still, nothing is happening when I call this method. Do I still need > to handle the "dataChanged" signal somehow? Or does the ListView take > care of this? You might have better luck asking these kinds of questions in the Qt or PyQt for

Re: Changing data in an QAbstractListModel

2007-09-07 Thread exhuma.twn
On Sep 7, 12:42 am, Jonathan Gardner <[EMAIL PROTECTED]> wrote: > On Sep 6, 9:12 am, "exhuma.twn" <[EMAIL PROTECTED]> wrote: > > > I defined a simple "update" method in the model which I call on > > certain events to fetch the new data in the DB. I tried to "emit" the > > "dataChanged()" signal of

Re: Changing data in an QAbstractListModel

2007-09-06 Thread Jonathan Gardner
On Sep 6, 9:12 am, "exhuma.twn" <[EMAIL PROTECTED]> wrote: > I defined a simple "update" method in the model which I call on > certain events to fetch the new data in the DB. I tried to "emit" the > "dataChanged()" signal of the Model without success. I don't know > where I should get the two requi

Changing data in an QAbstractListModel

2007-09-06 Thread exhuma.twn
Hi, I want to create a very simple read-only ListView. As the same data is used on various places in the UI, I decided to create a new ListView with a new Model instead of using the QListWidget. So far, the data displays correctly after setting it with "setModel" on the ListView. But how do I tell