So it does work, right? You’re passing correct data. It’s just the debugger not showing it.
May be unrelated: in the first screenshot you create a widget but don’t add it to parent. If you don’t reference it somehow, the garbage collection will scoop it sooner or later.