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

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024

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

  • @jaxxarmstrong
    @jaxxarmstrong Год назад +59

    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 Год назад +3

      ​@@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 Год назад +61

    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 Год назад +1

      probably best not to use pyuic at all.

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

      @@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 Год назад +7

    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.

  • @Megalodonix
    @Megalodonix Год назад +2

    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!

  • @muhtasimahmedtausif2090
    @muhtasimahmedtausif2090 Год назад +10

    Yes bro we need this kind of video it will help us to contribute in linux

    • @xeiAiex
      @xeiAiex Год назад +5

      Great... here come more "distros" now with a welcome screen lol

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

    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.

  • @splitthh
    @splitthh Год назад +4

    Hey DT, thanks for this video. Please do more of this kind of stuff. It is great and you are a very good teacher. 🙂

  • @atimagalleries
    @atimagalleries Год назад +8

    I love PyQt, its great!

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

    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

  • @code8986
    @code8986 Год назад +4

    I would definitely be interested in more programming videos, especially if they are in Rust or C#.

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

    Excellent jump start into Qt chap. Suddenly seems less daunting. thank you

  • @slendi9623
    @slendi9623 Год назад +5

    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

  • @Ax4400
    @Ax4400 Год назад +2

    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

  • @punklejunk
    @punklejunk Год назад +6

    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 Год назад +1

      I remember that. And an "Access" backend lol.

  • @Ex_impius
    @Ex_impius Год назад +2

    Put another box inside the group box and then edit the buttons to make them all change.

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

    Thanks! Good job and info! Appreciate the work.

  • @itsabhiyan
    @itsabhiyan Год назад +4

    DT: builds a qt application
    Also DT: "I am not a programmer"

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

    My python scripts never runs, they just crash on start :(

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

    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?

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

    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.

  • @osamaanees8406
    @osamaanees8406 Год назад +4

    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 Год назад +3

      use multi threading, that way the computation happens in a separate thread and the UI remains responsive

  • @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...

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

    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

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

    Gambas and Lazarus are also cool IDEs to play with!

  • @fir3w4lk3r
    @fir3w4lk3r Год назад +2

    Can you generate binary files this way? Like with plain QT?

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

      no

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

      yes, but you need to do it on C++.

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

      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

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

    Is there a doc with a good explanation of the design approach?

  • @EstebanLopez-bn9pd
    @EstebanLopez-bn9pd 9 месяцев назад

    Are going to explore QML at some point? Because that would be awesome!

  • @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 Год назад +1

    Say how about interviewing the creater of Slackware?

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

      As a longtime Slackware user, I'm definitely in favor of that.

  • @gary3548
    @gary3548 7 месяцев назад

    Hi there, It would be helpful if you linked to the sites where you could download these tools in your description

  • @Sam-n6v1s
    @Sam-n6v1s Год назад +1

    this is rlly cool

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

    This reminded me of Microsoft Visual Basic

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

      👍That's exactly what I was going to say!

  • @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++.

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

    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.

  • @MadhurAhuja25
    @MadhurAhuja25 Год назад +4

    Thats great. Can you do similar video for GTK app ?

  • @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.

  • @chenalice-co3mh
    @chenalice-co3mh Год назад +1

    how can we contact you for cooperation?

  • @SB-qm5wg
    @SB-qm5wg Год назад

    Very cool!

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

    👍Thanks.

  • @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?

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

    How do qt applications scale with DPI settings?

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

      They scale perfectly

  • @minivini-ps5xc
    @minivini-ps5xc 5 месяцев назад

    is the code available somewhere please?

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

    Thank you.

  • @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 Год назад +4

      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 Год назад +1

      @@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 Месяц назад

      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

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

    Can you make one with C?

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

      Using GTK instead of Qt? That would be good too.

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

      You can't use Qt from C without bindings

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

    thanks

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

    Reminds me of Visual Basic 6

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

    I was hoping to get a tutorial on Qt 🎉 thanks

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

    Hey DT, why are you such a Qutty?!?

  • @benjy288
    @benjy288 Год назад +4

    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.

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

    thank youuuuuuu

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

    This feels like Visual basic used for designing Windows apps when bill gates not even born

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

    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. ❤

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

    lets gooo

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

    Its always been easy just dont be a baby lol ;P

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

    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 Год назад +1

    Distrotube race was black yesterday..... But today he is white what happend?

  • @-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.