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

Gabriel Böhme m.gabrielboehme at googlemail.com
Sun Jan 26 18:36:21 UTC 2014


Would also be a good feature, to have the Refactoring function for QML in
QtCreator - if you want to change id/property/... names. Is it possible?!


Cheers, Gabriel.



--



Von meinem Nokia N9 gesendet



Andrey Kozhevnikov schrieb am 26.01.14 17:25:
writing qmltypes file can help you :)

On 26.01.2014 22:23, christopher.lamb at thurweb.ch wrote:

> Hi All
>
> My app exposes chunks of functionality to the QML side from C++
> declarative plugins.
>
> On the QML side QtCreator gives me automatic code completion for elements
> exposed from such plugins, suggesting property and method names.
>
> So far so good.
>
> 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".
>
> mfg
>
> Chris
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
>

_______________________________________________
SailfishOS.org Devel mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140126/f6e0c1f7/attachment.html>


More information about the Devel mailing list