cannot combine focus policy flags

Kovid Goyal kovid at kovidgoyal.net
Sat Nov 20 01:06:27 GMT 2021


In PyQt6, regression from PyQt5

Qt.FocusPolicy.ClickFocus | Qt.FocusPolicy.WheelFocus

fails, one has to instead do
Qt.FocusPolicy(Qt.FocusPolicy.ClickFocus.value | Qt.FocusPolicy.WheelFocus.value)

-- 
_____________________________________

Dr. Kovid Goyal 
https://www.kovidgoyal.net
https://calibre-ebook.com
_____________________________________


More information about the PyQt mailing list