How To Load PYQT5 Designer UI File - PyQt5 GUI Thursdays #27

preview_player
Показать описание
In this video I'll show you how to load a PYQT5 Designer UI file into your app with Python.

In the past we converted our UI files into python. That only works if you never plan on making any changes to your GUI in the designer later on.

If you make changes and generate a new UI file, your old code will be destroyed when you convert it into a python file!

In this video I'll show you how to get around that problem by instead importing your UI file into a Python file.

#pyqt5 #codemy #JohnElder

Timecodes

0:00​​ - Introduction
1:28 - Create GUI With Designer
3:10 - Create Python File
3:50 - Import PyQT5 Widgets and UIC and sys
5:06 - Create Main UI Class
5:45 - Load UI File and Show App
6:33 - Initialize App
7:34 - Define Widgets with findChild()
10:09 - Create clicker() Function
11:45 - Update UI File Add Button
12:40 - Integrate New Button To Python File
13:45 - Create Clearer Function
14:34 - Conclusion
Рекомендации по теме
Комментарии
Автор

▶️ Watch Entire PyQt5 GUI Thursdays Playlist ✅ Subscribe To My YouTube Channel:
▶️ See More At: ✅ Join My Facebook Group:
▶️ Get The Code:

Codemycom
Автор

THIS is the info I've needed and never found an any other Qt Designer videos I've watched (which all seem to stop after "Hello World"). I kept wondering how you could ever go back and edit a UI (without doing it manually in the code), but not lose all your application code. Thanks!

rancidbeef
Автор

You can completely skip defining all those widgets. Those widgets are defined and NAMED inside of designer.
You call them by their EXACT custom name inside of the python file.
Such as
Text or variable")

edgoodson
Автор

Great Python PyQt5 tutorial! Thanks for these!
Feed the algorithm! its free and it helps our favorite creators.

RyanDanielG
Автор

Maaaan this is really insane, I didn't know that was possible to work without converting to python file.
You are amazing, thank you so much!!! 🙏

danilodelucio
Автор

I always struggled to covert and reconvert every time for the video it was a significant help.

saralagab
Автор

Thanks a lot, I searched a ton of videos literally, Thanks a lot again, Liked & Subscribed 🙂

arjungoud
Автор

Suppose it have to the first tutorial in pyqt and only then other functions, since load ui is a fundamental of pyqt idea.
Great tutorial, thanks a lot

ЕвгенийБалакин-яр
Автор

Thanks for making these great videos. They are very helpful and instructive.

salarghaffarian
Автор

Лысый, ваще красавчик респект таким как ты!

molodeik-ie
Автор

That's precisely what I'm looking for.
Thank you very much 😄

kaoburawich
Автор

Yohoooo a new video...!!! Pleaseee speed uploading the videos up, , I really need this course, pleasee !!

sia
Автор

dude you saved my project, you're the best

mirai_jpg
Автор

Thx a lot! This video really inspires me about how to start my homework!

樹倒了沒
Автор

awesome vid! Thanks for breaking this down! made me love Python again! :-)

IzzyRock
Автор

Very helpful thank you so much I'm now following your every video.

robodev
Автор

Sweet. Worked like a charm. How do I add my image that goes with QmainWindow Qpixmap?

fjt
Автор

This comment may seem like an ordinary “thank you” but it really really means more than a “thank you” 😅🙏

umuts
Автор

It's really easier! Thank you so much!!!

laurentreynaud
Автор

I wish to learn this method before dev lots of pyqt apps.
more clean for managing.

atahirince