Integrating C++ with QML

  Рет қаралды 53,036

MontyTheSoftwareEngineer

MontyTheSoftwareEngineer

Күн бұрын

Пікірлер: 62
@hemas3163
@hemas3163 Жыл бұрын
I spent 2 days trying to understand this but u taught me in 20 min. Thank you 🙏
@chris-vieira
@chris-vieira 3 жыл бұрын
Straight to the point and with clear examples! May God bless you so much!
@asoftraiden
@asoftraiden Жыл бұрын
Whatever thing that pushed you to make these videos, I hope it grows to an obsession so that you make more
@iea-iea
@iea-iea 3 жыл бұрын
To be honest, I don't always write comments for any video but it would be quite unfair not to write one for this video. To the point, crystal clear, all required information is conveyed flawlessly under 15-20 minutes (which is for most the psychological limit to watch and follow a tutorial efficiently). Thanks very much buddy, have a good one :)
@vamsigarla
@vamsigarla Жыл бұрын
agree with you. straight to the point. kudos to you Monty.
@ivanangelov8825
@ivanangelov8825 Жыл бұрын
Exactly what I needed! Amazing work and amazing progression. I had a headache because of QML, since I don't have the time to run a full course, and this enlighten me within 15 minutes!
@Diablosterful
@Diablosterful 3 жыл бұрын
This was the simplest and the most clearn explanation of c++ and qml integration. Thank you
@NickEnchev
@NickEnchev 7 ай бұрын
I respect people that respect my time. Thanks!
@ZEN-on1px
@ZEN-on1px 3 жыл бұрын
Thank you for your video, simple and clear, and I hope everything you cherish is beautiful
@bluehornet6752
@bluehornet6752 3 жыл бұрын
Nice job--but here are a couple thoughts that occurred to me while watching this: 1) In your Connections element in the last example, your syntax has been deprecated in favor of a more generic Javascript syntax: function onSomeVarChanged() { // ... } Check the compiler output and you should see this. At least it does it for me here, on 5.14.2. 2) For your Q_PROPERTY example, you can just right-click on the property in the header and under Refactor there's an option for it to implement the getter/setter methods for you. It does it in the header file, but you can then have the IDE move them to the .cpp file. 3) Good point about the qmlRegisterType thing: I never thought about it much, but your example shows that it's basically just a forward declaration of the type for the QML side...and the ctor isn't called until the type is actually used there. Cool. Great video!
@MontyTheSoftwareEngineer
@MontyTheSoftwareEngineer 3 жыл бұрын
Was not aware of the new syntax for connections I'll have to make sure I start doing it that way. Just tried out the auto generation of missing Q_PROPERTY members, didn't know Qt Creator did that, will definitely save me time in the future! Thanks as always for the helpful comments, Tom!
@bluehornet6752
@bluehornet6752 3 жыл бұрын
@@MontyTheSoftwareEngineer No sweat-that’s how we learn from each other.
@KarSlon1
@KarSlon1 3 жыл бұрын
Thanks a lot. I'm doing this myself, step by step, watching your video.
@available-handle-please
@available-handle-please 2 жыл бұрын
At 4:15, callMe() is called through qml without having the Q_INVOKABLE macro. What does it add to anotherFunction() at 7:30? Since the class has to be registered anyways, it seems it could have been used in the qml page without the macro, like callMe() earlier.
@Ryochan7
@Ryochan7 9 ай бұрын
A public slot can be called from QML by default; they are already Q_INVOKABLE. Other class methods that need to be called from QML need to be defined with the Q_INVOKABLE macro.
@KekkonenOnKakkonen
@KekkonenOnKakkonen 3 жыл бұрын
This was extremely helpful, clear and easy to follow! Great job!
@jordanhoffman2894
@jordanhoffman2894 2 жыл бұрын
all of this is working, but I didn't get the nice autocomplete that you have for the class. Do you know what might be causing that?
@nastaranheidarysharifabadi4648
@nastaranheidarysharifabadi4648 Жыл бұрын
😊thank u . please teach us more. u are really good teacher
@niyaskhana8763
@niyaskhana8763 2 жыл бұрын
Great tutorial 😎.. Thanks a lot for your time on this❤.
@rajathpd3280
@rajathpd3280 3 жыл бұрын
This was very useful for me. Thank you so much mate
@M0nst3rSlay3r
@M0nst3rSlay3r 3 жыл бұрын
Thank you very much. You helped me a lot with your video.
@jayasuriya9285
@jayasuriya9285 3 жыл бұрын
Awesome tutorial in numerous methods. Great!!
@achrafahmed
@achrafahmed 3 жыл бұрын
Keep up the good work, Thank you
@dogbatsealfredmawuli2716
@dogbatsealfredmawuli2716 2 жыл бұрын
Great tutorials. I always recommend this channel to my students. Could you please make a video on OpenCV hand landmarks in QML. Thanks.
@scarletrunner85
@scarletrunner85 Жыл бұрын
i tried on different machines in cmake and qmake but got alwas error: qrc:/main.qml:13:17: Invalid attached object assignment. classA is not found
@tejendrakumar19
@tejendrakumar19 2 жыл бұрын
Can any tell me in which qt or qml radar position plan indicator can be make
@Rahul-po9yg
@Rahul-po9yg 3 жыл бұрын
simple and straight . loved it
@anzekejzar3233
@anzekejzar3233 2 жыл бұрын
Hi, can i install this project as a plasmoid widget and add it to desktop? (using: manjaro KDE)
@nishithmehta3411
@nishithmehta3411 Жыл бұрын
How can you do it using the Qml Context for multiple classes?
@desarrollou71x72
@desarrollou71x72 Жыл бұрын
hello!, nice tutorial,.. i still dont get the relationship between m_someVar and someVar property, how setSomevar knows what QString is updating?..
@Ryochan7
@Ryochan7 9 ай бұрын
The Q_PROPERTY macro just sets up hooks for the getter, setter, and signal; mostly it is just for simpler syntax. You still have to edit the setSomeVar setter method in the class to have the method update the m_someVar field.
@jasonoliver2752
@jasonoliver2752 2 жыл бұрын
Really helpful tutorial!
@theintjengineer
@theintjengineer Жыл бұрын
Coul you please create a video on how to use C++ types by having them as plugins? It's not the creation of the C++ type, it's the registration via CMake where I'm hanging. I can't make my main qml app find the module. I must be doing something wrong on the import path side. Thank you very much.
@AyushVachhani
@AyushVachhani 2 ай бұрын
I have got the same issue, did you figure out the solution ?
@VIVEKBHEEMASHAPPA
@VIVEKBHEEMASHAPPA 2 жыл бұрын
Great tutorials.
@verchik8848
@verchik8848 3 жыл бұрын
Love you(Hi from Belarus)♥
@tomfranky1744
@tomfranky1744 3 жыл бұрын
Thank you. Good tutorial. And a question, we could not use the Q_INVOKABLE macros in the code, agree? So what are the benefits if we use them, please?
@Eddytorial
@Eddytorial 3 жыл бұрын
Crystal clear. thank you.
@tranhung5337
@tranhung5337 3 жыл бұрын
very easy to understand. Thank you !!
@BilalAlDulaimi
@BilalAlDulaimi 2 жыл бұрын
Hi Monty, you did a great job by recording and publishing beneficial educational videos, of course, this took all of your time during the preparation of these videos thank you from the heart, I have a question its possible to run two displays from different paths or from QT. Thank you in advance.
@anandbhatia6347
@anandbhatia6347 2 жыл бұрын
Thank you for this very nice tutorial Monty. Do you know how to control GPIO/Serial port on/CAN BUS/ADC on Raspberry pi and other hardware like Toradex APALIS ? If you do not know how to do it, can you refer someone who knows this.Regards
@nasroml12
@nasroml12 3 жыл бұрын
Nice video, thnx a lot, I am subscribing
@mouhamadbourouba5382
@mouhamadbourouba5382 2 жыл бұрын
How to share struct to qml ?
@toki-cu3ks
@toki-cu3ks Жыл бұрын
It's so good!
@nithishnagam
@nithishnagam 3 жыл бұрын
To the point !! Thank you
@stephencolon5304
@stephencolon5304 3 жыл бұрын
This was explained very well I just had to slow down the video a little bit to keep up lol
@abbasyazdanmehr9997
@abbasyazdanmehr9997 Жыл бұрын
Awesome 🎈
@Wolkenkeller
@Wolkenkeller 3 жыл бұрын
saved my day, thx
@SithaSek
@SithaSek 3 жыл бұрын
I'm into your channel. thanks and sub.
@duruakuebuka9148
@duruakuebuka9148 2 жыл бұрын
I love you sooo much
@JihoonLee-j2l
@JihoonLee-j2l Жыл бұрын
와 멋있네요!
@sonulohani
@sonulohani 3 жыл бұрын
Nice example
@MO-fg2cm
@MO-fg2cm 5 ай бұрын
why is qml so hard
@MO-fg2cm
@MO-fg2cm 2 ай бұрын
It's not so hard ... after 2 months
@behzadabf
@behzadabf 3 жыл бұрын
this much of work for just button hello ???!!! that is not uesable. sorry qt.
@IPpitt
@IPpitt Жыл бұрын
Actually not, For just button hello you can do it inside QML. You even don't need C++ for simple things. Whole UI parts of the logic can be just on QML + JS. This example just shows how integrate C++ backend code with QML and how to connect QML with C++
@behzadabf
@behzadabf Жыл бұрын
@@IPpitt i start using lvgl with c as embedded system on soc chips just perfect. try once. 🌸⭐
@breakingtwitting
@breakingtwitting 2 жыл бұрын
Never would use qt for anything. too much black magic plus ridiculous pricing in package.
@nguyentranminhtan.1999
@nguyentranminhtan.1999 2 жыл бұрын
hay lắm man
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 577 М.
QML: StackView vs Loader; Complete code example!
31:18
MontyTheSoftwareEngineer
Рет қаралды 22 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Let's Recreate the Tesla UI in Qt and QML PART 1!
51:16
MontyTheSoftwareEngineer
Рет қаралды 82 М.
The Absolute Best Intro to Monads For Software Engineers
15:12
Studying With Alex
Рет қаралды 680 М.
How Qt Signals & Slots Work
20:10
Velcode
Рет қаралды 26 М.
Qt 6 - Episode 27 - Qt Widgets vs QML and Qt Quick
21:32
VoidRealms
Рет қаралды 27 М.
how Google writes gorgeous C++
7:40
Low Level
Рет қаралды 992 М.
Smart Thermostat UI in QML Part 2: QML Development
54:46
MontyTheSoftwareEngineer
Рет қаралды 18 М.
Rust vs C++
7:18
conaticus
Рет қаралды 106 М.
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
the TRUTH about C++ (is it worth your time?)
3:17
Low Level
Рет қаралды 827 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН