Introduction to Qt/QML (Part 38) - Qt's Meta Object System

แชร์
ฝัง

ความคิดเห็น • 12

  • @liautraver3698
    @liautraver3698 4 หลายเดือนก่อน +2

    2 years later I hope the Reflection for C++26 will finally make Qt automoc into C++ language!

  • @Bhagic
    @Bhagic 10 หลายเดือนก่อน +1

    sir your just like wow wow wow

  • @Eugene-rq8kr
    @Eugene-rq8kr 3 ปีที่แล้ว +9

    С++ is definetly better than java. no arguments. :)

  • @gianlucaromeo8404
    @gianlucaromeo8404 3 ปีที่แล้ว

    Hi!
    I am trying to make a project to practise OOP and I wanted to create a simple application where I have, for example, MathStudent, which inherits from Student, which inherits from Person and so on.
    I dont' have to make a good application. I just want to explore Qt, Qml, C++, using OOP paradigms and connect them all togheter.
    My question is: should I use Q_GADGET instead of inheriting from Q_OBJECT in classes like Person, Student, ... ?
    Thanks! I appreciate it.
    I really love this playlist!

    • @KDABtv
      @KDABtv  3 ปีที่แล้ว +1

      Hi Gianluca! It depends. Probably not, as you could argue a person instance should not be copyable. Value classes (of which Q_GADGETs are an example) are meant to be copied around. You probably don't want to do that for persons, as each person is unique and you don't want to have multiple instances representing the same person within the same application.

    • @gianlucaromeo8404
      @gianlucaromeo8404 3 ปีที่แล้ว

      @@KDABtv I cannot say how thankful I am and how useful your suggestion will be. Thank you again!

    • @KDABtv
      @KDABtv  3 ปีที่แล้ว +1

      @@gianlucaromeo8404 Glad to hear! Thank you :)

  • @sergiykanilo9848
    @sergiykanilo9848 4 ปีที่แล้ว +5

    I don't see the link to the mentioned video here. Is it this one: th-cam.com/video/rtIBjTPE45Q/w-d-xo.html

    • @KDABtv
      @KDABtv  4 ปีที่แล้ว +1

      It's suppose to show in the upper right corner. You got the correct link however :)

  • @anniev335
    @anniev335 3 ปีที่แล้ว

    #QT

  • @electro.engineering
    @electro.engineering 2 ปีที่แล้ว +3

    С++ is definetly better than Java. No argument.