[Qt-creator] QML codecompletion for QML based component

Benjamin Zeller benjamin.zeller at canonical.com
Fri May 8 12:25:00 CEST 2015


Am 08.05.2015 um 12:20 schrieb Koehne Kai:
>
>> -----Original Message-----
>> From: qt-creator-bounces+kai.koehne=theqtcompany.com at qt-project.org
>> [mailto:qt-creator-bounces+kai.koehne=theqtcompany.com at qt-
>> project.org] On Behalf Of Benjamin Zeller
>> Sent: Friday, May 08, 2015 11:46 AM
>> To: qt-creator at qt-project.org
>> Subject: [Qt-creator] QML codecompletion for QML based component
>>
>> Hi all,
>>
>> I currently try to convince QtC to show code completion for a project.
>>
>> it has this structure:
>>
>> subdirs-project
>>     |
>>    +-------- Component
>>     |
>>    +-------- App
>>
>> The component is defined in QML, how can I get code completion in the app
>> for it?
>> It works for a C++ component but QML code files seem not to get indexed.
>> At least not
>> in a cross subproject way.
> What exactly is your 'Component'? Is it a Qt Quick plugin, a library ... and how are the .qml files embedded?
>
> Regards
>
> Kai
The Component would be a pure QML based component. No library.
The QMake just makes sure they are in the import path when installed.



More information about the Qt-creator mailing list