資源簡介
參考網上其他大能的資料做的demo,簡單易懂,資源是整個QT工程代碼,用QT5.14.2開發的,氣泡聊天展示效果圖見https://blog.csdn.net/u014385680/article/details/105585630
代碼片段和文件信息
#include?“chatbubble.h“
#include?
#include?“global.h“
//#include?“myapp.h“
#include?
#include?
#include?
#include?
#include?
#include?
#include?“ItemInfo.h“
BubbleList::BubbleList(QWidget?*parent)?:
????QWidget(parent)
{
????initVars();
????initWgts();
????initStgs();
????initConns();
}
BubbleList::~BubbleList()
{
????d->clear();
}
/*!
??private?utility?functions
*/
void?BubbleList::initVars()
{
}
void?BubbleList::initWgts()
{
????mainLayout?=?new?QHBoxLayout(this);
????scrollbar?=?new?QScrollBar(this);
????d?=?new?BubbleListPrivate(this);
????this->setMinimumWidth(300);
????mainLayout->addWidget(d);
????//mainLayout->addWidget(m_pSlider);
????mainLayout-
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1176??2020-04-16?17:24??BubbleMsgDemo\BubbleMsgDemo.pro
?????文件??????41676??2020-04-17?21:01??BubbleMsgDemo\BubbleMsgDemo.pro.user
?????文件??????27230??2020-04-18?11:27??BubbleMsgDemo\chatbubble.cpp
?????文件???????3265??2020-04-18?11:12??BubbleMsgDemo\chatbubble.h
?????文件???????7911??2020-04-18?10:16??BubbleMsgDemo\dialog.cpp
?????文件????????765??2020-04-17?19:45??BubbleMsgDemo\dialog.h
?????文件???????2712??2020-04-18?10:18??BubbleMsgDemo\dialog.ui
?????文件??????11377??2020-04-16?15:19??BubbleMsgDemo\global.h
?????文件??????32955??2020-03-06?16:07??BubbleMsgDemo\images\1.png
?????文件?????122643??2020-03-15?09:58??BubbleMsgDemo\images\2.png
?????文件???????1405??2020-04-17?16:21??BubbleMsgDemo\images\file.png
?????文件????????169??2020-04-17?16:16??BubbleMsgDemo\images.qrc
?????文件???????2141??2020-04-16?15:17??BubbleMsgDemo\ItemInfo.cpp
?????文件???????1807??2020-04-16?15:16??BubbleMsgDemo\ItemInfo.h
?????文件????????268??2020-04-17?16:41??BubbleMsgDemo\main.cpp
?????文件???????5301??2020-04-16?16:09??BubbleMsgDemo\unit.h
?????目錄??????????0??2020-04-17?16:21??BubbleMsgDemo\images
?????目錄??????????0??2020-04-18?11:27??BubbleMsgDemo
-----------?---------??----------?-----??----
???????????????262801????????????????????18
- 上一篇:1000以內質數的輸出
- 下一篇:4-20ma電路
評論
共有 條評論