PyQt6 ValueError in QWidget.windowFlags

Phil Thompson phil at riverbankcomputing.com
Wed Apr 21 11:26:27 BST 2021


On 21/04/2021 10:38, Ales Erjavec wrote:
> 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

Should be fixed in the next snapshot.

Thanks,
Phil


More information about the PyQt mailing list