• 2930阅读
  • 2回复

使用QML时总要全部编译才能正确显示修改的 [复制链接]

上一主题 下一主题
离线80eboy
 

只看楼主 倒序阅读 楼主  发表于: 2016-01-03
修改QML文件,必须全部编译才能正确,不全部编译还是停留在上一次的
是不是哪里可以设置的吗?
离线彩阳

只看该作者 1楼 发表于: 2016-01-09
QML一般都是解释执行的,只有Qt Quick Compiler的才是编译执行的。
上海Qt开发联盟,热忱地欢迎你的加入!
离线heroyin888

只看该作者 2楼 发表于: 2016-02-15
void QQmlEngine::clearComponentCache()
Clears the engine's internal component cache.

This function causes the property metadata of all components previously loaded by the engine to be destroyed. All previously loaded components and the property bindings for all extant objects created from those components will cease to function.

This function returns the engine to a state where it does not contain any loaded component data. This may be useful in order to reload a smaller subset of the previous component set, or to load a new version of a previously loaded component.

Once the component cache has been cleared, components must be loaded before any new objects can be created.
快速回复
限100 字节
 
上一个 下一个