代码拉取完成,页面将自动刷新
同步操作将从 whik/qte_2019_ncov 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#include "about.h"
#include "ui_about.h"
//#include "windows.h"
#include <QDesktopServices>
#include <QDesktopWidget>
#include <QDebug>
about::about(QWidget *parent) :
QDialog(parent),
ui(new Ui::about)
{
ui->setupUi(this);
this->setWindowTitle("about");
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
// setLocation();
ui->tb_about->setOpenLinks(false);
connect(ui->tb_about, SIGNAL(anchorClicked(const QUrl&)), this, SLOT(anchorClickedSlot(const QUrl&)));
}
about::~about()
{
delete ui;
}
void about::anchorClickedSlot(const QUrl& url)
{
QDesktopServices::openUrl(url);
// ShellExecuteA(NULL, "open", url.toString().toStdString().c_str(), "", "", SW_SHOW);
}
void about::setLocation()
{
const QRect availableSize = QApplication::desktop()->availableGeometry(this);
qint32 DESKTOP_QT4 = 264199;
qint32 DESKTOP_QT5 = 329728;
qint32 ARM_IMX287 = 263939;
qint32 ARM_YA157C = 264199;
//output current qt version id
qDebug() << QT_VERSION;
//output current screen resolution ratio
qint16 width = availableSize.width();
qint16 height = availableSize.height();
qDebug() << "width: " << width << "height:" << height;
// if(QT_VERSION == ARM_IMX287)
// this->resize(width-5, height-15);
// else
if(QT_VERSION == ARM_IMX287)
this->resize(width/2, height);
qint16 loc_width = this->width();
qint16 loc_height = this->height();
qint16 loc_x = (width - loc_width) / 2;
qint16 loc_y = (height - loc_height) / 2;
qDebug() << "locx:" << loc_x << "locy" << loc_y;
// if(QT_VERSION == ARM_IMX287)
// this->move(0, 0);
// else
if(QT_VERSION == ARM_IMX287)
this->move(loc_x, loc_y);
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。