rive-app / rive-cpp

C++ runtime for Rive
MIT License
278 stars 42 forks source link

Is Qt support planned? #356

Open sinosoidal opened 1 year ago

sinosoidal commented 1 year ago

I would love to integrate rive in my applications. It doesn't seem to be a solid and consistent way of doing with Qt. Are there any plans for that happen?

madoodia commented 1 year ago

I wanted to create the same Issue!

Accessing elements of .riv file with C++ API is easy, but I wonder how we should show the content as graphical widgets in our final product?

you should support the final target like Qt or we should implement our own OpenGL widget that connect to some classes in the C++ API? or we should use skia? or what?

please let us know!

madoodia commented 1 year ago

For example, suppose I want to load the UI designed and animated in Rive into my Autodesk Maya tool, what exactly should I do to reach to that? I mean how should load .riv file into my tool and connect to the elements thorough C++ API Tip: maya uses Qt for it GUI

thanks

luigi-rosso commented 1 year ago

We don't currently offer a Qt integration. Someone from the community experienced with Qt should be able to do this by using our various other implementations (React, Flutter, iOS, Web, Android, etc libraries) as a reference.

We have a feature request channel on our Discord: https://t.co/2zmbulK02A

jebos commented 1 year ago

I just published a QtQuick Plugin using a recent rive-cpp. (the most recent rive-cpp does not clip anymore correctly due to some fixes in rive-cpp)

The QML plugin offers support for input and output and tiggers. It will dynamically generate those as bindable properties for QML. It also has support for mouse hit areas. It uses opengl rendering.

For now it's only Qt5 and tested in Windows. While I already added a rough QPainter Path I first looked into OpenGL Rendering, but will explore this to allow SW Rendering.

Here is my code: https://github.com/jebos/RiveQtQuickPlugin

I hope for feedback and happily take contributions.