I have tried both the following (from inside the qgraphicsview):
mLayout->setMinimumWidth(width());
layoutItem->setMinimumWidth(width());
mLayout->setMinimumWidth(width());
mLayout->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Minimum);
layoutItem->setMinimumWidth(width());
layoutItem->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Minimum);
To copy to clipboard, switch view to plain text mode
I have also tried various other combinations such as QSizePolicy::Minimum and QSizePolicy::Expanding, etc. They are still not fitting the view's width horizontally. Any hints as to what I may be doing wrong?
Does Qt automatically handle the resizing from then on, or must I manually resize the QWebView from somewhere inside my FooItem?
Thank you for your help.
Edit: I have also tried setting the minimum width to viewport()->width() and scene()->width(). Neither have produced any effect.
Bookmarks