Qt Data Visualization preview

In the Qt Roadmap for 2016 they say “In addition, Qt 5.7 includes a lot of modules that have been previously available only with the commercially licensed Qt: … Qt Data Visualization – Versatile set of chart types for 3D visualization of data“.

This is interesting news: the Qt Data Visualization module provides a way to visualize data in 3D. What if we want to try it out now ? For example on Debian 8 which ships Qt 5.3.2 ?

Easy:

1. get and build QDV:

cd /tmp
git clone git://code.qt.io/qt/qtdatavis3d.git
cd qtdatavis3d
qmake
make

(the build of the library succeeds, while some example fails; we’ll skip on that).

2. build the Surface Example:

cd examples/datavisualization/surface
qmake
make

3. To run it, we need to make it find the right dynamic libraries:

find ../../.. | grep libQt5DataVisualization.so.5

this is easy with (on 32-bit systems, use /lib/ld-linux.so.2 rather than /lib64/ld-linux-x86-64.so.2):

/lib64/ld-linux-x86-64.so.2 --library-path ../../../lib/. ./surface

Mandatory screen-shot:
cc1

Note: to rotate, press the RMB (right mouse button) and drag.

About paolog

homo technologicus cynicus
This entry was posted in C++, Howtos and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *