当前位置:网站首页>QT use qlisview to realize QQ login history list
QT use qlisview to realize QQ login history list
2022-07-19 13:39:00 【Climb on the grass】
One . effect

The realistic effect has no white border
Two . Realization
As can be seen from the renderings , Has the following characteristics :
1. Floating scroll bar
Custom translucent scroll bar suspended in Item above , With the original occupation Item The width of the scroll bar has the same effect
2. It supports specifying the maximum number of rows to be displayed
The maximum support for displaying three lines in the rendering , When the delete item When there are only three lines left , The scroll bar disappears automatically
3. The delete button has a click effect
When you click the delete button , The delete button turns red
4.popup Pop ups are useless shadows
Usually popup Pop up windows will have shadows , As shown in the figure below

The way to remove the shadow is to add Qt::NoDropShadowWindowHint sign
setWindowFlags(Qt::FramelessWindowHint | Qt::Popup | Qt::NoDropShadowWindowHint); This article is based on QListView、QStyledItemDelegate and QStandardItemModel
QStyledItemDelegate Used for processing Item Drawing and Item event , Source code is as follows :
QHItemDelegate.h
#ifndef QHITEMDELEGATE_H
#define QHITEMDELEGATE_H
#include <QStyledItemDelegate>
#include <QMetaType>
typed边栏推荐
- 深度学习从入门到放弃100天挑战
- 【7.12】Codeforces Round #806 (Div. 4)
- Li Kou 413 division of equal difference sequence dynamic programming
- 【7.8】Educational Codeforces Round 131 (Rated for Div. 2)
- 云审计服务CTS是一项付费服务,付费项目包括开通追踪器、事件跟踪以及7天内事件的存储和检索等相关费用
- How to add a thread in MFC
- [机缘参悟-46]:鬼谷子-第十谋篇-谋者,智慧之意也
- How to upgrade Flink job gracefully?
- [understanding of opportunity-46]: Guiguzi - Chapter 10 - schemer, meaning of wisdom
- 【码蹄集新手村 600 题】科学计数法的实现方式,输出指数形式
猜你喜欢

Module 7 (Architecture Design of King glory mall)

【码蹄集新手村 600 题】计算一个整数有多少位数
![[postgraduate entrance examination vocabulary training camp] day 5 - alarm, cooperate, point, benefit, industrial, revolution, mechanism](/img/50/07dd47d1bc46681e19d133b2e219c4.png)
[postgraduate entrance examination vocabulary training camp] day 5 - alarm, cooperate, point, benefit, industrial, revolution, mechanism

codeforce:A. Doremy‘s IQ【反向贪心】

Advanced C language -- character function and string function

动手学深度学习(第二版)注释后代码【持续更新】

忘掉Postman,Apifox更好用

Onvif protocol related: 2.1.3 get the stream address in none mode

语音通信网络的原理

面试官:可以接受转Go吗?
随机推荐
Template virtual machine environment preparation
【js逆向爬虫】-有道翻译js逆向实战
onvif协议相关:2.1.1 none方式获取token
S32K148_CAN驱动(裸机开发)
What are the pain points of collaborative tools collaborative office management
Atmospheric non isohalo effect
[code hoof set novice village question 600] format specifier of float and double
perl 命令批量替换文件中的一些内容
【7.8】Educational Codeforces Round 131 (Rated for Div. 2)
Transphorm's surface mount packaging product series adds industry standard to-263 (D2Pak) packaging products to expand the advantages of supergan platform
[Tencent blue whale] the seventh 7.24 operation and maintenance day holiday greetings ~ come and make a wish~
VIM strange unknown function 0
【刷题记录】13. 罗马数字转整数
onvif协议相关:3.1.1 Digest方式获取Authorization
基于MOS管的防反接电路设计仿真
[pyGame learning notes] 6 Cursor mouse cursor
Onvif protocol related: common class description
Transphorm的表面贴装封装产品系列增加行业标准TO-263 (D2PAK)封装产品,扩大SuperGaN平台的优势
Qt之使用QLisView实现QQ登录历史列表
torch.utils.data.DataLoader说明