PyQt5 Tutorial – Setup and a Basic GUI Application

///PyQt5 Tutorial – Setup and a Basic GUI Application

PyQt5 Tutorial – Setup and a Basic GUI Application

FavoriteLoadingAdd to favorites

PyQt5 is a python 3 module that allows for rapid development of GUI applications using its built in program Qt-Designer. PyQt5 runs on all operating systems which means all of the code you write will scale. This tutorial series will focus on the basics of PyQt and creating useable GUI’s. In this video I discuss how to download and install pyqt for windows and setup a basic gui application.

Playlist:

Text-Based Tutorial:

Get %30 off a GitPod.io subscription with the code: TECHWITHTIM2FQBMX

◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python

📸 Instagram:
🌎 Website
📱 Twitter:
⭐ Discord:
📝 LinkedIn:
📂 GitHub:
🔊 Podcast:

💵 One-Time Donations:
💰 Patreon:
◾◾◾◾◾◾

⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡

Tags:
– Tech With Tim
– Python Tutorials
– PyQt5 Tutorial
– Python PyQt5 Tutorial
– PyQt5 Designer

#python #pyqt5 #qtdesigner

source

By |2021-02-18T12:30:55+00:00February 18th, 2021|Python Video Tutorials|50 Comments

50 Comments

  1. Neobrand Sainclair February 18, 2021 at 12:30 pm - Reply

    According to the Qt Company, Qt should be pronounced "cute", for obvious reason.

  2. Richárd Csanaki February 18, 2021 at 12:30 pm - Reply

    Thank you for these tutorials, they are amazing! 😀

  3. Chris Harvey February 18, 2021 at 12:30 pm - Reply

    Good tutorial. It was a bit painful hearing Qt pronounced wrong the whole time. The reason it is written "Qt" and not "QT" is because it is pronounced "cute" and not Q T.

  4. John Nguyen February 18, 2021 at 12:30 pm - Reply

    Decimate QT HQ for brain device the size of a brown cigarette pack that is sensors to a screener+software…The source code to all evil. Down.ok-out.WITgarbage.immediately!!!

  5. Rishil Kadakia February 18, 2021 at 12:30 pm - Reply

    4:27 That's not what passing sys.argv does. It passes the command line arguments to the QT application.

    5:55 You said if you set the x position and y position to 1920 and 1080, it will show up in the right-hand corner of your screen. This is not entirely true. Yes, if you have a 1080p monitor, it will, because FHD is 1920 x 1080, but what if you have a 720p monitor, or a 1440p monitor, or a 4k monitor?

  6. Hiroki Yamada February 18, 2021 at 12:30 pm - Reply

    ありがとう

  7. Tamás Bíró February 18, 2021 at 12:30 pm - Reply

    I'm too stupid to understand this

  8. Adil Ansari February 18, 2021 at 12:30 pm - Reply

    How to get the job give me suggestions

  9. The name is Max February 18, 2021 at 12:30 pm - Reply

    I'm just starting to learn PyQt5 and this course looks promising! Nice job!

  10. Craig roder February 18, 2021 at 12:30 pm - Reply

    You show the designer at the start but then go a different route – stick with what you began with – this is not cool

  11. Hades _ February 18, 2021 at 12:30 pm - Reply

    I allready learned tkinter, its kind of similar.

  12. Toby February 18, 2021 at 12:30 pm - Reply

    If anyone has any problems I couldn't get this to work at all with Python 3.9, had to roll back to 3.8.6.

    It kept giving me all sorts of weird errors, saying python wasn't installed, then python wouldn't initialize QT plugins. Rolling back to 3.8.6 fixed everything. Hope that helps someone. It literally took me about 2 hours of agony to work this out!

  13. Гаус-Жордан February 18, 2021 at 12:30 pm - Reply

    Hey! What should I do with it&
    qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""

    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

  14. شایان خردمند February 18, 2021 at 12:30 pm - Reply

    thank you very much it was cool

  15. Fc Morena February 18, 2021 at 12:30 pm - Reply

    thanks, love this tutorial

  16. Grayson Garrett February 18, 2021 at 12:30 pm - Reply

    Has anyone else fixed this error? I don't think I can move forward with Designing any PyQt applications until this gets resolved.
    Thank you in advance.
    "
    from PyQt5 import QtWidgets

    ImportError: DLL load failed: The specified module could not be found.
    "

  17. JANRIEL February 18, 2021 at 12:30 pm - Reply

    Hi Tim,I'm also wondering if you're a Udemy instructor?I would love to purchase your courses.

  18. King Shah February 18, 2021 at 12:30 pm - Reply

    Whwchw':''huXG':ava'-'#&

  19. Saikiran Gupta February 18, 2021 at 12:30 pm - Reply

    thank you.

  20. Kevin Dunbar February 18, 2021 at 12:30 pm - Reply

    QT and PyQt5 are from two different companies. The editor for QT is called QT Creator. The Editor for PyQt5 is called QT Designer. I was also confuse about that.

  21. ray sun February 18, 2021 at 12:30 pm - Reply

    Hey guys, I got the "qt.qpa.xcb: could not connect to display" issue,
    Anyone had similar problem with me?

  22. To avoid eyestrain, I have a slightly larger default font on my kde linux box. Anyway, I had to use label.adjustSize() to get the entire label to show.

  23. Lorenzo Guetta February 18, 2021 at 12:30 pm - Reply

    Thanks Tim!! I love you

  24. Nikephor February 18, 2021 at 12:30 pm - Reply

    sys.argv is a function that returns the arguments passed to the program. If you execute the program as "test.py Hello World" then sys.argv will return a list containing the name of the file as the first argument and all other arguments, so it would be ["test.py", "Hello", "World"]. I don't know what QApplication does, but if you need to pass sys.argv, then you're giving it the file name.

  25. Meme Lorde February 18, 2021 at 12:30 pm - Reply

    why does "from PyQt5 import QtWidgets" not work for me

  26. Rishabh Lavhale February 18, 2021 at 12:30 pm - Reply

    how to refresh gui window every 5 sec

  27. George Trialonis February 18, 2021 at 12:30 pm - Reply

    Hi, I missed the link to go to instructions to install pip on macbook pro. The link does not show. Would you provide the link here? Thanks.

  28. Hung Doan February 18, 2021 at 12:30 pm - Reply

    Awesome Video! Thanks!

  29. Daniel Zheleznov February 18, 2021 at 12:30 pm - Reply

    is there an interface like that for tkinter

  30. Pranav Bhat February 18, 2021 at 12:30 pm - Reply

    I seem to have a major problem with downloading PyQt5 on Anaconda that rendered the entire software useless and had to re-install anaconda. Has anyone else faced this issue? Or is there a mistake on my part?

  31. master shooter64 February 18, 2021 at 12:30 pm - Reply

    wow this is much easier and better than tkinter, I wonder what tkinter has that pyQt5 doesn't.

  32. Meteor Programmer February 18, 2021 at 12:30 pm - Reply

    if you think Tim's video is not enough try reading the documentation it have a lot more fun stuffs in it https://www.riverbankcomputing.com/static/Docs/PyQt5/index.html

  33. RAVALI Aerra February 18, 2021 at 12:30 pm - Reply

    when I have maximized the window the frame is half filled in the window how should I set frame size so that it will also get maximized when window is maximized.

  34. Hama Khdir February 18, 2021 at 12:30 pm - Reply

    Sir I want full course about PyQt5, where i can get please?

  35. Samar Mohan February 18, 2021 at 12:30 pm - Reply

    I was using Python 3.9 and pyqt5-tools isn't available…

  36. Samar Mohan February 18, 2021 at 12:30 pm - Reply

    I just use WPF, with C#. Hehehehe. But I LOVE Python and want to do everything with it.

  37. Super Byte February 18, 2021 at 12:30 pm - Reply

    I would like to know the difference between TKinter and PyQt5,

    And their pros and cons.

  38. shyam kumar February 18, 2021 at 12:30 pm - Reply

    I had successfully executed python code sir,when I tried to automatically launch the code with help of .sh, when I manually launch in terminal it is giving this as error :
    QStandardPaths :XDG_RUNTIME_DIR not set,defaulting to '/tmp/runtime-root and executing python code but when i reboot and check the log it is showing file python file not found as error.Is there any way to solve this issue?

  39. Md. Mubin February 18, 2021 at 12:30 pm - Reply

    It's a nice video. Thanks a lot Tim!

  40. Shashank S Shetty February 18, 2021 at 12:30 pm - Reply

    While installing PyQt (using 'pip install pyqt5' command) I get this error: FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\ —–\AppData\Local\Temp\pip build\vcx1j3xm\pyqt5\setup.py'. Please help…

  41. Jazz Katua February 18, 2021 at 12:30 pm - Reply

    Good beginners tut. Thnx!

  42. WISAM SR February 18, 2021 at 12:30 pm - Reply

    when I run it
    python tell me that
    (this application failed to start because no Qt platform plugin could not initialized

  43. Sai Vijay Ragav February 18, 2021 at 12:30 pm - Reply

    This is a lot similar to Pygame

  44. Matthew Scott February 18, 2021 at 12:30 pm - Reply

    Uses CMD… Absolute animal

  45. Jorge Rivé February 18, 2021 at 12:30 pm - Reply

    How did you set up your build so that the gui shows up? I'm using Anaconda3, and build works for print("hello world") for example, but does not work for this example….

  46. Petrockspiracy February 18, 2021 at 12:30 pm - Reply

    I am so confused.
    QtWidgets clearly has members QApplication and QMainWindow. They even autofill. But importing them results in an error: no module name QApplication in PyQt5.Widgets.
    Yet I can do something like

    var = QtWidgets.QApplication

    without any problems. I don't get it

    I guess it doesn't matter. Just kinda bizarre.

  47. Paulo Santos February 18, 2021 at 12:30 pm - Reply

    salve meu galo

  48. Football Arena February 18, 2021 at 12:30 pm - Reply

    please tim i would like to see a tutorial in creating a e-commerce website using flask. from ground up learning how to properly code a website manage sessions, cookie. have admin section and users can log in the site and perform things. please

  49. Marius Toft February 18, 2021 at 12:30 pm - Reply

    Help 🙂
    I try to run the exact same code as you in sublime, but no window or anything shows up – do you have any idea why? Otherwise awesome tutorials!!

Leave A Comment

*