代码如下:
fileBtn=new QPushButton;
fileBtn->adjustSize();
fileBtn->setText(tr("文件标准对话框"));
报错如下:
D:\QtProject\DialogExample\dialog.cpp:13: error: C2001: newline in constant
D:\QtProject\DialogExample\dialog.cpp:16: error: C2146: syntax error: missing ')' before identifier 'fileLineEdit'
D:\QtProject\DialogExample\dialog.cpp:16: error: C2143: syntax error: missing ')' before ';'
当我把中文减为4个字及以下时 程序就能正常运行,求教这是怎么回事?