[SailfishDevel] Qt Creator Code AutoCompletion in QML for C++ declarative plugins

christopher.lamb at thurweb.ch christopher.lamb at thurweb.ch
Sun Jan 26 20:26:14 UTC 2014

Hoi Sven


The "problem" (and it is a small one only) is limited to the  
auto-completion. Code builds perfectly well enough.

QtCreator's clean function wipes out the moc files, but seems to have  
no effect on auto-complete.



Zitat von "Sven Putze" <sailfish.os at hardcodes.de>:

> Hi,
> try to build/run qmake from the menu and if that does not help,  
> throw away the Makefile. The property binding depends on the Qt meta  
> system, bound to the Q_OBJECT macro. Often recompiling does not  
> start the needed steps to recreate the moc files and things get  
> strange.
> BR.
> Sven
>> The trouble is, I often refactor the C++ code as I add complexity  
>> e.g. renaming properties and methods as better names occur to me,  
>> or reflect a change in purpose.
>> The trouble is, back on the QML side, QtCreator code-completion  
>> still suggests the original names long after these have been  
>> renamed or eliminated.
>> Is there any way to "flush" / update the code completion so it  
>> reflects the current state of affairs? Cleaning does not help, nor  
>> does "Reset Code Model".
> _______________________________________________
> SailfishOS.org Devel mailing list

More information about the Devel mailing list