改进部分代码

master
feiyangqingyun 2021-03-29 09:37:22 +08:00
parent f7845e1515
commit 8beba8758b
3 changed files with 6 additions and 2 deletions

View File

@ -4,8 +4,10 @@
#if (QT_VERSION > QT_VERSION_CHECK(5,0,0))
#include <QtWidgets>
#ifdef websocket
#include <QtWebSockets>
#endif
#endif
#include "app.h"

View File

@ -274,7 +274,9 @@ void VideoWidget::drawBorder(QPainter *painter)
void VideoWidget::drawBg(QPainter *painter)
{
painter->save();
if (bgColor != Qt::transparent) {
painter->fillRect(rect(), bgColor);
}
//背景图片为空则绘制文字,否则绘制背景图片
if (bgImage.isNull()) {