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版权所有