switching to C++/Qt
code fully ported and it compiles