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

Поделиться
HTML-код
  • Опубликовано: 13 дек 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.

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

    its incredible. You are mad man! Thank you!

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

    I love you!!!
    Very good explanation.

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

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

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

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

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

    Wow Good lecture.

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

    rare video of creating toggle button with qt

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

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

    many thanks

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

  • @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: ruclips.net/video/pD0UeD7S27s/видео.html

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

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

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

  • @urlanbarros
    @urlanbarros 7 месяцев назад

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

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

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

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

    thank you

  • @MohamedGamal-mt7io
    @MohamedGamal-mt7io 2 года назад

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

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

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

    thx bro

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

    wah le lvl

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

    ok