PyQt6: SystemError in QWidget.setWindowFlags with FramelessWindowHint

Phil Thompson phil at riverbankcomputing.com
Sun Apr 25 10:56:29 BST 2021


On 22/04/2021 14:49, Ales Erjavec wrote:
> Hi,
> 
> The following example raises a SystemError in setWindowFlags call:
> ```
> from PyQt6.QtCore import Qt
> from PyQt6.QtWidgets import QApplication, QWidget
> 
> app = QApplication([])
> 
> w = QWidget()
> f = w.windowFlags()
> f = f | Qt.WindowType.FramelessWindowHint
> w.setWindowFlags(f)  # << error
> ```
> 
> Windows 10
> Python: 3.8.8
> PyQt6: 6.1.0.dev2104211125

This should be fixed in the current snapshot. It also requires a fix to 
the PyQt6.sip module. As the pre-release versions of this don't include 
a '.dev' suffix you will need to either uninstall it first or specify a 
forced reinstall.

Thanks,
Phil


More information about the PyQt mailing list