[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Qt-4.5 under LGPL and Lua bindings
- From: "Peter Kuemmel" <syntheticpp@...>
- Date: Fri, 16 Jan 2009 11:08:08 +0100
> does lqt come with a documentation? I briefly looked through the git repo
> and could not find any besides standard Lua manual.
> Specifically, does lqt allow subclassing of Qt classes in Lua?
> If yes, then what the performance hit due to Lua dispatch?
sorry, but there is not much documentation. But you could have a look
at the code in folder test.
t4.lua shows how you inherit from QWidget. It will work like this:
local new_MyWidget = function(...)
local this = QWidget.new(...)
widget = new_MyWidget()
We have not measured the performance of the dispatch, but with help of
QTime it shouldn't be that hard:
timer = QTime.new()
print(timer:elapsed()) -- in milliseconds
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a