Hi there, Definitely one of the best videos about Qt in this platform! Thanks a LOT for teaching us using a very informal and easy-to-understand way. Best Regards from sunny Japan, Wilson Pardi Junior
Hi, Thank you for your interest! The slides shown in the video are part of a training course that we offer. Unfortunately, we are unable to share the slides separately. If you have any other questions or need further information about the course, feel free to let us know!
Not unless you have a reason for it. Consider this class: class Person { int* age; ... } Would you allocate the age with out without the pointer? You may for sure have a reason for it, say if the age is owned by some other object, but you just need to be able to reference it, but usually (say 99% of the times), you would not have it as a pointer. Now same applies if you extend the class like this: class Person { int age; QString name; QStringList hobbies; ... } Unless you have a good reason, those instance should not be allocated using new.
Hi there,
Definitely one of the best videos about Qt in this platform! Thanks a LOT for teaching us using a very informal and easy-to-understand way.
Best Regards from sunny Japan,
Wilson Pardi Junior
Hi Wilson,
thank you very much for this lovely feedback! :) Glad to hear that you enjoy our videos.
Thanks for this video. I was said that I don't understand QObject model, so it's quit helpful 😄
I rewatched the episode today and I still learned a lot🙃
Thanks for your share ! How to get the slides of the lession?
Hi,
Thank you for your interest! The slides shown in the video are part of a training course that we offer. Unfortunately, we are unable to share the slides separately. If you have any other questions or need further information about the course, feel free to let us know!
so we should not allocate new that dosent inherit from QObject?
Not unless you have a reason for it. Consider this class:
class Person {
int* age;
...
}
Would you allocate the age with out without the pointer? You may for sure have a reason for it, say if the age is owned by some other object, but you just need to be able to reference it, but usually (say 99% of the times), you would not have it as a pointer.
Now same applies if you extend the class like this:
class Person {
int age;
QString name;
QStringList hobbies;
...
}
Unless you have a good reason, those instance should not be allocated using new.
Thanks for making these videos.
We're happy that you enjoy these videos! :)