Qt is one of the most popular cross-platform application frameworks. It's easy to integrate CartoType into a Qt application. Write your code using the CartoType C++ API and link your app to the CartoType libraries.

The CartoType Maps App is built with Qt 6 using Qt Creator, Qt's standard IDE, and runs on Windows, Linux and macOS. Source code is available from the CartoType public repository. The fully commented code shows how to draw the map using graphics acceleration, respond to user actions, load maps, fonts and style sheets, and calculate and display routes.

Windows

Download the CartoType Windows SDK and unzip it, then link your Qt app to

CartoType\bin\18.0\x64\ReleaseDLL\cartotype.lib
CartoType\bin\18.0\x64\ReleaseDLL\CartoTypeQtMapRenderer.lib

If you are using the open-source version of Qt under the LGPL, as does the Maps App, these files, which are supplied with Qt, must be in the same directory as your executable Qt app:

Qt6Core.dll
Qt6Gui.dll
Qt6OpenGL.dll
Qt6OpenGLWidgets.dll
Qt6PrintSupport.dll
Qt6Widgets.dll

and this file should be in a subdirectory called platforms:

qwindows.dll

Linux

Download the CartoType Linux SDK and unzip it, then link your Qt app to 

bin/libcartotype.a
bin/libCartoTypeQtMapRenderer.a

If you are using the open-source version of Qt under the LGPL, as does the Maps App, you will need these files to be in the same directory as your executable:

libicudata.so.73
libicui18n.so.73
libicuuc.so.73
libQt6Core.so.6
libQt6Gui.so.6
libQt6Widgets.so.6
libQt6DBus.so.6
libQt6XcbQpa.so.6
libQt6PrintSupport.so.6
libQt6OpenGL.so.6

and this file should be in a subdirectory called plugins/platforms:

libqxcb.so

and these files should be in plugins/xcbglintegrations

libqxcb-egl-integration.so
libqxcb-glx-integration.so

Macintosh

Please contact us for details. The macOS SDK is not built as part of our standard release program but can easily be built on request.