Revert "Reverting the efforts to factor out the QT dependency. Since QT is highly intergrated through the signals and slots it isn't feasible to remove it"

This reverts commit 5afac7f57442d7910a7fda9f0eb6c2200ff4f1ab.