mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
update qqtdicttest5
This commit is contained in:
parent
1361de81b4
commit
f1773ea728
@ -10,6 +10,11 @@
|
|||||||
#include <qqt-local.h>
|
#include <qqt-local.h>
|
||||||
/**
|
/**
|
||||||
* @brief The QQtProgressBarDelegate class
|
* @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
|
class QQTSHARED_EXPORT QQtProgressBarDelegate : public QItemDelegate
|
||||||
{
|
{
|
||||||
|
@ -118,4 +118,23 @@ void MainWindow::replyFinished4 ( QQtWebAccessSession* session )
|
|||||||
qDebug() << "===========================================================================";
|
qDebug() << "===========================================================================";
|
||||||
QByteArray htmlContent = reply->readAll();
|
QByteArray htmlContent = reply->readAll();
|
||||||
qDebug() << htmlContent;
|
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 ( );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
<widget class="QTabWidget" name="tabWidget">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>2</number>
|
<number>4</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tab">
|
<widget class="QWidget" name="tab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
@ -64,6 +64,11 @@
|
|||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>语音播报</string>
|
<string>语音播报</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
||||||
|
<item>
|
||||||
|
<widget class="QTextBrowser" name="textBrowser_4"/>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user