I have a very simple task that has resulted in going around in circles mainly because of the separation of QML and C++ side of QT. So instead of asking specific QT questions I need general advice on what QT and QML functions I should use to achieve my usecase.
Usecase:
A QQuickControls UI allows a user to select an image. That image is shown in the UI. When the user clicks the button 'Process' the application finds edges.
My question is; how can I overwrite the currently being shown image? Should I use a Q_INVOKABLE function? Or a signal or slot? My below code has created the UI, allows a user to select an image (and displays it), generates the edge image when the 'Process' button is clicked. It just doesn't display that new edge image because I don't know how to achieve this in QT/QQuickControls2.
Any advice how to implement this in QT would be greatly appreciated.