Create Multiple Pages/Screens Using Python 3, Qt Designer, PySide2 or PyQt5 (Stacked Widget)

Поделиться
HTML-код
  • Опубликовано: 14 дек 2024

Комментарии • 73

  • @againstthegrain5914
    @againstthegrain5914 2 года назад +1

    after 3hrs of trying. i finally understood where I was going wrong, thanks!!

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

    Man, you are awesome. That's awesome. Thank you so much for your video. I'm doing an internship at the institute right now. This is the first time I've ever encountered creating a window application. Spent several days searching for the right information, ended up getting confused halfway through creating the design. Your video helped me out.

  • @muhammad-ali-khalid
    @muhammad-ali-khalid 7 месяцев назад

    I have no words to thank this man he killed my problem from root!!!

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

    Thanks for the tutorial. Nice!

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

    Thank you so much. It was really worth watching this video. Keep the good work up...

  • @アンソニー-v4w
    @アンソニー-v4w 3 года назад +1

    Thanks for the tutorial. I'm doing this in C++ and I couldn't find any example or tutorial replicating this behavior, I'm glad method names are the same in Python and C++.

  • @Tipichny_Zadrot
    @Tipichny_Zadrot 4 года назад +1

    Thank you very much!!
    I ve been using this for my school project)

  • @willianez7577
    @willianez7577 4 года назад +2

    Melhor canal de PyQt5 👏

  • @richardgilmore5607
    @richardgilmore5607 4 года назад +1

    Thanks for this little gem. I will give this a try. I see some possibilities with this type of gui with a stacked side menu.

    • @WandersonItsMe
      @WandersonItsMe  4 года назад

      The goal is to inspire, good luck with the stacked menu! 😀

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

    Thank you man great tutorial

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

    thank you so much, amazing tutorial!

  • @akshaywaghe7327
    @akshaywaghe7327 4 года назад +3

    thank you sir, i am fan of python and also like good user interface , i watch your video and learn all types of layout thank you for your support, there is nothing in youtube like your video for pyqt5 , qt designer, how you learn this alll stuff plz share..... thanks a lot

    • @WandersonItsMe
      @WandersonItsMe  4 года назад +3

      Thank you very much Akshay 😃. I learned by reading the documentation, watching Qt C++ videos and adapting to Python. It doesn't really have a lot of quality content geared towards graphical interface in Python, most of it looks like Windows 98 haha.

    • @akshaywaghe7327
      @akshaywaghe7327 4 года назад

      😄

  • @INURLBrasil
    @INURLBrasil 4 года назад +5

    cara como seria lindo um curso do Wanderson sobre pyqt focado total nessa pegada interface e seu UX bonito.

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

    Thanks for video.

  • @syaz1
    @syaz1 4 года назад +1

    Link btn to pages - 4:15

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

    Muuuito bom mano, agradeco demaaais!!! 🙏
    Tava quebrando a cabeca de como fazer varias telas na mesma janela, nem sabia desse "stackedWidget". 😅

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

    ok first off, how did you make that ui in 0:26? why did you skip to that part? how do you do that?

  • @mohamedanas2016
    @mohamedanas2016 4 года назад

    Good job
    👍👍💞

  • @SonOfTheTeacher
    @SonOfTheTeacher 2 месяца назад

    thank you so much

  • @gsmplay6166
    @gsmplay6166 4 года назад

    Obrigado! Vídeo simples e de grande ajuda.

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

    There's circular imports in your "main.py" and "ui_functions.py" file. How do you avoid the errors due to that?

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

    brabo demais pqp
    Top irmao

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

    thank you

  • @ViniciusBuscacio
    @ViniciusBuscacio 4 года назад

    Muito bom cara, parabéns, você é fera

  • @GoodBoyDanny
    @GoodBoyDanny 4 года назад

    Thank you!

    • @GoodBoyDanny
      @GoodBoyDanny 4 года назад +1

      Can you do a tutorial on using button to trigger a while loops. I can't figure out how to not let the application crash. Think it's a threading issue.

    • @WandersonItsMe
      @WandersonItsMe  4 года назад

      @@GoodBoyDanny I don't have a lot of knowledge about multithreads in Python, but here is a very interesting article showing some alternatives:
      www.learnpyqt.com/courses/concurrent-execution/multithreading-pyqt-applications-qthreadpool/

  • @mohamedanas2016
    @mohamedanas2016 4 года назад

    Thank you

  • @simonsing8946
    @simonsing8946 4 года назад

    Hello, I found that the pyQt5 interface/window could not show up in Atom (win 10). However, in spyder it works normally. Could you give me some hints? in the environment variable, I have already added "C:\ProgramData\Anaconda3", "C:\ProgramData\Anaconda3\Scripts" and "C:\ProgramData\Anaconda3\Library\bin" . Thank you

    • @simonsing8946
      @simonsing8946 4 года назад +1

      I just got my window show up, because my software would use the serial com. and I have not connected that. After the serial comm. is successfully established then the interface showed up. In spyder, even the port could not be established, it can still show up the window. Thanks anyway

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

    This is just what I was looking for! Is it persistent? Like if I enter some text onto page 2 and then click onto page 1, will the data I entered on page 2 stay when I click back?

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

    can we add more pages on runtime? like when an event triggered?

  • @lehvancalib493
    @lehvancalib493 4 года назад

    Nice tutorial sir. By the way is there a way to just hover the side menu instead of clicking. Thanks.

    • @WandersonItsMe
      @WandersonItsMe  4 года назад +1

      Yes, just study mouse events in PySide2 or PyQt5, in this case the MouseOver or EventFilter event

  • @ahmedzuhair1042
    @ahmedzuhair1042 4 года назад

    10000000000 thanks to u sir

  • @mrcacuna1
    @mrcacuna1 4 года назад

    great job Wanderson. is it possible to turn this into a mobile app running on an Android/iOS device? thanks.

    • @WandersonItsMe
      @WandersonItsMe  4 года назад

      PyQt5 runs on Android using PyDroid, however it is not possible to compile. Python is not a good language for Mobile, if you were to use Qt your application would have more than 100mb

  • @samuelgama1678
    @samuelgama1678 4 года назад

    Wanderson, quando eu jogo a Stacked Widget no meio, e modo o layout no modo horizontal, ele consome a barra superior, o que eu faço?

    • @WandersonItsMe
      @WandersonItsMe  4 года назад +1

      É só definir a altura mínima para ela, assim não vai quebrar, sempre bom fazer teste dimensões máximas e mínimas conforme ir criando.

    • @samuelgama1678
      @samuelgama1678 4 года назад

      @@WandersonItsMe valeu, vou tentar

  • @willianez7577
    @willianez7577 4 года назад +1

    Mano meu Pyside2 ta instalado,so que da erro de "No name pylint" para os import que inicia com "Q" por exemplo o QPropertyAnimation, sabe como resolver?

    • @WandersonItsMe
      @WandersonItsMe  4 года назад +1

      O lint é a ferramenta que ajuda a identificar erros, verifique se não instalou o PySide2 em uma versão diferente da que está usando em sua IDE. Basta setar a versão certa do Python onde está instalado o PySide2 que deverá parar de acusar erro.

    • @willianez7577
      @willianez7577 4 года назад

      Não intendi, a versão do meu python e 3.7.8 e a do pyside e a 5.15.0 por isso ta dando erro?

    • @WandersonItsMe
      @WandersonItsMe  4 года назад +1

      @@willianez7577 não, tipo você poder ter várias versões do Python instalado no mesmo computador, com isso pode ser que você instalou o PySide em outra versão, que não é a que a sua IDE está usando. Tipo no VS Code fica na parte inferior esquerda mostrando qual a versão do Python está em uso pela IDE, clicando dela você consegue escolher outra versão.
      O certo de trabalhar no Python é usando Virtual Env, caso não conheça é bom dar uma estudada, com isso instala sempre somente os módulos que o projeto vai precisar.

    • @willianez7577
      @willianez7577 4 года назад

      @@WandersonItsMe To a 2 dias tentando executar esse codigo e não consigo,ja tente de tudo virtualenv,python global ,desistalei e instalei tudo denovo vi vários vídeos sobre etc,não consigo kkk não sei como ajustar essas versões ai😒

    • @WandersonItsMe
      @WandersonItsMe  4 года назад

      @@willianez7577 estranho mano, não tem segredo, só ter o Python 3 e PySide2 2 que roda, nem executando diretamente pelo python indo em "abrir com/python" está funcionando?

  • @joke4al1
    @joke4al1 4 года назад

    Can make tutorial for Custom title bar with minimize, maximize, close buttons.

    • @WandersonItsMe
      @WandersonItsMe  4 года назад +1

      I did: ruclips.net/video/wQfKamzV1uQ/видео.html

  • @willianez7577
    @willianez7577 4 года назад

    Sabe como colocar gif ou animação no Qt designer?Talves via gaphics views...

    • @WandersonItsMe
      @WandersonItsMe  4 года назад +1

      Acho que o QMovie é possível, porém não cheguei a testar. Gif já está bem ultrapassado, se conseguir algo mais moderno seria uma boa, como o SVG animado, porém desconheço o suporte ao QT. Da para animar usando o Qanimation que foi usado para fazer o burguer menu, porém é bem limitado.
      Para interface Qt mais avançada existe o QML, com ele você pode animar praticamente tudo no Layout, como o XAML do C#, porém fazem parte do pacote pago do QT, a tecnologia é de código aberto, porém a IDE (Qt Design Studio) é pago.

  • @jandsonnava3986
    @jandsonnava3986 4 года назад

    Top

  • @dennisasamoah2213
    @dennisasamoah2213 4 года назад

    wow

  • @ehshankhan7003
    @ehshankhan7003 4 года назад

    how main.py code is created?

    • @WandersonItsMe
      @WandersonItsMe  4 года назад +1

      It is created manually! Just importing the modules and starting the class.

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

    Since you are using python, why not just load the ui directly? There is no need to export the layout as py.

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

      I had problems with runtime events using .UI files. Converting Python to all events worked correctly.

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

      @@WandersonItsMe Fair enough. I wasn't able to get all types of events working either, but most events work ok. For example, i wasnt able to change the colour of a button during run time, if the ui was loaded. Thanks sharing these video!

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

      here is a simple working example, showing how slots and signals can also be set up in Qt, then loaded into py. ruclips.net/video/LaoU_o50u9k/видео.html

  • @vilmarvieira4829
    @vilmarvieira4829 4 года назад

    Muito top

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

    Please C++ to , I love C++

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

    no pero creo q eres muy rapido