Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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")
 
PREVIOUS NEXT
Tagged: #add #separator #menubar
ADD COMMENT
Topic
Name
9+8 =