On Saturday 19 March 2011 13:16:28 Patrick Groß wrote: > Hey guys, > > I have a problem using QListView. I can't use the setModel() function it > always tells me that this is not implemented: > > Exception in thread "main" com.trolltech.qt.QNoImplementationException: > The method has no implementation and only exists for compatibility > > So I cannot do things like this: > > QListView listview = new QListView(); > QStringListModel lm = new QStringListModel(); > > ArrayList<String> data = new ArrayList<String>(); > data.add("foo"); > data.add("bar"); > lm.setStringList(data); > > listview.setModel(lm); > > Why can't I do this? I've seen some examples doing exactly this. I used > the newest beta 2.7.1beta3, 2.7.0 and 2.6.3. None of them work. > > > Thanks for your help. > > Regards > > Patrick > > > _______________________________________________ > Qt-jambi-interest mailing list > Qt-jambi-interest@qt.nokia.com > http://lists.qt.nokia.com/mailman/listinfo/qt-jambi-interest
Hi, Can you tell us where you saw that this precise method is used? -- Terveisin, Samu Voutilainen http://smar.fi _______________________________________________ Qt-jambi-interest mailing list Qt-jambi-interest@qt.nokia.com http://lists.qt.nokia.com/mailman/listinfo/qt-jambi-interest