You can use dynamic_cast or qobject_cast here to stand a chance when guessing the parent type.
Forum Rules
Bookmarks