1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
tianduanrui bd17f85c79 update
2018-10-30 11:36:13 +08:00

28 lines
716 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include <QCoreApplication>
#include <QDebug>
#include <qqtapplication.h>
#include <qqtcore.h>
#include <qqtdictionary.h>
int main ( int argc, char* argv[] )
{
QQtApplication a ( argc, argv );
qDebug() << "ccc";
QQtDictionary dict;
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();
//win32: 命令行输入 chcp 65501 乱码解除
#ifdef __WIN__
//会导致清屏请用户手动设置chcp纠正代码页。LibQQt程序一律为UTF-8编码输出。
//system("chcp 65001");
#endif
QTextStream qin ( stdin );
pline() << "你的输入:" << qin.readLine();
return 0;
//return a.exec();
}