[PyQt] Delayed Encoding and Separations examples

Hans-Peter Jansen hpj at urpla.net
Fri Sep 10 16:16:58 BST 2010


Hi Phil et al,

here are two other examples:

Delayed Encoding: this is located under examples/draganddrop
Separations: add pointed out by David, this is hidden under 
doc/src/snippets/separations.

I've no idea, where to stick this one, but it is a nice example.

Although it shows three weaknesses:
 - since it doesn't delay the encoding, one have to drag the (final) image
   to a drop target and wait, until the encoding finishes before dropping.
   Otherwise the D'n'D operation will fail. (inherited from original)
 - Saving the final image saves the scaled image only, thus it's not really
   usefull for real tasks. (inherited from original)
 - Since it computes all pixels on the fly, the python interpreter penalty
   is hitting us here..

For the sake of completeness, the fixed drop site example attached again.

Pete
-------------- next part --------------
A non-text attachment was scrubbed...
Name: delayedencoding.tar.gz
Type: application/x-tgz
Size: 5760 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100910/19458cc2/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: separations.tar.gz
Type: application/x-tgz
Size: 5155 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100910/19458cc2/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dropsite.tar.gz
Type: application/x-tgz
Size: 1980 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100910/19458cc2/attachment-0005.bin>


More information about the PyQt mailing list