In Qt, QMainWindow::createPopupMenu is a factory method declared in a framework that can be overridden in application code.
在Qt，QMainWindow::createPopupMenu是在框架中定义的工厂方法，可以在应用代码中重写。