Hi everybody, I do not know if this is the right place to post my question.
Anyway this is the issue.
I am beginner Qt and C++ amd so I have a lot of doubts.
using the wizzard of Qt I saw a few differnt in creating code but I did not find any explanation in Qt guide:
If i write: Qwidget w; I obtain an Object w with all methods and Propertis and I can acces them with ( . )
I mean w.show() same for QApplication
but when I create for example a label, I write: QLabel Lb=new QLabel();
Can someone explain me:
1 - which is the right way to declare an object
2 - what is the difference between these 2 modes
3 - where can I read the right way in Qt guide?
I mean ( point 3 ) when I consult the Qt guide and I check this or other classes, How cab I understand if
I have to use this modality Class_name Object_Name;
Class_name Object_name= new Class_name();
Please help me
Thanks a lot