On Sat, 18 Nov 2006 16:50:08 +0900
"richard.j.dale / gmail.com" <richard.j.dale / gmail.com> wrote:

> 
> Vincent Fourmond wrote:
> > Nigel Wilkinson wrote:
> > > Hi folks
> > >
> > > I'm trying qtruby out and have struck an issue I can't conquer.
> > >
> > > I have a listview widget which is populated with listviewitems
> > > and want to iterate through the whole lot.
> > >
> > > The code snippet is
> > >
> > > it = Qt::ListViewItemIterator.new(@listView)
> > > puts it.operator++()
> >
> >   Well, the operator ++ is meant to be called directly ++ when
> > written in C++. In ruby, however, that won't work as ++ is not an
> > operator. You might want to try (untested):
> >
> > p it.send(:'++')
> No, that won't work. You need to use 'it += 1' instead in QtRuby:

That works for me - thanks very much

Nigel