Signals and Slots in Qt | Qt QML Tutorial #3 | Scythe Studio

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

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

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

    This is amazing. I love the super realistic internet explorer example! I was laughing while learning!!

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

      ScytheStudio entertains and educates 😄

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

    The only source that explains QML sign language with QT 6. Great, I'm very happy to have found this, thank you.

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

    This is gold! Thanks for great series. ❤

  • @klaotische5701
    @klaotische5701 16 วันที่ผ่านมา

    At 14:06, why I can't have the terminal popped up after running it?
    I'm using Qt Console Application as project template.
    It does show "Type in your search phrase:" in Application Output tab though.

    • @klaotische5701
      @klaotische5701 16 วันที่ผ่านมา

      alright I've found it.
      Go to "Projects" > "Build&Run" > "Run", check "Run in terminal", and it will work.

  • @jamal978
    @jamal978 2 หลายเดือนก่อน

    Great job ! Thanks

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

    Nice tip, that qOverload() bit. I had forgotten about that!

  • @johannesgreiner2690
    @johannesgreiner2690 8 หลายเดือนก่อน +1

    Great, I like it how you have demonstrated the Qt signal/slot mechanism over a small set of classes. Did not fully understand the qOverload template thing, but hope to figure it out through Qt documentation..

    • @manuelanatoliyarciasalmero9095
      @manuelanatoliyarciasalmero9095 2 หลายเดือนก่อน +1

      Basically inside the QTimer class, there are two "start" functions(overloaded functions). One is
      void start(), and the other is void start(int msec). So when connecting, it doesn't know which one to use. When wrting qOverload it selects the first one. If it were to select the second one, it would be qOverload

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

    I have a problem, I copied your code completely and ran it. It gave me the message in the console "Type in your search phrase" but when I typed it, the program doesnt want to continue. Any tips?

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

      I have the same here.
      Seems like the problem is in 03-signals-and-slots/initial/UserInteractor.cpp:15 where it calls s.readline()
      Somehow it blocks and doesn't return. I am on MacBook M2

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

      for the sake of quick progress you can just replace with const auto &phrase = QString("my phrase");
      to avoid that readline call. It worked for me.

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

      You can try Projects -> Run -> Run Setting -> Tick Run in the terminal.
      This is a quite old image I stole from some guy:
      imagizer.imageshack.com/img923/8415/vPJ9Rx.png

    • @artiem6995
      @artiem6995 9 หลายเดือนก่อน +1

      QT Applicatin Output window does not accept input. I had to call generated exe file from windows terminal. From the qt Applcation Output you can see the path of generated exe file. But in order to run that exe file, I needed to edit path environment variable by adding path of mingw bin directory because it needs dll files.

    • @johannesgreiner2690
      @johannesgreiner2690 8 หลายเดือนก่อน +4

      Worked for me with Qt Creator 13.0.0. Have unchecked "use internal terminal" under "Edit --> Preferences --> Terminal" and
      checked "Run in terminal" under "Project --> Build & Run --> Run.

  • @chemdimon
    @chemdimon 3 หลายเดือนก่อน

    thanks for information!

  • @piotrjaga6929
    @piotrjaga6929 10 หลายเดือนก่อน

    "We need to slow down the internet exploler" I am dead XDD

  • @RupamitaSarkar
    @RupamitaSarkar 6 หลายเดือนก่อน

    hi, how can I invoke the connect method from C++ if my MainWindow is derived from QMainWindow and not from QObject

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

    very nice Łukasz

    • @Akozanful
      @Akozanful 6 หลายเดือนก่อน

      Thanks!

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

    It's kinda funny when you implement the InternetExplorer's browse function with "Not responding..." text :)

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

      The other episodes are full of easter eggs as well :D

  • @trrcs-035rachithkumar5
    @trrcs-035rachithkumar5 ปีที่แล้ว

    Sir how to call signal location to qml maps

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

    You should have explained it with much simpler example rather than explaining it with connecting a chain of signals and slots.