News for hackers. Stuff that matters.
Re:Using Qt for Mobile in 2023 by zerr on Tuesday December 26, 2023 @03:35AM (#38769922)
For something more data demanding, e.g. a video player, do you have to copy every frame from C++ world to QML/JavaScript in order to display it?
Re:Using Qt for Mobile in 2023 by LtWorf on Tuesday December 26, 2023 @04:13AM (#38770130)
No, you'd use something like libmpv and tell it to which rectangle render the video.
Re:Using Qt for Mobile in 2023 by _camm on Tuesday December 26, 2023 @03:53AM (#38770033)
It's possible to implement custom QQuickItems that you render in C++, and are displayed within your QML somewhere.

https://doc.qt.io/qt-6/qquickitem.html

Re:Using Qt for Mobile in 2023 by rubymamis on Tuesday December 26, 2023 @03:38AM (#38769945)
I never dealt with video, so I don't know, but I assume there are Qt Quick components for this?[1]

[1] https://doc.qt.io/qt-6/qtmultimedia-video-mediaplayer-exampl...

Re:Using Qt for Mobile in 2023 by saidinesh5 on Tuesday December 26, 2023 @06:50AM (#38770974)
This really depends on the target platform , Qt version you are using. To put things into perspective, With Gstreamer/QML, we've had smooth 1080p30 fps on measly imx6ul hardware, thanks to zero copy pipelines.