On 6/18/20 11:35 AM, Filippo Rusconi via Interest wrote:
Greetings, Fellow Developers,
[snip]
Script-wise, how about using Python to make my program scriptable? Is
PySide
something that would match the requirement? Has anybody tried both Qt
Script and
Python ? If so, what lessons were learnt ?
Hey Filippo,
we have an example called 'scriptableapplication',
which it seems is the requirement you have.
The scenario is a Qt/C++ desktop application,
from which we embed a Python interpreter,
so you can modify the application with Python scripts.
Source:
https://code.qt.io/cgit/pyside/pyside-setup.git/tree/examples/scriptableapplication
If you want to check an animation of how that looks like:
https://www.qt.io/blog/2019/08/19/technical-vision-qt-python
(check the GIF under "Embedding Python")
If you want to watch a couple of minutes
from the last webinar on that topic, check this video
https://www.youtube.com/watch?v=Vb1dbLQafyM&t=27m06s
(notice the time)
That's an extension of the same example,
but implementing a plugin system on top.
I hope that helps you,
Cheers
--
Dr. Cristian Maureira-Fredes
R&D Manager
The Qt Company GmbH
Erich-Thilo-Str. 10
D-12489 Berlin
Geschäftsführer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin,
Registergericht: Amtsgericht
Charlottenburg, HRB 144331 B
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest