lua-users home
lua-l archive

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


On 12.04.2011 17:21, Michal Kottman wrote:
> On Tue, 2011-04-12 at 16:38 +0200, Bertrand Mansion wrote:
> 
>> I'd love to see a tutorial on how to take a webpage screenshot using
>> lqt. It seems that QPainter + QWebview could be useful for that but I
>> didn't try yet, Qt doc is big...

Hey, that example is great, and shoud be distributed with lqt itself,
and maybe also put online with lqt documentation.

BTW, which lqt/qt versions are needed for this script to run? I have qt
4.7.2 and currtent lqt from github, and get following error (on linux):

> web:connect('2loadFinished(bool)', function()

lua: web2shot.lua:11: bad argument #2 to 'connect' (receiver not QObject*)
stack traceback:
	[C]: in function 'connect'
	web2shot.lua:11: in main chunk
	[C]: ?

What does that error mean?

Regards,
	miko