No video

PyQt5 FULL Modern Gui Tutorial #1 - Welcome Screen [for beginners]

  Рет қаралды 122,405

Code First with Hala

Code First with Hala

3 жыл бұрын

Video #1 in a tutorial series for building a fully functional app with PyQt5. In this video, you'll learn how to create the Welcome Screen for the application.
Playlist link: • PyQt5 Full App Tutoria...
In this video, you will:
- Learn how to use PyQt5 and QtDesigner
- Add gradients in PyQt5
- Add labels and buttons in PyQt5
- Use Qt Designer UI files with Python code.
Source code: github.com/codefirstio/pyqt5-...
For more information:
Install and Setup PyQt5 and Qt Designer: • Install and Setup PyQt...
For suggestions or comments:
My email: code.first.io@gmail.com
*************
*Tags*
PyQt5
PyQt5 tutorial
PyQt5 module
PyQt5 Designer
QtDesigner
Qt GUI tutorial
QTabWidget
PyQt5 gradient
PyQt5 modern GUI
PyQt5 Welcome Screen

Пікірлер: 114
@user-fi2ty4bm2n
@user-fi2ty4bm2n 3 жыл бұрын
Very clear explanation with organized steps to build a first PyQt app. Thank you.
@user-pr2uc3ri2o
@user-pr2uc3ri2o 2 жыл бұрын
Just wanted to express how helpful your videos are!! you are extrely good at explaining tNice tutorialngs in-depth but still at a basic level for
@mouaadrio5883
@mouaadrio5883 3 жыл бұрын
thank you thank you so much, I've been waiting for this for so long, cz all QT GUIs i saw look like they were created in the 90's, i was thinking about moving to something like C# WPF or something prettier. but i guess im gonna stick with qt for now, thanks again for all the hard work and time u put into these tutos
@katrykonig2466
@katrykonig2466 3 жыл бұрын
That is exactly what I need! Many thanks for you
@rohitkumarshaw8383
@rohitkumarshaw8383 3 жыл бұрын
Time stamps - -------------------- 02:25 - link for how to install PyQt5 04:00 - Import header files 04:40 - QT Designer 06:47 - Widget for background color of Welcome screen 09:30 - Add fade background color 12:25 - Add label (Welcome) 13:23 - Solve background fade issue in label 15:14 - Add label (Create account) 16:40 - Welcome screen code in python 19:40 - Launch application (Welcome screen) 23:13 - Add push button in QT Designer (login) 25:43 - Add push button (sign up) 26:10 - Objective for next video (when Login button clicked, go to new screen)
@maurizioberti6119
@maurizioberti6119 Жыл бұрын
00:00 - Keep in mind this so-called tutorial just like python would with a non referenced instance. (hint: see "Garbage Collection")
@rryann088
@rryann088 3 жыл бұрын
OMG!!! THANK YOU SO MUCH! BEEN WAITING FOR SOOO LONG!!!! THANK YOUUUUU!!!!!
@kiransanghvi6383
@kiransanghvi6383 3 жыл бұрын
Thank you very much for the beginner friendly and much need introduction to get started with PyQt5.
@perlasaadeh3322
@perlasaadeh3322 2 жыл бұрын
Please keep posting! I love your explanations
@vladimirsch.3015
@vladimirsch.3015 2 жыл бұрын
Thank you! In my case QStackedWidget needet to be imported too. --> from PyQt5.QtWidgets import QDialog, QApplication, QWidget, QStackedWidget
@ebraheememad9593
@ebraheememad9593 Жыл бұрын
Thx man, really helped
@someguy6076
@someguy6076 Жыл бұрын
You made four weeks with a difficult-to-understand lecturer make sense inside 30mins. Thank you, Hala !! (Plus you are much nicer to listen to)
@maurizioberti6119
@maurizioberti6119 Жыл бұрын
That's a pity. You got a total of ~3mins of extremely valid concepts, ruined by the remaining 27 containing a horrifying amount of terrible suggestions.
@violeto2831
@violeto2831 2 жыл бұрын
Love the tutorial! it was very helpful
@sureiwill1302
@sureiwill1302 3 жыл бұрын
Fantasic toutorial. Thanks a bunch!
@aniketmore7409
@aniketmore7409 3 жыл бұрын
you have done a great job! Thanks a lot dear!!
@AdelHaiba78
@AdelHaiba78 2 жыл бұрын
Thanks, I'll continue watch the series
@kuahara
@kuahara Жыл бұрын
Another great video. Thanks!
@prakashkombala
@prakashkombala 3 жыл бұрын
Really very good without any drag Thanks you very much
@Dystopian1
@Dystopian1 3 жыл бұрын
This is simply awesome.
@gojosenpai9461
@gojosenpai9461 3 жыл бұрын
cant wait for this to be finished
@teemu3436
@teemu3436 3 жыл бұрын
Keep up the good work!
@abhisheksurela2881
@abhisheksurela2881 3 жыл бұрын
Thanks a lot, please upload more videos for Qt5.
@smzhd9642
@smzhd9642 Жыл бұрын
It helped me a lot. Thank you
@tomaszzdziarski9591
@tomaszzdziarski9591 6 ай бұрын
Very helpfull,thank you!
@m_abhijit_
@m_abhijit_ 3 жыл бұрын
This video is too great for beginners who have fears before learning the python with Qt5 designer as it needs some prerequisites but in this video the explanation is too good that a noob can also grab the in depth knowledge from this thanks alot may god bless u 👍🏻😀
@Sauravk2107
@Sauravk2107 Жыл бұрын
Love the tutorial and Love you...
@leonflackett7397
@leonflackett7397 2 жыл бұрын
great tutorial! Thanks!
@maurizioberti6119
@maurizioberti6119 2 жыл бұрын
No, terrible tutorial, with terrible suggestions. Even what's good (because it has good things) is not *that* good compared to what's bad. Ignore it.
@ahmedragab4063
@ahmedragab4063 Жыл бұрын
Thanks for the great content
@mohammadrezashariat1442
@mohammadrezashariat1442 2 жыл бұрын
Excellent content ,excellent expression, beautiful voice, everything fantastic
@maurizioberti6119
@maurizioberti6119 2 жыл бұрын
Everything but the fact that too many things suggested here are just *wrong*.
@kunalbose493
@kunalbose493 2 жыл бұрын
Very nice tutorial :)
@javiercantoy7522
@javiercantoy7522 3 жыл бұрын
Excelent !!
@4tail152
@4tail152 3 ай бұрын
thank u very much , it helped me very much
@qkahmadzai8153
@qkahmadzai8153 3 жыл бұрын
New subscriber, hello from Afghanistan 🙏
@raphaelmachado9437
@raphaelmachado9437 8 ай бұрын
u saved my life... thanks...
@user-kv2jk8vc1l
@user-kv2jk8vc1l 2 жыл бұрын
Legit! thanks a lot bro!
@kienvu9274
@kienvu9274 2 жыл бұрын
very detail
@ghassansaadeh8176
@ghassansaadeh8176 3 жыл бұрын
👌👌
@dadas8366
@dadas8366 2 жыл бұрын
You're the Best one
@frettmann5317
@frettmann5317 Жыл бұрын
Love it and subscribe you 😊
@codermadushan
@codermadushan 2 жыл бұрын
Thank you
@Thomas-vp3en
@Thomas-vp3en 11 ай бұрын
Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! 💟💟💟💟💟
@timlol3899
@timlol3899 Жыл бұрын
hello I can't find the library what can I advise you to do can you help me this is the error ImportError: cannot import name 'loadui' from 'PyQt5.uic' (C:\Users\Furkan\AppData\Local\Programs\Python\Python310\lib\site-packages\ PyQt5\uic\__init__.py)
@ebraheememad9593
@ebraheememad9593 Жыл бұрын
It compresses everything in a small window, how to make the window larger?
@peejack2184
@peejack2184 2 жыл бұрын
how could i fixed problem like this? ModuleNotFoundError: No module named 'PyQt5'
@ramshankeryadav_0_0
@ramshankeryadav_0_0 2 жыл бұрын
Can we print whole QFrame and component in it , to A4 paper ? Is this possible?
@alban3409
@alban3409 3 жыл бұрын
Hey when will you do the profile part?
@group3cpe95
@group3cpe95 2 жыл бұрын
Hello How Can I make it pop up in the middle of my screen?
@antojoel6463
@antojoel6463 3 жыл бұрын
yo the border radius is not changing for me y?
@0168skyleung
@0168skyleung Жыл бұрын
Pretty good to explain the details. However, I do download the pyqt5.file in the python folder .and type pip install pyqt5 but nothing happen and popped pip not recognized. 😅
@ebraheememad9593
@ebraheememad9593 Жыл бұрын
Watch a tutorial on yt for that error
@theanimators8202
@theanimators8202 Жыл бұрын
Just wondering why you are saving your files in your venv? isn't it better to keep it separate especially when using github as we don't push the venv over?
@xreed8
@xreed8 5 ай бұрын
I was thinking that as well. I thought well maybe im wrong when working with pyqt since im just learning pyqt, but a virtual env is for 3rd party libraries and packages you install, ie files that arent your own code, not for your project files. You should be able to always delete your .venv folder whenever. Especially since, as you point out, you dont push your virtual environment folder to a version control like github.
@Css-Designes
@Css-Designes 9 ай бұрын
"Qstackwidget is not defined" error occurs,please help
@hessmess9504
@hessmess9504 3 жыл бұрын
Why modify the dimensions (1200 and 800) of the window in the properties of QtDesigner then recalling them in the python code with setFixedHeight and setFixedWidth?
@MaurizioB
@MaurizioB 3 жыл бұрын
Unfortunately this is not the only problem with this whole tutorial. While most of the explaination is properly done, it has a lot of issues with syntax/styling and from the OOP perspective, and also suggests things that are absolutely *wrong* (like adding a QDialog to a QStackedWidget or not using layout managers) and that wrongly guide beginners to bad practices.
@pancake8133
@pancake8133 9 ай бұрын
Without those lines the window does not start at the correct size. Setting the dimensions in QtDesigner only affects the preview layout you see in the designer. setFixedHeight and setFixedWidth makes the application the correct size to match the preview and also prevents the user from resizing the window and ruining the layout. However this is not a responsive design unfortunately
@sharafvip1
@sharafvip1 2 жыл бұрын
Hi I want to make dashboard how can I do that ??
@ebraheememad9593
@ebraheememad9593 Жыл бұрын
It doesn't open, it just prints exiting
@dnpangestu
@dnpangestu Жыл бұрын
hello, i have followed this tutorial but im stack in # main at widget = QStackedWidget() the sistem says "QStackedWidget" is not define. can you help me 😭
@pancake8133
@pancake8133 9 ай бұрын
you have to import QStackedWidget on line 4 where you're importing the other classes: "from PyQt5.QtWidgets import QDialog, QApplication, QWidget, QStackedWidget"
@murtazabadshah8747
@murtazabadshah8747 3 жыл бұрын
from PyQt5.uic import loadUi
@al-ghadernasaluddin5184
@al-ghadernasaluddin5184 3 жыл бұрын
This happened to me too, You have to uninstall something from the Pyqt5 using pip unfortunately I forgot what that library was called
@kirillburtsev4793
@kirillburtsev4793 2 жыл бұрын
Hi, Badshah I faced the same problem. Did u get any answer?
@murtazabadshah8747
@murtazabadshah8747 2 жыл бұрын
@@kirillburtsev4793 Nope I didn't I ended up using Ktinker GUI instead as the documentation was a bit more extensive.
@kirillburtsev4793
@kirillburtsev4793 2 жыл бұрын
@@murtazabadshah8747 Oh thanks I’ve already figured it out the problem
@jockfaire
@jockfaire 2 жыл бұрын
@@kirillburtsev4793 What did you do to resolve the problem? I've been scratching my head over this for some time now.
@hornetsnest662
@hornetsnest662 2 жыл бұрын
FileNotFoundError: [Errno 2] No such file or directory: 'WelcomeScreen.ui' what should i do to fix this
@jockfaire
@jockfaire 2 жыл бұрын
I'm getting this same error in addition to the ones @Murtaza Badshah got
@santhoshkadur5375
@santhoshkadur5375 3 жыл бұрын
Facing an error with: from PyQt5.uic import loadUi Any library should be installed?
@netanelelayev6947
@netanelelayev6947 3 жыл бұрын
I facing the same error Did you fixed it?
@santhoshkadur5375
@santhoshkadur5375 3 жыл бұрын
@@netanelelayev6947 : with that error also the program will be executed without any problem.. Kindly try to execute...
@devapp9426
@devapp9426 Жыл бұрын
FileNotFoundError: [Errno 2] No such file or directory: 'welcomescreen.ui'
@selvakumar-ym8ty
@selvakumar-ym8ty 3 жыл бұрын
please upload more videos
@chabaanesafae7102
@chabaanesafae7102 2 жыл бұрын
why from PyQt5.uic import loadUi doesn't work i'm using also Pycharm !!!
@ameral-koofee1249
@ameral-koofee1249 8 ай бұрын
copy relative path
@roshandissanayaka7623
@roshandissanayaka7623 Жыл бұрын
Love to
@greenergrass3489
@greenergrass3489 2 жыл бұрын
is QT designer responsive to all mobile size?
@maurizioberti6119
@maurizioberti6119 2 жыл бұрын
Qt allows to create "adaptive" design, not fully "responsive" as intended for nowadays mobile applications and websites. But the problem is that who created this tutorial completely ignored those aspects at all (along with a lot of other important aspects). Just dismiss it, they evidently don't care about their viewers, only about their views.
@pythonusersheng3370
@pythonusersheng3370 2 жыл бұрын
Error: 'QStackWidget' is not defined?
@Radian327
@Radian327 2 жыл бұрын
I changed the import section at the top to: import sys from PyQt5.uic import loadUi from PyQt5 import QtWidgets from PyQt5.QtWidgets import QDialog from PyQt5.QtWidgets import QApplication from PyQt5.QtWidgets import QWidget from PyQt5.QtWidgets import QStackedWidget
@ebraheememad9593
@ebraheememad9593 Жыл бұрын
Import qstackedwidget
@tirthz
@tirthz 3 жыл бұрын
Unresolved reference 'app_exec' Pls HELP
@Mastersafi
@Mastersafi Жыл бұрын
replace to sys.exit(app.exec())
@incremental_failure
@incremental_failure Жыл бұрын
Not bad but some glaring errors. There's no need for the try and except block for sys.exit, even if you wanted to use it, you'd catch the exception and print it. Silently ignoring exceptions is a bad idea. The elements in the window should have a layout. Something like a QVBoxLayout would work here with some adjustments. This is so you can add elements later without ruining the layout.
@maurizioberti6119
@maurizioberti6119 Жыл бұрын
Well spotted. Unfortunately, what you pointed out are just *some* of the problems here; like continuously creating new pages (instead of reusing them), or using QDialog in a QStackedWidget (which is wrong since QDialog is intended as a top level window). Unfortunately, it seems clear that the author of these so-called "tutorials" only cares about their views and has absolutely no interest in the consequences of providing terrible suggestions. In case you were wandering, be aware that even the codemy channel also does similar mistakes.
@incremental_failure
@incremental_failure Жыл бұрын
@@maurizioberti6119 It takes quite a few years to have a decent understanding of Qt. You can whip something unmaintainable together quickly, as has been done in the video. It's not a bad tutorial necessarily for someone completely new to Qt and scared to try it. But most of the approaches here obviously should not be used.
@Lord__Of__Darkness
@Lord__Of__Darkness 3 жыл бұрын
why you delete comments?
@kmalnasef1512
@kmalnasef1512 Жыл бұрын
you complicate things more than it is !!. what the reason to involve css in pyqt for beginners?
@maurizioberti6119
@maurizioberti6119 Жыл бұрын
Believe me, using style sheets is the least of the problems here.
@rockbert1701
@rockbert1701 2 жыл бұрын
Leary alot
@maurizioberti6119
@maurizioberti6119 2 жыл бұрын
After a year, this tutorial is still here, along with its terrible suggestions, bad practices, syntax errors, and with the critic comments carefully deleted. If you want to learn about programming and PyQt in a *good* way and without the terrible practices suggested here, ignore it and down vote it.
@serious6037
@serious6037 2 жыл бұрын
disslike
@MaurizioB
@MaurizioB 2 жыл бұрын
Please be aware that this tutorial (while in some ways well explained and somehow helpful), also suggests a lot of terrible practices. Since this is the third time I'm writing this (even after writing them emails), and they keep ignoring any message, it simply means that they really don't really care about viewers. That means you. I'm sorry to write this, I really tried to find a friendly way to sort out these problems, but they just don't seem interested: if you cannot see critics in the other comments, it's just because they delete them. If you really want to learn about PyQt, just find other resources, as it's clear that they don't care about helping people, just getting views.
@hessmess9504
@hessmess9504 3 жыл бұрын
Thank you very much for this greatfull tutorial. The "sys.exit(app_exec())" command not worked for me so I replaced it by "sys.exit(app.exec_())" which worked perfectly.
@gigamgamboa828
@gigamgamboa828 3 жыл бұрын
solve my issue with this. thank you
@inji8451
@inji8451 2 жыл бұрын
Solved👍
@william99glue41
@william99glue41 2 жыл бұрын
Thanks bruhh
@Rahulswami467
@Rahulswami467 2 жыл бұрын
14:28 my whole background goes white 🥲please help ma'am
@user-oy4zs5uq3b
@user-oy4zs5uq3b 2 жыл бұрын
How can I solve this problem " widget = QStackedWidget() NameError: name 'QStackedWidget' is not defined"
@jullianducut9680
@jullianducut9680 2 жыл бұрын
Any update with this problem?
@coleemersonsmith9950
@coleemersonsmith9950 2 жыл бұрын
from PyQt5.QtWidgets import QApplication, QMainWindow, QDialog, QStackedWidget
@jashanpreetsingh4750
@jashanpreetsingh4750 2 жыл бұрын
@@jullianducut9680 from PyQt5.QtWidgets import Qstackedwidget
@jullianducut9680
@jullianducut9680 2 жыл бұрын
I have now solved this problem due to import problem and multiple pyqt5 libs. Thank you :)
@yeruschmift8422
@yeruschmift8422 2 жыл бұрын
Look at 22:36 closely, the video is cut and the code is changed for widget = QtWidgets.QStackedWidget()
PyQt5 FULL Modern Gui Tutorial #2 - Login Form: GUI & Database [for beginners]
28:16
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 8 МЛН
ПОМОГЛА НАЗЫВАЕТСЯ😂
00:20
Chapitosiki
Рет қаралды 2,9 МЛН
Multiple Screens in PyQt5: Switch screens without opening a new window
11:43
Code First with Hala
Рет қаралды 93 М.
PyQt5 QtDesigner Login and Signup Forms tutorial: for COMPLETE beginners
30:47
Code First with Hala
Рет қаралды 108 М.
Install and Setup PyQt5 and Qt Designer [PyQt5 tutorial]
5:21
Code First with Hala
Рет қаралды 130 М.
4 Ways to Build Mobile Apps with Python #shorts
0:59
Code First with Hala
Рет қаралды 16 М.
AI Image Generator with Python, OpenAI, and DALL-E 2 [tutorial for beginners]
8:56
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 8 МЛН