PyQt5 Designer + Python Stacked Widget Walkthrough

preview_player
Показать описание
In this tutorial, I present a really quick Stacked Widget design using PyQt5.

I step through how to build the stacked widget app in Qt5 Designer, why using a stacked widget is a great choice for development, how to import your UI file into PyCharm (including how to convert it from XML to Python) and then how to code the Python side of things to get the application functioning.

This is a complete walk through of the process from opening Qt5 Designer all the way through to running the app in PyCharm.

Music: Smile by BenSound.
Рекомендации по теме
Комментарии
Автор

Ohhh myy God. I can't thank you enough bro... I looked entire youtube for this video.
You saved my calculator multi window project

peekaboo
Автор

i just spent 50 bucks on a book and udemy courses for this exact use case. subscribed

josemadarieta
Автор

Loved this vid! You are a great programmer, thought-through and well-explained videos. Thank you for this. Subscribed with all notificaions.

filmingle
Автор

@JekyllHydeTutorials .. why did you start with a "Main Window" and remove the menubar and statusbar instead of starting with a "Widget"?

hisheighnessthesupremebeing
Автор

This really helped. Thank you! You just earned a follower 🎉

ministawilly
Автор

hello sir, i have 1 trouble when working with QStackedWidget, i can't align it to center, for details I have a Frame, I put Labels and Widgets in it and they're all center align, but when i add QStackedWidget, itself and all my labels has been aligned to top-left, please help me
thank you very much

jsctohfish
Автор

So I have a few push buttons on one page of the stacked widget and When it is clicked I want another page to get displayed. I have tried every possible method, it doesn't seem to be working.

rithika
Автор

thank's for the video. It was very useful. i want to ask you a question, if i want to divide my app to several classes that correspond to each widget (blue, red, yellow) how could i perform that ?

madjiddjennane
Автор

if i want to connect a tool bar icon to move between pages the concept will be the same?

tomh
Автор

Hi, thank you so much for the tutorial for the stacked widget. I have a question, though.
Is that the convention to convert the UI file into a py file, and import it into the coding file? Thanks.
Since I could do like this without convertion:

```
from PyQt5.uic import loadUi

class MainWindow(QMainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.ui = loadUi('stack_widget.ui', self)

```
The rest of the code would be the same.

王冠信-oc
Автор

Mate, I really hope you get more views. Cheers!

enacheandrei
Автор

I like the way Australians explain things.

prashkd
Автор

New subscriber!
Thanks a lot, keep up the good work.

RiadhBoutarfa
Автор

this is great although I am getting weird error with PyQt5.QtWidgets no name in the module

GoodBoyDanny
Автор

Great video so far but I am really itching to comment that hopefully you have learned that arrow keys and tab are your best friends when typing commands... BTW really helpful video...

sarimbinwaseem
Автор

can i put buttons on stacked widget and change page on these buttons? btw very useful and good video and i like your desktop, maximum of minimalism, love that

lynx
Автор

PS C:\Color.Swi
tch.Tutona> pyuic5 MainWindow.ui -o ui_Mainwindow.pycd
Menu\Programs\Python 3.9\python"' is not recognized as an internal or external
command,
operable program or batch file.

gamdgdn
Автор

Today I learned you don't have to install modules for each individual project, you can just use your existing Python install. Omg..

Jdeadevil