ICode9

精准搜索请尝试: 精确搜索
  • Qt QWidget绘制圆角注意事项2022-08-26 14:00:28

    1、产生黑边 painter.setPen(Qt::NoPen); // 不设置画笔即可   2、背景不透明 this->setAttribute(Qt::WA_TranslucentBackground, true);   3、大致代码 this->setAttribute(Qt::WA_TranslucentBackground, true); void widget::paintEvent(QPaintEvent *) { QPainter

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有