If you create the widget, call its method to retrieve the context, then call setShareContext() with that pointer using your common context, that doesn't work?