PyQt5 QtDesigner Login and Signup Forms tutorial: for COMPLETE beginners

Поделиться
HTML-код
  • Опубликовано: 16 июл 2020
  • Create your first ever PyQt5 application: Login and Signup forms. Navigate between logging in and creating a new account. The tools used are Python, PyQt5 library and PyQt5 designer.
    In this video, you will:
    -Create your first Python PyQt5 project
    -Launch your first Python PyQt5 application
    -Work with PyQt5 designer
    -Create a login/signin form PyQt5
    -Create a signup/create account form in PyQt5
    -Use QtWidgets, QtDialog
    -Use PyQt5 buttons, line fields, password fields, and labels
    -Hide password in PyQt5
    -Switch screens in PyQt5
    -Use on clicked events in PyQt5 buttons
    Install and Setup PyQt5 and QtDesigner: • Install and Setup PyQt...
    Source code: github.com/codefirstio/pyqt5-...
    For suggestions or comments:
    My email: mailto:code.first.io@gmail.com
    *************
    *Tags*
    PyQt5 tutorial
    PyQt5 login form
    PyQt5 create account form
    PyQt5 signup form
    PyQt5 Designer
    Qt Designer
    Qt GUI tutorial
    GUI tutorial Python
    Graphical User Interface Python
    Python tutorial
  • НаукаНаука

Комментарии • 129

  • @nanakiinc.1441
    @nanakiinc.1441 3 года назад +12

    This is one of the best coding tutorials on youtube.
    Most coding tutorial: Write this code and see it works
    This tutorial: If you do that, this will happens, because...
    Thank you very much!!!

  • @gojosenpai9461
    @gojosenpai9461 3 года назад +1

    thank you so much, and yes we are interested in CSS with QDesigner, i hope more people here are interested as well

  • @rezasadjadian4603
    @rezasadjadian4603 3 года назад +3

    Explained the things very well and helped me a lot with my chore. Huge thanks for your effort. Thumbs up.

  • @TheSpiralnotizblock
    @TheSpiralnotizblock 3 года назад +1

    wow, thank you for this amazing tutorial!

  • @markobudimir4153
    @markobudimir4153 3 года назад +2

    Thank you so much, keep up the good work!

  • @ishudshutup
    @ishudshutup 3 года назад +12

    Wow, this was actually way better than the tutorials from Tech With Tim! Perhaps what could help is to divide the tutorials into around 10 min part, people may be intimidated by the 30 min video. Keep up the great work, thanks!!!

    • @raiyan22
      @raiyan22 3 года назад +1

      can agree, just seen TWT yesterday and this one is way better ! Thanks to her :)

  • @allwinaugustine
    @allwinaugustine 3 года назад

    Your channel deserve a lot more subscriptions...

  • @ramizquliyev394
    @ramizquliyev394 3 года назад +6

    You have an amazing voice but If you speak a little bit louder or use a mic everything would be perfect. Thanks For Video. Liked

  • @Jeffrich308
    @Jeffrich308 3 года назад

    Very informative! Thanks!

  • @Ashi_1608
    @Ashi_1608 4 месяца назад

    Thank you for the tutorials...It helped me and my team mate to develop our project. Thank you!!!

  • @amosfalcon6190
    @amosfalcon6190 2 года назад

    Big thanks for your wonderful lesson! It really help me a lot. Wish Hala has gorgeous life in the coming 2022 : )

  • @garyt2185
    @garyt2185 2 года назад

    This all can be done inside the Designer tool. No need to write code. Is a learning experiencing writing code, however. Great video.

  • @hamzasonalcan
    @hamzasonalcan Год назад

    thank you very much for sharing the source code. It helped so much to my project.

  • @Loksy
    @Loksy 3 года назад +1

    Thank you for this video.
    keep it up

  • @kuahara
    @kuahara Год назад

    This is a very helpful video. Thank you.

  • @alejozen3457
    @alejozen3457 3 года назад

    Your content is great!

  • @dansonchipili3357
    @dansonchipili3357 Год назад

    Wow wonderful video indeed. Great work

  • @guytrout7101
    @guytrout7101 Год назад

    Well done tutorial and thank you for the source code for the pgm and two .ui

  • @sameerk12982
    @sameerk12982 2 года назад +1

    Hello from India....Thank you very much for this easy to understand and very helpful tutorial...looking forward for more....Subscribed.

  • @inhthanhtung5199
    @inhthanhtung5199 2 года назад

    thank you so much (from vietnam)

  • @cedricsipakam2601
    @cedricsipakam2601 2 года назад

    Verry well explained!

  • @CsOfficials12
    @CsOfficials12 10 месяцев назад

    This tutorial is very helpful for me 😘
    ThankU maam

  • @bharadhwaj2145
    @bharadhwaj2145 2 года назад

    Very Great Tutorial
    Thanks a lot

  • @aaronjaffetgutierrez1345
    @aaronjaffetgutierrez1345 Год назад

    Nice video, thanks for you help!!

  • @user-ds5kt7dz7k
    @user-ds5kt7dz7k 2 года назад

    man really god bless you

  • @mirhosseinseednasiri3037
    @mirhosseinseednasiri3037 Год назад

    it was so useful for me thanks alot for creating this serios of video

  • @andreizavorodnic5009
    @andreizavorodnic5009 3 года назад +6

    After 3 very long hours on youtube searching for something actually useful, I found your video and I can really say that it's a life saver. You explain well, have a nice voice(I'm sick of indian guys) and you take it step by step. Keep going 'cause I will be watching! Congrats!

    • @halfwild3090
      @halfwild3090 3 года назад +1

      Indians save tho

    • @rajsarkar
      @rajsarkar 2 года назад

      now i would call it racist

  • @ahmedhashem5330
    @ahmedhashem5330 3 года назад +11

    i think your series will be great if you add some how dash board in the side of your screen just to demonstrate what are the functions of things that you have imported

    • @codefirstwithhala
      @codefirstwithhala  3 года назад +1

      Thanks for the great suggestion! Will keep it in mind

  • @warwickrigby6894
    @warwickrigby6894 Год назад

    Excellent tutorial.

  • @ahmedhashem5330
    @ahmedhashem5330 3 года назад +6

    keep going ,waiting for your css file for fancy designing!!!!

    • @codefirstwithhala
      @codefirstwithhala  3 года назад

      Working on it, keep an eye out for it in the next few days!

  • @fatemenikkhah8780
    @fatemenikkhah8780 3 года назад

    خیلی ممنون از شما

  • @simform2415
    @simform2415 2 года назад

    you lecture is very oswome and very informative . A lot of thaxnks with give us source code..

  • @zeyadrhadi2285
    @zeyadrhadi2285 3 года назад

    Excellent

  • @zeyadrhadi2285
    @zeyadrhadi2285 3 года назад

    very very Excellent

  • @Tri_3D
    @Tri_3D 3 года назад

    Very good video. keep up the good work. you got a discord?

  • @user-ds5kt7dz7k
    @user-ds5kt7dz7k 2 года назад

    greate video

  • @narrenturn
    @narrenturn Год назад +3

    Traceback (most recent call last):
    File "C:\Users\ASUS\PycharmProjects\main.py", line 19, in
    mainwindow=Login()
    File "C:\Users\ASUS\PycharmProjects\main.py", line 10, in __init__
    self.loginbutton.clicked.connect(self.loginfunction)
    AttributeError: 'Login' object has no attribute 'loginbutton'
    no idea what's happen :(

  • @egutube99
    @egutube99 2 года назад

    love ur videos! helped me alot but is there anyway that i can sign the users out of the app after login?

  • @jyotipandita8552
    @jyotipandita8552 3 года назад +1

    Your voice is like Google Assistant😄

  • @arturoikkileon1159
    @arturoikkileon1159 2 года назад

    firstly thanks for great video, but what about if i´m using another path where my UI are storage?

  • @danishali8335
    @danishali8335 Год назад +1

    Some concepts are missing, if you had converted the .ui file with the pyuic5, then it would be good, because you can see the whole code of the gui there

  • @majestic_makes
    @majestic_makes 3 года назад

    You are doing great.. Please provide tutorial for displaying images Thanks

    • @TP-mv6en
      @TP-mv6en Год назад

      a channel called tech with tim has made a good video on that

  • @g3lon0s
    @g3lon0s 4 месяца назад

    Could you do a video of styling with css?

  • @xilin1063
    @xilin1063 2 года назад

    Since Firebase might be not available in some countries, is there a similar way to mandate all users with pymsql?

  • @onehokim563
    @onehokim563 3 года назад +2

    you are so great

  • @Bobheinlein
    @Bobheinlein Год назад +1

    Great tutorial, but I don't understand how do you get "widget" within class?

  • @DFAutoArena
    @DFAutoArena Год назад

    hii, please if I want to create other boxes or spaces like firstname in the create account page how do I initialize it in the code

  • @Music-qm4pw
    @Music-qm4pw Год назад

    Which version of PyCharm you used ? It seems to not working with new version.

  • @harryfriedman361
    @harryfriedman361 Год назад

    when I ran the python file we created, the GUI loads but is blank and dosent have anything from the QTdesigner :(. I made sure the UI file i created was the one from the QTdesigner but its still a blank GUI that pops up when executed.

  • @sauravwagh560
    @sauravwagh560 3 года назад

    when i connect two pages size of first page is apply size of another pages but i want different size for different pages, what i can do pls help

  • @madinafazli8394
    @madinafazli8394 3 года назад

    When I click the create acc button in the sign up form, it does not redirect me to the sign in page and prints nothing even though I have the exact same code! Can anyone please help me with this?

  • @sirishayemineni2080
    @sirishayemineni2080 3 года назад

    I installed a PYQT5 by using pip but it showing like this ,defaulting to user installation because normal site-packages is not writable how to overcome this problem ?

  • @joelkklein8760
    @joelkklein8760 3 года назад +1

    Good channel, for leaning PYQT5, i have a question?/ I have a question?? what is better.. use PyQt5.uic Import [file.ui] or convert File .ui to Python code??

  • @manonthedollar
    @manonthedollar 3 года назад +2

    Excellent tutorial. Thanks!
    I noticed at the end (around 28:30), the gotocreate() function creates a "second" login screen. Is that the "standard" way of doing this, or is it okay to go back to the first widget ( self.setCurrentIndex(self.currentIndex()-1) ) ?

    • @raiyan22
      @raiyan22 3 года назад

      Hello @manonthedollar did you find the correct answer to this question?

    • @denno445
      @denno445 2 года назад +1

      once you add more screens it would get a bit messy unless you manage your indexes and just doing +1 every time make its a whole lot easier to manage, but its less memory efficient.

  • @donny9748
    @donny9748 3 года назад +1

    It says AttributeError: type object 'Login' has no attribute 'self'

  • @feniladesara
    @feniladesara 2 года назад

    I created UI and also done same code shown in tutorial. But I am getting error. I am using spyder not pycharm.

  • @orhansrml
    @orhansrml 3 года назад +1

    First of all thank you.
    I have a question. You define widget variable at the buttom of your code but you use it in the class above. When I do the same thing, it says "widget not defined".
    Can anyone help?

    • @nanakiinc.1441
      @nanakiinc.1441 3 года назад +1

      i have the same problem :/
      If i press tab and put it under the class it works. But then it doesnt open the window/class

    • @stevemorse5052
      @stevemorse5052 2 года назад

      @@nanakiinc.1441 Hi did you solve the problem, if so how.

  • @yashchaurasia1830
    @yashchaurasia1830 2 года назад

    I would like to suggest here is that loadUI is not that efficient in the long run better we convert the ui to py file and use it.

  • @kaindradjoemena7789
    @kaindradjoemena7789 3 года назад

    ummmm does anyone know how to fix the designer where it's so clunky. The fonts are so big and the panels on the editor are too big that it clutters the screen. Help pls I cant I now cant use it

  • @TriStyleXI
    @TriStyleXI 2 года назад

    hey, this tutorial is very good,
    when i run the ui file from pycharm, the window is way smaller than it shows in your video, so all the text and shit are cropped out.
    i've specified the fixed width and height. how do i fix?

    • @kainatirfan8364
      @kainatirfan8364 Год назад

      hey i am facing the same problem.. did you get any solution?

    • @rifkireynaldi9155
      @rifkireynaldi9155 11 месяцев назад

      try to change your scale. setting>system>display>custom scalling

  • @nguyentu-mc5nl
    @nguyentu-mc5nl 3 года назад

    how can i change the 2nd window size? please anyone help?

  • @binodreddy9881
    @binodreddy9881 Год назад

    I have developed application using qt designer in 100% resolution window but while I am running the same application in 150% resolution window images in that application are not appearing...can any one give solution for it?

  • @rohitsonawane4592
    @rohitsonawane4592 3 года назад +3

    How we make android app using pyQt5 ?
    If it is possible then please make a video.

    • @codefirstwithhala
      @codefirstwithhala  3 года назад +1

      It is possible! While it is not recommended as the top choice for Android with Python (check out Kivy) there are multiple ways this can be done. Thanks for the suggestion. I'll keep it in mind for a future video.

  • @sonelay
    @sonelay 2 года назад

    Hello, thanks for the tutorial, I'm facing the TypeError: ('Wrong base class of toplevel widget', (, 'QMainWindow')). Could you please able to advise on it

  • @carstenschmucker9140
    @carstenschmucker9140 3 года назад

    Hello, and thank you, for the video.
    I admit I am confused and I have no clue why this little program does not run at my office pc but smoothly at home.
    I even downloaded the code and your form because I thought I might have a typo and missed it. But no.
    It says something like "Login doesn't have an attribute loginbutton....".
    Maybe somebody has an idea what is wrong.
    2nd... is there a way to integrate/render some (already existing) 3d mathlab graphs to a selfmade GUI form?
    Regards, and thank you!

    • @carstenschmucker9140
      @carstenschmucker9140 3 года назад

      Problem solved. Bad idea to use "save target as...." in github. Now it works...!

    • @gagankarnati643
      @gagankarnati643 Год назад

      i had the same error but i fixed mine using chatgpt it took some time tho

    • @carstenschmucker9140
      @carstenschmucker9140 Год назад

      @@gagankarnati643 Meanwhile I had to switch to PySide2, did some courses on Python and object oriented programming, QML and QTQuick. So a lot of stuff happened and I am super happy our boss got us a Udemy buisness plan. WOW, only one year later....!!!
      I managed to create some really heplful tools for our service guys and grab a database and create lots of helpful graphs and tables. What took a couple of days of work a year ago (and a lot of discussion with the boss/customer/sales dept is now done in one hour (including making it nice in an Excel sheet).
      It just takes patience and sometimes a good sleep to get the solution. Best regards!

    • @gagankarnati643
      @gagankarnati643 Год назад

      @@carstenschmucker9140 Wow thank you. You are an inspiration! I strive to be like you. Maybe you could drop your email below? I have a few questions you may be able to help with or any social media. I am very inspired. It is nice you've been able to develop such things.

  • @gagankarnati643
    @gagankarnati643 Год назад

    How do i store the usernames and passwords?

  • @peejack2184
    @peejack2184 2 года назад

    ModuleNotFoundError: No module named 'PyQt5' how do i fixed it?

  • @aritramondal8452
    @aritramondal8452 3 года назад

    I am getting attribute error with create account button, please help

  • @asapdexter6410
    @asapdexter6410 3 года назад

    why not PySide2?

  • @mspsas12345
    @mspsas12345 3 года назад

    The create button in your code is crashing

  • @dedpihto680
    @dedpihto680 2 года назад

    god damn it s fucking good

  • @randomNunber
    @randomNunber 3 года назад

    Waiting for followup videos

  • @rohitsonawane4592
    @rohitsonawane4592 3 года назад

    It is possible to add or embed python turtle graphics in PyQt5 GUI ?

    • @codefirstwithhala
      @codefirstwithhala  3 года назад

      Hi! Turtle actually uses tkinter, another Python GUI library, behind the scenes. Tkinter and PyQt5 work a bit differently, so I don't think it would be possible, or perhaps not recommended. Anyways, there are some alternatives to drawing with PyQt5, or you can use Turtle with Tkinter.

    • @NphiniT
      @NphiniT 3 года назад

      Use QtGraphics. It's way better than turtle

  • @yasirh2004
    @yasirh2004 3 года назад

    How to hide signup form after pressing signup button i tried Form.hide but it doesn’t work inside a function only in constructor i want to close or hide the form from a function can you help pls

    • @OmgSAN
      @OmgSAN 3 года назад +1

      Suppose your signup button's variable name is "signupbutton" and page's index number is 1, and your Sign in or main page's index number is 0. If you're using stacked widgets then you can add the following code.
      self.signupbutton.clicked.connect(self.MainMenu)
      def MainMenu(self):
      stackedWidget.setCurrentIndex(0)

  • @rubotok3703
    @rubotok3703 3 года назад +1

    PyQt.uic doesnt exist for me ti import from, help

  • @momowangle4781
    @momowangle4781 3 года назад

    6:40 when I do the exact same things, I get "Invalid Style Sheet"

    • @yestin3509
      @yestin3509 3 года назад

      add "background-color:" in front of the actual color

  • @iAmStealty
    @iAmStealty 3 года назад +2

    Traceback (most recent call last):
    line 20, in
    mainwindow = login()
    NameError: name 'login' is not defined
    why this occures

  • @yuvalnoyman1660
    @yuvalnoyman1660 3 года назад

    its showing me: AttributeError: 'Login' object has no attribute 'login_button' i cant find how to solve it please help

    • @leonardorosales3122
      @leonardorosales3122 3 года назад

      That atribute depends on the name that you assigned to the button.
      Check the name in QtDesigner.

    • @TriStyleXI
      @TriStyleXI 2 года назад

      @@leonardorosales3122 thank you! i needed this

  • @user-ds5kt7dz7k
    @user-ds5kt7dz7k 2 года назад

    1

  • @user-ds5kt7dz7k
    @user-ds5kt7dz7k 2 года назад

    2

  • @srikar8718
    @srikar8718 3 года назад +1

    Unresolved reference 'loadUi' could you help me out

    • @manonthedollar
      @manonthedollar 3 года назад +1

      Are you on PyQt5 or Pyside2?

    • @kesavguru415
      @kesavguru415 3 года назад +1

      @@manonthedollar I am using PyQt5 and faced the same issue

    • @iochisono97
      @iochisono97 2 года назад +1

      pip install pyuic5-tool

    • @iochisono97
      @iochisono97 2 года назад +1

      @@kesavguru415 pip install pyuic5-tool

  • @Zanget99
    @Zanget99 3 года назад

    sorry but the audio is really bad and its messing up the tutorial

  • @MrFrankging
    @MrFrankging Месяц назад

    Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla ................

  • @saqibuzair7670
    @saqibuzair7670 Месяц назад

    Hello ma;am your email is not correct
    please send the original email thank you

  • @narrenturn
    @narrenturn Год назад

    self.loginbutton.clicked.connect(self.loginfunction)
    AttributeError: 'Login' object has no attribute 'loginbutton'
    where is the problem ?

  • @user-ds5kt7dz7k
    @user-ds5kt7dz7k 2 года назад

    man really god bless you

  • @zeyadrhadi2285
    @zeyadrhadi2285 3 года назад

    Excellent

  • @user-ds5kt7dz7k
    @user-ds5kt7dz7k 2 года назад

    greate video

  • @user-ds5kt7dz7k
    @user-ds5kt7dz7k 2 года назад

    man really god bless you

  • @user-ds5kt7dz7k
    @user-ds5kt7dz7k 2 года назад

    greate video