アニメーションを使用してレイアウト内のウィジェットのサイズを変更するために QWidget maximumWidth をアニメーション化したかったのですが、うまくいきません。私は次のことをしようとしました:
QPropertyAnimation *animation1 = new QPropertyAnimation(m_textEditor2, "maximumWidth");
animation1->setStartValue(0);
animation1->setEndValue(100);
animation1->start();
編集: minimumWidth プロパティの場合、アニメーションは機能しますが、 maximumWidth の場合 - いいえ。したがって、私は彼らのバグレポート サイトでバグを開いた: here。