查看完整版本: [-- 使用QML时总要全部编译才能正确显示修改的 --]

QTCN开发网 -> Qt QML开发 -> 使用QML时总要全部编译才能正确显示修改的 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

80eboy 2016-01-03 15:42

使用QML时总要全部编译才能正确显示修改的

修改QML文件,必须全部编译才能正确,不全部编译还是停留在上一次的
是不是哪里可以设置的吗?

彩阳 2016-01-09 19:06
QML一般都是解释执行的,只有Qt Quick Compiler的才是编译执行的。

heroyin888 2016-02-15 11:25
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.


查看完整版本: [-- 使用QML时总要全部编译才能正确显示修改的 --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled