How to change the name of the project root directory and file?

08-13-2016 06:10 AM
Regular Contributor

Anytime I create a new file in AppStudio, the project root directory is always named 'MyApp' in QtCreator.

I've noticed that in the sample apps Esri provides, this is not the case. For instance, in the MapViewer sample, the root directory is named 'MapViewer'.

How do you change the name of the root folder as displayed in QtCreator. I thought it would be as simple as changing a folder name but when I opened the directory in finder, the folder name was a GUID, so I'm thinking it's a property I need to change in a file somewhere.

Tags (1)
0 Kudos
1 Reply
Esri Regular Contributor

Here is the solution

1) Open project in the QT creator from Appstudio

2) Look for appinfo.json

3) Change projectFile value to the desired value. Save it

  "projectFile": "TestApps.qmlproject",

4) Open the project in file explorer and rename the qml file project to the same name as above

5) Refresh the appstudio using the refresh button.

6) Open the project in the Qt creator and you should see the new name for the root folder.

I hope this helps.
0 Kudos