How to resize the QMenuBar in PyQt4 for a 4K display

后端 未结 1 859
孤独总比滥情好
孤独总比滥情好 2021-01-23 17:30

I need to write an application in Python with a User Interface. I decided to go for PyQt4 to make the GUI. It is included in the Anaconda distribution of Python.

To make

相关标签:
1条回答
  • 2021-01-23 18:22

    You can change the font and font-size of individual widgets.

    font = self.menuBar().font()
    font.setPointSize(20)
    self.menuBar().setFont(font)
    

    But typically something like this would be handled by your OS/window manager. I'm assuming all your other applications have text that looks just as small? For high-res displays, most popular OS's have scaling features to emulate the size of a lower resolution monitor.

    0 讨论(0)
提交回复
热议问题