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

Triggering usecases::CheckAvailabeGroceries::run

We have seen briefly in Chapter 1, Writing Acceptance Tests and Building a Visual Prototype, that Component.onCompleted is a built-in signal handler, which is called as soon as the instantiation of a QML object is completed. Thus, it looks like a good entry point in order to trigger  checkAvailableGroceries.run().

In the gui subproject, we then open Page1.qml which was automatically created by Qt Creator's project template with the following content:

// Page1.qmlimport Qt Quick 2.7Page1Form {}

The root component of this document is a QML object of type Page1Form. And Page1Form.ui.qml  is nothing but the QML UI document that we prototyped in Qt Quick Designer. Page1.qml  represents the application ...

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