lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



> Does anyone have experience using swig to bind lua to qt,  I've seen it
> suggested that the results have limitation and that you really need a
> custom system for connecting to qt.

QtLua is designed to add Lua scripting feature to an existing Qt application.
It's a script engine rather than a binding and you will have to write some c++
code to define what is accessible from Lua.

Alexandre

I was on digest mode and missed a bunch of the responses. I managed to get QtLua to compile, I had figured there was a bunch of transformation steps that it would apply to the qt library (which is what swig does) but actually it's a pretty straight forward compile.
  I see what you mean about adding lua scripting features. The library assumes that it controls the lua_state and is your interface into lua. It's probably a great starting point if you haven't built those bits already. I'm still digging into the library but it seems to leverage a lot of qt property system infrastructure, but it's not clear that it can call bits of qt that aren't slots/signals. Is that what you mean by
> you will have to write some c++ code to define what is accessible from Lua.
The library seems a bit crippled without access to things that aren't slots or signals.. (although I'm only on day 2 of looking at it.

is lqt any better is this department?

-Gedalia
--
---------------------------------------------------------------
AIM: gedaliap
http://www.gedalia.net
---------------------------------------------------------------
Fight Entropy!!!  Fight Entropy!!!  Figth Etnropy! !
iFgth Etnrop!y ! giFth tErno!py !  giFt htrEno!p y! --- Well maybe
not...