You can call setAttribute from WBaseWidget using m_pWidget. After all the recent changes in master with adding non-WWidget widgets I think it's important that this change not just be for WWidgets.