And just for clarification - a "struct" in C++ is also a class so instances of it can be treated as any other C++/Qt object (i.e. like QString or QObejct).
The code needs one correction, you have to return properly prefixed type:
Qt Code:
MyClass::MyStruct *MyClass::getMyStruct() { return mystruct; }To copy to clipboard, switch view to plain text mode
Bookmarks