{"id":233099,"date":"2014-08-12T17:31:04","date_gmt":"2014-08-12T13:31:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=233099"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=233099","title":{"rendered":"<span class=\"post_title\">\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 Qt C++ \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0441 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 Yandex Dictionary Api<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0415\u0441\u0442\u044c \u0443 \u043c\u0435\u043d\u044f \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u043e\u043b\u0433\u043e\u0441\u0442\u0440\u043e\u0439, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Yandex Dictionary Api. \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043e\u043f\u044b\u0442\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043a \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0441\u0435\u0440\u0432\u0438\u0441\u0443.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441, \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Qt C++, \u0442\u043e \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u0434\u043b\u044f \u0432\u0430\u0441.<\/p>\n<p>  \u042f \u043d\u0435 \u0441\u0442\u0430\u043b \u0437\u0430\u043e\u0441\u0442\u0440\u044f\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043d\u0430 \u0442\u0435\u0445 \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u0445 Qt, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438 \u0442\u0430\u043a \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u044b. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u044c, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0432 Qt \u043d\u0430 \u0431\u0430\u0437\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/h4>\n<p>  \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u0442 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 Yandex Dictioanary Api \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u043b\u043e\u0432 \u0438 \u0437\u0430\u0442\u0435\u043c, \u043f\u043e \u043c\u0435\u0440\u0435 \u043f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u043e\u0442 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0438\u0445 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d.<\/p>\n<pre><code class=\"cpp\">#include &quot;Precompiled.h&quot; #include &lt;QtYandexApi\/QtYandexApi.h&gt;  int main(int argc, char *argv[]) {     QCoreApplication a(argc, argv);      QtYandexDictionary yandexDictionary(QtYandexApi::getYandexKeyFromFile(&quot;dictKey&quot;));     QObject::connect(&yandexDictionary, &QtYandexDictionary::translated,                      [](const QtYaWordTranslation& wordTranslation)     {         if (wordTranslation.isError())             qDebug() &lt;&lt; wordTranslation.errorString();         else {             QtYaWord wordForTranslation = wordTranslation.wordForTranslation();             QtYaTranslatedWord translatedWord = wordTranslation.translatedWord();             qDebug() &lt;&lt; &quot;\\n***************&quot;;             qDebug() &lt;&lt; &quot;Word: &quot; &lt;&lt; wordForTranslation.wordName();             qDebug() &lt;&lt; &quot;Direction: &quot; &lt;&lt; wordForTranslation.fromLanguage() &lt;&lt; &quot;-&quot; &lt;&lt; wordForTranslation.toLanguage();             qDebug() &lt;&lt; &quot;Main translation: &quot; &lt;&lt; translatedWord.mainTranslation();             qDebug() &lt;&lt; &quot;Synonyms: &quot; &lt;&lt; translatedWord.synonyms();             qDebug() &lt;&lt; &quot;Examples: &quot;;             for (const auto& example : translatedWord.examples()) {                 qDebug() &lt;&lt; example.first &lt;&lt; &quot;-&quot; &lt;&lt; example.second;             }         }     });      QStringList russianWords, englishWords;     russianWords &lt;&lt; &quot;\u0434\u043e\u043c&quot; &lt;&lt; &quot;\u0432\u0440\u0435\u043c\u044f&quot; &lt;&lt; &quot;\u043b\u0435\u0433\u0435\u043d\u0434\u0430&quot; &lt;&lt; &quot;\u043a\u043b\u044e\u0447&quot; &lt;&lt; &quot;\u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0430&quot; &lt;&lt; &quot;\u043c\u043e\u043d\u0438\u0442\u043e\u0440&quot; &lt;&lt; &quot;\u0441\u043b\u0443\u0447\u0430\u0439&quot; &lt;&lt; &quot;\u043e\u0434\u0438\u043d&quot; &lt;&lt; &quot;\u0434\u0432\u0430&quot; &lt;&lt; &quot;\u0442\u0440\u0438&quot; &lt;&lt; &quot;\u0447\u0435\u0442\u044b\u0440\u0435&quot; &lt;&lt; &quot;\u043f\u044f\u0442\u044c&quot; &lt;&lt; &quot;\u0448\u0435\u0441\u0442\u044c&quot;;     englishWords &lt;&lt; &quot;home&quot; &lt;&lt; &quot;time&quot; &lt;&lt; &quot;legend&quot; &lt;&lt; &quot;key&quot; &lt;&lt; &quot;keyboard&quot; &lt;&lt; &quot;monitor&quot; &lt;&lt; &quot;infection&quot; &lt;&lt; &quot;one&quot; &lt;&lt; &quot;two&quot; &lt;&lt; &quot;three&quot; &lt;&lt; &quot;four&quot; &lt;&lt; &quot;five&quot; &lt;&lt; &quot;success&quot;;      for (const QString& word : russianWords) {         yandexDictionary.translate(QtYaWord(word, &quot;ru&quot;, &quot;en&quot;));     }     for (const QString& word : englishWords) {         yandexDictionary.translate(QtYaWord(word, &quot;en&quot;, &quot;ru&quot;));     }      return a.exec(); }  <\/code><\/pre>\n<p>  <a name=\"habracut\"><\/a><br \/>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b:  <\/p>\n<blockquote><p>***************<br \/>  Word: \u00ab\u0432\u0440\u0435\u043c\u044f\u00bb<br \/>  Direction: \u00abru\u00bb \u2014 \u00aben\u00bb<br \/>  Main translation: \u00abtime\u00bb<br \/>  Synonyms: (\u00abwhile\u00bb)<br \/>  Examples: <br \/>  \u00ab\u0442\u0440\u043e\u043c\u0431\u043e\u043f\u043b\u0430\u0441\u0442\u0438\u043d\u043e\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f\u00bb \u2014 \u00abthromboplastin time\u00bb<br \/>  \u00ab\u043f\u0440\u0438\u043d\u044f\u0442\u044c \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u043a \u0432\u0440\u0435\u043c\u0435\u043d\u0438\u00bb \u2014 \u00abtake a while\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00ab\u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0430\u00bb<br \/>  Direction: \u00abru\u00bb \u2014 \u00aben\u00bb<br \/>  Main translation: \u00abkeyboard\u00bb<br \/>  Synonyms: (\u00abkeypad\u00bb, \u00abpad\u00bb)<br \/>  Examples: <br \/>  \u00ab\u044d\u043a\u0440\u0430\u043d\u043d\u0430\u044f \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0430\u00bb \u2014 \u00abonscreen keyboard\u00bb<br \/>  \u00ab\u0416\u041a\u0418-\u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0430\u00bb \u2014 \u00abLCD keypad\u00bb<br \/>  \u00ab\u0446\u0438\u0444\u0440\u043e\u0432\u0430\u044f \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0430\u00bb \u2014 \u00abnumeric pad\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00ab\u043a\u043b\u044e\u0447\u00bb<br \/>  Direction: \u00abru\u00bb \u2014 \u00aben\u00bb<br \/>  Main translation: \u00abkey\u00bb<br \/>  Synonyms: (\u00abturnkey\u00bb, \u00abclue\u00bb, \u00abwrench\u00bb, \u00abdongle\u00bb)<br \/>  Examples: <br \/>  \u00ab\u0434\u0435\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447\u00bb \u2014 \u00abunblocking key\u00bb<br \/>  \u00ab\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e\u0434 \u043a\u043b\u044e\u0447\u00bb \u2014 \u00abturnkey solution\u00bb<br \/>  \u00ab\u0438\u043c\u0435\u0442\u044c \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043a\u043b\u044e\u0447\u00bb \u2014 \u00abhave no clue\u00bb<br \/>  \u00ab\u0448\u0435\u0441\u0442\u0438\u0433\u0440\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447\u00bb \u2014 \u00abhexagonal wrench\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00ab\u043c\u043e\u043d\u0438\u0442\u043e\u0440\u00bb<br \/>  Direction: \u00abru\u00bb \u2014 \u00aben\u00bb<br \/>  Main translation: \u00abmonitor\u00bb<br \/>  Synonyms: ()<br \/>  Examples: <br \/>  \u00ab\u042d\u041b\u0422-\u043c\u043e\u043d\u0438\u0442\u043e\u0440\u00bb \u2014 \u00abCRT monitor\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00ab\u0447\u0435\u0442\u044b\u0440\u0435\u00bb<br \/>  Direction: \u00abru\u00bb \u2014 \u00aben\u00bb<br \/>  Main translation: \u00abfour\u00bb<br \/>  Synonyms: ()<br \/>  Examples: <br \/>  \u00ab\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044c \u0447\u0435\u0442\u044b\u0440\u0435 \u0447\u0430\u0441\u0430\u00bb \u2014 \u00abtwenty four hours\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00ab\u043e\u0434\u0438\u043d\u00bb<br \/>  Direction: \u00abru\u00bb \u2014 \u00aben\u00bb<br \/>  Main translation: \u00abone\u00bb<br \/>  Synonyms: ()<br \/>  Examples: <br \/>  \u00ab\u043e\u0434\u043d\u0430 \u0438\u043e\u0442\u0430\u00bb \u2014 \u00abone jot\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00ab\u0434\u0432\u0430\u00bb<br \/>  Direction: \u00abru\u00bb \u2014 \u00aben\u00bb<br \/>  Main translation: \u00abtwo\u00bb<br \/>  Synonyms: ()<br \/>  Examples: <br \/>  \u00ab\u0434\u0432\u0435 \u043d\u0435\u0441\u043c\u0435\u0448\u0438\u0432\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438\u00bb \u2014 \u00abtwo immiscible liquids\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00ab\u043b\u0435\u0433\u0435\u043d\u0434\u0430\u00bb<br \/>  Direction: \u00abru\u00bb \u2014 \u00aben\u00bb<br \/>  Main translation: \u00ablegend\u00bb<br \/>  Synonyms: (\u00abmyth\u00bb)<br \/>  Examples: <br \/>  \u00ab\u0434\u0440\u0435\u0432\u043d\u0435\u0433\u0440\u0435\u0447\u0435\u0441\u043a\u0430\u044f \u043b\u0435\u0433\u0435\u043d\u0434\u0430\u00bb \u2014 \u00abancient Greek legend\u00bb<br \/>  \u00ab\u0433\u043e\u0440\u043e\u0434\u0441\u043a\u0430\u044f \u043b\u0435\u0433\u0435\u043d\u0434\u0430\u00bb \u2014 \u00aburban myth\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00ab\u0442\u0440\u0438\u00bb<br \/>  Direction: \u00abru\u00bb \u2014 \u00aben\u00bb<br \/>  Main translation: \u00abthree\u00bb<br \/>  Synonyms: ()<br \/>  Examples: <br \/>  \u00ab\u0442\u0440\u0438 \u043c\u0443\u0448\u043a\u0435\u0442\u0435\u0440\u0430\u00bb \u2014 \u00abthree musketeers\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00ab\u0441\u043b\u0443\u0447\u0430\u0439\u00bb<br \/>  Direction: \u00abru\u00bb \u2014 \u00aben\u00bb<br \/>  Main translation: \u00abcase\u00bb<br \/>  Synonyms: (\u00abevent\u00bb, \u00aboccasion\u00bb, \u00abchance\u00bb, \u00aboccurrence\u00bb)<br \/>  Examples: <br \/>  \u00ab\u043d\u0435\u0432\u0437\u0432\u0435\u0448\u0435\u043d\u043d\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439\u00bb \u2014 \u00abunweighted case\u00bb<br \/>  \u00ab\u043d\u0435\u0441\u0447\u0430\u0441\u0442\u043d\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439\u00bb \u2014 \u00abunfortunate event\u00bb<br \/>  \u00ab\u0442\u043e\u0442 \u0440\u0435\u0434\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439\u00bb \u2014 \u00abthat rare occasion\u00bb<br \/>  \u00ab\u0441\u043b\u0435\u043f\u043e\u0439 \u0441\u043b\u0443\u0447\u0430\u0439\u00bb \u2014 \u00abblind chance\u00bb<br \/>  \u00ab\u0440\u0435\u0434\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439\u00bb \u2014 \u00abrare occurrence\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00ab\u043f\u044f\u0442\u044c\u00bb<br \/>  Direction: \u00abru\u00bb \u2014 \u00aben\u00bb<br \/>  Main translation: \u00abfive\u00bb<br \/>  Synonyms: ()<br \/>  Examples: <br \/>  \u00ab\u0441\u0435\u043c\u044c\u0434\u0435\u0441\u044f\u0442 \u043f\u044f\u0442\u044c \u043b\u0435\u0442\u00bb \u2014 \u00abseventy five year\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00abhome\u00bb<br \/>  Direction: \u00aben\u00bb \u2014 \u00abru\u00bb<br \/>  Main translation: \u00ab\u0434\u043e\u043c\u00bb<br \/>  Synonyms: ()<br \/>  Examples: <br \/>  \u00abancestral home\u00bb \u2014 \u00ab\u043e\u0442\u0447\u0438\u0439 \u0434\u043e\u043c\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00ab\u0448\u0435\u0441\u0442\u044c\u00bb<br \/>  Direction: \u00abru\u00bb \u2014 \u00aben\u00bb<br \/>  Main translation: \u00absix\u00bb<br \/>  Synonyms: ()<br \/>  Examples: <br \/>  \u00ab\u0448\u0435\u0441\u0442\u044c \u0441\u0438\u0433\u043c\u00bb \u2014 \u00absix Sigma\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00abtime\u00bb<br \/>  Direction: \u00aben\u00bb \u2014 \u00abru\u00bb<br \/>  Main translation: \u00ab\u0432\u0440\u0435\u043c\u044f\u00bb<br \/>  Synonyms: (\u00ab\u0440\u0430\u0437\u00bb, \u00ab\u0442\u0430\u0439\u043c\u00bb)<br \/>  Examples: <br \/>  \u00abthromboplastin time\u00bb \u2014 \u00ab\u0442\u0440\u043e\u043c\u0431\u043e\u043f\u043b\u0430\u0441\u0442\u0438\u043d\u043e\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f\u00bb<br \/>  \u00abumpteenth time\u00bb \u2014 \u00ab\u044d\u043d\u043d\u044b\u0439 \u0440\u0430\u0437\u00bb<br \/>  \u00absecond time\u00bb \u2014 \u00ab\u0432\u0442\u043e\u0440\u043e\u0439 \u0442\u0430\u0439\u043c\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00abkey\u00bb<br \/>  Direction: \u00aben\u00bb \u2014 \u00abru\u00bb<br \/>  Main translation: \u00ab\u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0439\u00bb<br \/>  Synonyms: ()<br \/>  Examples: <br \/>  \u00abkey informants\u00bb \u2014 \u00ab\u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u043d\u0442\u044b\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00abmonitor\u00bb<br \/>  Direction: \u00aben\u00bb \u2014 \u00abru\u00bb<br \/>  Main translation: \u00ab\u043c\u043e\u043d\u0438\u0442\u043e\u0440\u00bb<br \/>  Synonyms: (\u00ab\u0432\u0438\u0434\u0435\u043e\u043c\u043e\u043d\u0438\u0442\u043e\u0440\u00bb)<br \/>  Examples: <br \/>  \u00abLCD monitor\u00bb \u2014 \u00ab\u0436\u0438\u0434\u043a\u043e\u043a\u0440\u0438\u0441\u0442\u0430\u043b\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00abinfection\u00bb<br \/>  Direction: \u00aben\u00bb \u2014 \u00abru\u00bb<br \/>  Main translation: \u00ab\u0438\u043d\u0444\u0435\u043a\u0446\u0438\u044f\u00bb<br \/>  Synonyms: (\u00ab\u0437\u0430\u0440\u0430\u0437\u0430\u00bb)<br \/>  Examples: <br \/>  \u00abcholangiogenic infection\u00bb \u2014 \u00ab\u0445\u043e\u043b\u0430\u043d\u0433\u0438\u043e\u0433\u0435\u043d\u043d\u0430\u044f \u0438\u043d\u0444\u0435\u043a\u0446\u0438\u044f\u00bb<br \/>  \u00abthis infection\u00bb \u2014 \u00ab\u044d\u0442\u0430 \u0437\u0430\u0440\u0430\u0437\u0430\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00abone\u00bb<br \/>  Direction: \u00aben\u00bb \u2014 \u00abru\u00bb<br \/>  Main translation: \u00ab\u043e\u0434\u0438\u043d\u00bb<br \/>  Synonyms: ()<br \/>  Examples: <br \/>  \u00abone jot\u00bb \u2014 \u00ab\u043e\u0434\u043d\u0430 \u0438\u043e\u0442\u0430\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00abkeyboard\u00bb<br \/>  Direction: \u00aben\u00bb \u2014 \u00abru\u00bb<br \/>  Main translation: \u00ab\u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0430\u00bb<br \/>  Synonyms: ()<br \/>  Examples: <br \/>  \u00abQWERTY keyboard\u00bb \u2014 \u00ab\u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0430 QWERTY\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00abthree\u00bb<br \/>  Direction: \u00aben\u00bb \u2014 \u00abru\u00bb<br \/>  Main translation: \u00ab\u0442\u0440\u0438\u00bb<br \/>  Synonyms: ()<br \/>  Examples: <br \/>  \u00abthree musketeers\u00bb \u2014 \u00ab\u0442\u0440\u0438 \u043c\u0443\u0448\u043a\u0435\u0442\u0435\u0440\u0430\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00abfour\u00bb<br \/>  Direction: \u00aben\u00bb \u2014 \u00abru\u00bb<br \/>  Main translation: \u00ab\u0447\u0435\u0442\u044b\u0440\u0435\u00bb<br \/>  Synonyms: ()<br \/>  Examples: <br \/>  \u00abtwenty-four\u00bb \u2014 \u00ab\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044c \u0447\u0435\u0442\u044b\u0440\u0435\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00abtwo\u00bb<br \/>  Direction: \u00aben\u00bb \u2014 \u00abru\u00bb<br \/>  Main translation: \u00ab\u0434\u0432\u0430\u00bb<br \/>  Synonyms: ()<br \/>  Examples: <br \/>  \u00abtwo immiscible liquids\u00bb \u2014 \u00ab\u0434\u0432\u0435 \u043d\u0435\u0441\u043c\u0435\u0448\u0438\u0432\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0436\u0438\u0434\u043a\u043e\u0441\u0442\u0438\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00abfive\u00bb<br \/>  Direction: \u00aben\u00bb \u2014 \u00abru\u00bb<br \/>  Main translation: \u00ab\u043f\u044f\u0442\u044c\u00bb<br \/>  Synonyms: ()<br \/>  Examples: <br \/>  \u00abninety-five\u00bb \u2014 \u00ab\u0434\u0435\u0432\u044f\u043d\u043e\u0441\u0442\u043e \u043f\u044f\u0442\u044c\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00ablegend\u00bb<br \/>  Direction: \u00aben\u00bb \u2014 \u00abru\u00bb<br \/>  Main translation: \u00ab\u043b\u0435\u0433\u0435\u043d\u0434\u0430\u00bb<br \/>  Synonyms: (\u00ab\u043f\u0440\u0435\u0434\u0430\u043d\u0438\u0435\u00bb, \u00ab\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u00bb, \u00ab\u043f\u043e\u0432\u0435\u0440\u044c\u0435\u00bb)<br \/>  Examples: <br \/>  \u00abancient Greek legend\u00bb \u2014 \u00ab\u0434\u0440\u0435\u0432\u043d\u0435\u0433\u0440\u0435\u0447\u0435\u0441\u043a\u0430\u044f \u043b\u0435\u0433\u0435\u043d\u0434\u0430\u00bb<br \/>  \u00abancient legend\u00bb \u2014 \u00ab\u0434\u0440\u0435\u0432\u043d\u0435\u0435 \u043f\u0440\u0435\u0434\u0430\u043d\u0438\u0435\u00bb<br \/>  \u00abepic legends\u00bb \u2014 \u00ab\u044d\u043f\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043a\u0430\u0437\u0430\u043d\u0438\u044f\u00bb<br \/>  \u00abfolk legend\u00bb \u2014 \u00ab\u043d\u0430\u0440\u043e\u0434\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0440\u044c\u0435\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00absuccess\u00bb<br \/>  Direction: \u00aben\u00bb \u2014 \u00abru\u00bb<br \/>  Main translation: \u00ab\u0443\u0441\u043f\u0435\u0445\u00bb<br \/>  Synonyms: (\u00ab\u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0441\u0442\u044c\u00bb, \u00ab\u0443\u0434\u0430\u0447\u0430\u00bb)<br \/>  Examples: <br \/>  \u00abresounding success\u00bb \u2014 \u00ab\u043e\u0433\u043b\u0443\u0448\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0443\u0441\u043f\u0435\u0445\u00bb<br \/>  \u00abfinancial success\u00bb \u2014 \u00ab\u0444\u0438\u043d\u0430\u043d\u0441\u043e\u0432\u0430\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0441\u0442\u044c\u00bb<br \/>  \u00abbring success\u00bb \u2014 \u00ab\u043f\u0440\u0438\u043d\u043e\u0441\u0438\u0442\u044c \u0443\u0434\u0430\u0447\u0443\u00bb<\/p>\n<p>  ***************<br \/>  Word: \u00ab\u0434\u043e\u043c\u00bb<br \/>  Direction: \u00abru\u00bb \u2014 \u00aben\u00bb<br \/>  Main translation: \u00abhouse\u00bb<br \/>  Synonyms: ()<br \/>  Examples: <br \/>  \u00ab\u0434\u043e\u043c \u0421\u0442\u0435\u043d\u0431\u043e\u043a\u0430\u00bb \u2014 \u00abStenbock house\u00bb  <\/p><\/blockquote>\n<p>  \u041a\u043e\u0434 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0430\u043c\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u2014 <a href=\"https:\/\/bitbucket.org\/milovidov\/qtyandexapi\">bitbucket.org\/milovidov\/qtyandexapi<\/a>.<\/p>\n<h4>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430<\/h4>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u043e\u0441\u0432\u0435\u0442\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b, \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0435 \u0434\u043b\u044f Qt \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0435 \u043b\u0435\u0433\u043a\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u044b.<br \/>  \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043a\u043b\u0430\u0441\u0441\u0430 QtYandexDictionary \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"cpp\">#ifndef QTYANDEXDICTIONARY_H #define QTYANDEXDICTIONARY_H  #include &lt;QObject&gt;  #include &quot;qtyandexapi_global.h&quot;  #include &quot;QtYaWord.h&quot; #include &quot;QtYaWordTranslation.h&quot; #include &quot;QtYaLanguages.h&quot;  class QNetworkAccessManager;  class QTYANDEXAPISHARED_EXPORT QtYandexDictionary : public QObject {     Q_OBJECT public:     explicit QtYandexDictionary(const QString& yandexApiKey, QObject *pParent = 0);      void translate(const QtYaWord& word);     void getLanguages();  signals:     void translated(const QtYaWordTranslation& translation) const;     void languagesGot(const QtYaLanguages& langs) const;  private:     QString m_yandexApiKey;     QNetworkAccessManager* m_pNetworkAccessManager; };  #endif \/\/ QTYANDEXDICTIONARY_H <\/code><\/pre>\n<p>  \u041c\u0435\u0442\u043e\u0434\u044b translate \u0438 getLanguages \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0435. \u041e\u043d\u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043a Yandex Dictionary Api \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0442\u043e\u043a\u0443 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u044b\u043b\u0438 \u0432\u044b\u0437\u0432\u0430\u043d\u044b.<\/p>\n<p>  \u0421\u0438\u0433\u043d\u0430\u043b\u044b translated \u0438 languagesGot \u044d\u043c\u0438\u0442\u044f\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043a\u0430\u043a\u043e\u0433\u043e \u043b\u0438\u0431\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043e\u0442 Yandex Dictionary Api, \u043b\u0438\u0431\u043e \u043f\u0440\u0438 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u044d\u0442\u043e\u043c\u0443 \u0441\u0435\u0440\u0432\u0438\u0441\u0443. \u0412 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u0445 \u044d\u0442\u0438\u0445 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u0430\u044f \u043e\u0442 \u042f\u043d\u0434\u0435\u043a\u0441\u0430 \u0438\u043b\u0438 \u0436\u0435 \u0442\u0435\u043a\u0441\u0442 \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u0440\u0438 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u043d\u0435\u043c\u0443.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u043a\u043e\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 translate \u043a\u043b\u0430\u0441\u0441\u0430 QtYandexDictionary, \u0442\u043e \u043e\u043d\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"cpp\">void QtYandexDictionary::translate(const QtYaWord &word) {     QtYaTranslationGettor* pYandexTranslationGettor = new QtYaTranslationGettor(m_yandexApiKey, word, m_pNetworkAccessManager, this);     connect(pYandexTranslationGettor, &QtYaTranslationGettor::translated, this, &QtYandexDictionary::translated);     connect(pYandexTranslationGettor, &QtYaTranslationGettor::translated, pYandexTranslationGettor, &QtYaTranslationGettor::deleteLater); } <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e translate \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043a\u043b\u0430\u0441\u0441\u0430 QtYaTranslationGettor. \u042d\u0442\u043e\u0442 \u043a\u043b\u0430\u0441\u0441 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u043c \u0441\u043b\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 Yandex Dictionary Api \u0438 \u0442\u0430\u043a \u0436\u0435 \u044d\u043c\u0438\u0442\u0438\u0442 \u0441\u0438\u0433\u043d\u0430\u043b translated. \u042d\u0442\u043e\u0442 \u0436\u0435 \u0441\u0438\u0433\u043d\u0430\u043b, \u0431\u0435\u0437 \u043a\u0430\u043a\u0438\u0445 \u043b\u0438\u0431\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0432\u0435\u0440\u0445 \u043a QtYandexDictionary. \u041f\u043e\u0441\u043b\u0435 \u044d\u043c\u0438\u0442\u0430 \u044d\u0442\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043a\u043b\u0430\u0441\u0441\u0430 QtYaTranslationGettor \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0430 \u0441\u0447\u0435\u0442 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0430 \u043a \u0435\u0433\u043e \u0436\u0435 \u0441\u043b\u043e\u0442\u0443 deleteLater.<\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043e\u0447\u0435\u0440\u0435\u0434\u0435\u0439 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. \u041a\u0430\u0436\u0434\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0438 \u0441\u0430\u043c \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430.<\/p>\n<p>  \u041c\u0435\u0442\u043e\u0434\u0430 getLanguages \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e:<\/p>\n<pre><code class=\"cpp\">void QtYandexDictionary::getLanguages() {     QtYandexLanguagesGettor* pYandexLanguagesGettor = new QtYandexLanguagesGettor(m_yandexApiKey, m_pNetworkAccessManager, this);     connect(pYandexLanguagesGettor, &QtYandexLanguagesGettor::languagesGot, this, &QtYandexDictionary::languagesGot);     connect(pYandexLanguagesGettor, &QtYandexLanguagesGettor::languagesGot, pYandexLanguagesGettor, &QtYandexLanguagesGettor::deleteLater); } <\/code><\/pre>\n<p>  \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432 QtYaTranslationGettor \u0438 QtYandexLanguagesGettor \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0443 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043a\u043b\u0430\u0441\u0441\u043e\u043c QNetworkAccessManager \u0438 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 JSON \u0432 Qt5. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435 \u0431\u0443\u0434\u0443 \u0437\u0430\u043e\u0441\u0442\u0440\u044f\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043d\u0430 \u0434\u0435\u0442\u0430\u043b\u044f\u0445 \u0438\u0445 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<h4>\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0430<\/h4>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u044f \u043f\u043e\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0435 Qt \u043a\u043b\u0430\u0441\u0441\u044b.<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 translate \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"cpp\">void TQtYandexApi::testTranslation() {     const QString rusHome = QString(&quot;Home&quot;);     QSignalSpy signalSpy(m_pYandexDictionary, SIGNAL(translated(QtYaWordTranslation)));     QMetaObject::Connection connection = connect(m_pYandexDictionary, &QtYandexDictionary::translated,                                                  [&](const QtYaWordTranslation& translation)     {         QVERIFY2(translation.isError() == false, translation.errorString().toStdString().c_str());         QVERIFY(translation.wordForTranslation().wordName() == rusHome);         QVERIFY(translation.wordForTranslation().fromLanguage() == &quot;en&quot;);         QVERIFY(translation.wordForTranslation().toLanguage() == &quot;ru&quot;);         QVERIFY(translation.translatedWord().mainTranslation().toLower() == QString::fromUtf8(&quot;\u0434\u043e\u043c&quot;));     });     m_pYandexDictionary-&gt;translate(QtYaWord(rusHome, &quot;en&quot;, &quot;ru&quot;));     END_ASYNC_FUNCTION(signalSpy, connection) } <\/code><\/pre>\n<p>  \u0412 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u043b\u043e\u0432\u043e \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0441 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u2014 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f rusHome.<\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u043c signalSpy \u2014 \u044d\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442 \u0431\u0443\u0434\u0435\u0442 \u0436\u0434\u0430\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u043e\u0442 m_pYandexDictionary.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u0438\u0433\u043d\u0430\u043b\u0430 translated \u0432 \u0432\u0438\u0434\u0435 \u043b\u044f\u043c\u0431\u0434\u044b \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f. \u0412 \u043d\u0435\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0441\u043b\u043e\u0432\u0430.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0430\u043a\u0440\u043e\u0441 END_ASYNC_FUNCTION.<\/p>\n<p>  \u041a\u043e\u0434 \u044d\u0442\u043e\u0433\u043e \u043c\u0430\u043a\u0440\u043e\u0441\u0430:  <\/p>\n<pre><code class=\"cpp\">#define END_ASYNC_FUNCTION(signalSpy, connection) \\     QVERIFY(signalSpy.wait()); \\     QObject::disconnect(connection); <\/code><\/pre>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0436\u0434\u0435\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0430 \u0441\u0438\u0433\u043d\u0430\u043b\u0430. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u0430 5 \u0441\u0435\u043a\u0443\u043d\u0434. \u0415\u0441\u043b\u0438 \u043e\u043d \u043f\u0440\u0438\u0434\u0435\u0442, \u0442\u043e \u043d\u0430\u0447\u043d\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043a\u043e\u0434 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0437\u0430\u0434\u0430\u043b\u0438 \u0432 \u043b\u044f\u043c\u0431\u0434\u0430 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438 \u0440\u0430\u043d\u0435\u0435. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442, \u0442\u043e \u0442\u0435\u0441\u0442 \u0437\u0430\u0444\u0435\u0439\u043b\u0438\u0442\u0441\u044f \u043d\u0430 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435. <\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043a\u043e\u043d\u043d\u0435\u043a\u0442 \u0441 \u043b\u044f\u043c\u0431\u0434\u0430 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c, \u0442.\u043a. \u0438\u043d\u0430\u0447\u0435 \u043e\u043d \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0438 \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u0445\u043e\u0434\u0430 \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<h4>\u0412\u044b\u0432\u043e\u0434\u044b<\/h4>\n<p>  \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u0440\u0438\u0432\u0435\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0438 \u0440\u0430\u0441\u043a\u0440\u044b\u043b \u0441\u043f\u043e\u0441\u043e\u0431 \u0438\u0445 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/233099\/\"> http:\/\/habrahabr.ru\/post\/233099\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0415\u0441\u0442\u044c \u0443 \u043c\u0435\u043d\u044f \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u043e\u043b\u0433\u043e\u0441\u0442\u0440\u043e\u0439, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Yandex Dictionary Api. \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043e\u043f\u044b\u0442\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043a \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0441\u0435\u0440\u0432\u0438\u0441\u0443.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441, \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Qt C++, \u0442\u043e \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u0434\u043b\u044f \u0432\u0430\u0441.<\/p>\n<p>  \u042f \u043d\u0435 \u0441\u0442\u0430\u043b \u0437\u0430\u043e\u0441\u0442\u0440\u044f\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043d\u0430 \u0442\u0435\u0445 \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u0445 Qt, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438 \u0442\u0430\u043a \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u044b. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u044c, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0432 Qt \u043d\u0430 \u0431\u0430\u0437\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/h4>\n<p>  \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u0442 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 Yandex Dictioanary Api \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u043b\u043e\u0432 \u0438 \u0437\u0430\u0442\u0435\u043c, \u043f\u043e \u043c\u0435\u0440\u0435 \u043f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u043e\u0442 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0438\u0445 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d.<\/p>\n<pre><code class=\"cpp\">#include &quot;Precompiled.h&quot; #include &lt;QtYandexApi\/QtYandexApi.h&gt;  int main(int argc, char *argv[]) {     QCoreApplication a(argc, argv);      QtYandexDictionary yandexDictionary(QtYandexApi::getYandexKeyFromFile(&quot;dictKey&quot;));     QObject::connect(&#038;yandexDictionary, &#038;QtYandexDictionary::translated,                      [](const QtYaWordTranslation&#038; wordTranslation)     {         if (wordTranslation.isError())             qDebug() &lt;&lt; wordTranslation.errorString();         else {             QtYaWord wordForTranslation = wordTranslation.wordForTranslation();             QtYaTranslatedWord translatedWord = wordTranslation.translatedWord();             qDebug() &lt;&lt; &quot;\\n***************&quot;;             qDebug() &lt;&lt; &quot;Word: &quot; &lt;&lt; wordForTranslation.wordName();             qDebug() &lt;&lt; &quot;Direction: &quot; &lt;&lt; wordForTranslation.fromLanguage() &lt;&lt; &quot;-&quot; &lt;&lt; wordForTranslation.toLanguage();             qDebug() &lt;&lt; &quot;Main translation: &quot; &lt;&lt; translatedWord.mainTranslation();             qDebug() &lt;&lt; &quot;Synonyms: &quot; &lt;&lt; translatedWord.synonyms();             qDebug() &lt;&lt; &quot;Examples: &quot;;             for (const auto&#038; example : translatedWord.examples()) {                 qDebug() &lt;&lt; example.first &lt;&lt; &quot;-&quot; &lt;&lt; example.second;             }         }     });      QStringList russianWords, englishWords;     russianWords &lt;&lt; &quot;\u0434\u043e\u043c&quot; &lt;&lt; &quot;\u0432\u0440\u0435\u043c\u044f&quot; &lt;&lt; &quot;\u043b\u0435\u0433\u0435\u043d\u0434\u0430&quot; &lt;&lt; &quot;\u043a\u043b\u044e\u0447&quot; &lt;&lt; &quot;\u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0430&quot; &lt;&lt; &quot;\u043c\u043e\u043d\u0438\u0442\u043e\u0440&quot; &lt;&lt; &quot;\u0441\u043b\u0443\u0447\u0430\u0439&quot; &lt;&lt; &quot;\u043e\u0434\u0438\u043d&quot; &lt;&lt; &quot;\u0434\u0432\u0430&quot; &lt;&lt; &quot;\u0442\u0440\u0438&quot; &lt;&lt; &quot;\u0447\u0435\u0442\u044b\u0440\u0435&quot; &lt;&lt; &quot;\u043f\u044f\u0442\u044c&quot; &lt;&lt; &quot;\u0448\u0435\u0441\u0442\u044c&quot;;     englishWords &lt;&lt; &quot;home&quot; &lt;&lt; &quot;time&quot; &lt;&lt; &quot;legend&quot; &lt;&lt; &quot;key&quot; &lt;&lt; &quot;keyboard&quot; &lt;&lt; &quot;monitor&quot; &lt;&lt; &quot;infection&quot; &lt;&lt; &quot;one&quot; &lt;&lt; &quot;two&quot; &lt;&lt; &quot;three&quot; &lt;&lt; &quot;four&quot; &lt;&lt; &quot;five&quot; &lt;&lt; &quot;success&quot;;      for (const QString&#038; word : russianWords) {         yandexDictionary.translate(QtYaWord(word, &quot;ru&quot;, &quot;en&quot;));     }     for (const QString&#038; word : englishWords) {         yandexDictionary.translate(QtYaWord(word, &quot;en&quot;, &quot;ru&quot;));     }      return a.exec(); }  <\/code><\/pre>\n<p>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-233099","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/233099","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=233099"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/233099\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=233099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=233099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=233099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}