Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
self.menuBar = self.menuBar() self.action1 = QAction('This is\nAction Button', self) self.menuBar.addAction(self.action1)
这使得 menuBar 多行,但新行不适用。