Qanava is an open source LGPL’ed C++ library designed to display graphs in a Qt graphics view. Qanava provide classes to generate various layouts of directed graphs and visualize their nodes with custom styles on a graphic canvas.
Qanava is primarily developped with Visual C++ 2011 and Qt 5.3 but should compile well with GCC on Linux. Qanava depends on Qt property browser: https://qt.gitorious.org/qt-solutions/qt-solutions
For any questions, please contact: firstname.lastname@example.org
Qanava also include a simple graphics widget container for QGraphicsView with a standalone windowing system (qan::ContainerGraphicsItem could be used without a full Qanava dependency):
If you are a developper, please contact me directly if you have any troubles compiling Qanava on your plateform: email@example.com
For Windows with QT 5.3 and Visual Studio > 2011:
First, you need to get the latest Qanava archive on : http://www.qanava.org/dl (qanava-0.9.1-ceyx.zip), and unzip it in a local directory, for example : c:\qanava-0.9.1 (referred as $(QANAVADIR))
Now, get qtpropertybrowser in he qt-tools (and not in qt-solutions) GIT repository : https://qt.gitorious.org/qt/qttools (in the src/shared/propertybrowser directory, altough it is now largely unmaintened)
Or directly from an official Qt release .zip archive, for example for Qt 5.3.2: http://download.qt-project.org/official_releases/qt/5.3/5.3.2/submodules/qttools-opensource-src-5.3.2.zip
Now, qtpropertybrowser, by modifying the qtpropertybrowser.pri file to support static linking in both release and debug mode. Add the following configuration settings at the head of the .pri file :
LANGUAGE = C++
DEFINES += QT_QTPROPERTYBROWSER_EXPORT
TARGET = libpropertybrowser
CONFIG += debug warn_on qt thread staticlib
TEMPLATE = lib
Release:DESTDIR = release
Release:TARGET = libpropertybrowser
Release:OBJECTS_DIR = release/.obj
Release:MOC_DIR = release/.moc
Release:RCC_DIR = release/.rcc
Release:UI_DIR = release/.ui
Debug:DESTDIR = debug
Debug:TARGET = libpropertybrowserd
Debug:OBJECTS_DIR = debug/.obj
Debug:MOC_DIR = debug/.moc
Debug:RCC_DIR = debug/.rcc
Debug:UI_DIR = debug/.ui
Then, generate a visual studio project file to compile libpropertbrowser with the following command : “qmake -t vclib qtpropertybrowser.pri” and compile in both release and debug from the visual studio IDE. Do not forget to add a QTPROPERTYBROWSER environnement variable pointing to the root of this source directory, since it is used later in Qanava build configuration.
Then, in $(QANAVADIR)\build\qan, just use the following command “qmake -t vclib” to generate Qanava project file.
Examples and tests could be built in the same way, generating their project’s file using the “qmake -t vcapp” command, and inserting the resulting project in a solution with qanava.vcproj.
An LGPL’ed version of Qanava will soon be released…