[Kde-bindings] Qt on Rails - Making the creation of simple Qt apps easier with Ruby
Declan McGrath
declan at divilment.com
Wed Dec 2 16:44:01 UTC 2009
On Monday 30 November 2009 16:02:36 Richard Dale wrote:
> On Sunday 29 November 2009 10:53:48 pm Declan McGrath wrote:
> > Hi folks,
> >
> > I'm a Ruby dev interested in qtruby. I'm looking at a way to create a
> > Rails-style generator for building simple qtruby apps. I'm unsure of how
> > transferable the Rails approach would be to building a Qt app but at a
> > minimum I think it would a bit of instant gratification to a Rails dev if
> > they could quickly see a qt version of their app running quickly.
> >
> > I've started a project to research this at
> > http://github.com/theirishpenguin/qtonrails-examples
> >
> > If you pull down the code and follow the simple instructions in the README
> > you should be able to see the Qt app running through a Rails backend (a
> > SQLite db is bundled with it so you don't need to worry about generating a
> > db or anything). My Qt skills are not all that, so I would appreciate any
> > feedback on the direction I'm taking. I will be learning how to better to
> > craft Qt apps over the next while but any pointers early on would be great
> > (note the TODO list at the bottom of the README to avoid wasting your time
> > on the few things I already am aware of such as blog post that implements
> > a better approach to using Qt::AbstractTableModel).
> I got the code from the git repository, but I couldn't get it to run:
>
> $ ./script/generate qmodel Product ../../../app/models/product.rb
> Couldn't find 'qmodel' generator
Hi Richard,
I suspect you are running ./script/generate qmodel ... from the root of the qtonrails-examples app. Instead try running it from the vendor/plugins/qt directory (there is another script directory there!).
Note that this will fail for out of the box because I already have included some pre-generated qmodels with the app. So delete everything under the qtonrails-examples/vendor/plugins/qt/app/qmodels directory before running the ./script/generate qmodel command again.
Regards,
Declan
>
> It sounds an interesting idea anyway..
>
> -- Richard
> _______________________________________________
> Kde-bindings mailing list
> Kde-bindings at kde.org
> https://mail.kde.org/mailman/listinfo/kde-bindings
>
More information about the Kde-bindings
mailing list