ShaShiDiZhuanLan/Demo_MessageChat_Qt
Qt5气泡式聊天框——QListWidget+QPainter。 气泡式聊天的显示是由QListWidget作为控件,每个气泡是由QListWidgetItem提升成QWidget来实现的。每个气泡可以理解为可以自由布置里面内容的QWidget。每个Item保存聊天的对话、发送状态、时间、种类等。这个QWidget主要是显示一个头像+气泡,气泡里面是聊天的内容等。气泡是在paintEvent事件中,采用QPainter来绘制的。
C++
Stargazers
- 2017171222LZW
- 851896022
- acking-youTencent
- AliangB
- BellLabs
- Boeing773ERBeijing Jiaotong University
- Dai-Yi
- DreaceGalaxy
- fashion1840DanYue, Inc.
- hungry-jason
- inorimoe
- JANG-hyeonjunHankuk University of Foreign Studies
- JCM-lsy
- jjzhang166
- KellyGodLvchina
- kingletztx
- lccwei
- lIang70Beijing
- liu411417492
- MarkLi2011
- mberky
- myangel78
- Namedqianli
- Percy-liuqi
- rayleework
- ShaShiDiZhuanLan
- soulmountain
- SSwser
- wang346591260
- woxiangnifrr
- wss
- xiaocaobubeiwei
- ylyanleiylChina shandong jinan
- yzhgithuawei
- ZhouYing-bit
- ZYM-PKUPeking University