1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00

update qqtdicttest5

This commit is contained in:
tianduanrui 2020-03-05 14:47:51 +08:00
parent 1361de81b4
commit f1773ea728
3 changed files with 30 additions and 1 deletions

View File

@ -10,6 +10,11 @@
#include <qqt-local.h>
/**
* @brief The QQtProgressBarDelegate class
* QTableView进度条代理
*
*
* QTableWidget::setCellWidget(int row, int column, QWidget *widget)
* QAbstractItemView::setIndexWidget(const QModelIndex &index, QWidget *widget)
*/
class QQTSHARED_EXPORT QQtProgressBarDelegate : public QItemDelegate
{

View File

@ -118,4 +118,23 @@ void MainWindow::replyFinished4 ( QQtWebAccessSession* session )
qDebug() << "===========================================================================";
QByteArray htmlContent = reply->readAll();
qDebug() << htmlContent;
QString result;
for ( int i = 0 ; i < htmlContent.size(); i++ )
{
unsigned char j = htmlContent[i] & 0xFF;
QString ch = QString ( j );
QString ascii = "\\x" + QString ( "%1" ).arg ( j, 2, 16, QChar ( '0' ) ).toUpper();
result += ascii;
}
ui->textBrowser_4->append ( result );
for ( int i = 0 ; i < htmlContent.size(); i++ )
{
unsigned char j = htmlContent[i] & 0xFF;
QString ch = QString ( j );
QString ascii = "\\x" + QString ( "%1" ).arg ( j, 2, 16, QChar ( '0' ) ).toUpper();
ui->textBrowser_4->append ( ascii + " ----- " + ch );
//ui->textBrowser_4->append ( );
}
}

View File

@ -18,7 +18,7 @@
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>2</number>
<number>4</number>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
@ -64,6 +64,11 @@
<attribute name="title">
<string>语音播报</string>
</attribute>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QTextBrowser" name="textBrowser_4"/>
</item>
</layout>
</widget>
</widget>
</item>