[Kde-bindings] qtruby getting started and model/view problems

commb07 at googlemail.com commb07 at googlemail.com
Sat Aug 28 23:25:25 UTC 2010


 hi

i have recently discovered qtruby4 and it seems very nice. But i have
some trouble finding information on how to deal with some differences
from c++ and ruby.
if there are no ruby-classes for some c++-classes, how am i supposed to
deal with this? for example the QString or QStringList have no
equivalent, should i use ruby strings and arrays?
or if there is QObject *parent = 0 as default argument, what can i do?

and i have an even bigger problem, i tried to get started by
'translating' this example from the qt4.6-documentation:
http://doc.qt.nokia.com/4.6/model-view-creating-models.html

but i get a segmentation fault, and i just don't know enough to
understand why. i put my ruby-file in the attachment, it would be very
nice if someone could help me find the problem(s).

(i'm using ruby 1.8.7 and qtruby-2.1.0, tried under ubuntu 10.04 and win 7)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: qt_stringlist.rb
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20100829/a8089094/attachment.ksh>


More information about the Kde-bindings mailing list