2018-02-07 14:27:51 +08:00
|
|
|
|
#include <QCoreApplication>
|
|
|
|
|
#include <QDebug>
|
|
|
|
|
#include <qqtapplication.h>
|
2018-02-07 15:08:11 +08:00
|
|
|
|
#include <qqtcore.h>
|
|
|
|
|
#include <qqtdictionary.h>
|
2018-02-07 14:27:51 +08:00
|
|
|
|
|
|
|
|
|
int main ( int argc, char* argv[] )
|
|
|
|
|
{
|
|
|
|
|
QQtApplication a ( argc, argv );
|
2018-02-07 15:08:11 +08:00
|
|
|
|
|
2018-02-07 14:27:51 +08:00
|
|
|
|
qDebug() << "ccc";
|
2018-02-07 15:08:11 +08:00
|
|
|
|
|
2018-04-26 16:37:54 +08:00
|
|
|
|
QQtDictionary dict;
|
2018-02-07 15:08:11 +08:00
|
|
|
|
dict[0][1][2][3][4]["my name"][5][6] = "a string";
|
|
|
|
|
pline() << dict[0][1][2][3][4]["my name"][5][6].getValue().toString();
|
|
|
|
|
|
2018-10-30 11:36:13 +08:00
|
|
|
|
//win32: 命令行输入 chcp 65501 乱码解除
|
|
|
|
|
#ifdef __WIN__
|
|
|
|
|
//会导致清屏,请用户手动设置chcp纠正代码页。LibQQt程序一律为UTF-8编码输出。
|
|
|
|
|
//system("chcp 65001");
|
|
|
|
|
#endif
|
2018-02-07 15:08:11 +08:00
|
|
|
|
QTextStream qin ( stdin );
|
|
|
|
|
pline() << "你的输入:" << qin.readLine();
|
|
|
|
|
|
|
|
|
|
return 0;
|
2018-06-03 08:25:48 +08:00
|
|
|
|
//return a.exec();
|
2018-02-07 14:27:51 +08:00
|
|
|
|
}
|