Thanks a lot. Learnt so much from this. Could you make a tutorial on how to make sliders with 2 3 controls (range sliders) if it's possible, that would be soooo amazing
Sir, I am struggling with QThread, please a dedicated video on that on how can we use it with different widgets and to do background Processes ki doing internet speed test with speedtest library or playing sound with playsound instead of using Pyqt's own function, that would be helpful for other things too.
All widgets need an object name, like "self.button", "self.toggle", "self.label", so just use slots or events to get this objects. In this toggle button you can check using "statusChanged" or "isChecked"
Excellent Wanderson. Thank you! The only issue is I'm getting an syntax error at this function: def hitButton(self, pos: QtCore.QPoint): return self.contentsRect().contains(pos) Thank you
It is only possible to create custom widgets for Qt Designer using C++, unfortunately done in Python you cannot integrate it with your project, at least I believe it is not. This custom widget you need to add manually to your project, just like I did in the video
If i got the problem right i think you can use your custom widgets in Qt Designer. After creating a custom python class like Wanderson did you can promote your regular button or other wigdets to your class. I hope i didnt cross the line.
Ohh okey. I just thought maybe Qframe has some secret capabilities that I didn't know about. Thanks. Wonderful video. I dont understand half of it but progress needs Time.
Great work. You are a godsend!!! I've been following your work very closely. I'm having a weird error : NameError: name 'Property' is not defined, although my code is identical to yours with the only difference is that I'm using PyQT5 rather than PySide6. Any help is appreciated.
[ DOWNLOAD Source Code ]
🔗 Patreon: www.patreon.com/WandersonIsMyName
Free for everyone on GitHub in June 1st!
update: at 8:00
if you're using PyQt5,
use: pyqtProperty
instead of: Property
Bro thank you so much. I was facing this problem
You don't even know how much I appreciate your work!
You helped me so much bro keep it up you're insanely skilled.
its incredible. You are mad man! Thank you!
I love you!!!
Very good explanation.
Thanks a lot. Learnt so much from this. Could you make a tutorial on how to make sliders with 2 3 controls (range sliders) if it's possible, that would be soooo amazing
Hello, I got an error : name Property is not defined. Where did you define it? Thanks
been wondering how to do this, I'll be at the premiere
Sir, I am struggling with QThread, please a dedicated video on that on how can we use it with different widgets and to do background Processes ki doing internet speed test with speedtest library or playing sound with playsound instead of using Pyqt's own function, that would be helpful for other things too.
What VScode extension are you using to automate blue font color for modules (e.g., QPainter(), QRect())? Great video btw!
Is Atom IDE theme, One Dark :D
Wow Good lecture.
rare video of creating toggle button with qt
I have a big question... when i put 2 or more widgtes... How I know in backend what widget change the status.. both tells the same..??
All widgets need an object name, like "self.button", "self.toggle", "self.label", so just use slots or events to get this objects. In this toggle button you can check using "statusChanged" or "isChecked"
many thanks
Excellent Wanderson. Thank you! The only issue is I'm getting an syntax error at this function:
def hitButton(self, pos: QtCore.QPoint):
return self.contentsRect().contains(pos)
Thank you
The error is [E0001] by the way
def hitButton(self, pos):
return self.contentsRect().contains(pos)
hi!
could you help me figure out how to implement an anchor in QT?
In this course I teach how to create layouts using anchoring in Qt Quick: ruclips.net/video/pD0UeD7S27s/видео.html
Great video, I was trying to create one, But i want to know how use this widget in Qtdesigner, for use with other widgets in same window..
It is only possible to create custom widgets for Qt Designer using C++, unfortunately done in Python you cannot integrate it with your project, at least I believe it is not. This custom widget you need to add manually to your project, just like I did in the video
If i got the problem right i think you can use your custom widgets in Qt Designer. After creating a custom python class like Wanderson did you can promote your regular button or other wigdets to your class. I hope i didnt cross the line.
Voce nao me engana wanderson, pq n grava em portugues wanderson, ta dicil wanderson,, aaaaaaaaah wanderson me ajuda ai cara
Why did you use Qframe As the container?
Because is just a simple test code, usually I'm using QWidget because is default in Qt.
Ohh okey. I just thought maybe Qframe has some secret capabilities that I didn't know about. Thanks. Wonderful video. I dont understand half of it but progress needs Time.
It wasn't for any special reason that I chose QFrame haha. Good studies!
Man, why does not exist a "switch bottom" integrated in Qt Designer?
Great work. You are a godsend!!! I've been following your work very closely.
I'm having a weird error : NameError: name 'Property' is not defined, although my code is identical to yours with the only difference is that I'm using PyQT5 rather than PySide6. Any help is appreciated.
For PyQt5, use @pyqtProperty decorator rather than @Property
Yes, PyQt have some different classes like, pyqtSlot(), pyqtSignal(), pyqtProperty()... But works in the same way.
@@WandersonItsMe @LinTiong Lau, Thanks you for your response. It works beautifully now.
@@lintionglau1199 yes. and we have to add the following import
from PyQt5.QtCore import QObject, pyqtProperty
does it support pyside2 aswell..? @wanderson
trying to implement in maya with pyside2, kinda not working for me :S
thank you
Can you send me a link to the desktop picture because it is beautiful I like it?
I cannot use the button on the whole surface
Hi, this widget is only for pyqt6??
Hi,
No! its was made using PySide6, but works with previous versions. To work with PyQt you need to change @Property to @pyqtProperty.
thx bro
wah le lvl
ok