1
這應該返回一個布爾值嗎?如何測試WindowStaysOnTopHint標誌是否設置在windowFlags中?
>>> win.windowFlags() & QtCore.Qt.WindowStaysOnTopHint
<PyQt4.QtCore.WindowFlags object at 0x7ad0578>
我已經知道
# enable always on top
win.windowFlags() | QtCore.Qt.WindowStaysOnTopHint
# disable it
win.windowFlags() & ~QtCore.Qt.WindowStaysOnTopHint
# toggle it
win.windowFlags()^QtCore.Qt.WindowStaysOnTopHint