简体   繁体   English

如何从 c++ 更新 QML Tableview

[英]How to update QML Tableview from c++

I have a model in c++.我在 c++ 中有一个 model。 I want update Tableview when model changed.我想在 model 更改时更新 Tableview。 I have a problem.我有个问题。 Model and Tableview is different threads. Model 和 Tableview 是不同的线程。 I need a signal that reload page with QML Tableview我需要一个使用 QML Tableview 重新加载页面的信号

I create new thread and new object.我创建了新线程和新 object。 When doWork finished i emit signal with result当 doWork 完成时,我会发出带有结果的信号

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM