For this purpose, we will use a small program inspired by one of the technical videos from Qt's site about integrating Python and QML. It uses QML for UI definition, but defines a C++ model; thus, it is a mixed application. After starting, it will fetch data from the web to answer a question we posed, as can be seen in the following figure:
The source code of the program is contained in this book resources (https://github.com/PacktPublishing/Hands-On-High-performance-with-QT/tree/master/Chapter%202). We will use this application in the following examples. First, we will have a look at the performance profile ...