How to call a member function from another class without creating an object ?
How to call a member function from another class without creating an object ?
You cannot call member function without an object. What if inside the method this pointer is used ? You can call only public static methods without objects.
then how can we call it with an object. can you give me an ex:
Seriously? This is extremely basic C++, knowledge of which is required to use Qt.
ok, some very very basic c++ beginner code:
Qt Code:
CObject myObject; myObject.myMemberMethod();To copy to clipboard, switch view to plain text mode
Come on, I can't imagine someone to dig into Qt without such knowledge, this is ... simply impossible...
Bookmarks