Updated QT Code

Overhauled the qt window system