A basic PySide6 and Qt Designer tutorial.

  Рет қаралды 40,833

Jason Codes Qt

Jason Codes Qt

Күн бұрын

In this video I walk you through the basics of PySide6 and Qt Designer. We'll design some simple windows and forms and hook them together.
Qt for Python documentation.
doc.qt.io/qtfo...
Excellent book on Qt for Python (PySide6)
www.amazon.com...

Пікірлер: 82
@vampericknight2692
@vampericknight2692 6 ай бұрын
If you wouldnt mind, Jason, could you provide us with those arguments for the external tools?
@UsfCodes
@UsfCodes Жыл бұрын
can you give me the external tool scrip,ik what to write in the argument and the working dir but not in the program
@josys363
@josys363 Жыл бұрын
To convert a UI file to python the command is, pyside6-uic To open designer the command is pyside6-designer, to convert a RSC to python the command is pyside6-rcc
@joeking5211
@joeking5211 Жыл бұрын
About the 5th or more times thought with your video ( and a few of your others ), that I first spotted about 2 weeks back when I thought that Qt was worth a look. Only thing was I could'nt write a line of python code let alone use or know anything about Qt, and Pycharm was a jumble. Just to say that due to this vid I now have Pycharm running ( almost like yours with all the External tool menus you have including PyInstaller ), and now have an application I wrote in another language a few years ago now cloned as 'proof of concept' to perfection using Pyside6, I want to thank you so much for your smooth precise pace of your videos. My only issues now as you will understand as with any language/IDE in getting to know/understand and decipher the Qt library docs, that is now the biggest issue, but time and practice is the only cure for that. Thank you so much again for your time and patience which without I would'nt have done this, Qdos to you sir, will keep an eye on you video list.
@stevesoto3293
@stevesoto3293 12 күн бұрын
Thank you for the video. Very clear... keep it up!
@JBroadway
@JBroadway Ай бұрын
This is WAYYY better than Tkinter! Thank you so much for the tutorial this will definitely help me get started 👏🏾
@eteichma
@eteichma 9 ай бұрын
BEST.TUTORIAL.EVER! I started getting into Python a month ago. Before that a handcore Java programmer. A very frustrating journey, as I only found snippets of disconnected information on the web and youtube, regarding Python GUI development. I could not find a structured tutorial that gives a clear overview of the various development environments, the libraries and how it all fits together. Until this one. Great job! Thank you for your contribution. 👍
@josys363
@josys363 9 ай бұрын
Believe me they are not easy to find. I went though the same thing about 4 years ago. Now I will say there are some good books on the subject, but tutorial videos are very lacking. If you don't mind me asking why did you get into Python as a Java dev?
@carstenjensen3123
@carstenjensen3123 Жыл бұрын
Amazingly good tutorial. Great project to show the use of QT, very clear explanations and reasoning and a really good tempo. You can easily break it up in smaller chunks and still follow along. Great!
@bluerodeo-h9e
@bluerodeo-h9e 17 күн бұрын
Hey Jason, this is a great tutorial. Thanks a lot. I also want to ask if you could do a tutorial on packaging a python application like this one for different platforms like Windows, Mac. Thanks in advance.
@FailVines
@FailVines 5 ай бұрын
thanks for the tutorial! i have a question. I have tried to look in the documentation about licenses and my doubt is that if I can use qt designer and pyside both with lpgl license
@josys363
@josys363 5 ай бұрын
I'm not totally sure what your question is, but I would direct all questions about Qt licensing to Qt themselves.
@masanmola
@masanmola Жыл бұрын
Great tutorial! I was confused about GUI with Python, and this video helped me a lot❤
@zulucharlie5244
@zulucharlie5244 6 ай бұрын
This is the very best tutorial on PySide6 on the internet. Thank you for making this!
@pdep
@pdep Жыл бұрын
Brilliant. Much appreciated. I would like to see a full [complex] application course on this and would be quite prepared to pay for it. There are no doubt many others of the same mind, so please consider it. Thank you. 👍
@georgebetrian676
@georgebetrian676 5 ай бұрын
Nice start. I don't know anything about PySide6 but your video is a very good introduction. I'm using pycharm too and I appreciate your setup indications. +10
@parthachakraborty6070
@parthachakraborty6070 7 ай бұрын
Sir, I was clueless to move forward with Python in GUI format, but your guidance popped up in right time. Now I can explore further. Thank you so much. The book is also a good guidance for learner. A small Query : If you could show us some light on QT with Python on an IClone 8 (3D animation) environment as well. Thanks again.
@nahueld9326
@nahueld9326 6 ай бұрын
I have problems with qt designer, using W11, when I open the design layout to edit grafically the window, it crashes and closes itself. I've already tried using older versions of qt creator, if anyone knows how to solve it
@breakthecode119
@breakthecode119 4 ай бұрын
Thank you so much, Jason, for this video. I was designing UIs using Python, but this approach is much better and faster. The code organization is excellent. I'm now using external tools, and the workflow is incredibly smooth. Thanks again!
@MartinsJakobsons
@MartinsJakobsons 5 ай бұрын
By the way, when you open Designer, go to Form, then View Python Code, and you won't have to deal with the terminal much.
@vizionthing
@vizionthing 3 ай бұрын
Being able to compile ui files just with a right click converted me to VScode.
@warwickrigby6894
@warwickrigby6894 8 ай бұрын
Once again thank you. Vastly better than the other tutorials.
@josys363
@josys363 8 ай бұрын
Glad I could help.
@raufali4660
@raufali4660 5 ай бұрын
Thank you so much. From the very begining it was clear you are the best!!!
@josys363
@josys363 5 ай бұрын
Well I'm sure far from the best, but I'm glad you liked it.
@jorgeluis4389
@jorgeluis4389 7 ай бұрын
Great tutorial. Not only the basics, but the 'best practices' writing QT apps.
@robertmcdonnell2807
@robertmcdonnell2807 Жыл бұрын
Thank you so much. Exactly what I needed to know, workflow and connecting things up
@asrajan55
@asrajan55 10 күн бұрын
Fantastic video! 5 stars!
@ionarn1532
@ionarn1532 Жыл бұрын
Hiho, this is the best Qt related tutorial for Python I've seen so far - Thank you! I have a question though: You've put your Icons_rc,py in the folder "Sample_Application". I tried the same, but then python spits out the error: "ModuleNotFoundError: No module named 'Icons_rc'". When I put the "Icons_rc,py" in the same folder as the logic file, for example "add_person,py", then it works. But that means I have to duplicate the "Icons_rc,py" files each time I want to create anything new with the Qt Designer. I guess with a larger project and bigger and more Icons this would quickly become very bloated and difficult to manage. Do you have an idea of what I have to change to make it work as shown in your tutorial? btw: I replaced the "." in the file naming with a "," - otherwise KZbin would immediately delete my comment.
@digiital
@digiital Жыл бұрын
I was having the same issue. resolved it by creating in the root dir a file named '.env' with the following text. PYTHONPATH=./..;./../icons; So I had Parent -----App1 ------ui ----icons ----App2 and so on.
@sigmadews5403
@sigmadews5403 10 ай бұрын
I had same issue. I had to add icons folder to python path and everything worked. Example command: export PYTHONPATH="${PYTHONPATH}:/home/user/Projects/your-project/icons" # icons is the name of the icons folder
@johnferngrove4083
@johnferngrove4083 Ай бұрын
That was amazing thank you. Getting myself set up to follow your workflow taught me as much about PyCharm as the coding taught me about Qt. Big thanks. Oh, and nice pacing. Step by step and no sudden jumps.
@vampericknight2692
@vampericknight2692 6 ай бұрын
I would worship the ground you walk on if I could. I have been trying to understand signals ( especially custom ones ) for almost a month now. Please please please, if you could find the time Jason, teach us more! Your method of teaching and showing possible mistakes is godlike.
@josys363
@josys363 6 ай бұрын
I have a video on my channel on signals and slots.
@vampericknight2692
@vampericknight2692 6 ай бұрын
yes thank you I found it :D been crawling over your channel content ever since I watched this one@@josys363
@pailsOfGrease
@pailsOfGrease Жыл бұрын
⭐⭐⭐⭐⭐ Outstanding tutorial!
@primescope6874
@primescope6874 5 ай бұрын
Thanks for producing this video demonstration. I learned how to organize my code and a 'workflow'. I'll be checking you other videos because this one was so good. Thankyou.
@ChinenyeAustine-h6q
@ChinenyeAustine-h6q 8 ай бұрын
A well delivered tutorial... No better way to start GUI development in python.
@azlanabuhassan4447
@azlanabuhassan4447 9 ай бұрын
Sorry can you please help me? How do you change the colour of the titlebar?
@EmmanuelRojasAngeles-tg7ss
@EmmanuelRojasAngeles-tg7ss 9 ай бұрын
HOw come your QT designer has QT Icons on in its tool bar and if so How can I add those Myself? If you dont mind explaining please
@josys363
@josys363 9 ай бұрын
For me they have always been there by default.
@josys363
@josys363 9 ай бұрын
I spoke too soon! Apparently in the newest versions of Qt they have removed them from the toolbar, but you can add them back in again by going to View / Toolbar / Edit Toolbar.
@EmmanuelRojasAngeles-tg7ss
@EmmanuelRojasAngeles-tg7ss 9 ай бұрын
So Sorry to keep on asking questions.. Ive followed your steps for the QT shortcuts and they do not work any suggestions I am using the most recent Pycharm
@eto895
@eto895 Жыл бұрын
thanks .. appreciate it. Need more tutorial to design modern gui.
@davidwende
@davidwende 9 ай бұрын
Thanks for an extremely helpful tutorial
@Firithfenion
@Firithfenion Жыл бұрын
Great tutorial! Thanks!
@josys363
@josys363 Жыл бұрын
You're welcome!
@MWILSON-g5j
@MWILSON-g5j 6 ай бұрын
Thank you for taking the time to do this.
@cornevanzyl5880
@cornevanzyl5880 9 ай бұрын
If you execute another eventloop how do you pass information from one window to another?
@josys363
@josys363 9 ай бұрын
I don't know why you would start another event loop, but to pass data from one window to another you use signals and slots. I have a whole video on them.
@digiital
@digiital Жыл бұрын
GREAT Tutorial.. Sometimes I need one of those Lightbulb videos to fully understand a new python tool and this did it. I have been so far this week been converting my alittle scripts/apps that used SimpleGUI . Pyside6 is sooooooooooooooo easy so far to understand. Request! One thing I am struggling with is more complex front ends. How about a video on front end where you have several labels/inputs/buttons
@josys363
@josys363 Жыл бұрын
All you would need to do is add on to what is already here. Just add more labels, buttons, and then connect them to slot methods.
@marsma18
@marsma18 Жыл бұрын
I still have a issue with bigger app and one main window which would cose main class huge. For example pycharm window UI. Is it possible to extract every menu to other class and other things on screen to other class and then embed everything in one supervisor class with just functionality of show and hide different thing and keep them organised. BTW. Super usefull video with excellent explanation. Thanks!
@josys363
@josys363 Жыл бұрын
The amount of effort involved in what you want to do would make it not worth it. A simple rule to follow is if you are creating a new main window, a new dialog, or a new QWidget, then that is a new class, and all code would go in that class. Keep things simple.
@shirochan4769
@shirochan4769 11 ай бұрын
If i use pyside6 with qtcreator, does it still LGPL or GPL?
@josys363
@josys363 11 ай бұрын
I believe LGPL
@balabalabalabalabala
@balabalabalabalabala Жыл бұрын
Good job!
@josys363
@josys363 Жыл бұрын
Thanks!
@alvinkangiri7397
@alvinkangiri7397 2 ай бұрын
what ide are you using ??
@josys363
@josys363 2 ай бұрын
@@alvinkangiri7397 PyCharm Professional
@alvinkangiri7397
@alvinkangiri7397 2 ай бұрын
@@josys363 Thanks 👍👍👍👍
@YKrsm
@YKrsm Ай бұрын
​@@josys363Hello Jason! I discovered your channel very late, but I'm glad I did. I have a question. I am just learning programming. I want to write a program to make my work easier at work. This program will enter the website we are authorized to with our username and password, save and process data in PDF and Excel format, and then turn them into a word report with a composition. All this will be done by the user himself with gui. I'm talking about thousands of lines of data. Is python and pyside6 suitable for this job? I looked at some projects made with pyside6 and they are very slow. In general, would I have the same problem with such a complex project? What is your professional opinion on this?
@donaldmoran374
@donaldmoran374 Жыл бұрын
Excellent tutorial!
@TimLauridsen
@TimLauridsen Жыл бұрын
great tutorial
@mohamedsatti3038
@mohamedsatti3038 Жыл бұрын
Love ❤❤
@brianjones5193
@brianjones5193 Жыл бұрын
Excellent video, although I've coded a couple of small PyQT apps I have learned a lot from this. Love the idea of QT tools for uic etc and have copied that. Love the idea of the iqi shortcut (and I'd do one for the Main with Application loop too amongst other things) but not sure where to set this up in Pycharm - I assume it's a macro?
@josys363
@josys363 Жыл бұрын
You define the custom actions under Setting, Tools, and then External tools.
@brianjones5193
@brianjones5193 Жыл бұрын
@@josys363 Thanks Jason - yes I understood that bit and had no problem replicating your very useful QT external tools (so much easier than opening a Pycharm Terminal to invoke pyside6-uic for example). The bit I couldn't figure out was how you managed to 'alias' "iqi" to provide all 3 QT import lines. I can imagine such 'aliases' might be very useful for all sorts of common use code snippets (e.g. if __name__ == "__main__" ... "app.exec()" for a basic QT exec template).
@josys363
@josys363 Жыл бұрын
Under settings look for Live Templates. You can add new templates under the Python section.
@visasimbu
@visasimbu Жыл бұрын
I am confused on selecting pyQt6 or Pyside6. I am new and search engine gives me diff on license. I plan to release my s/w as open source without sharing code. which one suffice ?
@josys363
@josys363 Жыл бұрын
Open source means you are sharing code. If you are not sharing code it's closed source. If you use PySide you only have to purchase a license from one place. If you go with PyQt the situation is different.
@visasimbu
@visasimbu Жыл бұрын
@@josys363 Jason. Thanks for reply. I am releasing software as commercial purpose without releasing code. Which is preferred. From above reply I understood that pySide is not free to use for distribution. Please suggest which is recommended
@josys363
@josys363 Жыл бұрын
I cannot suggest which license you choose. The advantage that PySide has is that you only have to purchase a license from one place, which is Qt.
@visasimbu
@visasimbu Жыл бұрын
@@josys363 thanks Jason for your reply. Between content was too good. I have enjoyed and learnt lot from this video.
@TheAmazingpower
@TheAmazingpower Жыл бұрын
This was quite a good and informative video. It covered a good ground of basic to intermediate things, thanks for that. Even though I did use PyQt in my Open Source Project (CocktailBerry) for some years now, there are a few things which I might use now because did not know them up till now!
@ianlevitt6920
@ianlevitt6920 Жыл бұрын
Thank you for such a fully explained tutorial.
@josys363
@josys363 Жыл бұрын
Glad it was helpful!
@SneakoV2
@SneakoV2 Жыл бұрын
is there a difference in features between QT Creator and Designer?
@josys363
@josys363 Жыл бұрын
Tons yes. Designer is used to create interfaces, Creator is a full IDE. Normally used for C++ development.
@abolfazlshahi2916
@abolfazlshahi2916 Жыл бұрын
It was one the best tutorials I've seen in my life thank u so much for this course 🤍
@josys363
@josys363 Жыл бұрын
Glad it was helpful!
Using Qt Designer files in PySide6 or PyQt6
27:28
Jason Codes Qt
Рет қаралды 10 М.
Don't use Tkinter!
39:53
Jason Codes Qt
Рет қаралды 11 М.
Поветкин заставил себя уважать!
01:00
МИНУС БАЛЛ
Рет қаралды 6 МЛН
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 22 МЛН
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 4,3 МЛН
OYUNCAK MİKROFON İLE TRAFİK LAMBASINI DEĞİŞTİRDİ 😱
00:17
Melih Taşçı
Рет қаралды 12 МЛН
Working with signals and slots in PySide or PyQt.
29:02
Jason Codes Qt
Рет қаралды 5 М.
Error handling and logging in Python.
24:22
Jason Codes Qt
Рет қаралды 1,1 М.
PyQt vs. PySide: Differences, Similarities, and Licenses [2022]
6:58
Code First with Hala
Рет қаралды 51 М.
Python + SQLite + QT6
36:04
Andrey Mokhov
Рет қаралды 11 М.
Working With Qt Designer's UI Files And PyQt
19:17
DistroTube
Рет қаралды 16 М.
How to use Qt Layouts
19:18
Velcode
Рет қаралды 94 М.
Let's Recreate the Tesla UI in Qt and QML PART 1!
51:16
MontyTheSoftwareEngineer
Рет қаралды 73 М.
Поветкин заставил себя уважать!
01:00
МИНУС БАЛЛ
Рет қаралды 6 МЛН