g++ hello.cpp -I /opt/bin/qt570/5.7/gcc_64/include/ -L /opt/bin/qt570/5.7/gcc_64/lib/ -lQt5Core -fpic
#include <QtCore/QCoreApplication>
#include <QtCore/QDebug>
// #include <iostream>
int main(int argc, char *argv[])
{
// QCoreApplication a(argc, argv);
QObject obj;
obj.setObjectName( "test" );
// std::cout << obj.objectName().toLocal8Bit().constData(); // 显示到标准输出流(不是Creator集成的控制台)
qDebug() << obj.objectName();
qDebug() << "hello\n";
qDebug() << "你好!";
//return a.exec();
}