How does resizing work in QWidgets in general and QGraphicsView in particular?
I've looked through the QT documentation and there doesn't seem to be a set size () function for QWidgets as I imagine there would be. Where the auto layout looks decent, it's annoying being unable to specify the exact size of existing QWidgets. Say I created a pixmap and want to toggle between viewing its actual size in pixels and a zoomed view in a QGraphicsView. What is the best way to resize a QGraphicsView (filling the layout and being a fixed size according to the pixmap dimensions)?
Re: How does resizing work in QWidgets in general and QGraphicsView in particular?
There are QWidget::resize() and QWidget::setGeometry(), but having sizes layout controlled is almost always better.
Cheers,
_