How to Register C++ Class in your QML Application (Qt QML C++) | Qt QML Tutorial #12 | Scythe Studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ม.ค. 2025

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

  • @kingofdice66
    @kingofdice66 ปีที่แล้ว +2

    Very well done!
    One of the best.

  • @edwinmartens509
    @edwinmartens509 11 หลายเดือนก่อน +3

    You should write a book about Qt and qml.. I'll buy it !

  • @mateusz4140
    @mateusz4140 5 หลายเดือนก่อน

    Great episode 🔥

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

    I don't know why: no matter which tutorial I look at there's none that talks about Interfacing QML with C++ via Extension Plugins.
    The Qt Documentation is not quite up-to-date in that regard, the Examples are a mess and there's no Course talking about it.
    I have some Data Models, Data Source, and a Controller, which I have as C++20 Modules, would love to make them Extension Plugins to be used with QML (as View), but nah, I can't. Sometimes it's the technicalities themselves, and sometimes I just think it's Qt that can't work with C++20 Modules yet. What a pity!
    Anyways.
    Your series is good though. For Beginners and intermediates this is *literally* gold. Congrats. All the best!

    • @MikeTrahearn
      @MikeTrahearn ปีที่แล้ว +2

      There are a number of ways to get your data into QML - you may consider QML_FOREIGN C++ macro or maybe even the qt_generate_foreign_qml_types() CMake macro. Both will require you to add your sources to a new or existing QML Module using qt_add_qml_module() CMake macro. All the best with your challenge!

    • @theintjengineer
      @theintjengineer ปีที่แล้ว +2

      @@MikeTrahearn, thanks for the input, Mike. I'll reason about that🙌🏽
      Greetings from Germany.

    • @scythe-studio
      @scythe-studio  ปีที่แล้ว +2

      Thank you @theintjengineer.
      In the future we plan to publish some more advanced content as well :D