Demonstrates integrating QML and C++, and handling multiple variants of the same design.
The application demonstrates a Motorcycle Instrument Cluster supporting two different screen configurations: 800x480px and 720x1280px (rotated). It's possible to switch between configurations using the SIZE_VARIANT cmake variable.
cmake .. -DSIZE_VARIANT=small
Setting this variable to
will produce binaries supporting a resolution of 800x480px. Setting it to
will produce binaries supporting a resolution of 720x1280px. The
variant is rotated by 90 degrees, for example to accomodate a display natively orientated in portrait mode.
The demo shows how to connect a C++ simulation backend to the QML user interface.
The application contains: