Giving a widget as a parent is safe because when an object is deleted, it is being detached from the parent so the parent will not delete it again.
@Jay-D: about switching to Qt Quick -- it's a matter of doing things in a more convenient way. It's only a suggestion to take a closer look at a technology that might give you additional abilities to what you're doing right now.
Bookmarks