vlc_linux/vlc-3.0.16/modules/gui/qt/components/interface_widgets.cpp
/**********************************************************************
 * Video Widget. A simple frame on which video is drawn
 * This class handles resize issues
 **********************************************************************/
Video Widget. A simple frame on which video is drawn
This class handles resize issues
Video Widget . A simple frame on which video is drawn This class handles resize issues
VideoWidget::VideoWidget( intf_thread_t *_p_i, QWidget* p_parent )
            : QFrame( p_parent ) , p_intf( _p_i )
{
    layout = new QHBoxLayout( this );
    layout->setContentsMargins( 0, 0, 0, 0 );
    stable = NULL;
    p_window = NULL;
    show();
}
VideoWidget :: VideoWidget ( intf_thread_t * _p_i , QWidget * p_parent ) : QFrame ( p_parent ) , p_intf ( _p_i ) { layout = new QHBoxLayout ( this ) ; layout -> setContentsMargins ( 0 , 0 , 0 , 0 ) ; stable = NULL ; p_window = NULL ; show ( ) ; }
Video Widget.
Video Widget .
/* Set the policy to expand in both directions */ // setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );