Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
実行時にopencvを使用して画像を処理しており、imageViewを使用してQMLでこの画像の更新されたバージョンを表示したい.現在、実行時に新しい画像ファイルを作成し、そのパスをQMLのimageViewに再割り当てしています.これ?
質問を正しく理解していれば、c++ コードから発行された変更されたシグナルを接続し、それを qml 側でリロードを強制するレシーバーに接続することでこれを行います。
// MyImage.qml Image { cache: false function reload() { var tmpSource = source; source = ""; source = tmpSource; } }