[PyQt] event filters vs subclassing

2010-08-03 Thread Dan Halbert
I am implementing a simple specialized graphical editor in PyQt using a QGraphicsPixmapItem and related classes. I need to place points with mouse clicks and do a bit of dragging. I can either subclass QGraphicsPixmapItem to handle various mouse events, or do installEventFilter(). In Mark Summe

Re: [PyQt] Pixel Manipulation Very Slow?

2010-08-20 Thread Dan Halbert
Also see whether PIL, the Python Imaging Library (http://www.pythonware.com/products/pil/index.htm) will do what you want. It has a number of image-manipulation primitives which are coded in C at the low level. It also has pixel get/put, but that would probably not be significantly faster. D

Re: [PyQt] Image type RAW destroyed by PyQt

2010-09-16 Thread Dan Halbert
On 9/16/2010 4:02 AM, Vincent Vande Vyvre wrote: If an image is type RAW, (.CR2, .RAF, .3FR, .MRW etc) an image format .tiff is automatically created and replace the RAW file. The original file is lost. Could you give a short test program that reproduces the problem? Sounds like it only needs

Re: [PyQt] Qt designer causes OS crash

2010-09-24 Thread Dan Halbert
On Friday, September 24, 2010 11:35am, "Gavin Poludniowski" said: > ...Now, when I try to drag a widget from one position in my Dialog > to another, not only does QT designer crash, but it causes my whole OS to > crash > (as if I'd had a powercut) and restart. > My OS is Windows XP SP3 32-bit.

Re: [PyQt] Problem with implementation of dummy (no-op) proxy model

2010-10-28 Thread Dan Halbert
On Thursday, October 28, 2010 8:28am, "Hans Meine" said: > I am about to give up now, but first I want to post my current code again; I > added some assertions which show an interesting fact which I have no > explanation for: One assertion fails, since I am getting a QModelIndex of my > proxy mo

Re: [PyQt] Segmentation fault with QFileSystemModel

2010-11-11 Thread Dan Halbert
On 11/11/2010 3:22 PM, Gaƫtan Podevijn wrote: When I launch a Python environment in a terminal, and I try to instanciate a QFileSystemModel, I have a segmentation fault: >>> model = QFileSystemModel() >>> model.setRootPath(QDir.homePath()) Segmentation fault However, and I reall