[Kde-games-devel] QGraphicsView and fitInView

Stefan Majewsky majewsky at gmx.net
Fri Feb 20 22:53:26 CET 2009


On Freitag 20 Februar 2009 22:48:07 Pierre Maurier wrote:
> I was doing it just one time in the __init__ func. Currently my little app
> is not re-sizable.
> I think I have found the solution of my problem, fitInView tries to get the
> content viewable but don't seems to rescale it if it already fit in the
> Widget (ie. if the content is smaller than the View). Am I right ?

No, that is QGraphicsView.ensureVisible. fitInView always worked for me in the 
way you intended.

Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-games-devel/attachments/20090220/4c963fe7/attachment.sig 


More information about the kde-games-devel mailing list