from the top of my head:
You could override the constructor (or maybe showEvent()) of your custom widget, to see if it has a parent, and if it does, it should look if the parent uses a style sheet, and then call setStyleSheet() with the parents styleSheet().
Bookmarks