kwhw.net
当前位置:首页 >> qt DrAwrounDrECt >>

qt DrAwrounDrECt

用QPainter试试? void PointWidget::paintEvent(QPaintEvent *event){ QPainter painter(this); int nW = this->width(); int nH = this->height(); int i, j = 0; QTime time; time.start(); int nCnt = 0; for (i = 10; i < nW - 10; i += 4)...

是不是你的boundingRect()返回的矩形形状不对?

网站首页 | 网站地图
All rights reserved Powered by www.kwhw.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com