[Kde-bindings] Recommended approach for coding a qtruby form with fields RESTfully

Declan McGrath declan at divilment.com
Mon Dec 21 06:57:12 UTC 2009


Hi,

I'm looking to create a QtRuby based form in the same way as this tutorial http://www.kdedevelopers.org/node/2677 creates a QtRuby based table which allows you to edit in situ.

In the tutorial listed above, the editable table really consists of a ARTableModel QtRuby class which inherited from Qt::AbstractTableModel - I am wondering what would be recommended as my starting point for building a RESTful Qt based form.

What I currently have is a dialog containing a QFormLayout and some basic fields, which I have attached to this email - I autogenerate this using the qtonrails plugin I'm working on. And now I'm trying to work out how I should organise the Ruby code that is responsible for
a) Populating fields on the form from a Rails model object
b) Saving fields the user has entered on the form into a Rails model object
c) Any other logic that can be autogenerated for this form so that it does not have to be implemented by the developer

I'm asking this now so I don't set off down the wrong road only to end up in a getto that I could have avoided.

Kind regards,
Declan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: product_qform.ui
Type: application/x-designer
Size: 2921 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20091221/f63b4603/attachment.ui>


More information about the Kde-bindings mailing list