I'm looking to use what I consider an "elegant" solution of having the same child have multiple parents; The reason being the only things these dialogs share are a few buttons; but I figured if I could figure out how to give the same thing multiple parents then it reduces the duplicate work. The only times these buttons have unique operations called on them (outside of their menus and things) are from their parents calling "hide" and such (implicitly.)
I'm assuming you can't do this since you pass in a parent pointer at the beginning, and merely having the child object's pointer in the class is probably not enough (since Qt won't consider it an official parent; as we haven't passed in the second parent's pointer.)
Thoughts?
Bookmarks