MpvQt is a libmpv wrapper for Qt Quick 2/Qml.
- Create a class extending
MpvAbstractItem
(check the mpvitem.h/mpvitem.cpp files in the example) - Register the class
qmlRegisterType<ClassName>("com.example.mpv", 1, 0, "NameUsedInQml");
- In your qml file import mpv
import com.example.mpv 1.0
- Then create an instance
NameUsedInQml {}
(check the Main.qml file in the example)