QTextCodec *utfcodec = QTextCodec::codecForName("UTF-8"); QTextCodec::setCodecForTr(utfcodec); QTextCodec::setCodecForCStrings(utfcodec); QTextCodec::setCodecForLocale(utfcodec);
QByteArray arrData;arrData= socket_in->read(NextBlockSize); qDebug()<<"in arrData="<<arrData; if(arrData.size()>1) { QString pak=(QString)(arrData);
ui->Pb_PRD->setStyle(QPlastiqueStyle);
QString pak(arrData);
QString pak=(QString)(arrData);
QTextCodec *utfcodec = QTextCodec::codecForName("UTF-8");QString pak=utfcodec->toUnicode(arrData);
C++ (Qt)struct CTest { CTest( int a = 0 ); private: CTest( const CTest & ) {}}; CTest test = 1; // ошибка