Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Widgets / Qt Quick
Forum Updated to NodeBB v4.3 + New Features

Qt Widgets / Qt Quick

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 2 Posters 533 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amayes
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Amayes
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Do you mean in your QtQuick application ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Amayes
            wrote on last edited by
            #5

            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"..

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Amayes
              wrote on last edited by
              #6

              I was able to solve the problem, thank you all :) !

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                What did you do ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Amayes
                  wrote on last edited by
                  #8

                  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()

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved