Qt Designer - PyQt with Python GUI Programming tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ธ.ค. 2024

ความคิดเห็น • 345

  • @Sahonym
    @Sahonym 3 ปีที่แล้ว +1

    After 5 years, your "out dated" tutorial works even in Ubuntu 20.04 ! (Obviously had make so adjusts due to updated versions)
    THANK YOU!

  • @gregstratton2057
    @gregstratton2057 9 ปีที่แล้ว +149

    Sentdex, your a legend.

    • @sentdex
      @sentdex  9 ปีที่แล้ว +38

      Greg Stratton no u!

  • @alexanderkarsonis3784
    @alexanderkarsonis3784 6 ปีที่แล้ว +1

    Sentdex, wherever I look for Python tutorials you are there. Good job!

  • @winecheese2185
    @winecheese2185 9 ปีที่แล้ว

    Im 21 and you re the best teacher i ever had...I ve learned soo much from you.Thanks!

    • @sentdex
      @sentdex  9 ปีที่แล้ว +2

      +Curious Guy Thanks for the kind words, great to hear I have been of help

    • @damdam5773
      @damdam5773 9 ปีที่แล้ว

      +sentdex it's so true. Unfortunately my English comprehension is not great . But you are really very very good . Thank you

  • @ImAllTimeIndie
    @ImAllTimeIndie 8 ปีที่แล้ว +34

    Can you do a guide on how to make multiple windows that you can switch between?

    • @DodoEmperor
      @DodoEmperor 6 ปีที่แล้ว +5

      Prob not relevant for you anymore, but for those for which it is relevant: QTabWidget

    • @moustafaatef3636
      @moustafaatef3636 5 ปีที่แล้ว

      Is this available as a built in widget or do i have to code it myself

    • @chshinigami69
      @chshinigami69 4 ปีที่แล้ว +1

      Use your brain
      If you have one you will know the answer

    • @rakinrahman890
      @rakinrahman890 4 ปีที่แล้ว

      @@chshinigami69 lmao

    • @bleedingxiko8456
      @bleedingxiko8456 4 ปีที่แล้ว

      Dhyey Shah heres a good example using a signal gist.github.com/MalloyDelacroix/2c509d6bcad35c7e35b1851dfc32d161

  • @donm7906
    @donm7906 7 ปีที่แล้ว +91

    10 years later, when people ask me how did I become the world's most famous app designer...
    I would say it started here.

    • @mohamedtark7014
      @mohamedtark7014 7 ปีที่แล้ว +11

      10 years are so long while having such a good start, wish you the best at achieving your dreams

    • @gamestv4875
      @gamestv4875 6 ปีที่แล้ว +20

      @@Braincain007 probably gave up and owns a hot dog stand.

    • @azamitsolutionprovider9398
      @azamitsolutionprovider9398 5 ปีที่แล้ว +7

      keep it up...only 1 year passed...9 years left to go

    • @mohamedquabbou5253
      @mohamedquabbou5253 5 ปีที่แล้ว +1

      2 years passed 8 to go, good luck.

    • @nDeedy
      @nDeedy 4 ปีที่แล้ว

      And you still use the qtDesigner?

  • @totaltwit
    @totaltwit 5 ปีที่แล้ว +5

    In around 2000 I dabbled with Borland's C++Builder, Delphi, J-Builder and they came with a fantastic GUI designer. Took minutes to do the layout and have ready made calls. Now I dabble with Python and notice... caveman stuff! Tkinter, guizero are ancient! Time to give this PyQt a tryout.

    • @jasonking1284
      @jasonking1284 2 ปีที่แล้ว

      Yep. These Python guys jump around in joy when they write 50 lines of code to successfully display a button on the screen.
      Something like those Borland products and MS Visual Studio products have been doing via a drag and drop IDE in seconds since ancient history....

  • @maxime821
    @maxime821 6 ปีที่แล้ว +3

    Thank you for this great tutorial series. I actually learned a lot, in so little time, thanks to your concise and meaningful explanations. Definitely a series I'll recommend.

  • @phoenix2464
    @phoenix2464 7 ปีที่แล้ว +1

    holy cow!! the way you presented the tutorial is amazing you left the designer to the end when one understands how pyqt works
    reallyyyy amazingg

  • @ronhsienchang
    @ronhsienchang 5 ปีที่แล้ว

    It took me two weeks to study and convert to PyQt5.
    Especially, there's some issues on macOS.
    But I did it! 🥳
    Thank you, Harrison. You're amazing!👏

    • @sentdex
      @sentdex  5 ปีที่แล้ว

      Congrats on the conversion!

    • @inesguardans1731
      @inesguardans1731 5 ปีที่แล้ว

      could you explain your findings? I am using pyqt5 too!

    • @ronhsienchang
      @ronhsienchang 5 ปีที่แล้ว

      @@inesguardans1731 No problem at all.
      Here is what I referred: github.com/kenwaldek/pythonprogramming
      And This is my Note:
      github.com/Ron-Chang/MyNotebook/tree/master/Coding/0_System_Software/Sentdex/PyQt
      Most notes are took in English. If you need it I can translate the rest one later 😊
      The most difference what I found in this tutorials is lots of widgets are parent to "PyQt5.QtWidgets" instead of "PyQt4.QtGui".

  • @donha475
    @donha475 6 ปีที่แล้ว +2

    Sentdex. I know it has been said many times but you are an absolute legend.

  • @batteryjuice459
    @batteryjuice459 7 ปีที่แล้ว

    I would love to see more tutorials on Python Guis using the Qt. No matter if you make more or not though, thanks for theses videos; they really helped me.

  • @AmitavaGuhaTava
    @AmitavaGuhaTava 7 ปีที่แล้ว

    Thanks for these great video tutorials. I am trying to design an engineering tool by learning GUI development form your tutorials.
    1. Could you please do one more video showing how to separate the user interface python files and python codes with actions corresponding to various buttons and menus in the UI file. The reason for this is when you use the Qt Designer and convert the .ui into .py file, it creates a new .py file whenever you make any changes to the .ui file. Keeping the action code in a separate file would be helpful. A basic housekeeping tutorial for such software development would be very helpful.
    2. How to open another window by clicking a button on the main window
    2. How to embed a VTK graphics window in a Qt5 GUI.
    Will wait for more of your tutorials.

  • @aidenfrost9997
    @aidenfrost9997 5 ปีที่แล้ว

    Thanks for keeping your content free , I still view all your content till this date . Thanks for sharing your knowledge

  • @francescoanastasio2021
    @francescoanastasio2021 8 ปีที่แล้ว

    I'm 23 and I remember that when I started programming in Python even the easiest UI could be a challenge... it makes me feel old when I see how open source software have been developed since then...

  • @luismora3698
    @luismora3698 5 ปีที่แล้ว

    every time i need help you already got a vid for it, much thanks for all you do

  • @aasmh1
    @aasmh1 9 ปีที่แล้ว

    Anything i need for programming i just search your channel and find it!!!! Thanks for the great work

  • @melissarainchild
    @melissarainchild 6 ปีที่แล้ว

    The resource browser is for things like sounds and icons, resources that you use un the interface. It is common to have them organised in a sort of a library...

  • @backgroundnoiselistener3599
    @backgroundnoiselistener3599 6 ปีที่แล้ว +2

    Can You please put a whole series on Qt Design. I've been struggling with the designing part

  • @javierbosch1338
    @javierbosch1338 8 ปีที่แล้ว +1

    For those looking to find where qt designer is located if you are using Anaconda distribution, go to Anaconda folder and search "designer". You will see the qt designer.exe in the results.

  • @jdally9872
    @jdally9872 5 ปีที่แล้ว +7

    With PyQt5, you have to do *pyuic5* or else it won't work. Took a while for me to figure that one out. Just make sure your Python/Scripts folder is in your PATH and should be good to go without specifying the whole path to pyuic5.exe

    • @alparslancay4537
      @alparslancay4537 5 ปีที่แล้ว +3

      Thx guy! You helped me incredible! (
      for those who cannot understand) Run like this in command prompt: pyuic5.exe -x "YourUi.ui" -o "YourUi.py"

    • @joeypencil5368
      @joeypencil5368 5 ปีที่แล้ว

      Please pin this comment. This was absolutely helpful for those using PyQt5, especially since it doesn't utilize a batch script like PyQt4, and the usage is a bit different (but can frustrate easily for some).

    • @asdfghjkl12904
      @asdfghjkl12904 5 ปีที่แล้ว

      @@alparslancay4537 Thank you so much! You are a life saver

  • @technolus5742
    @technolus5742 6 ปีที่แล้ว

    "pyuic4" instead of "pyuic" is more like it. Plus if it is still not recognized, just add "C:\tools\python" to "PATH" in the environment variables.
    Notes:
    -see if folder exists first, if doesn't exist look for a similar one with perhaps a version number attached to it
    -in the environment variables (accessible through properties on this computer folder>advanced>environment variables>path>add).

  • @eamonna3394
    @eamonna3394 9 ปีที่แล้ว +4

    Hi,
    First off I love your videos! Thank you!
    I am a teacher in the UK. The government here has scrapped my subject (ICT) and introduced compulsory Computer Science. It's fun and the theory is no problem but I am having massive issues linking the programming concepts together. I kind need to see something visualized to be able to piece it all together, as programming is something i am having to learn and learn quickly. As such, would you think it possible to do a video to show the following VERY program that (its no issue for me writing this in IDLE with no GUI btw)
    1) Request the users name
    2) Asks the user to add too random numbers (1-5)
    3) Allows the user to answer
    4) Repeat 5 times
    5) Displays the number of questions asked
    6) Displays the number correctly answered
    I am really interested in making the interface functional.
    I don't know if you can help, or indeed have the time to, but if you could I would be over the moon. Struggling to be honest.
    Either way,
    Thanks :-)

  • @mazepaad
    @mazepaad 6 ปีที่แล้ว +4

    THIS VIDEO THOUGH, SAVED MY LIFE TODAY! THANK YOU!

  • @daineXx
    @daineXx 7 ปีที่แล้ว

    I must say youre videos have really helped me advancing with python and its many libraries!
    Thank you so much and keep up the good work!
    I would be so happy if you did more 3d game programming also, i really liked the OpenGL stuff!

  • @carlfranz6805
    @carlfranz6805 6 ปีที่แล้ว

    I think I understand why 'sentdex' stopped at this point. Tha man isn't a masochist. Without bunches of trial and error, the QtDesigner is a real pain for anything other than really simple layouts. Even trying it for the simple text editor we were playing with had my teeth grinding and my eyes rolling.
    For more fun, try laying a border around a grid sometime. Anyone figured out how to make a thicker line using the Horizontal and Vertical Lines. Haven't played with the spacers yet to see if they are easier to muck about with.
    Also, I especially enjoy the fact that you cannot clearly see where the tool and status boxes are when starting with the MainWindow.
    Another note. When using the *(&^* layouts, especially the *(&^* grid layout.... its much easier to drop the various widgets on the screen in some sort of row/column layout and then drop the layout over them. I fact, I'm not sure there is any other way to create a grid layout in the QtDesigner. If anyone has experience with this, please chime in.
    ** For Windows users, if you want to avoid all that typing to execute the 'pyuic4.bat' converter program put the following into a batch file ('QtGen.bat' for instance):
    c:\python36\Lib\site-packages\PyQt4\pyuic4.bat -x %1.ui -o %1.py
    thus: 'QtGen myui' will take 'myui.ui' and create 'myui.py'. Remember to change the 'python36' to whatever the Python root directory is for the version you're using.
    Good luck everyone. Let's help each other out.

  • @gibinchackogeorge3693
    @gibinchackogeorge3693 7 ปีที่แล้ว

    hello, how do I change the background color of GUI to gray instead of white? Thanks.

  • @bernardferrer
    @bernardferrer 5 ปีที่แล้ว

    Very clear tuto and very pleasant. Thanks.
    As you mention, however, to bad there is no way to generate some logic associated to the objects in the ui. Like onclick button1, display panel 2, etc.
    Do you think xcode + Python would be a good solution ?

  • @vasukrishnan164
    @vasukrishnan164 6 ปีที่แล้ว

    wtf man,, i became a pro in qt desinger after seeing your video for some 10 mins, previsouly i used place all objects here and there without knowing what i am doing and endup discarding and doing everything manually in code itself,, your tut was so easy to get into proper designing

  • @MatthewTaylorAu
    @MatthewTaylorAu 8 ปีที่แล้ว +12

    Thanks for another great video.
    setting the PATH should make executing pyuic4.bat easier.
    ie:
    set PATH=%PATH%;full-path-to-directory-containing-pyuic.bat-here\
    so the long dos prompt sample in the video becomes
    pyuic.bat -x my_filename.ui -o my_filename.py
    also: I needed to be in dos prompt as administrator (Windows 10)

  • @abdullahsaid8561
    @abdullahsaid8561 5 ปีที่แล้ว +1

    from PyQt4 import QtCore
    ImportError: DLL load failed: %1 is not a valid Win32 application.

    • @abdullahsaid8561
      @abdullahsaid8561 5 ปีที่แล้ว

      64 bit pyqt not work for me. 32 bit does. but i had 64 OS which is confusing

  • @asdfasdfuhf
    @asdfasdfuhf 8 ปีที่แล้ว

    Now to the import question, can I add a background, like a picture, in the window?

  • @Dinavd3sg
    @Dinavd3sg 7 ปีที่แล้ว

    Hi everyone. Why is my "Layout in a Grid option" not showing when I right mouse click the main GUI that I am creating and 'right-mousing' and clicking on layout like what sentdex is doing at 3:41?

    • @Dinavd3sg
      @Dinavd3sg 7 ปีที่แล้ว

      Actually I meant that it is showing but all the options under Layout are greyed out except for Adjust size?!

  • @AmanKumar-ng9vg
    @AmanKumar-ng9vg 6 ปีที่แล้ว

    Can we add QR code scanning function using this QTdesigner

  • @gowthamkumarmr8235
    @gowthamkumarmr8235 9 ปีที่แล้ว +3

    Thank you for this tutorial..
    Can you please do a tutorial on packaging and distributing the python PyQt GUI programs for Windows & Linux?

  • @sayanmutd
    @sayanmutd 8 ปีที่แล้ว

    How to add FileBrowser using Qt Designer?

  • @thehangover4985
    @thehangover4985 ปีที่แล้ว

    Im just wondering, after you create ur app. and u add some button functionality. Can you edit it again using qtdesigner ?

  • @aragonification
    @aragonification 8 ปีที่แล้ว

    to get pyuic to work directly, you need to add it's location PATH. Advanced system settings -> environment variables

  • @lingchen3662
    @lingchen3662 6 ปีที่แล้ว

    I would like to know that which video covers how to do the connection

  • @OfficialSpimy
    @OfficialSpimy 5 ปีที่แล้ว

    How do I deploy the PyQt application? There's a module called pyqtdeploy but I can't seem to figure out how to make it work.

  • @vaibhavtej3250
    @vaibhavtej3250 6 ปีที่แล้ว

    While conversion it is still showing the system can't find the path

  • @mountainhobo
    @mountainhobo 8 ปีที่แล้ว

    11:48 "Use connect to connect the functions to the buttons, but we've already covered how to do that" -- Sorry, covered where? It is not immediately obvious from the titles of other videos, and they are not numbered within a clearly marked series.

    • @sentdex
      @sentdex  8 ปีที่แล้ว

      most likely this tutorial: pythonprogramming.net/basic-gui-pyqt-tutorial/ You can either follow the specific youtube playlists for the orders, or you can find the correct order on the website. Hope that helps your frustrations!

  • @alielmahmudi5452
    @alielmahmudi5452 5 ปีที่แล้ว

    A great explanation.
    How to create a standalone python "application" using PyCharm with many files in the project?

  • @salsabeelzaydiah1042
    @salsabeelzaydiah1042 5 ปีที่แล้ว

    can i open the webcam in the form of qt designer?

  • @kostasmessinis2671
    @kostasmessinis2671 6 ปีที่แล้ว

    what you showed is quite easy.But I had the impression that this application you've shown can extract an executable file for each operating system separately!If I want to create an executable package the final version of the program how will I do it?

  • @ruslan.zhumabai
    @ruslan.zhumabai 4 ปีที่แล้ว

    Can i make a software which is able to connect with an arduino bouard. What do you think? I need more skills?

  • @keithandrelashley
    @keithandrelashley 7 ปีที่แล้ว

    I have Qt Creator is their a way I can access the Qt Designer from Qt Creator so I can follow along?

  • @angelfont2485
    @angelfont2485 5 ปีที่แล้ว

    how to do modify the design of a .py file ? say you wanted to add more push buttons after coverting .ui to .py ?

  • @dannysi1234
    @dannysi1234 8 ปีที่แล้ว

    how do you connect buttons to functions?

  • @johncolasurdo8165
    @johncolasurdo8165 3 ปีที่แล้ว

    I'm lost when your trying to retrieve it as a batch file. Should I be in the qt designer dir or the python dir?

  • @Pooja_Pandita
    @Pooja_Pandita 8 ปีที่แล้ว

    sir ,hv a proj in nlp for automatic gap-fill generator,jst a beginner.really need your help,means how to start the implementation

  • @orion_222
    @orion_222 4 ปีที่แล้ว

    why did you not include where the code should be typed

  • @braveheart6816
    @braveheart6816 6 ปีที่แล้ว

    what do i do if neither the pyuic or the path commands work?

  • @luciferonetwothree2030
    @luciferonetwothree2030 8 ปีที่แล้ว

    hello,As you have done executing the ui file adn saving the output in QtDesigner.py file when you are not able to view the code.But I can view the code in the qt dsigner.Then What should i do with it?do I need to copy the code and save it as some .py file??

  • @Kazaaak
    @Kazaaak 8 ปีที่แล้ว

    Do you have a link to the video you mention at the end of this video about connecting the designer to actual python code

  • @martinled7493
    @martinled7493 7 ปีที่แล้ว

    Can you show how to install the Qt Designer ?

  • @guitarzod
    @guitarzod 7 ปีที่แล้ว

    Sentdex, I just watched your qtdesigner video and I’m concerned about making changes to the output code. If I decide to change the GUI afterwards I would have to renter all my connection code right? Seems cumbersome.

  • @looser3602
    @looser3602 8 ปีที่แล้ว

    Hey sentdex .. i have Pyside in my QtDesigner version is 4.8.7 .. can u tell me which version u have ?

  • @ivanreyes9223
    @ivanreyes9223 6 ปีที่แล้ว

    Can i run a .exe file inside the pyqt UI

  • @deveshbajaj8940
    @deveshbajaj8940 8 ปีที่แล้ว

    how to add images in the window by qtdesigner

  • @pradityamsook375
    @pradityamsook375 6 ปีที่แล้ว

    Sentdex I coding integrated Opencv Video
    Capture with PyQt. But i don't no idea for how to get mouse position draw rectangle.
    You can have any idea?

  • @shreyam1008
    @shreyam1008 7 ปีที่แล้ว

    i installed pyqt but cant find qt designer.

  • @rohitsay89
    @rohitsay89 8 ปีที่แล้ว

    I followed your tutorail and tried to create a similar window, I also inserted some labels into that and now it is showing the following error:
    AttributeError: 'QLabel' object has no attribute 'setToolTipDuration'
    can you please help me in resolving this
    Thanks,

  • @xxx-jo6nl
    @xxx-jo6nl 8 ปีที่แล้ว

    Amazing tutorial bruh. Thanks for everything. I never bored when watching your video.

  • @jacobwalton2220
    @jacobwalton2220 6 ปีที่แล้ว

    So good! Got me over the hump, especially the .ui to python part. Thanks a bunch!

  • @kris.yochev
    @kris.yochev 7 ปีที่แล้ว

    Hey, I have a really big question for you. How do you add toolbars and buttons to these buttons in Qt Designer? I am really frustrated! Thank you for the help!

  • @incognitobev4261
    @incognitobev4261 6 ปีที่แล้ว

    Yes we now have a designer for tkinter, it's called PAGE. check it out!

  • @AshkanAliloo
    @AshkanAliloo 7 ปีที่แล้ว

    Hi, 10:10 I get this error: '"C:\Python34\python"' is not recognized as an internal or external command, operable program or batch file. can you please help me with this?

    • @knighthawk9833
      @knighthawk9833 7 ปีที่แล้ว +1

      I know this a month late, but did you make sure your file path was correct? Like there wasn't any unnecessary spaces or anything? And also, did you check to make sure Python34 was in the C:/ directory? I've used Python 2 and 3 and I've noticed that 2 installs automatically to the C:/ directory but 3 actually installs in your Program Files. (or your Program Files(x86), I forget which and it probably depends on whether you're running 32-bit or 64-bit). Lastly, check to make sure the designer is actually installed. Other than that, referencing the batch file should work, I've neglected adding my Python27 folder to the path in my command prompt, so I know that referencing the full path works to execute .exe and .bat files because I've used it to pip install a bunch of third party modules.

    • @AshkanAliloo
      @AshkanAliloo 7 ปีที่แล้ว

      Ben O'Brien Okay. I don’t think Python is installed under c:/ directory. I managed to create my GUI with Tkinter, but I’ll try what you mentioned. Thanks

  • @ahmadfarhan8738
    @ahmadfarhan8738 9 ปีที่แล้ว

    hey sentdex. How qtcreator open a python. I dont seen any python file when i compiling in qtcreator. only ui and some file

  • @leoLorenzi
    @leoLorenzi 8 ปีที่แล้ว

    Where is the toolBar widget. Does it have another name?

  • @rohitroy0204
    @rohitroy0204 7 ปีที่แล้ว

    Hey Sentdex, could you please provide a link for me to download qt designer...

  • @mohamedrefaat8669
    @mohamedrefaat8669 8 ปีที่แล้ว

    Thanks for sharing knowledge .
    i have question .I'm having last year project it has a part using Labview to draw a layout & control for pump and read somethings like RPM pressures and idk some reads from electronics PLC , and i have started learning basics of python as its free and found on internet that its good substitution for labview ,saw your video found that its easy with qt to draw better code . Can i use python or similar software to do these layouts and ctrl or not. if yes what should i start learning
    sorry if English was bad

  • @dholgadom
    @dholgadom 5 ปีที่แล้ว

    Great tutorials! .I need to create a GUI with 3D cad capabilities: visualization and manipulation. As far as a I know, Tkinter is very limited in that regard. Do you have any recommendation on a module that I can use for my project?. Thanks

  • @aashimagupta9207
    @aashimagupta9207 6 ปีที่แล้ว

    Hi buddy!
    I have created a simple design using this Qt designer containing buttons. Now i want that on click of button the python(2.7) Scripts should run (instead of running them from the command prompt). Also initially for my python Script to run it needs data which will be entered by user itself when the script runs.
    Now what should i do?? Please Help.

  • @abelszkalisity1808
    @abelszkalisity1808 8 ปีที่แล้ว +4

    Could anyone suggest how dynamically use together python and the designer? I mean that based on the tutorial I could generate the pyqt code, but if later on I want to modify the layout, then the full code is regenerated and all previous callbacks are basically lost. Obviously I can always copy-paste to my old code the new layout, however I feel this is not the most professional solution. Thanks in advance.
    And thanks especially to sentdex for the great tutorials! :)

    • @danielcampos4559
      @danielcampos4559 8 ปีที่แล้ว

      Did you figure out how? I'm also looking for a solution.

    • @abelszkalisity1808
      @abelszkalisity1808 8 ปีที่แล้ว +1

      Daniel Campos Since then I find out that you can add the callback's to the GUI from another .py file. In this way your callback's code and the GUI layout is completely separated. I'm really new to python so my solution is definitely ugly but I can send to you in e-mail if you want.

    • @danielcampos4559
      @danielcampos4559 8 ปีที่แล้ว

      Thank you very much for the answer. I would be very grateful if you could. daniel.campos.utfpr@gmail.com

    • @TumishoBillson
      @TumishoBillson 6 ปีที่แล้ว

      hi there, can you also send me your solution please: mokgonyanetb@gmail.com

    • @ammarzorig2771
      @ammarzorig2771 6 ปีที่แล้ว

      Hi, can you also send me your solutions please : zorigammar@gmail.com

  • @SumitSharma-ih3fj
    @SumitSharma-ih3fj 6 ปีที่แล้ว

    thanks for good tutorial ...but i am facing some issue while doing this in ubuntu i m using qt4designer but after conversion it can not generate full python code like windows...please give some solution for this

  • @ssaammii
    @ssaammii 6 ปีที่แล้ว

    its giving me this error when i try to convert with pyuic4 : DLL load error, %1 is not a valid Win32 application, any help?

  • @andrikp
    @andrikp 9 ปีที่แล้ว +4

    Sentdex, thanks for all your good work :).

    • @sentdex
      @sentdex  9 ปีที่แล้ว +2

      +andrikp Happy to share!

  • @tanmayjagtap78
    @tanmayjagtap78 7 ปีที่แล้ว

    what widget should i use to show image i mean like picture box in visual studio.
    And great work keep it up

  • @madebygaurav
    @madebygaurav 7 ปีที่แล้ว

    [please help]
    I want to make a GUI program in python, in which the whole ui should update when I click a button!! is it possible in PyQT or should I go for Tkinter??

  • @aidenfrost9997
    @aidenfrost9997 5 ปีที่แล้ว +26

    Fun Fact : That error still exists even after 4 years xD

    • @myfridayproject3257
      @myfridayproject3257 4 ปีที่แล้ว

      Make a link from /usr/bin/pyuic4 or pyuic5 to that folder and rename the link to uic. This will make it tons easier to copy/paste your code to your work directory.

    • @nobytes2
      @nobytes2 4 ปีที่แล้ว +1

      On windows anytime you want to run an exe or bat on cmd prompt all you need to do is add the bat file path to environment PATH. Is not an error.

  • @ezenthusiast6438
    @ezenthusiast6438 5 ปีที่แล้ว

    Hi, thanks for the great content.I've got a question with my code.I tried Adding a back-ground stylesheet using qtdesigner but after turning my ui to a py file and imoprting the qrc file my app's UI seems gray and the background is not loaded.Also I get no errors.Everything runs smoothly exept for the background not shownig up.pls answer if you can I really need Help.thanks for your time.

  • @chinmayasunkur7297
    @chinmayasunkur7297 5 ปีที่แล้ว

    Thank you very much! it was really awesome, but can I get the link of the video where you do the connect?
    Thank you in advance :)

  • @alimirzaeyan3637
    @alimirzaeyan3637 7 ปีที่แล้ว

    thank you for these great tutorials,
    I have a problem using pyuic for changing ui to py code. I followed the instruction you said and I received the error:
    C:\Python27\Lib\site-packages\PyQt4\pyuic4.bat -x test1.ui -o test1.py
    Traceback (most recent call last):
    File "C:\Python27\Lib\site-packages\PyQt4\uic\pyuic.py", line 31, in
    from PyQt4 import QtCore
    ImportError: DLL load failed: %1 is not a valid Win32 application.
    I googled it but I couldn't find any proper solution, any idea what is the problem ?

  • @adrianpereira80
    @adrianpereira80 8 ปีที่แล้ว

    I am using uic module to load ui file but it isn't showing any changes I make in that file in my py file. Can someone please tell me how can I make changes in my ui file and convert it to py file without losing changes in my previous py file?

  • @nsh8255004
    @nsh8255004 9 ปีที่แล้ว

    Can you please explain how to link a push button to the already existing python function.

    • @herp_derpingson
      @herp_derpingson 9 ปีที่แล้ว

      +nazanin sh Nothing special there, say if your button is called bClick then add this line "self.bClick.clicked.connect(self.do_stuff)" in the setupUi function just after self.bClick is defined. Then define a function do_stuff and do your stuff there.

  • @SurendraSingh-jf2on
    @SurendraSingh-jf2on 8 ปีที่แล้ว +3

    sir please make more video on Qt Designer !

  • @thology7533
    @thology7533 6 ปีที่แล้ว

    what app you using to make it

  • @osamaansari8719
    @osamaansari8719 7 ปีที่แล้ว

    What is the version of your Python.??
    Are you work on windows??

  • @patelnikheel1317
    @patelnikheel1317 8 ปีที่แล้ว

    hey i tried your way but dont't know it's showing me same this command in cmd
    '"C:\Python34\python"' is not recognosed as an internam or external command,
    operable program or batch file.

  • @abcdetsui6406
    @abcdetsui6406 6 ปีที่แล้ว

    Qt designer seems don't support macOS....... through pip install

  • @陳育廷-s5g
    @陳育廷-s5g 6 ปีที่แล้ว

    Thanks for your video. How to download Qt designer using Pyqt4? thanks

  • @no5x937
    @no5x937 5 ปีที่แล้ว

    Awesome video series. Do you have or can you make a video on how to use Qt Designer with PyQt5 (not 4) to create a GUI layout with python code in VS Code 2019 that opens a File Dialog Window (like windows 10) that can navigate file folders, select and open a text file and display in a GUI textbox?

  • @BigSam072
    @BigSam072 9 ปีที่แล้ว

    sentdex
    PROBLEM 1
    If the variable a contains a 1 and variable b contains a 2 write the shortest expression that evaluates to 0.5 using a,b but no literals or addition

  • @Shadowblitz16
    @Shadowblitz16 8 ปีที่แล้ว

    +sentdex can you post a video on how to make a display window with this for pygame?
    I was thinking of maybe a tileeditor example series?

  • @howtodo8774
    @howtodo8774 8 ปีที่แล้ว

    can you do glade designer tutorial in detail

  • @user-gz2po7dx3k
    @user-gz2po7dx3k 8 ปีที่แล้ว

    How to insert background image ? I searched it a lot but couldnt find anything :(( PLEASE HEEELP !!!

  • @mohamedgabr918
    @mohamedgabr918 8 ปีที่แล้ว

    First of All, Thanks for your efforts :)
    Please
    Is there a way to install Pyqt4 and Pyqt5 in my python?
    Note: I have already made all of the tutorial examples here using Pyqt5 and after using the qt5 designer, I reallly have a big issue in programming the functions of buttons :(
    I would be grateful if you can answer me...Thanks Again

  • @UnstoppableGR
    @UnstoppableGR 7 ปีที่แล้ว +2

    I installed PyQT5 on Windows but i dont see anywhere QT Designer. How do you install it?

    • @retiredshitposter1062
      @retiredshitposter1062 7 ปีที่แล้ว

      search for pyqt5_tools-5.9.0.1.2-cp36-none-win32 or if you have amd get the other package

    • @x86me75
      @x86me75 7 ปีที่แล้ว

      Latest PyQt4 windows installer:
      sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.4/
      If you install latest PyQt4 version for python 3.4 you can find QtDesigner in "path to your python 3.4 installation folder"\Lib\site-packages\PyQt4
      Or you can find shortcut for Designer in:
      C:\ProgramData\Microsoft\Windows\Start Menu\Programs\PyQt GPL v4.11.4 for Python v3.4 (x64)

    • @zharfanadli4371
      @zharfanadli4371 6 ปีที่แล้ว +1

      "pip install pyqt5-tools"

    • @rexovas
      @rexovas 6 ปีที่แล้ว

      No longer works.

    • @rexovas
      @rexovas 6 ปีที่แล้ว

      Search pyqt5-tools, download the relevant wheel, extract files (using WinRAR or equivalent). designer.exe will be in one of the folders. When creating the python output, in my case, there was no batch file but rather an executable called pyuic5.exe in the "Scripts" folder of my environment. This generated an output file without issues.

  • @sksahil4374
    @sksahil4374 5 ปีที่แล้ว

    how to convert pyqt5 app to APK for Android?