3

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?

fur1ous
  • 59
  • 6
  • 1
    Does this answer your question? [How to check MouseButtonPress event in PyQt6?](https://stackoverflow.com/questions/66235661/how-to-check-mousebuttonpress-event-in-pyqt6) – musicamante Nov 20 '21 at 11:43

1 Answers1

8

QtCore.Qt.WindowType.WindowStaysOnTopHint

Passerby
  • 808
  • 1
  • 5
  • 9