Sample application using C++ and the Qt class library
This sample shows a basic Carmenta Engine application using C++ and the Qt class library.
To open the sample project in Visual Studio, install Qt Visual Studio Tools extension and use the "Open Qt project file (.pro)" item in the Qt menu.
The sample can also be built and run on Linux, using the Qt qmake command to generate a makefile from the project file, followed by make.
For instructions on how to build and deploy a Qt application on Linux/ARM, see Deploying Carmenta Engine 5 applications on Linux/ARM.
When using the QtMapControl on Linux, the Qt libraries must use the xcb platform plugin. If running on Wayland, you can make Qt use the correct plugin by setting the environment variable QT_QPA_PLATFORM to xcb before starting the application.
Prerequisites
The sample requires Qt libraries 5.15 or later for Windows (VS 2019).
To open the sample in Visual Studio you need to install the Visual Studio extension Qt Visual Studio Tools and register the installed Qt library version with it (using menu bar -> Extensions -> Qt VS Tools -> Qt Versions).