App templates should have less example code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtcreator-plugin-ubuntu (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The app templates in QtCreator are not really templates for applications. They are rather tutorials and after starting with one of them its quite some effort to clean up the app from all the stuff.
My experience with the "App with simple UI" template:
In my opinion there should only be one the stuff needed to create a runnable/deployable application, at max a label and a button. The provided HelloComponent is not useful at all and needs to be removed by everyone using the template. Also the tests (autopilot and qmltests) are not really useful. They will start failing as soon as the developer starts removing the unwanted HelloComponent and I bet there isn't a single 3rd Party app actually making use of them. The core apps, which do have autopilot tests, barely look anything like the template and are created from scratch after deleting the template's tests.
Also, for a new starter, I believe all those things make it more complicated to get started because he needs to understand what is actually needed and what isn't.
The existing templates would be of good use for tutorials somewhere on the Ubuntu documentation websites but I think the actual templates should be much more simple. Maybe sticking to the upstream templates and just adding the really required stuff like using a MainView and adding the "applicationName" property.
description: | updated |
Changed in ubuntu-ui-toolkit: | |
status: | New → Confirmed |
affects: | ubuntu-ui-toolkit → qtcreator-plugin-ubuntu |
Changed in qtcreator-plugin-ubuntu (Ubuntu): | |
status: | New → Confirmed |
no longer affects: | qtcreator-plugin-ubuntu |
Was reading through the new App DevSchool Workshop slides and the tutorial begins with instructing people on how to remove all this sample code. See page 2 here:
https:/ /docs.google. com/a/canonical .com/document/ d/1jgn1nJeBjgQO 3RzDMZ44wM606u6 u02U6bVgtaSHkUA 0/edit