Flexible Lablel to put pictures in, for PYQT5
Project description
Compound widget to work around some shortcomings in Qt image display.
- Animated GIFs will animate, like in a browser, by transparently switching between QImage and QMovie internally depending on the number of frames detected by QImageReader.
- Content will scale up or down to fit the widget while preserving its aspect ratio and will do so without imposing a minimum size of 100%.
- Letterbox/pillarbox borders will default to black. (It's a bit of a toss-up whether an application will want this or the default window background colour, so this defaults to the choice that provides an example of how to accomplish it.)
Note that QImageReader doesn't have an equivalent to GdkPixbufLoader's
area-prepared
and area-updated
signals, so incremental display for
for high-speed scanning (ie. hitting "next" based on a partially loaded
images) isn't really possible. The closest one can get is to experiment
with QImageReader's support for loading just part of a JPEG file to see if
it can be done without significantly adding to the whole-image load time.
(https://wiki.qt.io/Loading_Large_Images)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
FlexPicLabel-0.9.tar.gz
(1.9 kB
view hashes)
Built Distribution
Close
Hashes for FlexPicLabel-0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f64da566a856e27abf3294ee7573ce968640eebce477b0ba113356482882f5f |
|
MD5 | 3e18ea962c6898a8c17bd6c5ded881e2 |
|
BLAKE2b-256 | 36d12d3550536484c951f787dadfdd1e70196beb5fa9975dd4b64c04f6bdd8d1 |