10

I have a C++ application that I'm compiling with Visual Studio 2010 that needs to be able to call a couple python scripts and read their output, but I can't count on Python being installed on the computer. PythonQt seems to be the favored simple option, but every post I've seen is dated 2009 or older. The main tutorial even still says TrollTech on it.

This makes me think that this methodology/class is dated or perhaps deprecated. Is boost::Python the way to go now, or does PythonQt still do the trick, or should I just embed Python the normal C++ way like everyone else?

Community
  • 1
  • 1
Phlucious
  • 3,704
  • 28
  • 61

3 Answers3

14

PythonQt is under active development, PythonQt 3.0 with Qt 5 and Python 3 support has just been released. Have a look at the PythonQt project page at Sourceforge.

Phlucious
  • 3,704
  • 28
  • 61
florian link
  • 156
  • 1
  • 3
3

PythonQt is still alive and it's philosophy is much more different than the other two components PySide and PyQt.

The other thing is that Florian efforts of supporting the community is very valuable and he keeps the component update as necessary.

It also does do it's job perfect and you can call a Python function from C++ or call a C++ function from Python and I don't think there would be any more requirements in many of the applications.

Aaron_ab
  • 3,450
  • 3
  • 28
  • 42
  • 1
    Is it a bit saddenning to have different components named "PythonQt" and "PyQt", because then you have questions like https://stackoverflow.com/questions/13269936/python-qt-progressbar where the title is "PythonQt" while it is really is about "PyQt"... – Gabriel Devillers Feb 28 '19 at 10:49
  • 2
    unfortunately there is not many options for a meaningful name for these kinda components, you have to set a meaningful name that consists of "python" and "qt" abbreviations, so it happens, but they ARE different. – Morteza Sherafati Aug 10 '19 at 12:03
-2

I thought PySide is a future of Qt on Python and PythonQt will be deprecated a loooong time ago.

On PythonQt svn repo was just 11 commits from start of the 2013 year and PySide latest release was just few months ago. So, I'd use PySide and say 'PythonQt is dead' rather than use PythonQt. That's all I can say. Hope it helps.

dt0xff
  • 1,553
  • 1
  • 10
  • 18
  • 13
    PySide is going the wrong way. Correct me if I'm wrong, but I thought that the PythonQt library was for calling Python functions from a C++-based Qt program, while PySide and PyQt were all about using Qt from python. – Phlucious Jun 17 '14 at 19:45