TUTORIAL - Animated Toggle Button - [ Python, PySide6, Qt Widgets ] - MODERN GUI - Custom Widget

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

КОМЕНТАРІ • 47

  • @WandersonItsMe
    @WandersonItsMe  3 роки тому +3

    [ DOWNLOAD Source Code ]
    🔗 Patreon: www.patreon.com/WandersonIsMyName
    Free for everyone on GitHub in June 1st!

  • @1mrnewton
    @1mrnewton Рік тому +9

    update: at 8:00
    if you're using PyQt5,
    use: pyqtProperty
    instead of: Property

  • @iwinter6614
    @iwinter6614 3 роки тому +16

    You don't even know how much I appreciate your work!
    You helped me so much bro keep it up you're insanely skilled.

  • @israelluque3326
    @israelluque3326 Рік тому

    I love you!!!
    Very good explanation.

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

    its incredible. You are mad man! Thank you!

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

    Hello, I got an error : name Property is not defined. Where did you define it? Thanks

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

    been wondering how to do this, I'll be at the premiere

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

    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.

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

    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

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

    rare video of creating toggle button with qt

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

    Wow Good lecture.

  • @VitorSilva-gi3lb
    @VitorSilva-gi3lb 3 роки тому +1

    Voce nao me engana wanderson, pq n grava em portugues wanderson, ta dicil wanderson,, aaaaaaaaah wanderson me ajuda ai cara

  • @urlanbarros
    @urlanbarros 7 місяців тому

    Man, why does not exist a "switch bottom" integrated in Qt Designer?

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

    many thanks

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

    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..??

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

      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"

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

    What VScode extension are you using to automate blue font color for modules (e.g., QPainter(), QRect())? Great video btw!

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

    hi!
    could you help me figure out how to implement an anchor in QT?

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

      In this course I teach how to create layouts using anchoring in Qt Quick: ua-cam.com/video/pD0UeD7S27s/v-deo.html

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

    thank you

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

    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

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

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

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

      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

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

      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.

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

    Why did you use Qframe As the container?

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

      Because is just a simple test code, usually I'm using QWidget because is default in Qt.

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

      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.

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

      It wasn't for any special reason that I chose QFrame haha. Good studies!

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

    thx bro

  • @MohamedGamal-mt7io
    @MohamedGamal-mt7io 2 роки тому

    Can you send me a link to the desktop picture because it is beautiful I like it?

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

    does it support pyside2 aswell..? @wanderson

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

      trying to implement in maya with pyside2, kinda not working for me :S

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

    I cannot use the button on the whole surface

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

    Hi, this widget is only for pyqt6??

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

      Hi,
      No! its was made using PySide6, but works with previous versions. To work with PyQt you need to change @Property to @pyqtProperty.

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

    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.

    • @lintionglau1199
      @lintionglau1199 3 роки тому +3

      For PyQt5, use @pyqtProperty decorator rather than @Property

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

      Yes, PyQt have some different classes like, pyqtSlot(), pyqtSignal(), pyqtProperty()... But works in the same way.

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

      @@WandersonItsMe @LinTiong Lau, Thanks you for your response. It works beautifully now.

    • @omaral-halabiah2851
      @omaral-halabiah2851 3 роки тому

      @@lintionglau1199 yes. and we have to add the following import
      from PyQt5.QtCore import QObject, pyqtProperty

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

    wah le lvl

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

    ok