rive-cpp-legacy icon indicating copy to clipboard operation
rive-cpp-legacy copied to clipboard

Is Qt support planned?

Open sinosoidal opened this issue 2 years ago • 4 comments

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?

sinosoidal avatar Jan 30 '23 15:01 sinosoidal

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 avatar Feb 02 '23 19:02 madoodia

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

madoodia avatar Feb 02 '23 21:02 madoodia

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

luigi-rosso avatar Feb 06 '23 03:02 luigi-rosso

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.

jebos avatar Apr 19 '23 20:04 jebos