hide the videoplayer widget and then can safely call vivideoplayer->deletelater(), if calling from one of the slots of videoplayer, else can call delete videoplayer; directly.

how to use inheritance in qt so that i can control videoplayer in all my subclasses
inherit as if it were just another widget, is there any problem in doing so.