#include <QApplication>
#include <QPushButton>
int main(int argc,char *argv[])
{
QApplication app(argc,argv);
QPushButton hello("hello Qt!");
hello.resize(100,30);
hello.show();
return app.exec();
}
如果我把第四行写成QPushButton hello("你好 Qt!");为什么“你好“两个子显示的是乱码