I've been searching for how to make my Designer work for a month: googling weird advices, reading overcomplicated articles, digging into documentation... And you has solved my problem in a half an hour. Thanks!!!
Using Python 3.10.4, I found that PyQt5-tools had an error when installing. PyQt5 was fine. Nothing seemed to resolve this until I removed Python and installed 3.9.10 which allowed me to install both PyQt5 and PyQt5-tools. The Designer and pyuic5 both worked perfectly. Great tutorial! Thank you Tim.
@@deiaabdullah2008 I've lost 40 minutes on this problem while watching first video in the series... Thank you a lot for posting this. P.S. 3.9.10 isn't available any more but it works on 3.9.13 which is the last version of 3.9
Initially I couldn't find pyqt5-tools inside scripts. Using pycharm with virtual environment made using virtualenv, python version 3.10.5. pyqt5-tools didn't get installed in my system for some reason. So, "pip install PyQt5Designer" within the same working directory as my virtual environment worked for me. I can now use designer.exe. As always, I'm grateful to tim for his clear explainations and free tutorials. God bless you brother, keep up the good work. You're definitely making this world a better place.
Just started a python project that needed a GUI - having never done this much in python (I've done the odd py project and used circuitpython a fair bit but not as complex as my current project) -- this video playlist has been a godsend! Thank you so much for this pyqt5 series playlist / tutorial :)
Hey Tom, I recently started following your tutorial videos on PyQt5. Let me tell you: Thanks so much for the GREAT work. By far, you are the best! Keep it going.
Earned my subscribe bro. I'm a big ole Windows nerd. I use hotkeys for everything, I know all of the little tricks, I customize it to hell. In short, I use Windows very efficiently.... but man, I never knew you could open a cmd prompt by typing cmd in the address bar... You added another tool to my tool belt.... Oh, and you're also very smart, you teach in an effective way, and third compliment. Thanks.
This helped me a lot to get started, however I learned later that this is not the best way to program a more complicated program, as each time you edit the GUI, you rebuild the code, and have to code everything again (or just copy and paste). I found much more efficient to create a main program that loads the .ui file that's generated. It means you can make any changes to the GUI in QTDesigner and your code will not be affected. I used the function loadUI for the uic package in PyQt5. Just in case anyone else gets stuck there! Thanks for the tutorial, it def helped me to get started!
Same. All the years Tim has taught me some incredible things, but this one I doubt even my senior software dev even knows lol. Fucking supreme stuff right there. Man.
Hey Tim. Great tutorials. I just wanted to share an update. For those looking for the Designer.exe file, mine was located in ...Lib/sitepackages/qt5_applications/Qt/bin
I finally got QtDesigner installed on my Samsung Chromebook Plus v2. To start out with, I installed all of QtCreator and Qt5. I ended up with a /usr/bin/designer that didn't work. It wanted something and I couldn't figure out what I installed QtDesigner for Qt 4, and that one worked. I found out that /usr/bin/designer was a reference. I changed my .desktop file for the "Qt 4 Designer" (find | grep) to "Qt Designer" and changed its command to "designer -qt=5". This means that the Qt4 version exists, but for whatever reason the new one works because of that. Maybe this will help someone. PLEASE KEEP MAKING THESE VIDEOS! PyQt is terribly under-documented.
For those who are experiencing this error: "'pyuic5' is not recognized as an internal or external command, operable program or batch file. " This is because your pyuic5.exe is not in PATH. Probably your pyhton script folder is not in PATH, even though you put the option "add to Path" when you were installing Python. This happened to me, my Python folders are scattered around and I don't even know why. There are two methods of resolving: 01 - (What I did) The folder he shows that has all the files that pip installed, I added to PATH. (So much so that when you install a new library, you will no longer see that warning suggesting to add it to the path as the entire folder is already there.) There are already tutorials on the internet, it's very simple 02 - Instead of typing "pyuic5", you write the location where "pyuic5.exe" is. It's more complicated, but it also works. Like if I helped you :)
I had to work around pyqt5-tools not installing: py -m pip install pyqt5-sip py -m pip install pyqt5 py -m pip install pyqt5designer FYI for anyone else running into this issue
I was 10 minutes away from sacking Python after hours of trawling far too many annoying tutorials and reviews trying to find a decent GUI RAD to use. Your tutorial on installing and running Pyqt Designer saved the day. Excellent. Thanks. Not a TShirt guy these days but do you have a Patreon page or similar?
For anyone getting this error when trying to open the deigner: "this application failed to start because no qt platform plugin could be initialized" I solved it by going into the plugins folder and copying a folder called "platforms", I then pasted the folder where the designer.exe is located.
thank you, really helpful. for those who have the same problem: copy the whole folder of 'plugins' under folder pyqt5_tools\Qt, then paste it to folder pyqt5_tools\Qt\bin, replace, done!
Finding the site-package directory is easy. The pip install shows the full path of the /newly/ installed modules, so just read it from the screen as it shows at 0:24 or 0:40
C:\Python35\python"' is not recognized as an internal or external command, operable program or batch file. Hocam bu problemi alıyorum, yardımcı olabilir misiniz?
When you have no idea where you can find your python folder, open cmd/terminal and write "where python". That will show you the install path on your computer.
Another way of finding where Python is installed on Windows is just typing the command in CMD: "where python" and it will show the installed locations on your PC!
Yes but that is a quite heavy program and this is luckily not something from Microsoft. Or are you saying there was ever a minimalistic utilitarian Microsoft program without a million popups and 2000 dependencies? ,)
Thank you, great tuto. Just one thing, instead of explaining, how to search for hours where is python.exe on your computer, just open the console and type "where python" , that's it!
Thank you for your video-tutorial! I'm just a newbie in programming and afraid all of these codes because I'm an digital artist, not programmer x) But your video really understandable for me! Thank you! ^^
If designer.exe comes up with an error try this: Go to => Python38>lib>site-packages>PyQt5>Qt>plugins In plugins copy platform folder After that go to Python38>lib>site-packages>PyQt5_tools>Qt>bin paste folder here . Do copy and replace.
Quick way to find your pyqt5-tools install location is to run the install command again. It'll state the package is already installed and provide the file path location!
I recommend PySide (now 6, for Qt6), it is very alike PyQt, but more up to date, and based on LGPL license - you don't need to publish source for your commercial code... BTW, Qt Designer comes as part of PySide, with no additional library to install.
Works on my mac. Thank you I cannot wait to give my nice little gui with some functionality (that I made some day ago). *Hours later*: Ahh.. that is done in the signal/slot editor XD. I was thinking what the heck.. loose ends everywhere..
Man, I gotta say something... *THANK YOU SO FREAKING MUCH!* I've been struggling for like 2 days, trying to make an stupid button work, you're a life saver! Btw I was just loading the .ui file by an incorrect way, lol.
Excelent video! This is what I need! If I signed as a Programmer Master could I get support on how to use PyQt5 to execute c++ programs? Or, support how to use f2py / ctypes?
if you could please i have this problem, could you help me 'pyuic5.bat' is not recognized as an internal or external command, operable program or batch file. i am using pycharm
Thanks for the awesome video! When I run pyuic5 from my folder with the test.ui file, I was giving me a 'pyuic5' is not recognized as an internal or external command So then I went and found the pyuic5 application, from the scripts folder, copied it, and pasted it into the folder with the test.ui file, and it worked. Is this due to the scripts folder not being on PATH? I still don't really understand how to add folders to path~ thank you!!
look i had this probleme but there's a way to solv it Suppose you have saved your file from Qt Designer as dialog.ui. Then you can create another file, say main.py, with the following contents: from PyQt5 import uic from PyQt5.QtWidgets import QApplication Form, Window = uic.loadUiType("dialog.ui") app = QApplication([]) window = Window() form = Form() form.setupUi(window) window.show() app.exec_() it actualy worked you can try it
first of all Type this code pip install pyqt5-tools and go to this directory > C:\Users\User_name\AppData\Local\Programs\Python\Python38-32\Scripts\pyqt5designer.exe;
I got this error message when attempting to use the pyuic5 command in PowerShell on Windows 10: "pyuic5 : The term 'pyuic5' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again." Thanks to someone's answer on Stack Overflow, I found this command worked for me: python -m PyQt5.uic.pyuic -x -o You can create a .bat file to be able to run pyuic5 as a command in Run, Command Prompt or PowerShell or just create an alias if you're using Linux (including the Windows Subsystem for Linux). I'm pretty sure you can create aliases for PowerShell, too. Instructions for those things are readily available with a quick Google search. Short of that, hopefully the above command will keep you moving for now.
Location of the DESIGNER application for ppl using the latest Python Version in April 2023 ----------------------------> C:\Python\Python310\Lib\site-packages\qt5_applications\Qt\bin
Hello Tim! Do you know how i can insert a "next" and "back" Button which results in refreshing the window with other widgets? And thanks for your tutorials, they are very usefull.
Using python 3.9 I found the designer.exe in site-packages -> qt5_applications -> Qt -> bin👍
thanks dude
thanks ^^
Thank you very much
I was really wasting time trying multiple things
This really saved my time
thnx
Thanks man
I've been searching for how to make my Designer work for a month: googling weird advices, reading overcomplicated articles, digging into documentation... And you has solved my problem in a half an hour. Thanks!!!
Using Python 3.10.4, I found that PyQt5-tools had an error when installing. PyQt5 was fine. Nothing seemed to resolve this until I removed Python and installed 3.9.10 which allowed me to install both PyQt5 and PyQt5-tools. The Designer and pyuic5 both worked perfectly.
Great tutorial! Thank you Tim.
I'm facing the same issue with the same edition 3.10.4, downgrading to 3.9.10 thnx
Thank you! You're an absolute lifesaver
@@YacineZerimi that was so helpful
@@deiaabdullah2008 I've lost 40 minutes on this problem while watching first video in the series... Thank you a lot for posting this.
P.S. 3.9.10 isn't available any more but it works on 3.9.13 which is the last version of 3.9
That's because PyQt works only with Python 3.9 and lower
Initially I couldn't find pyqt5-tools inside scripts. Using pycharm with virtual environment made using virtualenv, python version 3.10.5. pyqt5-tools didn't get installed in my system for some reason. So, "pip install PyQt5Designer" within the same working directory as my virtual environment worked for me. I can now use designer.exe. As always, I'm grateful to tim for his clear explainations and free tutorials. God bless you brother, keep up the good work. You're definitely making this world a better place.
Same issue here at working with virtual environment at Python3.8
Just install PyQt5Designer itsself!👍
Definitely my new favorite channel that I found.... I'm going to go through your pygame tutorial series soon
Glad to hear that!
Just started a python project that needed a GUI - having never done this much in python (I've done the odd py project and used circuitpython a fair bit but not as complex as my current project) -- this video playlist has been a godsend! Thank you so much for this pyqt5 series playlist / tutorial :)
Hey Tom, I recently started following your tutorial videos on PyQt5. Let me tell you: Thanks so much for the GREAT work. By far, you are the best! Keep it going.
Just open up your console and type in "designer" after the pip installs
Hero
@@luiscuenta6789 LoL thanks
i love u , u save me
you're the best!
thanks bro!
This is the tutorial I've been waiting for - in particular 9:24
Earned my subscribe bro. I'm a big ole Windows nerd. I use hotkeys for everything, I know all of the little tricks, I customize it to hell. In short, I use Windows very efficiently.... but man, I never knew you could open a cmd prompt by typing cmd in the address bar... You added another tool to my tool belt.... Oh, and you're also very smart, you teach in an effective way, and third compliment. Thanks.
This helped me a lot to get started, however I learned later that this is not the best way to program a more complicated program, as each time you edit the GUI, you rebuild the code, and have to code everything again (or just copy and paste). I found much more efficient to create a main program that loads the .ui file that's generated. It means you can make any changes to the GUI in QTDesigner and your code will not be affected.
I used the function loadUI for the uic package in PyQt5.
Just in case anyone else gets stuck there! Thanks for the tutorial, it def helped me to get started!
Could you elaborate please ?
8:11 TIL that you can open command prompt in a folder by typing cmd in the address bar
Same. All the years Tim has taught me some incredible things, but this one I doubt even my senior software dev even knows lol. Fucking supreme stuff right there. Man.
These are really well done tutorials. Engaging and easy to understand. Thank you.
Hey Tim. Great tutorials. I just wanted to share an update. For those looking for the Designer.exe file, mine was located in ...Lib/sitepackages/qt5_applications/Qt/bin
I finally got QtDesigner installed on my Samsung Chromebook Plus v2. To start out with, I installed all of QtCreator and Qt5. I ended up with a /usr/bin/designer that didn't work. It wanted something and I couldn't figure out what
I installed QtDesigner for Qt 4, and that one worked. I found out that /usr/bin/designer was a reference.
I changed my .desktop file for the "Qt 4 Designer" (find | grep) to "Qt Designer" and changed its command to "designer -qt=5". This means that the Qt4 version exists, but for whatever reason the new one works because of that.
Maybe this will help someone.
PLEASE KEEP MAKING THESE VIDEOS! PyQt is terribly under-documented.
If u cant find the designer in pyqt5-tools
then Qt then bin folder
If Qt folder is not shown then install "Qt for Python' extension on vscode etc
Thanks so much dude!
@@silverasdf2055 Awesome! Thank you :)
@@neoquam can you please explain how to install it pls?
thx
@@quocbao6046 if u are using vs code then type
pip install (your extension)
thank you so much i'm at #5 of this series and it has been very simple and easy to follow and understand. :)
really needed something like this
Thanks tim, ur series on pyqt has really helped fleshed out some major concepts i wasn't grasping!
Thank you for this video. This will save me some time in designing UI's. Excellent job! 👍
For those who are experiencing this error:
"'pyuic5' is not recognized as an internal or external command,
operable program or batch file. "
This is because your pyuic5.exe is not in PATH. Probably your pyhton script folder is not in PATH, even though you put the option "add to Path" when you were installing Python.
This happened to me, my Python folders are scattered around and I don't even know why. There are two methods of resolving:
01 - (What I did) The folder he shows that has all the files that pip installed, I added to PATH. (So much so that when you install a new library, you will no longer see that warning suggesting to add it to the path as the entire folder is already there.)
There are already tutorials on the internet, it's very simple
02 - Instead of typing "pyuic5", you write the location where "pyuic5.exe" is. It's more complicated, but it also works.
Like if I helped you :)
For those who cannot still solve the problem, use:
python -m PyQt5.uic.pyuic youruifile -o yourpyfile -x
Thank me later :D
@@alessandrorotondo1906 thank you so much man! Really appreciated ⚡
And for those who are using PyQT6: just write "pyuic6"
@@alessandrorotondo1906 Thanks dude! Also works for PyQt6 (replacing PyQt5 for PyQt6)
@@alessandrorotondo1906 thank you so much!!!
Man you are a hero. Very clear explanations. Step by step
You are best teacher that I have never seen : - )
I had to work around pyqt5-tools not installing:
py -m pip install pyqt5-sip
py -m pip install pyqt5
py -m pip install pyqt5designer
FYI for anyone else running into this issue
Thanks you, ill try this
Thank you so much! You don't know how much you've helped me🙌
I was 10 minutes away from sacking Python after hours of trawling far too many annoying tutorials and reviews trying to find a decent GUI RAD to use. Your tutorial on installing and running Pyqt Designer saved the day. Excellent. Thanks. Not a TShirt guy these days but do you have a Patreon page or similar?
vous expliquez tellement bien les choses que j ai fait le raprochement avec plein de sujet merci pour tout et bon courage .
For anyone getting this error when trying to open the deigner: "this application failed to start because no qt platform plugin could be initialized" I solved it by going into the plugins folder and copying a folder called "platforms", I then pasted the folder where the designer.exe is located.
thank you, really helpful. for those who have the same problem: copy the whole folder of 'plugins' under folder pyqt5_tools\Qt, then paste it to folder pyqt5_tools\Qt\bin, replace, done!
god bless you both
Dude, God loves you
Thank you very much! :D
God loves both of you soooooooo much!!!!
Finding the site-package directory is easy. The pip install shows the full path of the /newly/ installed modules, so just read it from the screen as it shows at 0:24 or 0:40
Omg only video on youtube which actually works!!! Thank you so much
Loving this tutorial. Thanks for all the effort you put in the videos, keep going Tim, you are an awesome teacher!
You are the man, from now on, I will subscribe to you and follow every other content that you create for us :D
C:\Python35\python"' is not recognized as an internal or external command,
operable program or batch file.
Hocam bu problemi alıyorum, yardımcı olabilir misiniz?
When you have no idea where you can find your python folder, open cmd/terminal and write "where python". That will show you the install path on your computer.
I FUCKIIING LOVE YOOOOOOOOOUUUUUUU!!!!! THANKS ♥
I concur with Darwin Jimenez. I'm familiar with bash/zsh, but totally forgot most of what I knew of cmd.
this man basically invented python with the amount of tutorials he has
r u dumb
@@coupdetat226 r/whoosh
thanks bro, i was finding a video that would clear my doubts, and you solved all my doubts 👍👍👍👍👍👍👍
I love how short and straight to the point your videos are. Question: where should I start if I'm new to all of this?
New to Python?
Import uic and just load the .ui file... it's much simpler and will save you SO much time when you want to change something
Another way of finding where Python is installed on Windows is just typing the command in CMD: "where python" and it will show the installed locations on your PC!
Tim i love all your videos, always looking forward to your next videos. You are an amazing teacher!
wow, you make the best videos. Thank you again Tim.
thank you for sharing this tutorial, it was perfect for understanding basics of QT
thanks, worst tutorials I've ever seen in my life. keep this up!!!!
You are very welcome :)
Bravo, thanks for the great sharing
Wow this is interesting - it reminds me somewhat of Microsoft Visual Basic 2010 :'D
Good ol' newbie times.
Yes but that is a quite heavy program and this is luckily not something from Microsoft. Or are you saying there was ever a minimalistic utilitarian Microsoft program without a million popups and 2000 dependencies? ,)
When I watch this playlist of videos I am learning PyQt from a cutie
you are my teacher i repect you alot
Awesome tutorial! Your videos are so easy to follow and very helpful!
Thanks for the tutorial.
'pip install ...' shows the installation path in almost every line of its output.
Or use 'pip show ...'
got it running on my raspberry pi 4
sweet!
Every thing worked thank you so much😍💪
@9:06 , i am unable to convert the .UI file to .py file.
Cmd is showing errors.
Please help me out.
same
@@michelletay9664 did you find yourself the solution
bro ur videos r insane
Im have {ERROR} in execute this :
>pyuic5 [ENTER]
'pyuic5' is not recognized as an internal or external command,
operable program or batch file.
Same issue here
yes same here
same issue
Go to your Python Scripts folder and type in cmd "pip install pyqt5-tools"
Thanks for the videos, Tim.
Thank you, great tuto. Just one thing, instead of explaining, how to search for hours where is python.exe on your computer, just open the console and type "where python" , that's it!
Who had their ear drums busted and about shat their pants when an obnoxious ad played
Designer is automatically installed with library? I mean... I simply love that tutorial!
Thank you very much. That's all I needed to get started :)
As of writing this: not compatible with python 3.10... Save yourself a lot of headache and use 3.9
Thanks for the tutorials Tim!
I will tell you what sir, you earned a like subscribe, and turn on notification bell. You are a great teacher!
Thank you for your video-tutorial! I'm just a newbie in programming and afraid all of these codes because I'm an digital artist, not programmer x) But your video really understandable for me! Thank you! ^^
thanks Tim, you are great!
Hello Tim
Thank you so much !
Kiss from France
If designer.exe comes up with an error try this:
Go to => Python38>lib>site-packages>PyQt5>Qt>plugins
In plugins copy platform folder
After that go to Python38>lib>site-packages>PyQt5_tools>Qt>bin
paste folder here . Do copy and replace.
thank you very much
The designer is running but when I'm trying to run the converted .py file it throws the same error. Any idea?
Quick way to find your pyqt5-tools install location is to run the install command again. It'll state the package is already installed and provide the file path location!
you are really wonderful expert magician thaaankss
First one. Was waiting so badly
I want more video. Waiting ...
Please teach all think what you have...
Thanks,for your video
I instaled the pyqt5 tools by cmd but there is no qt designer in the installation folder
Your videos are the best
Dammit tech with tim you always save my butt
if didn't find designer.exe, search designer on C: then right click to first result, after that click open file location. it worked for me
Well explained,I love your videos...
thank you very match from Russia
I recommend PySide (now 6, for Qt6), it is very alike PyQt, but more up to date, and based on LGPL license - you don't need to publish source for your commercial code... BTW, Qt Designer comes as part of PySide, with no additional library to install.
Works on my mac. Thank you I cannot wait to give my nice little gui with some functionality (that I made some day ago). *Hours later*: Ahh.. that is done in the signal/slot editor XD. I was thinking what the heck.. loose ends everywhere..
Man, I gotta say something...
*THANK YOU SO FREAKING MUCH!*
I've been struggling for like 2 days, trying to make an stupid button work, you're a life saver!
Btw I was just loading the .ui file by an incorrect way, lol.
0:40 the console tells you where it installed pyqt5-tools. just wanted to comment incase anyone was having trouble finding theirs.
keep it up. qt is awesome. I've used c++ one. but python is awesome too
Thanks for your time, i hace a question for you, How can i add, a QGis map in my gui?
Excelent video! This is what I need! If I signed as a Programmer Master could I get support on how to use PyQt5 to execute c++ programs? Or, support how to use f2py / ctypes?
if you could please i have this problem, could you help me
'pyuic5.bat' is not recognized as an internal or external command,
operable program or batch file.
i am using pycharm
Thank you. That's awesome.
You made my day thanks brother
You are my Hero!
thx for this great tutorial! Really hepled me out
Thanks for the awesome video!
When I run pyuic5 from my folder with the test.ui file, I was giving me a
'pyuic5' is not recognized as an internal or external command
So then I went and found the pyuic5 application, from the scripts folder, copied it, and pasted it into the folder with the test.ui file, and it worked.
Is this due to the scripts folder not being on PATH? I still don't really understand how to add folders to path~
thank you!!
for some reason I do not have pyuic5 in scripts folder either, any solution?
look i had this probleme but there's a way to solv it
Suppose you have saved your file from Qt Designer as dialog.ui. Then you can create another file, say main.py, with the following contents:
from PyQt5 import uic
from PyQt5.QtWidgets import QApplication
Form, Window = uic.loadUiType("dialog.ui")
app = QApplication([])
window = Window()
form = Form()
form.setupUi(window)
window.show()
app.exec_()
it actualy worked you can try it
How do u link the function to the statusbar as he said on 10:39?
Very useful video. Thx.
If you can't find after pip install. You can also try look the location C:\Python39\Lib\site-packages\qt5_applications\Qt\bin
first of all Type this code
pip install pyqt5-tools
and go to this directory >
C:\Users\User_name\AppData\Local\Programs\Python\Python38-32\Scripts\pyqt5designer.exe;
Thanksss Man. Cheers👍👍👍👍
explains it very well
Quality stuff bro
thank you! that part of how to get the example.ui file to a .py file was missing for me in another video
me having 4 python versions and 5 interpreters
But only half of them work correctly xd
@just a user tru
do you know which python version I need to use? i got anaconda for python 3.8 but I can't find the designer file in the pyqt5_tools folder
@@emilkhojayev4645 if you use windows, go to your C drive and search for Designer.exe if that doesn't find it try to install qt and repeat what I did
😂😂😂
I got this error message when attempting to use the pyuic5 command in PowerShell on Windows 10:
"pyuic5 : The term 'pyuic5' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again."
Thanks to someone's answer on Stack Overflow, I found this command worked for me:
python -m PyQt5.uic.pyuic -x -o
You can create a .bat file to be able to run pyuic5 as a command in Run, Command Prompt or PowerShell or just create an alias if you're using Linux (including the Windows Subsystem for Linux). I'm pretty sure you can create aliases for PowerShell, too. Instructions for those things are readily available with a quick Google search. Short of that, hopefully the above command will keep you moving for now.
Location of the DESIGNER application for ppl using the latest Python Version in April 2023 ----------------------------> C:\Python\Python310\Lib\site-packages\qt5_applications\Qt\bin
Hello Tim!
Do you know how i can insert a "next" and "back" Button which results in refreshing the window with other widgets?
And thanks for your tutorials, they are very usefull.
Hi, can we use this program to create zigbee network graph?
This is great lecture