void AnswerEdit::slotCalculateHeight(){ int left, top, right, bottom, height = this->document()->size().height(); getContentsMargins(&left, &top, &right, &bottom); setFixedHeight(height + top + bottom);}