随笔分类 -  Qt

摘要:写一个新类继承QFileSystemModel,重写data函数: QVariant QCustomFileSystemModel::data(const QModelIndex &index, int role) const { if(role == Qt::DecorationRole) { i 阅读全文
posted @ 2022-07-12 19:54 _KikyoBK 阅读(378) 评论(0) 推荐(0)
摘要:1 void XXX::paintEvent(QPaintEvent *event) 2 { 3 QPainter painter(this); 4 //圆角矩形范围 5 QPainterPath path; 6 path.addRoundedRect(this->rect(),10,10); 7 阅读全文
posted @ 2022-05-06 20:25 _KikyoBK 阅读(458) 评论(0) 推荐(0)