Modified QT to run under C++ instead of python, much of the patient functionality is broken