How to Add C++ Objects to your QML Application (Integrate C++) | Qt QML Tutorial #11 | Scythe Studio

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

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

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

    Thank you so much! You video is inspiring! Please, do more :-). We like them.

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

      Thanks for the comment. We will surely think about it!

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

    Is there any particular reason to create PlayerController on a heap?

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

      Stack variable and passing it to qmlRegisterSingletonInstance method would work fine as well. It's rather for educational purposes for newcomers to make them remember two things:
      1. Parent-child approach which was discussed in previous episodes -> playerController got a parent
      2. That you have to pass the instance, original object. (Well, you can't copy QObject derived objects anyway)

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

    I think your brain had a fart when you described those cars.

    • @Max-mn1qn
      @Max-mn1qn 2 หลายเดือนก่อน

      I think the joke flew way over your head