C++ (Qt)QTextCodec *RusCodec = QTextCodec::codecForName("CP1251");QTextCodec::setCodecForCStrings(RusCodec); QTextCodec::setCodecForTr(RusCodec);inputs->addRow(QObject::tr("Фамилия:"),famedt);...QString str=famedt->text();QByteArray arr;arr="";arr+=str;
C++ (Qt)QTextCodec *RusCodec = QTextCodec::codecForLocale();
QString str=famedt->text();QByteArray arr;arr="";arr+=str;