Quantcast
Viewing latest article 7
Browse Latest Browse All 4972

Image display in QML c++

I’m just thinking out loud but my approach to this would be to set the Image{} source property to point to something like m.currentSource. Then of course your C++ class must have a Q_PROPERTY of currentSource that supports read/write/notify. The mouse click will call something in your C++ to trigger the update and the notify on the currentSource property will cause the QML to update with the new image.

Viewing latest article 7
Browse Latest Browse All 4972

Trending Articles