遇到过Qt QWidget窗口上QLabel控件不能刷新的问题,最后重载showEvent,问题原因不明白啊。
代码如下:
void showEvent(QShowEvent *e)
{
this->setAttribute(Qt::WA_Mapped);
QWidget::showEvent(e);
}
遇到过Qt QWidget窗口上QLabel控件不能刷新的问题,最后重载showEvent,问题原因不明白啊。
代码如下:
void showEvent(QShowEvent *e)
{
this->setAttribute(Qt::WA_Mapped);
QWidget::showEvent(e);
}