Working with Multiple Forms in Qt C++ - Qt Widgets Crash Course

Поделиться
HTML-код
  • Опубликовано: 6 ноя 2024
  • In this tutorial, you'll learn how to work with multiple forms in Qt C++, and how to exchange information between them. We'll use the constructor of the second form to pass data into it, and then we'll get data from it using signals and slots. We'll also explore the powerful connect function, which allows us to create event handlers at runtime.
    With step-by-step instructions and clear explanations, you'll learn how to use these techniques to build more complex applications with Qt. Whether you're a beginner or an experienced developer, this tutorial will give you the tools you need to take your projects to the next level.
    Telegram Community: t.me/wearesciber
    Visit Us : sciber.dev
  • НаукаНаука

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

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

    Thank you !! You save myself ❤

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

    Very Well explained :). Please can you make video how to use QThread?

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

    Nice explanation as always ❤️

  • @Nathan-gd6br
    @Nathan-gd6br Год назад +1

    in mainwindows.cpp file, you create a pointer to Dialog every time button clicked. but you didn't delete it. you will end up with memory problem

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

      Well actually, since i passed "this" to the constructor when creating the object, it sets up a parent child relationship between the mainwindow and the dialog. Then when the parent gets deleted the child will be deleted as well. I didn't mention this clearly in the video, sorry about that.

    • @Nathan-gd6br
      @Nathan-gd6br Год назад +1

      @@wearesciber No. Parents will delete their children . But in your case Your parent is main windows. In another word, As long as you don't close your application. Your dialogue will remain in memory. Let's say you click the button 10 times You will have 10 dialogue, remain your memory unless you close the whole application

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

      Mmm. Yeah you are right. Thanks for pointing it out.

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

    well explained!

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

    Super👍

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

    :u