[PyQt] Simple way of signaling (like QueuedConnection) main (qt/qui) thread from python thread ?

2010-04-07 Thread Mateusz Korniak
Hi ! I am trying to write simple wrapper [1] for long run tasks so they are run in separate thread and results are signaled to main (qt/gui thread). And I have big problem implementing final phase - sending QueuedConnection signal from python thread to main qt(qui) thread. Default signaling see

Re: [PyQt] PyQt and/or Qt problems on Windows Vista

2010-04-07 Thread Francesco Biccari
Installing an older version of Python 2.6 does not help. Instead, installing the latest PyQt snapshot of the Riverbank website (PyQt-win-gpl-snapshot-4.7.3-22b0acdb1b62) the problem of "python crash on application exit" disappears. : ) I hope Riverbank will provide a new "all-in" installer (4.7.

Re: [PyQt] PyQt application crashes on exit

2010-04-07 Thread Francesco Biccari
Installing the latest PyQt snapshot of the Riverbank website (PyQt-win-gpl-snapshot-4.7.3-22b0acdb1b62) the problem of "python crash on application exit" disappears. : ) I hope Riverbank will provide a new "all-in" installer (4.7.4?) as soon as possible. Ciao ciao. Fra On Wed, Apr 7, 2010 at 2

Re: [PyQt] PyQt application crashes on exit

2010-04-07 Thread Matt Chambers
I'm seeing this as well on Linux. Since upgrading to 4.7.2 almost every apps prints a Segmentation fault message on exit. That is with Python 2.6.4. Our Python2.5 is still using the previously released version and doesn't have the problem when running the same code base. This is compiled ag

Re: [PyQt] Strange behaviour with string conversions when emitting signals with dicts

2010-04-07 Thread Stefan Scherfke
Am 2010-04-07 um 19:04 schrieb Phil Thompson: > It's a bug fix. Dicts with string keys are converted to a native QVariant > rather than being left as a Python object (because you may be trying to > pass data to some C++ code). On the conversion back it will leave those > strings as QStrings. > >

Re: [PyQt] PyQt application crashes on exit

2010-04-07 Thread Francesco Biccari
I have the same problem on Vista. PyQt 4.7.2 both with Python 2.6.5 and Python 2.6.4. However your example does not give any problem to me. I think it is a very subtle problem. Sometimes, even if I do exactly the same things (push a button and so on) on the same program, when I close that program,

Re: [PyQt] [pyqt] drawPixmap() in a QGraphicsItem.paint() / SmoothTransformation issue

2010-04-07 Thread Philippe Crave
Had to set it in the View ! self.view.setRenderHints(QPainter.Antialiasing | QPainter.SmoothPixmapTransform) 2010/4/2 Philippe Crave : > Hi, > > In a QGraphicsItem, I use painter.drawPixmap() in the paint() method. > but when I resize the QGraphicsView, the Pixmap is not that pretty. > > If I pu

Re: [PyQt] Strange behaviour with string conversions when emitting signals with dicts

2010-04-07 Thread Phil Thompson
On Wed, 7 Apr 2010 09:57:39 +0200, Stefan Scherfke wrote: > Hello, > > yesterday I noticed a strange behavior with PyQt4 when I emit a signal, > that has a dict with string-keys as argument. > > Take the following example: > > from PyQt4 import QtCore > > > class A(QtCore.QObject): >

[PyQt] PyQt application crashes on exit

2010-04-07 Thread Romi Agar
Hi! After upgrading my PyQt to version 4.7.2 on my windows 7 x64 machine running Python 2.6.5 many of my applications tend to crash on exit. Python.exe stops responding if I close the application window. A simple example that seems to always crash on my pc is included as an attachment. Any ideas

[PyQt] image show hide problem

2010-04-07 Thread Anshul Jain
Hello, I have been trying to move my image using the object.move(x,y) function by maintaining a list of instances corresponding to each image. I have done this using MIMEdata class. The aim of the code is to implement drag and drop and then if one block is in vicinity of other block, snap fit it

Re: [PyQt] Text on SVG images

2010-04-07 Thread Dov Grobgeld
Perhaps append a text element to the SVG image in order to generate a temporary image that you can display instead of the original image. If you put your text element at the end of the file (before the closing tag), then it will be displayed on top of all other SVG display elements. Regards, Dov

[PyQt] Strange behaviour with string conversions when emitting signals with dicts

2010-04-07 Thread Stefan Scherfke
Hello, yesterday I noticed a strange behavior with PyQt4 when I emit a signal, that has a dict with string-keys as argument. Take the following example: from PyQt4 import QtCore class A(QtCore.QObject): sig = QtCore.pyqtSignal(dict) def run(self): self.si