Answers for "How to give a QMenuBar button an action?"

0

How to give a QMenuBar button an action?

self.action = QAction(self)
self.action.setText("Action")
self.menubar.addAction(self.action)
self.action.triggered.connect(self.function)
Posted by: Guest on March-20-2020

Code answers related to "How to give a QMenuBar button an action?"

Browse Popular Code Answers by Language