TUTORIAL - Circular Progress Bar - Qt Widgets (CUSTOM WIDGETS / Python / PySide6) PART 1

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

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

  • @WandersonItsMe
    @WandersonItsMe  3 года назад +3

    This custom widget is available for download to Patreon supporters: 🔗https: //www.patreon.com/WandersonIsMyName

  • @eltonfernando90
    @eltonfernando90 9 месяцев назад +2

    very good. If your graph is not show, here are some observations.
    1. the variables self.width and self.height cannot be declared since QWidgets has methods with that name. By the way, you don't even need them, you can get this value self.width() self.height()
    2. you cannot call self.size(200,200) to set the window size, user self.setFixedSize(200, 200)
    or self.setMinimumSize(200, 200) self.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
    3. It is not necessary to create a rect to center the text, you can get the rect from Qwidgets using self.rect()
    4. you probably need to call self.repaint() after updating value

  • @maciej4k
    @maciej4k 3 года назад +2

    @Wanderson What VSCode color theme are you using? I also wonder what addons have you installed for VSCode and recommending the most, for Python.

    • @WandersonItsMe
      @WandersonItsMe  3 года назад +1

      Theme name is "Dracula" and extension just the official created by Microsoft.

  • @mangdodo17
    @mangdodo17 3 года назад +3

    i was follow the step but the progress bar cannot the show , i stuck in minutes 08:10

    • @WandersonItsMe
      @WandersonItsMe  3 года назад

      you setFixedSize in main.py? I need more details to help you.

    • @mangdodo17
      @mangdodo17 3 года назад

      @@WandersonItsMe no, i same code with your video , we test after we put some value on progress.value the progress bar is not showing , only view white background/transparent

    • @mangdodo17
      @mangdodo17 3 года назад

      solved , thanks

    • @miniNinja027
      @miniNinja027 3 года назад

      @@mangdodo17 what did you miss , as I following this video too, and stuck same area.

    • @mangdodo17
      @mangdodo17 3 года назад +1

      @@miniNinja027 i miss in this script self.progress.setMinimumSize(self.progress.width, self.progress.height), i type without .progress

  • @ps_davi
    @ps_davi 3 года назад +1

    Best pyqt programmer

  • @akashsharma4865
    @akashsharma4865 3 года назад +2

    I follow the same steps but progress bar doesn't show, I stuck at 8:10 please help me

  • @melsjagt5829
    @melsjagt5829 3 года назад +1

    What is the use of the following code (at 6:00) in the circular_progress.py file:
    paint.setPen(Qt.NoPen)
    paint.drawRect(rect)
    I do not see it being used in the remainder of the code, and when I comment out the lines it does not seem to make a difference.

    • @eltonfernando90
      @eltonfernando90 9 месяцев назад

      You're right, there's no brush here. This rectangle is only used to center the text, but it is the size of QWidgets, you could use self.rect()

  • @fiopio2422
    @fiopio2422 2 года назад

    Great tutoroal, I am using it for my interface with Jarvis!!

    • @WandersonItsMe
      @WandersonItsMe  2 года назад +1

      Haha very cool! My first UI was for JARVIS, but using WPF.

    • @fiopio2422
      @fiopio2422 2 года назад

      @@WandersonItsMe That's nice! I've done it with this basis

  • @superdrivingschool9224
    @superdrivingschool9224 3 года назад +3

    Thank you so much for your hard work!
    Anyway, Can you create tutorials with OpenCV and PySide/pyqt?

  • @mujtabaaltayib7417
    @mujtabaaltayib7417 3 года назад +1

    You are the best ❤️

  • @dr99tm23
    @dr99tm23 3 года назад +1

    Very nice 👍

  • @datran26
    @datran26 3 года назад

    it gives an error when I use the loop. how to fix it?
    QPainter::begin: A paint device can only be painted by one painter at a time.
    QPainter::setCompositionMode: Painter not active
    QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?

  • @dursinear8761
    @dursinear8761 3 года назад

    The best guide

  • @sheez-5486
    @sheez-5486 3 года назад +2

    Can't we use Qt designer for this?

  • @mehmetbilen1667
    @mehmetbilen1667 2 года назад +1

    Hello it’s possible also onC++ project ?

  • @mustafaebid6846
    @mustafaebid6846 3 года назад

    this is very perfect

  • @shadows2138
    @shadows2138 2 года назад

    Hello! Please tell me which plugin do you use for autofill code?

    • @WandersonItsMe
      @WandersonItsMe  2 года назад +1

      Is just VS code with official Python extension.

    • @shadows2138
      @shadows2138 2 года назад

      @@WandersonItsMe I don't do that(

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

    Thank you

  • @d-shiri
    @d-shiri 3 года назад

    Please make the code size bigger mext time. This was useful. :)

  • @xvolodea
    @xvolodea 3 года назад

    How we can use this widget interact with embeded projects like arduino or stm32 ?

    • @WandersonItsMe
      @WandersonItsMe  3 года назад +1

      I think so! I've never used these microboards before, but I think it works.

  • @rezab9060
    @rezab9060 3 года назад

    very useful
    Can you introduce some useful books in similar fields?

    • @WandersonItsMe
      @WandersonItsMe  3 года назад +2

      Hi, unfortunately I don't know any books, I learned just by reading the documentation and researching the errors generated during development. Qt.io docs and Stack Overflow help me a lot.

  • @d-shiri
    @d-shiri 3 года назад

    Can you make a tutorial and show how to show sql scheme tree view in pyqt5 please?

  • @martinkochanowsky3892
    @martinkochanowsky3892 3 года назад

    1:51 "The __init__ file is responsible for saying that this folder it's a PACKAGE"*

    • @WandersonItsMe
      @WandersonItsMe  3 года назад

      Thanks for the correction, it was my mistake 😅. Because have one single file for that 🤣

  • @digitaltrade436
    @digitaltrade436 3 года назад

    Like

  • @Rafael-jr1qm
    @Rafael-jr1qm 3 года назад

    seria da hora em pt br ein