App templates should have less example code

Bug #1352329 reported by Michael Zanetti
10
This bug affects 2 people
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
Revision history for this message
Michael Zanetti (mzanetti) wrote :

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/1jgn1nJeBjgQO3RzDMZ44wM606u6u02U6bVgtaSHkUA0/edit

summary: - App templates are loaded with cruft
+ App templates should have less example code
description: updated
David Planella (dpm)
Changed in ubuntu-ui-toolkit:
status: New → Confirmed
Zoltan Balogh (bzoltan)
affects: ubuntu-ui-toolkit → qtcreator-plugin-ubuntu
Zoltan Balogh (bzoltan)
Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: New → Confirmed
Zoltan Balogh (bzoltan)
no longer affects: qtcreator-plugin-ubuntu
Revision history for this message
Benjamin Zeller (zeller-benjamin) wrote :

This was fixed some time ago, templates just contain the bare minimum these days

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: Confirmed → Fix Released
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.