关于Qt中的paintEvent事件

以下均来自与Qt文档,未作任何更改

void QWidget::paintEvent(QPaintEvent *event)


This event handler can be reimplemented in a subclass to receive paint events passed in event.

A paint event is a request to repaint all or part of a widget. It can happen for one of the following reasons:

  • repaint() or update() was invoked,
  • the widget was obscured and has now been uncovered, or
  • many other reasons.

猜你喜欢

转载自blog.csdn.net/ccedricz/article/details/80725827
今日推荐