[Qt-interest] Scripting support for Qt/C++ application
Jason H
scorp1us at yahoo.com
Mon Nov 7 19:17:52 CET 2011
That should just me a change tot he import line from
import myModule
to
from myModule import *
From: Jonathan Greig <redteam316 at gmail.com>
To: Syam Krishnan <syamcr at gmail.com>
Cc: qt-interest at qt.nokia.com
Sent: Thursday, November 3, 2011 10:49 PM
Subject: Re: [Qt-interest] Scripting support for Qt/C++ application
Thanks guys, this is good info.
Harri,
I got PythonQt built on linux and the examples look good, but I don't see any clear example or api that you can call a plain C native function(they are all geared towards C++ objects). Is it possible to do this from the script with PythonQt:
from MyModule import *
returnval = My-C-Function()
That's so much cleaner than littering the script with myModule.My-C-Function().
- Swyped from my droid.
On Nov 3, 2011 8:24 AM, "Syam Krishnan" <syamcr at gmail.com> wrote:
>
>
>On 11/03/2011 01:23 PM, Konstantin Tokarev wrote:
>> I propose you to integrate Lua (with help of QtL...I had only vaguely heard about Lua and had no idea what it was. The
>language seems to be simple enough - although it's still a learning curve.
>Anyways, since I'm not much interested in doing complicated stuff in the
>scripts, the availability of large number of libraries (as for Python)
>is not going to be a factor.
>
>Lua looks interesting. I'll try these options (PythonQt and QtLua) and
>post my findings here.
>
>Thanks,
>
>Syam
>
>
>_______________________________________________
>Qt-interest mailing list
>Qt-interest at qt.nokia.com
>h...
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111107/8ec11bfd/attachment.html
More information about the Qt-interest-old
mailing list