<div dir="ltr">There is a really nasty bug related to context menu refreshing with versions 5.14.0, 5.14.1, please take a look:<div><br></div><div>- On versions 5.13.0, 5.13.1, 5.13.2 there is NO bug, demo <a href="https://dl.dropboxusercontent.com/s/0q29e06om06an2i/2020-03-31_16-51-23.mp4">here</a></div><div>- On versions 5.14.0, 5.14.1 there IS a bug, demo <a href="https://dl.dropboxusercontent.com/s/qjg38hy4cxy4ukp/2020-03-31_16-55-00.mp4">here</a></div><div><br></div><div>Mcve below:</div><div><br></div><div>from PyQt5.Qt import *<br><br>if __name__ == '__main__':<br>    app = QApplication([])<br><br>    x = QTreeWidget()<br>    x.setContextMenuPolicy(Qt.CustomContextMenu)<br>    i1 = QTreeWidgetItem(x, ["A"])<br>    i2 = QTreeWidgetItem(i1, ["bar", "i", "ii"])<br>    i3 = QTreeWidgetItem(i2, ["baz", "a", "b"])<br><br>    def callback(point):<br>        menu = QMenu()<br>        menu.addAction("Foo")<br>        menu.addSeparator()<br>        menu.addAction("Bar")<br>        menu.exec_(x.mapToGlobal(point))<br><br>    x.customContextMenuRequested.connect(callback)<br>    x.show()<br>    app.exec_()<br></div><div><br></div><div>I've tested this on windows7 / python3.6.2.</div><div><br></div><div>Could you please confirm/advice? I would really like to upgrade my apps to >5.14 :/</div></div>