当前位置:网站首页>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边栏推荐
- 【js逆向爬虫】-有道翻译js逆向实战
- 【7.14】代码源 -【拆方块】【XOR Inverse】【连续子序列】【三角果计数】
- Framework construction of business card management
- STL string查找子串
- El table column drag and drop (no need to introduce other plug-ins)
- Three methods of realizing network request in pyodide
- Design and Simulation of anti reverse connection circuit based on MOS transistor
- 基于PMOS的过压保护(OVP)电路仿真
- Onvif protocol related: 2.1.2 get screenshot URL in none mode
- 2.三数之和
猜你喜欢

onvif协议相关:4.1.1 WS-Username token方式获取WSUsernameTokenBean

Onvif protocol related: 3.1.4 get the stream address in digest mode

【考研词汇训练营】Day 5 —— alarmist,cooperate,point,benefit,industrial,revolution,mechanize

Principle of voice communication network

【考研词汇训练营】Day 7 —— second,attract,current,collect,simple,communicate,vocation

torch. utils. data. Dataloader description

健康防猝指南3:健康保健

Onvif protocol related: 4.1.1 WS username token method to obtain wsusernametokenbean

基于MOS管的防反接电路设计仿真
![[code hoof set novice village question 600] format specifier of float and double](/img/19/433f794617f3c3c72732f1a4efe252.png)
[code hoof set novice village question 600] format specifier of float and double
随机推荐
Acwing game 60
Onvif protocol related: 2.1.1 get token in none mode
【7.12】Codeforces Round #806 (Div. 4)
[postgraduate entrance examination vocabulary training camp] day 6 - eventually, state, create, productivity, stimulate
深度学习从入门到放弃100天挑战
MySQL advanced (VI) introduction to four common uses of fuzzy query
onvif协议相关:2.1.2 none方式获取截图url
Onvif protocol related: 3.1.3 get screenshot URL in digest mode
每周小结(*65):有计划的输出
Codeforce:a. difference operations [mathematical thinking]
Deep learning from getting started to giving up the 100 day challenge
ssh无密钥登录
Flutter uses animatedswitcher to switch scenes
【刷题记录】13. 罗马数字转整数
【js逆向爬虫】-有道翻译js逆向实战
面试官:可以接受转Go吗?
Computer dial-up Internet access
onvif协议相关:常用类说明
如何优雅的升级 Flink Job?
onvif協議相關:4.1.3 WS-Username token方式獲取截圖url