QML app with C++ plugin (cmake) has wrong import in example code

Bug #1437682 reported by Cris Dywan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtcreator-plugin-ubuntu (Ubuntu)
Fix Released
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

Revision history for this message
Zoltan Balogh (bzoltan) wrote :

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.

Revision history for this message
Cris Dywan (kalikiana) wrote :

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:///home/rumo/bau/tacgnol/app/tacgnol.qml:3 module "Myapp" is not installed

That line is

import Myapp 1.0

Zoltan Balogh (bzoltan)
Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: New → Confirmed
assignee: nobody → Zoltan Balogh (bzoltan)
Zoltan Balogh (bzoltan)
Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtcreator-plugin-ubuntu - 3.1.1+15.04.20150331-0ubuntu1

---------------
qtcreator-plugin-ubuntu (3.1.1+15.04.20150331-0ubuntu1) vivid; urgency=medium

  [ 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
Revision history for this message
Cris Dywan (kalikiana) wrote :

Thank you!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.