我想为 QWidget maximumWidth 设置动画,以便在带有动画的布局中更改 thd 小部件的大小,但它不起作用。我试图做以下事情:
QPropertyAnimation *animation1 = new QPropertyAnimation(m_textEditor2, "maximumWidth");
animation1->setStartValue(0);
animation1->setEndValue(100);
animation1->start();
编辑:对于 minimumWidth 属性动画有效,但对于 maximumWidth - 没有。因此,我在他们的错误报告网站上打开了一个错误:here。