QML app with C++ plugin (cmake) has wrong import in example code
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | qtcreator-plugin-ubuntu (Ubuntu) |
High
|
Zoltan Balogh | ||
Bug Description
Creating a new 'QML app with C++ plugin (cmake)' that is called FOOBAR results in something that doesn't build because the FOOBAR.qml contains a line "import Myapp 1.0" instead of "import FOOBAR 1.0".
Related branches
- PS Jenkins bot: Approve (continuous-integration) on 2015-03-31
- Ubuntu SDK team: Pending requested 2015-03-31
-
Diff: 11 lines (+1/-1)1 file modifiedshare/qtcreator/templates/wizards/ubuntu/backend-app-cmake/app/displayName.qml (+1/-1)
| Zoltan Balogh (bzoltan) wrote : | #1 |
| Christian Dywan (kalikiana) wrote : | #2 |
Let's be more exact here to avoid potential confusion in my description:
I created an app "tacgnol", same name for the project, hit Ctrl+R and get this:
file://
That line is
import Myapp 1.0
| Changed in qtcreator-plugin-ubuntu (Ubuntu): | |
| status: | New → Confirmed |
| assignee: | nobody → Zoltan Balogh (bzoltan) |
| Changed in qtcreator-plugin-ubuntu (Ubuntu): | |
| status: | Confirmed → In Progress |
| Launchpad Janitor (janitor) wrote : | #3 |
This bug was fixed in the package qtcreator-
---------------
qtcreator-
[ Zoltán Balogh ]
* Use the hook name in the import. Fixes LP: #1437682 (LP: #1437682)
-- CI Train Bot <email address hidden> Tue, 31 Mar 2015 16:49:26 +0000
| Changed in qtcreator-plugin-ubuntu (Ubuntu): | |
| status: | In Progress → Fix Released |
| Christian Dywan (kalikiana) wrote : | #4 |
Thank you!


The backend is called Myapp, that is why it imports that one. The project is called FOOBAR, but the app is called myapp as you left it on default in the project creation wizard.
For me the template project builds fine.