摘要:
//加载背景图片 void LCTGrid::loadBgPicture() { QImage image; QPalette palette; image.load(m_sPicturePath); QPixmap pixmap = QPixmap::fromImage(image.scaled(m_pWidget->width(), ... 阅读全文
摘要:
// 原理:通过点到线,然后叠加成区域。同理,可使用其他图形QPainter painter(m_pWidget); QLinearGradient linearGradient(QPointF(0, 0), QPointF(m_iPainterLevelPoint, 0)); //从点(0,0)开始到点(m_iPainterLevelPoint,0)结束,确定一... 阅读全文
摘要:
// 计算窗口边缘 阅读全文