新增代码
This commit is contained in:
@@ -179,7 +179,11 @@ void VideoWidget::resizeEvent(QResizeEvent *)
|
||||
//flowPanel->setGeometry(borderWidth, this->height() - height - borderWidth, this->width() - (borderWidth * 2), height);
|
||||
}
|
||||
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
void VideoWidget::enterEvent(QEnterEvent *)
|
||||
#else
|
||||
void VideoWidget::enterEvent(QEvent *)
|
||||
#endif
|
||||
{
|
||||
//这里还可以增加一个判断,是否获取了焦点的才需要显示
|
||||
//if (this->hasFocus()) {}
|
||||
|
||||
Reference in New Issue
Block a user