PyQt5 QMenuBar: Create and use a Menu Bar with PyQt5 and Qt Designer [QMenuBar, QMenu, QAction]

preview_player
Показать описание
Learn how to use a Menu Bar or QMenuBar with Python PyQt5. Add a menu and actions to your PyQt5 application. Manipulate and connect functions to the actions. Create shortcuts for QActions and QMenuBar.

In this video, you will:
- Work with PyQt5 and QtDesigner
- Use QMenuBar or PyQt5 Menu Bar
- Create Menus in PyQt5
- Add functions to the Menu Bar
- Connect QAction with function
- Add keyboard shortcuts to PyQt5 Menu Bar

For more info:

For suggestions or comments:

Timestamps:
00:00 Introduction and Overview
01:47 Creating the menu bar
05:37 Loading the UI into our code
07:55 Connecting actions to functions
11:55 Creating keyboard shortcuts
14:58 Adding a status tip

*************
**Tags**
PyQt5
PyQt5 tutorial
PyQt5 module
PyQt5 Designer
QtDesigner
Qt GUI tutorial
QMenuBar
PyQt5 Menu Bar
QMenu PyQt5
QAction PyQt5
Рекомендации по теме
Комментарии
Автор

Hello from Ukraine! Your video helped me a lot with my diploma, because for a long time I could not figure out how to connect a menu item that was created in QtDesigner with a function (the moment with writing a function WITHOUT parentheses inside the .triggered.connect() segment was very unexpected for me)

karlhustav
Автор

Subscribed! Your video is HUMAN, I move the way you bring the knowledge...thank you

melissarainchild
Автор

I absolutely love your teaching style. You do an incredible job. Thank you for posting and please keep the content coming. I don't know what the rules are, but if I could donate to this, I would.

kuahara
Автор

Thank you for awesome and complete guides!

mustafardk
Автор

I love your voice ❤❤
thank you for this tutorial

lholeydesign
Автор

Hello. Nice job!!! Just a question: I want to add the current font size in the status bar ... How can I do this?

TheWolf
Автор

Super great, just wondering am i able to link each QAction with different set of components in same main menu, like each QAction will show some component in same window maybe be like one container.

yahiazkria
Автор

Lol I went this into video thinking I needed to do a .findChild() before coding a triggered signal.

Jdeadevil