qt_demoe/widget/gifwidget/frmgifwidget.cpp

21 lines
475 B
C++
Raw Normal View History

2021-03-08 01:04:13 +00:00
#include "frmgifwidget.h"
#include "ui_frmgifwidget.h"
#include "gifwidget.h"
frmGifWidget::frmGifWidget(QWidget *parent) : QWidget(parent), ui(new Ui::frmGifWidget)
{
ui->setupUi(this);
}
frmGifWidget::~frmGifWidget()
{
delete ui;
}
void frmGifWidget::on_pushButton_clicked()
{
2021-08-25 06:30:30 +00:00
//设置截图窗口置顶显示
GifWidget::Instance()->setWindowFlags(GifWidget::Instance()->windowFlags() | Qt::WindowStaysOnTopHint);
2021-03-08 01:04:13 +00:00
GifWidget::Instance()->show();
}