Resolution re-written using Qt.