N
Nigel Wilkinson
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++()
The "puts" is only there so I can see what's happening.
When I run the app I get the following all on one line (not 2 lines
as here):-
/mainform.ui.rb:33:in `method_missing': undefined method `operator' for
#<Qt::ListViewItemIterator:0xb6c08c24> (NoMethodError)
I'm useing the Trolltech API documentation and can't figure where I'm
messing up.
Thanks in advance
Frustrated of Heathfield (aka Nigel)
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++()
The "puts" is only there so I can see what's happening.
When I run the app I get the following all on one line (not 2 lines
as here):-
/mainform.ui.rb:33:in `method_missing': undefined method `operator' for
#<Qt::ListViewItemIterator:0xb6c08c24> (NoMethodError)
I'm useing the Trolltech API documentation and can't figure where I'm
messing up.
Thanks in advance
Frustrated of Heathfield (aka Nigel)