When I pressed the right mouse button, I will let the QMenu.exec(). I could not see the menu immediately. After I moved the mouse, then the menu will show. Why? Could anyone give me an idea? How to find the problem. It's very difficulty to debug at this time. Thank you!