While trying to migrate pyqt5 code to pyqt6, i have occured a problem with setWindowFlags:
self.setWindowFlags(Qt.WindowStaysOnTopHint) returns an error:
AttributeError: type object ‘Qt’ has no attribute ‘WindowStaysOnTopHint’. So wat is the similar in PyQt6?
>Solution :
QtCore.Qt.WindowType.WindowStaysOnTopHint