Re: PyQt QCompleter model

2009-09-17 Thread nusch
On Sep 17, 2:40 am, David Boddie wrote: > On Thursday 17 September 2009 01:14, nusch wrote: > > > The following code: > > > strings=["asdad", "baasd", "casd", "caxd"] > > completer = QCompleter(strings) > > model = completer.model() > > print model.rowCount() > > model.stringList().append("test")

Re: PyQt QCompleter model

2009-09-16 Thread David Boddie
On Thursday 17 September 2009 01:14, nusch wrote: > The following code: > > strings=["asdad", "baasd", "casd", "caxd"] > completer = QCompleter(strings) > model = completer.model() > print model.rowCount() > model.stringList().append("test") This may not work as you expect. Although it may actua

PyQt QCompleter model

2009-09-16 Thread nusch
The following code: strings=["asdad", "baasd", "casd", "caxd"] completer = QCompleter(strings) model = completer.model() print model.rowCount() model.stringList().append("test") print model.rowCount() prints 4 before and after appending test to stringList. What should I do to let the model know