随笔分类 - Qt
摘要:写一个新类继承QFileSystemModel,重写data函数: QVariant QCustomFileSystemModel::data(const QModelIndex &index, int role) const { if(role == Qt::DecorationRole) { i
阅读全文
摘要:1 void XXX::paintEvent(QPaintEvent *event) 2 { 3 QPainter painter(this); 4 //圆角矩形范围 5 QPainterPath path; 6 path.addRoundedRect(this->rect(),10,10); 7
阅读全文

浙公网安备 33010602011771号