一样的代码:
void MainWindow::huamian_slecet(QString text)
{
qDebug()<<"text==="<<text;
if(text == "单画面")
{
qDebug()<<"xianshi one";
}
}
xp下输出:[size=; font-size: 8pt,8pt]text=== "单画面"
[size=; font-size:8pt,8pt][font='Courier']xianshi one
[size=; font-size:8pt,8pt][font='Courier']这是我想要的结果
[size=; font-size:8pt,8pt][font='Courier']
[size=; font-size:8pt,8pt][font='Courier']但是在ubuntu下输出:
text=== "单画面"
[size=; font-size:8pt,8pt][font='Courier']没有进入if判断,这是为什么呢?
[size=; font-size:8pt,8pt][font='Courier']谢谢