QFile file( path+"keywords.txt" );if( file.open( QIODevice::ReadOnly ) ) { QTextStream stream( &file ); stream.setCodec( "UTF-8" ); text = stream.readAll(); file.close();}