Warning, /libraries/mpvqt/README.md is written in an unsupported language. File is not indexed.
0001 <!-- 0002 SPDX-FileCopyrightText: 2023 George Florea Bănuș <georgefb899@gmail.com> 0003 0004 SPDX-License-Identifier: CC-BY-SA-4.0 0005 --> 0006 0007 MpvQt is a [libmpv](https://github.com/mpv-player/mpv/) wrapper for Qt Quick 2/Qml. 0008 0009 ## How to use 0010 0011 - Create a class extending `MpvAbstractItem` (check the [mpvitem.h](examples/video-player/mpvitem.h)/[mpvitem.cpp](examples/video-player/mpvitem.cpp) files in the example) 0012 - Register the class `qmlRegisterType<ClassName>("com.example.mpv", 1, 0, "NameUsedInQml");` 0013 - In your qml file import mpv `import com.example.mpv 1.0` 0014 - Then create an instance `NameUsedInQml {}` (check the [Main.qml](examples/video-player/Main.qml) file in the example)