PyQt6 ValueError in QWidget.windowFlags

Ales Erjavec ales.erjavec324 at gmail.com
Wed Apr 21 10:38:33 BST 2021


Hi,

The following code fails with a 'ValueError ... is not a WindowType'
in `windowFlags()` call:
```
from PyQt6.QtCore import Qt
from PyQt6.QtWidgets import QApplication, QWidget

app = QApplication([])

w = QWidget()
w.windowFlags()  # << error
```

Windows 10
Python 3.8.8
PyQt6 6.1.0.dev2104191430

Best wishes
Aleš Erjavec


More information about the PyQt mailing list