代码拉取完成,页面将自动刷新
#include <QSplashScreen>
#include <QPixmap>
#include <QDateTime>
#include <QCoreApplication>
#include <QDir>
#include <QDebug>
#include "QReadClk.h"
#include "QSPPModel.h"
#include "QualityCtrl.h"
#include "FtpClient.h"
void testRunFolder()
{
// print run flooder
qDebug() << "run floder." <<QCoreApplication::applicationDirPath();
qDebug() << "run floder." <<QDir::currentPath();
}
void testReadClk()
{
QStringList clkfiles;
clkfiles.append("/home/david/Downloads/whp20042.clk");
clkfiles.append("/home/david/Downloads/whp20043.clk");
clkfiles.append("/home/david/Downloads/whp20044.clk");
QReadClk myclk(clkfiles);
myclk.setSatlitSys("G");
myclk.getAllData();
}
void testSplash()
{
// add QSplashScreen
QString AppPath = QCoreApplication::applicationDirPath();
QString splashLogoPath = AppPath + PATHSEG + "images/splash_logo.jpg";
QSplashScreen *splash = new QSplashScreen(QPixmap(splashLogoPath));
splash->show();
qApp->processEvents();
splash->showMessage(QString("Loading..."));
int sleep_num = 5;
for(int i = 0;i < sleep_num;i++)
{
splash->showMessage(QString("MG-APP Success->%1/%2...").arg(i).arg(sleep_num));
#ifdef _WIN32
#include <windows.h>
Sleep(1000);
#else
sleep(1000);
#endif
}
splash->finish(NULL);
}
void testSPP()
{
QString spp_path = "/home/david/MySoft/TestData/SPP/CUTB";
QSPPModel spp(spp_path, NULL, "Kalman", "G");
spp.Run();
}
void testQVector()
{
QVector< int > tempEpochSatlitData;
tempEpochSatlitData.append(1); tempEpochSatlitData.append(2);
tempEpochSatlitData.append(3); tempEpochSatlitData.append(4);
reverse(tempEpochSatlitData.begin(), tempEpochSatlitData.end());
}
void testTransfer()
{
double temp_num = 3.14159265358979;
QString temp_str = QString::number(temp_num, 'f', 3);
}
void testFtpClient()
{
FtpClient m_FtpClient;
// m_FtpClient.downloadHTTPFile("http://127.0.0.1/Online_MG_APP/resources/MatlabPlot.zip", "D:/xiao.zip");
// m_FtpClient.downloadHTTPFile("http://127.0.0.1/Online_MG_APP/resources/MatlabPlot.zip", "D:/MatlabPlot.zip");
m_FtpClient.downloadHTTPFile("http://13018096950.wicp.vip/MG_APP/qupdater.xml", "D:/qupdater.xml");
for(int i = 0;i < 0;i++)
{
// m_FtpClient.pushData2Http("http://127.0.0.1/testJSON.php", "{\"firstName\": \"Gongwei\", \"lastName\": \"Xiao\"}");
#ifdef _WIN32
Sleep(1000);
#else
sleep(1);
#endif
}
int a = 0;
}
void testMain()
{
// testFtpClient();
testSplash();
int a = 0;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。