0

I want to implement the complete pipeline as :

opencv (clientapp on Linux platform) ---socket---> QT(server opencv on QT platform) transfer the image using opencv c++ function through socket and display image in QMl.

I have called the opencv c++ function from qml using Q_INVOKABLE but how to send the QImage from c++ function to QML file for display.

Farshid616
  • 1,404
  • 1
  • 14
  • 26
  • 2
    Does this answer your question? [Qt/QML : Send QImage From C++ to QML and Display The QImage On GUI](https://stackoverflow.com/questions/20691414/qt-qml-send-qimage-from-c-to-qml-and-display-the-qimage-on-gui) – Farshid616 Jan 08 '21 at 10:50
  • could you please send me any simple example on these with code – Aliana ford Jan 08 '21 at 11:01
  • That answer explained completely, try to implement it and ask about you exact problem. An example need so many part to attach. – Farshid616 Jan 08 '21 at 11:13

1 Answers1

1

If you need to feed your QML with images, you can use QQuickImageProvider class as it says

The QQuickImageProvider class provides an interface for supporting pixmaps and threaded image requests in QML

Ceopee
  • 316
  • 4
  • 12