[PyQt] why do closeEvent and destroyed slot not get called on accepting PyQt4 QDialog?

2011-04-06 Thread RuiDC
The question & code are here: http://stackoverflow.com/questions/5570402/why-do-closeevent-and-destroyed-slot-not-get-called-on-accepting-pyqt4-qdialog but hopefully someone here can give me an answer on: 1. how to get the closeEvent to fire from accepting (or do I have to do a self.close()?) 2.

Re: [PyQt] Editing multiple items in QTreeView delegate

2011-04-06 Thread James Polk
Well I found a solution and thought I would share it... Probably not the most elegant, but it does work.. Works by using an import global variable (told you it wasn't elegant ;-) I created a file named "ms.py" and inside is a single line: MyTreeView and that's all. In my main.py,...I "im

Re: [PyQt] Help with QStateMachine and animations

2011-04-06 Thread Demetrius Cassidy
Actually I found out you can add this to a QAbstractTransition, but it does not make a difference. It seems that the animation which moves widgets off-screen does not play. I only see the widgets moving on-screen. slightly modified code: def _createAnimations(self): self._stateProceeding

Re: [PyQt] Editing multiple items in QTreeView delegate

2011-04-06 Thread Zoltan Szalai
hi, not sure its a good idea but i solved this kind of problem by sending a signal from the delegate which the view can catch and perform the edit on all the selected items. it works just fine here. bests Zoli On 2011.04.06. 2:43, James Polk wrote: I have a curious dilemma I can't seem to

[PyQt] QtWebKit problem with GoogleMaps 'UI' (mouse events)

2011-04-06 Thread Mikołaj Kiereś
Hello, I'm new here so sorry if this problem appeared and I haven't found it in some kind of mailing archive. I'll describe a little my problem. I'm trying to make application with googe maps in it. So I'm using QtWebKit and QWebView. Everything was fine until Google was supporting the Google

Re: [PyQt] Editing multiple items in QTreeView delegate

2011-04-06 Thread Hans-Peter Jansen
On Wednesday 06 April 2011, 02:43:38 James Polk wrote: > I have a curious dilemma I can't seem to find any information about > in the docs... > > I have a QTreeView and a delegate... > The items in the QTreeView have columns of similar data.  When I set > the selection behaviour to multiSelect (act

Re: [PyQt] Template class with private assignment operator

2011-04-06 Thread Phil Thompson
On Mon, 04 Apr 2011 22:43:54 +0200, Lorenzo Masini wrote: > Il giorno ven, 01/04/2011 alle 12.09 +0100, Phil Thompson ha scritto: >> Using the /NoRelease/ mapped type annotation will suppress the generation >> of the assign_ helper, but it will also has an effect on calling the >> type's >> dtor.