better, but doesn't work with Qt framework selection; need to do in std c++