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

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

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

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

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

  • @eltonfernando90
    @eltonfernando90 7 หลายเดือนก่อน +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

  • @akashsharma4865
    @akashsharma4865 3 ปีที่แล้ว +2

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

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

  • @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 7 หลายเดือนก่อน

      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()

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

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

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

    Best pyqt programmer

  • @sheez-5486
    @sheez-5486 3 ปีที่แล้ว +2

    Can't we use Qt designer for this?

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

      Yes, this project use Qt Widgets 😀

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

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

  • @mehmetbilen1667
    @mehmetbilen1667 2 ปีที่แล้ว +1

    Hello it’s possible also onC++ project ?

    • @TheArchCoder
      @TheArchCoder 4 หลายเดือนก่อน

      Yes of course.

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

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

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

  • @d-shiri
    @d-shiri 3 ปีที่แล้ว

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

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

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

    You are the best ❤️

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

    Very nice 👍

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

    Thank you

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

    this is very perfect

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

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

    The best guide

  • @Rafael-jr1qm
    @Rafael-jr1qm 3 ปีที่แล้ว

    seria da hora em pt br ein

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

    Like