1.禁用播放界面的绘画属性
setAttribute(Qt::WA_PaintOnScreen, true);时
要同时重写绘画引擎函数
**QPaintEngine * paintEngine() const
{
#ifdef _MSC_VER
return NULL;//win 无法实现双缓冲,所以要播放视频时禁用自带绘画引擎(否则会发生闪烁)
#else
return QFrame::paintEngine();
#endif
}**
1.禁用播放界面的绘画属性
setAttribute(Qt::WA_PaintOnScreen, true);时
要同时重写绘画引擎函数
**QPaintEngine * paintEngine() const
{
#ifdef _MSC_VER
return NULL;//win 无法实现双缓冲,所以要播放视频时禁用自带绘画引擎(否则会发生闪烁)
#else
return QFrame::paintEngine();
#endif
}**