I am looking for a convenient way to write messages to the statusbar from any widget, which may be instantiated in a subclassed widget, which again is instantiated in a class subclassed from QMainwindow. What is the correct way to do this? I could probably create a chain of getParent() methods, but it seems a bit messy.