Hardware Reference
In-Depth Information
Example 3 - creating animated graphical
patterns
The previous two examples focused on experimentation, hardware understanding,
and communication above others. That having been acquired, with the third example
we will keep the same client/server basis, while we will leave the laboratory concept
to set up a more realistic project. By doing this, we will be coding an application that
will have a better ergonomy with a finest aspect.
Following the project's requirements
To achieve this goal, we are going to change the client programing language to use
C++ with the Qt framework. Even though the example is quite simple, you'll need
some C++ and object-oriented programming (OOP) knowledge. Qt is a framework that
will allow you to keep the code universality, as in the previous example with Kivy,
with a wider range of targets. As there are many similarities, you can then legitimately
ask yourself why you need to change all the code? In this case, Qt benefits from many
years of research and community efforts. Moreover and mostly, Qt provides more
than GUI programming capabilities. Indeed, this vast and polyvalent framework
gives access to various mechanisms for networks, threads, state machines, process
communication, and so much more.
For installation purposes, you need to retrieve the proper installer from the
download URL at http://qt-project.org/downloads .
Along with this installer, an editor is also provided, so you can start coding/
compiling right away.
After installation, to check your environment you can open QtCreator
and start an empty Qt Widgets Application project. Compile it with
the green triangle button on the left-hand side. As soon as you see
a new empty application window popping up, this means that the
compiler, the Qt Framework, and your settings are valid.
From now on, we will rely on QtCreator as the development environment. For the
sake of everybody's spirit, everything is available from this environment. No external
tools will be needed.
 
Search WWH ::




Custom Search