사용자가 클릭하여 대화 상자를 표시 할 때 작은 크기에서 최대 크기로 나오는 대화 상자와 같은 효과를 추가 할 수있는 방법이 있습니까? 대화창을 열 것을 요청할 때 iphoto를 좋아한다면 같은 방법으로 나옵니다 !!! 내가 사용하고있는 코드는 다음과 같습니다show/hide 중에 QTDialog에서 효과를 추가하는 방법은 무엇입니까?
fade_effect = new QGraphicsOpacityEffect(this);
this->setGraphicsEffect(fade_effect);
animation = new QPropertyAnimation(fade_effect, "opacity");
animation->setEasingCurve(QEasingCurve::InOutQuad);
animation->setDuration(5000);
animation->setStartValue(1);
animation->setEndValue(0.01);
animation->start(QPropertyAnimation::DeleteWhenStopped);
this->setWindowOpacity(0.5);
//this->hide();
//QDialog::reject();
그것의이 사건을 숨기고에서 작동하지 않습니다.
['QPropertyAnimation'] (http://qt-project.org/doc/qt-4.8/qpropertyanimation.html)을 위해 일한다면 참조 당신. – thuga
추가 한 코드 예제는 사용자가 요청한 내용에 대해 논란의 여지가 있습니다. 다른 정보를 얻으려면 새 질문을하십시오. – Ezee