Set window title in widget class