libqtlua-list
[Top][All Lists]
Advanced

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

Re: [Libqtlua-list] Extract QObject from Lua


From: Alexandre Becoulet
Subject: Re: [Libqtlua-list] Extract QObject from Lua
Date: Sat, 15 Oct 2011 12:05:27 +0200
User-agent: KMail/4.7.1 (Linux/3.0-ARCH; KDE/4.7.1; x86_64; ; )

On Saturday, October 15, 2011 12:00:11 AM David Palacio wrote:

 

Hi David,

 

> I modified QtLua::Value to offer to_qobject and to_qobject_cast methods.

> See attached patches.

 

Thanks for the patches. I'll test and apply it.

 

Unless there is a special reason to obtain the real pointer, you may not use the Ref::ptr function:

 

return &ow.ptr()->get_object();

return &ow->get_object();

 

Best

 

--

Alexandre

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]