Update screen size immediately in Qt.