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

preview_player
Показать описание
//// DOWNLOAD SOURCE CODE ////

//// PART 2 ////

In this tutorial I will teach you how to create custom widgets, these widgets can be reused just like we do with Qt Quick using QML files, with the difference that we can do all of this directly within Python.

This video is part of a video related to PyDracula, however you can reuse this custom widget in any project you want as I will teach in the second video, creating a Splash Screen for the PyDracula Project.

Good studies to all.

-----

//// DONATE ////

//// PATREON ////

//// DISCORD ////

Subscribe to not miss any news from the channel.

See you in the next videos.

–––––––––––––––––––––––––––––
Creative Commons - Attribution-ShareAlike 3.0 Unported - CC BY-SA 3.0
–––––––––––––––––––––––––––––
Рекомендации по теме
Комментарии
Автор

This custom widget is available for download to Patreon supporters: 🔗https:

WandersonItsMe
Автор

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

eltonfernando
Автор

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

superdrivingschool
Автор

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

akashsharma
Автор

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

maciejk
Автор

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?

ekitran
Автор

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

mangdodo
Автор

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

fiopio
Автор

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

d-shiri
Автор

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.

melsjagt
Автор

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

rezab
Автор

Hello it’s possible also onC++ project ?

mehmetbilen
Автор

Can't we use Qt designer for this?

sheez-
Автор

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

d-shiri
Автор

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

xvolodea
Автор

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

shadows
Автор

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

martinkochanowsky