[Qt-interest] Scripting support for Qt/C++ application

Harri Pasanen grego at mpaja.com
Thu Nov 3 08:45:40 CET 2011


Python runs on many more platforms than Qt, and it is usually not that hard to 
build.  Over the years I've built python on multiple unixen and windows 
versions.  And many times what python brings in outweights the inconvenience.
For instance numpy, numerical python, or many other extensions and libraries 
that simply don't exist for Qt Script.

So as usual, it depends on what you are aiming to do.

Harri

On Thursday, November 03, 2011 07:56:12 AM Bo Thorsen wrote:
> Problems like those have been the main reason I decided against using
> Python and switched to QtScript. I just don't want to bother with the
> hassle of Python dependencies.
> 
> Bo.
> 
> Den 01-11-2011 16:24, Harri Pasanen skrev:
> > Building the proper python may or may not be tricky depending on what
> > platform you are targeting.
> > 
> > For SVG Pony I built my own Python 2.5 with mingw that came with QtSDK,
> > using Qt 4.6 if I recall.  Later versions of python had some issue when
> > building with mingw, but that was about a year ago.
> > 
> > If you are using Visual Studio with Qt, then the upstream Python might
> > work out of the box.
> > 
> > On Linux everything was very straight forward.
> > 
> > Harri
> > 
> > On Tuesday, November 01, 2011 03:10:49 PM Syam Krishnan wrote:
> >> On 11/01/2011 01:10 PM, Harri Pasanen wrote:
> >>> A very smooth integration of Python as scripting language to Qt is
> >>> achieved by PythonQt, http://pythonqt.sourceforge.net/
> >> 
> >> This looks amazing. I read:
> >> http://doc.trolltech.com/qq/qq23-pythonqt.html and it looks quite easy
> >> (when compared to using Qt's own Javascript) to use.
> >> I'm a newbie to Python and more so with Javascript. But I have a feeling
> >> that Python scripting with PythonQt is going to be easier. I don't have
> >> any idea about performance though.
> >> 
> >> I found this in the 'Building' page: "PythonQt requires at least Qt
> >> 4.6.1 (for earlier Qt versions, you will need to run the
> >> pythonqt_gerenator, Qt 4.3 is the absolute minimum)".
> 
> Bo Thorsen,
> Fionia Software.



More information about the Qt-interest-old mailing list