The following is working good in my case:
//=============================================================================
//=============================================================================
/* virtual */ int ZeParagraphWidget::heightForWidth(int w) const
{
ZeLog::get()->Print("ZeParagraphWidget - heightForWidth %d %f\n", w, document()->size().height());
return (int) (document()->size().height());
}
//=============================================================================
//=============================================================================
// Slots
//=============================================================================
//=============================================================================
void ZeParagraphWidget::onContentsChanged()
{
ZeLog::get()->Print("ZeParagraphWidget - onContentsChanged\n");
updateGeometry();
}
//=============================================================================
//=============================================================================
/* virtual */ int ZeParagraphWidget::heightForWidth(int w) const
{
ZeLog::get()->Print("ZeParagraphWidget - heightForWidth %d %f\n", w, document()->size().height());
return (int) (document()->size().height());
}
//=============================================================================
//=============================================================================
// Slots
//=============================================================================
//=============================================================================
void ZeParagraphWidget::onContentsChanged()
{
ZeLog::get()->Print("ZeParagraphWidget - onContentsChanged\n");
updateGeometry();
}
To copy to clipboard, switch view to plain text mode
Bookmarks