What about forward declaration of the var type, and use a pointer to it.
Something like:
This way you don't have to include the header here, but only in the source file.Qt Code:
struct SomeOtherStruct; class MyClass { ... SomeOtherStruct* other; ... }To copy to clipboard, switch view to plain text mode
If you don't find this acceptable, then we can see some relevant code?
Regards.
Bookmarks