fur1ous
fur1ous

Reputation: 79

What is analog of setWindowFlags in PyQt6?

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?

Upvotes: 5

Views: 4023

Answers (1)

Passerby
Passerby

Reputation: 958

QtCore.Qt.WindowType.WindowStaysOnTopHint

Upvotes: 12

Related Questions