How to display Image receive from TCPsokcet and display in QML

302 views Asked by At

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.

1

There are 1 answers

1
Ceopee On

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