PyQt5 How To Load Qt Designer UI File | Python GUI Tutorials

Поділитися
Вставка
  • Опубліковано 26 жов 2024

КОМЕНТАРІ • 21

  • @ParwizForogh
    @ParwizForogh  3 роки тому

    You can support me on Patreon
    www.patreon.com/parwizforogh

  • @MiskoKatua
    @MiskoKatua 4 роки тому +6

    When executing uic.loadUi('', self) the self object already contains all widgets you can directly call.
    For this example you can for instance set text directly: self.textEdit.setText('My Text') without doing .findChild() first.

  • @lituanambochon1312
    @lituanambochon1312 4 роки тому +3

    Nice. Please, Sir, continue this playlist. That'll be a big help for us.

  • @MikeCarey101
    @MikeCarey101 5 років тому +1

    very slick !! thank you for this

  • @HugoCervantes-HARO
    @HugoCervantes-HARO 3 роки тому +2

    Thanks for the example. However I am having a problem that I think many others are facing: When trying to import uic from PyQt5, it is not recognized. Therefore we can't go on with the uic.loadUi command. Any suggestions to solve this?

  • @salazarr_js
    @salazarr_js 4 роки тому

    very useful 👌🏼

  • @tommurray8691
    @tommurray8691 4 роки тому +1

    It's nice to be able to use the designer, but I could not find a way to create an executable file in pyinstaller because the UI file is required and pyinstaller is not capable of using it.

  • @bennguyen1313
    @bennguyen1313 4 роки тому

    To programmatically add widgets to an existing GUI (opened via loadUi()), is using Layouts the only/preferred way?
    For example, my .ui doesn't already have a layout, it's just a Main Window with a QtWidget, so the following throws an error:
    the_layout = self.findChild(QtWidgets.QHBoxLayout, 'The_layout_name')
    the_layout.addWidget(stuff)
    can a layout itself be added to it programmatically after loadUi()? Or should a new layout be created, and the gui (loadUi()) then added to it? Can you give an example how to do that?

  • @ismailkeyvan4556
    @ismailkeyvan4556 3 роки тому +4

    There is no uic in PyQt5

    • @zo0oi_574
      @zo0oi_574 3 роки тому +1

      Did you find any solution?

  • @rodribyte4255
    @rodribyte4255 2 роки тому

    I am unable to import the UIC module. Is it covered in your course?

  • @lholeydesign2316
    @lholeydesign2316 2 роки тому

    How do I load UI file as subwindow??

  • @maxmdlung
    @maxmdlung 2 роки тому

    Hello, for my "import uic", there is no refernce found and i wanted to know if someone knew how to fix that

  • @MotoGReviews
    @MotoGReviews 2 роки тому

    maybe you should consider having a script or practicing a bit more before recording. 3min of this video can be reduced if you practiced a bit more...but thanks for the video!

  • @pauloswear
    @pauloswear 4 роки тому

    Why my applications crashes while running CODE using python + pyqt5?

    • @MiskoKatua
      @MiskoKatua 4 роки тому

      Oie!
      Plz share your code in a pastebin (pastebin.com/) and provide information on the versions you use of python and which IDE you use; this way the reason of crashing could be found.
      Does the application also give a certain error?

  • @jlew92xx
    @jlew92xx 3 роки тому +1

    "Make it bigger"
    THATS WHAT SHE SAID