I have tried even that way, but its not coming. is my approach correct can we add it like that, I mean by creating a class object of Widget class and adding it to the scene.