Hi,
Is it possible to declare a friend class between two dialogs without having to subclass them?
Thanks for any help,
Jay
Hi,
Is it possible to declare a friend class between two dialogs without having to subclass them?
Thanks for any help,
Jay
Good Evening (where I am),
I presume you wish to do this in Designer. In the Object Explorer, make sure you choose the dialog which is going to grant access. Go to the Members tab and down to 'Class Variables'.
Add a "new variable" in public or protected (I don't believe it matters) that looks something like this:
where "friend class OtherDialogClass" is the variable name. This should work fine.Qt Code:
public: friend class OtherDialogClass;To copy to clipboard, switch view to plain text mode
Cheers,
Math
jayw710 (18th April 2006)
Thank you. Worked like a charm!
Jay
Bookmarks