[vlc-devel] [PATCH] Qt: Add, FullscreenControllerWidget::updateFSCtoolbar() and use it

Edward Wang edward.c.wang at compdigitec.com
Thu Feb 23 21:40:26 CET 2012


On 12-02-23 09:34 AM, Brendon Justin wrote:
> I believe that you have to re-add a widget to its layout, if you are 
> going to destroy and re-create it (as well as removing it from its 
> parent before destroying it).  For this reason, I think that the 
> comment in this code snippet is wrong.  My understanding of Qt could 
> be wrong though. 
Which code are you talking about? The new code is perfectly accurate, as 
it simply updates the existing layout as opposed to destroying and 
recreating. There could be a little misunderstanding going on...

Thanks,
     Edward Wang



More information about the vlc-devel mailing list