Positioning buttons in QMenubar ()

0

My question is:

How can I position a button in the position I want in a QMenuBar in pyqt.

For example, the Edit button in the middle of everything and the Help button aligned from the right.

already try this.

  menu = self.menuBar()
  file = menu.addMenu('File')
  file.setgeometry(30,30,30,30)

Someone who can help me.

as an extra question: I would like to know if you can change the background color of these buttons. with a StyleSheet.

    
asked by Angel Judath Alvarez 02.03.2018 в 17:35
source

0 answers