【发布时间】:2010-07-20 19:30:46
【问题描述】:
我想为 QWidget maximumWidth 设置动画,以便在带有动画的布局中更改小部件的大小,但它不起作用。我已尝试执行以下操作:
QPropertyAnimation *animation1 = new QPropertyAnimation(m_textEditor2, "maximumWidth");
animation1->setStartValue(0);
animation1->setEndValue(100);
animation1->start();
编辑:对于 minimumWidth 属性动画有效,但对于 maximumWidth - 没有。因此,我在他们的错误报告网站上打开了一个错误:here。
【问题讨论】: