Skip to content

Files

Latest commit

dd5590c · Feb 20, 2019

History

History
17 lines (12 loc) · 363 Bytes

File metadata and controls

17 lines (12 loc) · 363 Bytes

Eval a python script that launches a PyQt5 dialog

The C++ code runs an external Python script that shows a PyQt5 alert.

Warning: we need to create a QApplication before being able to use a QWidget

$ mkdir build
$ cd build
$ cmake ..
$ make
$ ./scripting

Todo:

  • in the Python script use a function ask_question() instead of the class.