C++/Qt version, for python version see branch python-prototype
Merge pull request #2 from khasanov/qt-cpp

C++/Qt version