class xxx{QByteArray title;}
if(title != "*.mvt") return;
if(title == "*.mvt") return;
C++ (Qt)if (title == QString("*.mvt"))...
C++ (Qt)char title[128];strcpy(title, "*.mvt");if (title == "*.mvt")..
C++ (Qt)if (title == QLatin1String("*.mvt"))...
C++ (Qt)$ cat main.cpp#include <QByteArray>#include <QDebug> int main( int, char ** ){ QByteArray buf( "*.mvt" ); qDebug() << "buf == *.mvt ->" << (( buf == "*.mvt" )? "Yes" : "No"); qDebug() << "buf != *.mvt ->" << (( buf != "*.mvt" )? "Yes" : "No"); return 0;} $ ./testbuf == *.mvt -> Yes buf != *.mvt -> No