Issue
I need to translate the following code from PyQt5 (It works there) to PyQt6:
self.setWindowFlags(Qt.FramelessWindowHint)
This is the error:
AttributeError: type object 'Qt' has no attribute 'FramelessWindowHint'
I've already tried this:
self.setWindowFlags(Qt.WindowFlags.FramelessWindowHint)
It says:
AttributeError: type object 'Qt' has no attribute 'WindowFlags'
Solution
That flag now lives here:
QtCore.Qt.WindowType.FramelessWindowHint
Answered By - Passerby
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.