--- a/eric6/HexEdit/HexEditSearchReplaceWidget.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/HexEdit/HexEditSearchReplaceWidget.py Tue Mar 02 17:17:09 2021 +0100 @@ -469,7 +469,7 @@ """ Private slot to close the widget. """ - self.__editor.setFocus(Qt.OtherFocusReason) + self.__editor.setFocus(Qt.FocusReason.OtherFocusReason) self.close() def keyPressEvent(self, event): @@ -479,7 +479,7 @@ @param event reference to the key press event @type QKeyEvent """ - if event.key() == Qt.Key_Escape: + if event.key() == Qt.Key.Key_Escape: self.close() def __convertText(self, txt, oldFormat, newFormat):