Answers for "how to add a separator in a menubar pyqt5"

0

how to add a separator in a menubar pyqt5

# Works both for PyQt5.QtWidgets QMenu and QMenuBar
menu = QMenu()
first_action = menu.addAction("First")
menu.addSeparator()
second_action = menu.addAction("Second")
Posted by: Guest on January-13-2021

Code answers related to "how to add a separator in a menubar pyqt5"

Python Answers by Framework

Browse Popular Code Answers by Language