赞
踩
一、功能
void QWidget::render(QPaintDevice *target, const QPoint &targetOffset = QPoint(), const QRegion &sourceRegion = QRegion(), QWidget::RenderFlags renderFlags = RenderFlags(DrawWindowBackground | DrawChildren))
Renders the sourceRegion of this widget into the target using renderFlags to determine how to render. Rendering starts at targetOffset in the target.
二、代码
QPixmap pixmap(this->size());
render(&pixmap
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。