[Qt-creator] Qt code models

Harri Pasanen harri at mpaja.com
Mon Dec 1 14:08:27 CET 2014


I'm not using the Quick Designer.

This seems to be a slippery bugger, it comes and goes.
After further trials it seems that my main project is somehow toxic.
When I open that, all open projects start to use the QtQuick 1 code model.
At that point it does not help if I close my main project.

Harri



On 01/12/2014 12:39, Stenger Christian wrote:
> Hi again,
>
> Just wanted to ask if you're getting this message when opening the project or file or do you get the message on the Quick Designer's site?
>
> If the latter one: it might help to go to Tools -> Options -> Qt Quick -> Qt Quick Designer and uncheck the 'Always use the QML emulation layer provided by Qt Creator' (might make a restart of QC necessary)
>
> Kind regards,
> Christian
>
> ________________________________________
> From: Harri Pasanen <harri at mpaja.com>
> Sent: Monday, December 1, 2014 10:22 AM
> To: Stenger Christian; qt-creator at qt-project.org
> Subject: Re: [Qt-creator] Qt code models
>
> Hmm... now I can't seem to be able to shake the behavior at all.
>
> I deleted my .pro.user file, made Desktop 5.4 the default kit,
> restarted QC, configured my project to only use the 1 Desktop kit,
> and it still insists on QtQuick 1 code model.
>
> Something to delete in ~/.config/ ?   (I'm on linux)
>
> Harri
>
>
>
> On 01/12/2014 07:33, Stenger Christian wrote:
>> Hi,
>>
>> in general: this is a known issue, but not related to the Qt you're using. This is normally caused by the default kit you're using. Make sure that your default kit is a Qt5 kit. I'm getting this message only if the default kit is set to a Qt4 kit.
>>
>> In case this does not solve the issue immediately, close all editors and re-open the editor you'll want to work with. If this still does not work, re-start QC.
>>
>> The full issue is normally related to the QmlJS Code Model - so, after changing the default kit, a simple rest of the code model should work as well. As far as I know there's someone already working on it, but hasn't finished the work yet. If you need it, I can find the respective issue in Jira, but it's definitely listed there.
>>
>> Hope this helps,
>> Christian
>>
>> ________________________________________
>> From: qt-creator-bounces+christian.stenger=theqtcompany.com at qt-project.org <qt-creator-bounces+christian.stenger=theqtcompany.com at qt-project.org> on behalf of Harri Pasanen <harri at mpaja.com>
>> Sent: Friday, November 28, 2014 2:49 PM
>> To: qt-creator at qt-project.org
>> Subject: [Qt-creator] Qt code models
>>
>> In my current testing project I have a self compiled Qt 5.4 Android kit
>> and Qt 5.4 Desktop from 5.4.0-RC.
>>
>> My self compiled Qt seems to have an issue with the code model it offers
>> Qt Creator.
>> At what point the code model is  built/installed?   So can I fix it
>> without a full build?
>>
>> My configure line for own Qt android build is:
>>
>> ./configure -opensource -confirm-license -xplatform android-g++ -nomake
>> tests -nomake examples -android-ndk /home/harri/android-ndk-r10b
>> -android-sdk /home/harri/android-sdk-linux -android-ndk-host
>> linux-x86_64 -android-toolchain-version 4.8 -android-ndk-platform
>> android-16 -skip qttranslations -skip qtwebkit -skip qtserialport -skip
>> qtwebkit-examples -skip qtquick1 -skip qt3d -skip qtjsondb -skip
>> qtsystems -skip qtfeedback -skip qtpim -skip qtwayland -skip
>> qtdocgallery -skip qtenginio -no-warnings-are-errors -prefix
>> /home/harri/qt5.4_hp
>>
>> There is -skip qtquick1 in the above, yet the message I get when that
>> kit is active is
>> "Using Qt Quick 1 code mode instead of Qt Quick 2. (M324)"
>>
>> Puzzled as usual...
>>
>> Harri
>>
>>
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qt-creator




More information about the Qt-creator mailing list