Adapted window library to the new qt_util

Adapted window library to the new qt_util