2018-04-06 11:16:37 +08:00
|
|
|
|
#include "mainwindow.h"
|
2018-06-09 01:38:46 +08:00
|
|
|
|
#include <QQtApplication>
|
2018-04-06 11:16:37 +08:00
|
|
|
|
#include <QQtApplication>
|
|
|
|
|
#include <qqtcore.h>
|
|
|
|
|
|
2018-04-17 19:32:16 +08:00
|
|
|
|
int main ( int argc, char* argv[] )
|
2018-04-06 11:16:37 +08:00
|
|
|
|
{
|
2018-04-17 19:32:16 +08:00
|
|
|
|
QQtApplication a ( argc, argv );
|
2018-04-06 11:16:37 +08:00
|
|
|
|
|
|
|
|
|
MainWindow w;
|
|
|
|
|
//w.show();
|
|
|
|
|
|
|
|
|
|
//赋值给byte 8个字节 uint64。
|
|
|
|
|
QByteArray array;
|
|
|
|
|
quint64 a0 = 12345678;
|
|
|
|
|
array << a0;
|
|
|
|
|
|
|
|
|
|
//取出来 int64
|
|
|
|
|
qint64 b0;
|
|
|
|
|
array >> b0;
|
|
|
|
|
|
|
|
|
|
//检查int64对不对?
|
|
|
|
|
pline() << b0;
|
|
|
|
|
|
|
|
|
|
//windows
|
|
|
|
|
//经过测试,结果正确。
|
|
|
|
|
|
|
|
|
|
return 0;//a.exec();
|
|
|
|
|
}
|