Hi all,
I am playing with a gui that shows several QMovies which may have
arbitrary sizes/aspects, and I'd like them all to live within the same
sized QLabel for a neat layout.
So in order to scale them properly I assume I need to use
QMovie.setScaledSize()?!
But the latter has no facility to keep the movie file's aspect ratio, so
in order to use something like this:
fileQSize.scale(displayQSize, QtCore.Qt.KeepAspectRatio)
I need to know the movie file's size/aspect.
It would seem that QT does not know the file's size until it has been
played, and some examples I have seen on the web do this:
movie.start()
movie.stop()
movie.currentImage().size()
or:
movie.jumpToFrame(0)
movie.currentImage().size()
Is this the way to go or is there a tidier way?
Thanks in advance,
frank
--
ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing
<http://ohufx.com/index.php/vfx-compositing> | *workflow customisation
and consulting <http://ohufx.com/index.php/vfx-customising>* *
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest