Creating Your Own Qt Applications...It's Easy!

  Рет қаралды 41,586

DistroTube

DistroTube

Күн бұрын

Пікірлер: 90
@jaxxarmstrong
@jaxxarmstrong Жыл бұрын
Now THIS is very useful information for users who would like to dip their toes into the world of coding, but has been seemingly overwhelmed. Please keep 'em coming DT.
@essetee
@essetee Жыл бұрын
This is not useful. That's the worst possible example of how to use designer with pyqt !
@jimhopper5868
@jimhopper5868 Жыл бұрын
​@@essetee It's a starting point. The usage may be wrong or industry-standards may be different but made me encouraged.
@incremental_failure
@incremental_failure Жыл бұрын
You should never edit the py files generated with pyuic, it's always expressly warned about both in PyQt and PySide. Always inherit/compose in a separate file. Qt itself is fantastic. Basic applications are easy but the different models and mappings for data can get quite complex. It's extremely powerful, more so than any other native frontend builder.
@robertfletcher8964
@robertfletcher8964 11 ай бұрын
probably best not to use pyuic at all.
@incremental_failure
@incremental_failure 11 ай бұрын
@@robertfletcher8964 There's a performance penalty if you don't. Best practice is to do everything in Designer as much as possible, not modify the pyuic generated file and do additional things in your app file.
@norbydroid3430
@norbydroid3430 Жыл бұрын
This isn’t too different that how things were done back many years ago in Visual Basic and other languages with the difference being that qt designer seems to be just a form designer without having the language included. Here the language is separate. Personaly I have never gotten into visual languages, but those who have should feel right at home with the designer. Thanks dt for showing this.
@muhtasimahmedtausif2090
@muhtasimahmedtausif2090 Жыл бұрын
Yes bro we need this kind of video it will help us to contribute in linux
@xeiAiex
@xeiAiex Жыл бұрын
Great... here come more "distros" now with a welcome screen lol
@splitthh
@splitthh Жыл бұрын
Hey DT, thanks for this video. Please do more of this kind of stuff. It is great and you are a very good teacher. 🙂
@mk_aquila
@mk_aquila Жыл бұрын
I've been literally looking for a video like this yesterday and this comes up now on my feed, couldn't ask for a better timing!
@atimagalleries
@atimagalleries Жыл бұрын
I love PyQt, its great!
@fcolecumberri
@fcolecumberri Жыл бұрын
Couple of things. First, 0:28 When you create the main window, use the "Main Window" not the "Dialog". Second, don't use PyQt, Use Pyside, Pyside is the official Qt python implementation (There is nothing wrong with PyQt perse, it's just that its license is not the same as Qt and with licenses, the less you mix the better). Third, don't edit the file generated by pyuic.
@besnikrrustemi
@besnikrrustemi Жыл бұрын
Thanks DT, perfect timing for this, i am learning Python and i am set with Qtile, it helped me improve my setup a lot, this type of application is just what i needed to further improve. DTOS is gradually becoming a unique non-iso distribution
@Ax4400
@Ax4400 Жыл бұрын
Awsome👏👏👏👏 Thank you DT Great video only second to Bash Commands! OMG you made me so happy! Please make more of these videos. Wish I were wealthy I would become a Patreon of such a project
@code8986
@code8986 Жыл бұрын
I would definitely be interested in more programming videos, especially if they are in Rust or C#.
@ozmosyd
@ozmosyd Жыл бұрын
Excellent jump start into Qt chap. Suddenly seems less daunting. thank you
@slendi9623
@slendi9623 Жыл бұрын
You can just drop all your widgets at once, selecte them, and use the buttons at the top to put them in a layout. If you have nothing selected then those buttons set the root layout iirc
@punklejunk
@punklejunk Жыл бұрын
This is giving major Visual Basic vibes, even more than Gambas, but more modern. Totally takes me back to my VB4 /VB5 days-- this is awesome! Now my family is wondering why I'm grunting like those monkeys in Space Odyssey 2001, but they're not geeks and just won't understand. LoL
@SB-qm5wg
@SB-qm5wg Жыл бұрын
I remember that. And an "Access" backend lol.
@muddyexport5639
@muddyexport5639 Жыл бұрын
Thanks! Good job and info! Appreciate the work.
@Ex_impius
@Ex_impius Жыл бұрын
Put another box inside the group box and then edit the buttons to make them all change.
@sirrobertdowneysenior8080
@sirrobertdowneysenior8080 Жыл бұрын
On the point of QT, neovim qt which comes by default in windows while installing neovim takes really looooooooooooooooooooooo opening up dry start is longer than Emacs.
@notyoutube8128
@notyoutube8128 Жыл бұрын
My python scripts never runs, they just crash on start :(
@jakjustanotherkomment930
@jakjustanotherkomment930 Жыл бұрын
Gambas and Lazarus are also cool IDEs to play with!
@theintjengineer
@theintjengineer Жыл бұрын
I stopped at the Python part. I thought (and hoped) you'd do C++. Nice choice of topic though. These GUI Projects are always the best✨ Cheers
@itsabhiyan
@itsabhiyan Жыл бұрын
DT: builds a qt application Also DT: "I am not a programmer"
@osamaanees8406
@osamaanees8406 Жыл бұрын
This helped me in my University project. Our Lab Professor told us to make a graphical app which can compute people's Grades. We were given a junior class's actual result which was a .csv file. Whats funny is the university never taught us how to build graphical apps. Thanks to Qt designer and pyQt I was able to complete it. There is just one thing that I could not figure out. How can I make the app dynamic or responsive like in websites. Different resolutions made the app look very small or very big.
@EUXINOS
@EUXINOS Жыл бұрын
use multi threading, that way the computation happens in a separate thread and the UI remains responsive
@EstebanLopez-bn9pd
@EstebanLopez-bn9pd 8 ай бұрын
Are going to explore QML at some point? Because that would be awesome!
@benjy288
@benjy288 Жыл бұрын
I much prefer qt over gtk, gtk is basically run by the gnome project, and we all know what those guys are like, now if only someone would port firefox or librewolf to qt
@benjy288
@benjy288 Жыл бұрын
@@d4r1us_drk Because gtk basically serves the needs of gnome now, I believe budgie is moving away from gtk because gtk4 did not live up to the expectations of the developers due to the continued focus only on the needs of the gnome project, the developers of which do not listen to the opinions of alternative projects and do not want to take their needs into account. Gnome used to be a good desktop until they decided to turn it into a tablet interface, they also dumbed it down by removed a bunch of customization options, yet at the same time making customization possible by third party extensions that break whenever they release a new version. Also the gnome project is run by a bunch of woke racists, who for some reason think there needs to be more non white people in software, more woman in software, more gay or trans people in software, which is why they created the program outreachy, where they give grants to people that I mentioned above, so if you're a white man who wants to get into software don't bother applying for a grant at outreachy because you're the wrong skin color and the wrong gender, and that makes you privileged.
@danieleg8758
@danieleg8758 Жыл бұрын
Damn... another cool and interesting video from DT. I definitely try this one. I can see myself very busy in the next few weeks... I think I start to hate you DT :-)
@CaribouDataScience
@CaribouDataScience Жыл бұрын
Say how about interviewing the creater of Slackware?
@anon_y_mousse
@anon_y_mousse Жыл бұрын
As a longtime Slackware user, I'm definitely in favor of that.
@MadhurAhuja25
@MadhurAhuja25 Жыл бұрын
This reminded me of Microsoft Visual Basic
@guilherme5094
@guilherme5094 Жыл бұрын
👍That's exactly what I was going to say!
@fir3w4lk3r
@fir3w4lk3r Жыл бұрын
Can you generate binary files this way? Like with plain QT?
@slendi9623
@slendi9623 Жыл бұрын
no
@fcolecumberri
@fcolecumberri Жыл бұрын
yes, but you need to do it on C++.
@mgord9518
@mgord9518 21 күн бұрын
Yes, but you'll have to program your logic in C++. Or any language of your choice (that supports C ABI) if you create a wrapper. I use Zig with a light C++ shim
@gary3548
@gary3548 6 ай бұрын
Hi there, It would be helpful if you linked to the sites where you could download these tools in your description
@ernstmayer3868
@ernstmayer3868 Жыл бұрын
What's happening if you need to do changes in the qt layout and already had adjusted code in the py file? There should be a way to preserve the code alterations, shouldn't it?
@Sam-n6v1s
@Sam-n6v1s Жыл бұрын
this is rlly cool
@ikestoddard2458
@ikestoddard2458 Жыл бұрын
Is there a doc with a good explanation of the design approach?
@anon_y_mousse
@anon_y_mousse Жыл бұрын
You should do one for C++ using kdevelop. Would be quite useful for anyone wanting to get into games development. Also, is it supposed to be pronounced "cute" or "cutie", because I've always treated it like an acronym and said Q.T. as "cutie". Is that wrong?
@MadhurAhuja25
@MadhurAhuja25 Жыл бұрын
Thats great. Can you do similar video for GTK app ?
@oundhakar
@oundhakar Жыл бұрын
+1 to this.
@Dennis-Earl-Smiley
@Dennis-Earl-Smiley Жыл бұрын
+7 to that. I decided theres 6 more of me.
@christer8964
@christer8964 Жыл бұрын
Yes, more of this. Have you checked out Ragnar WM? A new tiled WM, based on example code. Always nice with programming package you can quickly reach impressive results.
@guilherme5094
@guilherme5094 Жыл бұрын
👍Thanks.
@mufeedco
@mufeedco Жыл бұрын
Thank you.
@karolsott2452
@karolsott2452 Жыл бұрын
What QT Designer version is this? I cannot find anywhere on the internet information how you can save projects as *.ui. I have QT 4.3.1 and only save option is to *.ui.qml...
@Tyler-Kearney
@Tyler-Kearney Жыл бұрын
Would this be similar if I wanted to use a different language such as JavaScript, Ruby, or C? I know the default language for Qt if you use their main tool, QtCreator (different from designer) is C++, but I’m not a fan of C++.
@Dampferfrosch
@Dampferfrosch Жыл бұрын
thanks
@SB-qm5wg
@SB-qm5wg Жыл бұрын
Very cool!
@s1nistr433
@s1nistr433 Жыл бұрын
I tried Qt in the past. It's functionally really good but the problem is the forced LGPL dual licensing and how vague they are with it. You either release your program for free, pay a massive license fee that no solo dev/small team will be able to pay, or do some weird dynamically linking stuff that they aren't specific about at all. I like Qt but understand why companies usually just use Electron
@yellingintothewind
@yellingintothewind Жыл бұрын
The licensing is not a major issue. Much of what you use on Linux is (L)GPL anyway. Anything you write _using_ qt, so long as it is not statically linked to qt, is fine. It can even be statically linked, and under a restrictive license, so long as you make object code or source code available so the recepient can swap in their own version of the qt portion. This is the same as any other LGPL project, and not an issue at all. What the alternate qt license allows is companies to ship _modified qt_ libraries, where they apply some secret patches to qt itself, without publishing those patches anywhere. Given the flexibility and feature state of qt, this is basically not _required_ for anything, but it does let you ship a single-file-executable that embeds qt, without needing to worry about library versions or if the end user has qt installed. For anyone actually supporting linux, instead of just looking for a toolkit that can run anywhere, requiring the user to have qt installed from their distro is not a significant issue. Just list (py)qt (or pyside) in your package's deps, and move on. Or embed the qt .so files in your appimage and move on.
@anon_y_mousse
@anon_y_mousse Жыл бұрын
@@yellingintothewind Agreed. While I hate the GPL and refuse to use it for my own projects, it's not a huge issue to use libraries under it. Also, the fact that they have two licenses actually makes it a good thing for a business because they can basically pay to avoid the GPL altogether.
@yellingintothewind
@yellingintothewind Жыл бұрын
@@anon_y_mousse Exactly. For a project like qt, the GPL is a good choice specifically because it is mildly annoying to use for a few things. If you fall into those few things, then you'll be happy to pay them to just forget about it.
@mgord9518
@mgord9518 21 күн бұрын
They use Electron because the average tech company is full of soyboy web devs that refuse to use anything but JS. Qt actually sees a lot of use on kiosks and whatnot
@DHealey
@DHealey Жыл бұрын
Reminds me of Visual Basic 6
@BelallGamall
@BelallGamall Жыл бұрын
thank youuuuuuu
@minivini-ps5xc
@minivini-ps5xc 5 ай бұрын
is the code available somewhere please?
@burningpho3nix
@burningpho3nix Жыл бұрын
Can you make one with C?
@anon_y_mousse
@anon_y_mousse Жыл бұрын
Using GTK instead of Qt? That would be good too.
@mgord9518
@mgord9518 21 күн бұрын
You can't use Qt from C without bindings
@stephenscopatz6675
@stephenscopatz6675 Жыл бұрын
I am following all this, I get my .ui converted to .py; I go to run it but all I get is a command line message that there were no errors. I did not get my ui showing up anywhere on my screen. I am sure I missing something simple.
@stephenscopatz6675
@stephenscopatz6675 Жыл бұрын
I did import sys and subprocess as shown in the video.
@RyanJensenEE
@RyanJensenEE Жыл бұрын
How do qt applications scale with DPI settings?
@mgord9518
@mgord9518 21 күн бұрын
They scale perfectly
@chenalice-co3mh
@chenalice-co3mh Жыл бұрын
how can we contact you for cooperation?
@dod_ytent9984
@dod_ytent9984 Жыл бұрын
The way we are moving ahead with the videos, DTOS doesn't seem very fictional. You may try to do it keeping the default Arch repos, just saying out loud what all your viewers are thinking. ❤
@tailsorange2872
@tailsorange2872 Жыл бұрын
Hey DT, why are you such a Qutty?!?
@adrianmares269
@adrianmares269 Жыл бұрын
I was hoping to get a tutorial on Qt 🎉 thanks
@mzakyr342
@mzakyr342 Жыл бұрын
lets gooo
@parthparmar9798
@parthparmar9798 Жыл бұрын
This feels like Visual basic used for designing Windows apps when bill gates not even born
@bigmikeobama5314
@bigmikeobama5314 Жыл бұрын
Hey DT
@fleshwound8875
@fleshwound8875 Жыл бұрын
Its always been easy just dont be a baby lol ;P
@essetee
@essetee Жыл бұрын
It's the wrong way to use Designer. And for your icons you need to create a resource file. You put all your buttons wherever you want. Choose 1 button. Hold down the ctrl key and choose other buttons. Then click in the top bar on the layout you want. Do this for all your items. If you choose your groupbox, choose button 1 and 2 and choose H layout. Then the second row. Then click in your groupbox and choose V layout. That way if you change the size of your window, all with follow. Never change the pyuic file ! You have to do the layout in Designer. This is a very bad video to show how to use Designer and PyQt. You create a dialog and you remove the buttons. Choose the right one from the create menu!
@watashimax
@watashimax Жыл бұрын
you are qute
@DoeJohn-gx1qb
@DoeJohn-gx1qb Жыл бұрын
Distrotube race was black yesterday..... But today he is white what happend?
@spicynoodle7419
@spicynoodle7419 Жыл бұрын
Deepfake?
@DoeJohn-gx1qb
@DoeJohn-gx1qb Жыл бұрын
He was black engineer
@s1nistr433
@s1nistr433 Жыл бұрын
He faced too much legal trouble
@-Engineering01-
@-Engineering01- Жыл бұрын
No need for Qt etc. Now we have web technologies like electron, making a UI with CSS is so much easy thanks to tailwind and bootstrap, if performance matters then you have web assembly.
@mckendrick7672
@mckendrick7672 Жыл бұрын
Yikes
@mgord9518
@mgord9518 21 күн бұрын
Ragebait
Make Beautiful Desktop Applications in C++
25:51
The Cherno
Рет қаралды 632 М.
Working With Qt Designer's UI Files And PyQt
19:17
DistroTube
Рет қаралды 17 М.
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 1,8 МЛН
Never Design Again: CANVA AI Just Dropped A Huge Update!
17:40
Free Software Is Under Attack! (Will You Help Defend It?)
32:02
DistroTube
Рет қаралды 44 М.
Gtk vs Qt | GUI tool kits | Which is Better?
7:06
Open Source Tonight
Рет қаралды 38 М.
Писать UI для Android на QT
1:43:29
Android Broadcast. Все об Андроид разработке
Рет қаралды 19 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,6 МЛН
Let's Recreate the Tesla UI in Qt and QML PART 1!
51:16
MontyTheSoftwareEngineer
Рет қаралды 77 М.
Managing AppImages Is Easy With "AM" Application Manager
12:31
DistroTube
Рет қаралды 17 М.
Harvard University 🎓 Entrance Exam | Can you solve ?
5:24
Chidex Online Math Class
Рет қаралды 484
Vim Tips And Tricks Some Of My Favorite Vim Commands
17:05
DistroTube
Рет қаралды 68 М.