Update README on how to embed this in the project

master
Kuba Orlik 3 years ago
parent 23abb5a393
commit f30f18b4bd

@ -1,5 +1,22 @@
Inspired by http://www.xargs.com/qml/process.html Inspired by http://www.xargs.com/qml/process.html
Add to project.pro:
```
HEADERS += \
../../qml-process/process.h
```
Add to main.cpp
```c++
#include <QtQml>
#include "../../qml-process/process.h"
// in main:
qmlRegisterType<Process>("Process", 1, 0, "Process");
```
Use in QML: Use in QML:
``` ```

Loading…
Cancel
Save