QString 若干知识

 QString 若干知识

 

 

Qt中 QString::compare返回值判定:

int a = QString::compare( "def", "abc" );   // a > 0

int b = QString::compare( "abc", "def" );   // b < 0

int c = QString::compare(" abc", "abc" );   // c == 0

 

你可能感兴趣的:(QString 若干知识)