Re: [PyQt] Bug in QAction?

2011-04-07 Thread Hans-Peter Jansen
On Thursday 07 April 2011, 22:36:43 Vicent Mas wrote: > 2011/4/7 Vicent Mas : > > On 2011-04-07 "Hans-Peter Jansen" said: > >> On Thursday 07 April 2011, 12:12:48 Vicent Mas wrote: > >> > Hi, > >> > > >> > I'm trying PyQt-x11-gpl-snapshot-4.8.4-8641ecc135b3 on a debian > >> > testing box with Pyth

[PyQt] QabstractItemModel.match()

2011-04-07 Thread James Polk
hmmm, I'm not finding a match() function for either QTreeView nor QAbstractItemView... For many good code examples, try www.nullege.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Editing multiple items in QTreeView delegate

2011-04-07 Thread James Polk
...and  just to cleanup and clarify, in "ms.py", I had to go back and edit it to be: global MyTreeView instead of just simply "MyTreeView" which I wrote before... ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com

Re: [PyQt] Bug in QAction?

2011-04-07 Thread Vicent Mas
2011/4/7 Vicent Mas : > On 2011-04-07 "Hans-Peter Jansen" said: > >> On Thursday 07 April 2011, 12:12:48 Vicent Mas wrote: >> > Hi, >> > >> > I'm trying PyQt-x11-gpl-snapshot-4.8.4-8641ecc135b3 on a debian >> > testing box with Python2.7 and virtualenv-1.5.1. Running the attached >> > script raise

[PyQt] QabstractItemModel.match()

2011-04-07 Thread F.A.Pinkse
Hi All, Can someone point me to a working example of the QTreeView.match()function? Thanks. Frans. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2011-04-07 Thread Hans-Peter Jansen
On Thursday 07 April 2011, 17:27:15 Rui DaCosta wrote: > Firstly thanks again for your reply, > > In the original code, from where this simplification is based, I have > cleanup code on both closeEvent and destroyed, but... > > that's just the problem, the closeEvent isn't getting fired (unless I >

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

2011-04-07 Thread Rui DaCosta
just to be clear, I wasn't trying to use destroy(), I was merely using it to demonstrate that even if I did, neither the closeEvent nor the destroyed signal were working. From: Demetrius Cassidy To: Rui DaCosta Cc: pyqt@riverbankcomputing.com Sent: Thu, 7 Ap

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

2011-04-07 Thread Rui DaCosta
Firstly thanks again for your reply, In the original code, from where this simplification is based, I have cleanup code on both closeEvent and destroyed, but... that's just the problem, the closeEvent isn't getting fired (unless I manually call close) - except when the window is closed from th

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

2011-04-07 Thread Demetrius Cassidy
Sorry found destroyed() - that's what happens when you reply to emails before you have morning coffee. Anyway I'm not sure why destroyed() is never fired. I tried your code and even modified it a bit to use the new style slots and signals but it's not being fired. Either way, I think the other poi

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

2011-04-07 Thread Demetrius Cassidy
I truly believe you are approaching this from the wrong angle. If you need to know when your QDialog is going away, you override closeEvent and do your cleanup from there. However, looking through the docs, it does not appear that destroy is actually a signal. It's called from the QWidget dtor, so

Re: [PyQt] Bug in QAction?

2011-04-07 Thread Vicent Mas
On 2011-04-07 "Hans-Peter Jansen" said: > On Thursday 07 April 2011, 12:12:48 Vicent Mas wrote: > > Hi, > > > > I'm trying PyQt-x11-gpl-snapshot-4.8.4-8641ecc135b3 on a debian > > testing box with Python2.7 and virtualenv-1.5.1. Running the attached > > script raises the following error: > > >

Re: [PyQt] Bug in QAction?

2011-04-07 Thread Hans-Peter Jansen
On Thursday 07 April 2011, 12:12:48 Vicent Mas wrote: > Hi, > > I'm trying PyQt-x11-gpl-snapshot-4.8.4-8641ecc135b3 on a debian > testing box with Python2.7 and virtualenv-1.5.1. Running the attached > script raises the following error: > > (venv2.7)vmas@rachael:/tmp$ Traceback (most recent call la

Re: [PyQt] Position widgets over widgets

2011-04-07 Thread Hans-Peter Jansen
On Thursday 07 April 2011, 15:36:47 Mads Ipsen wrote: > Hi, > > I tried that, but is does not seem to work. The 'XXX' is still hidden > by the widget in the layout. > > What I eventually would like to achieve is to add a QPushButton in, > say, the upper left corner of the parent widget. > > I have

Re: [PyQt] signal/slot vs Qt.UniqueConnection ?

2011-04-07 Thread Hans-Peter Jansen
On Thursday 07 April 2011, 12:49:43 Zoltan Szalai wrote: > Hi, > > I'm quite sure I'm missing something fundamental here but I can't get > QObject.connect to work as expected when using Qt.UniqueConnection as > a connection type. > I attached some code that demonstrates my problem. I would expect >

Re: [PyQt] Position widgets over widgets

2011-04-07 Thread Mads Ipsen
Hi, I tried that, but is does not seem to work. The 'XXX' is still hidden by the widget in the layout. What I eventually would like to achieve is to add a QPushButton in, say, the upper left corner of the parent widget. I have attached a similar example, this time with a QPushButton. This

Re: [PyQt] Position widgets over widgets

2011-04-07 Thread Hans-Peter Jansen
On Thursday 07 April 2011, 14:58:30 Mads Ipsen wrote: > Hi, > > I have attached a simple example where a widget sets up two labels. > One which is added to the layout of the widget, and one which is not. > > In the paintEvent() of the parent widget I instead position the > non-layout label using se

[PyQt] Position widgets over widgets

2011-04-07 Thread Mads Ipsen
Hi, I have attached a simple example where a widget sets up two labels. One which is added to the layout of the widget, and one which is not. In the paintEvent() of the parent widget I instead position the non-layout label using setGeometry to make it appear in the center of the parent widge

[PyQt] signal/slot vs Qt.UniqueConnection ?

2011-04-07 Thread Zoltan Szalai
Hi, I'm quite sure I'm missing something fundamental here but I can't get QObject.connect to work as expected when using Qt.UniqueConnection as a connection type. I attached some code that demonstrates my problem. I would expect that the slot is called only once. versions: PyQt4: 4.8.3 Qt: 4

[PyQt] Bug in QAction?

2011-04-07 Thread Vicent Mas
Hi, I'm trying PyQt-x11-gpl-snapshot-4.8.4-8641ecc135b3 on a debian testing box with Python2.7 and virtualenv-1.5.1. Running the attached script raises the following error: (venv2.7)vmas@rachael:/tmp$ Traceback (most recent call last): File "test_qaction.py", line 9, in shortcut=QtGui.QK