Mobile – missing ubuntu.components QML module

I installed QTCreator and Ubuntu SDK as shown here.
When trying to run the code example provided here, QTCreator told me that it could not find the Ubuntu.Components QML module.

Notes:

The build log says:

file:///home/giladnaaman/Programming /Projects/CurrencyConverter/CurrencyConverter.qml:2 module “Ubuntu.Components” is not installed

But the directory / opt / qt5 / imports / Ubuntu / Components
exists (and is full of File).

Add importPaths: [“/opt / qt5 / imports”] to the qmlproject file:

QML module does not contain information about components contained in plugins.

QMetaType::registerType: Binary compatibility break — Type flags for’QPaintBufferCacheEntry'[1024] don’t match. Previously registered TypeFlags(0x103), now registering TypeFlags(0x3 ).

Do not add the importPaths attribute to qmlproject.

Did you set the QML scene as a QML viewer?

>In Qt Creator, go to Tools>Options…
>Select the “External Tools” tab, and then select the “Preview (qmlviewer)” entry in the pane
>On the right In the “Executable File:” field on the side, replace the content with /opt/qt5/bin/qmlscene.
>(Optional) Change the command name by double-clicking the preview (qmlviewer) entry above. You can name it For Preview(qmlscene).
>Click “OK” to save the changes.

You will be able to view your application through Tools>. External> Qt Quick>Preview (qmlscene)

< p>The Ubuntu SDK is still using the old version of Qt Creator of QT4. It cannot find the Ubuntu component and says that it cannot find the component. But the QML scene used to run the QML GUI will load and run it without any problems.

< /div>

I installed QTCreator and Ubuntu SDK as shown here.
When trying to run the code example provided here, QTCreator told me that it could not find the Ubuntu.Components QML module. < p>

Notes:

The build log says:

file:///home/giladnaaman/Programming/ Projects/CurrencyConverter/CurrencyConverter.qml:2 module “Ubuntu.Components” is not installed

But the directory / opt / qt5 / imports / Ubuntu / Components
exists (and is full of files ).

Add importPaths: [“/opt / qt5 / imports”] to the qmlproject file:

QML module does not contain information about components contained in plugins.

QMetaType::registerType: Binary compatibility break — Type flags for’QPa intBufferCacheEntry'[1024] don’t match. Previously registered TypeFlags(0x103), now registering TypeFlags(0x3).

Don’t set the importPaths attribute Add to qmlproject.

Did you set the QML scene as a QML viewer?

>In Qt Creator, go to Tools>Options…
>Select the “External Tools” tab, and then select the “Preview (qmlviewer)” entry in the pane
>On the right In the “Executable File:” field on the side, replace the content with /opt/qt5/bin/qmlscene.
>(Optional) Change the command name by double-clicking the preview (qmlviewer) entry above. You can name it For Preview(qmlscene).
>Click “OK” to save the changes.

You will be able to view your application through Tools>. External> Qt Quick>Preview (qmlscene)

< p>The Ubuntu SDK is still using the old version of Qt Creator of QT4. It cannot find the Ubuntu component and says that it cannot find the component. But the QML scene used to run the QML GUI will load and run it without any problems.

< /p>

Leave a Comment

Your email address will not be published.