O'Reilly logo

Qt 5 Projects by Marco Piccolino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Completing the app's core functionality

In the last chapter, we implemented the main scenario for a single feature: check available groceries. In order to have an app with minimal functionality, at least two other features, and the respective usecases need to be added: add grocery item and remove grocery item.

From an architecture perspective, adding these usecases is pretty straightforward; there are no new business objects (entities) involved; we just need to manipulate the GroceryItems entity by extending its API with the relevant methods, and implement them.

To add each new use case, we add a New Subproject... to the  usecases  project, with Qt Creator's Qt Unit Test template:

     

Once the stub source file for the use case test has ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required