Qt Widgets / Qt Quick
-
Hi, I am actually creating an app using Qt5.15(Qt quick), Visual studio 2019,C++ and the "im-show" example from the Intel RealSense SDK.
I found an example of what am looking for but in Qt widgets :/ i followed the example and my actual issue is that i didn't found an "equivalent" of this line :
"ui.camera->setPixmap(QPixmap::fromImage(qt_image));" in qml. This is the line they used to display their camera's streaming on their app.Can someone help me or exaplain to how can i figure this out ?
Thanks in advance.
The link of the example : https://github.com/ZiSo89/QtIntelRealSense/blob/master/QtWidgetsApplication1/QtWidgetsApplication1.cpp
-
Hi,
Take a look at the VideoOutput source property.
It explains the object you should build. You main task will be to create a custom QMediaObject that will handle your camera frames.
-
Hi,
Thank you for your help :)I was able to get the application work, i.e. the interface is displayed with all the Qt components without any problems, but when I click on the "start button" to start streaming the intel scanner, I get an error saying "Frame set not supported yet"...
Can you help me to solve it please?
ps : I had the same probleme with the Camera example from Qt and am actually working with the Intel RealSense D455, a scanner with an RGB camera and a depth camera.
-
Do you mean in your QtQuick application ?
-
Yeah exactly ! i created a special « Rectangle » where i am displaying the stream of my RealSense on my app interface after clicking on the start button that I have created also. To link my User interface with my C++ codes, i created a C++ file named « Backend.h & Backend.cpp » where I create my functions so I can use them on my QML code directly but when i launch the app and click on the start button i get an error saying "Frame set not supported yet"..
-
What did you do ?
-
Hi :) !
well....to display the stream of the camera on my own app i :
-
Created a Qimage class & QpaintDevice class
-
Another class where i created the c++ functions that i needed for the realsense + a signal that emit an Image
-
list itemAbout the frame not supported problem : i created a condition : If (true) {return QImage((...........,QImage::format_....)
-
On Qml i just created a button to start the the streaming : onClicked : backend.start()
-