Re: [PyQt] Is this a bug or ?

2008-03-19 Thread Gilles CHAUVIN
On Wed, Mar 19, 2008 at 8:24 PM, Phil Thompson <[EMAIL PROTECTED]> wrote: > The fix is to take an explicit copy of the QPoint... > > self.startPos = QPoint(event.pos()) > > ...which is what happens implicitly in C++. > Many thanks for your reply Phil. It is now working as expected :). Rega

Re: [PyQt] Getting raw x11 events

2008-03-19 Thread Tro
On Wednesday 19 March 2008, Phil Thompson wrote: > That's because PyQt doesn't include x11EventFilter() because I'm not > wrapping XEvent. OK, thanks for the clarification. Tro ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcom

Re: [PyQt] Is this a bug or ?

2008-03-19 Thread Phil Thompson
On Wednesday 19 March 2008, Gilles CHAUVIN wrote: > Hi, > > I'm new to this list so I apologize if this has been asked / reported > before. I'm trying to add drag n' drop support to a QListWidget. Here > is my current test code: > > --

[PyQt] Is this a bug or ?

2008-03-19 Thread Gilles CHAUVIN
Hi, I'm new to this list so I apologize if this has been asked / reported before. I'm trying to add drag n' drop support to a QListWidget. Here is my current test code: -- from PyQt4.Qt import * class ListWidget(QListWid

Re: [PyQt] Getting raw x11 events

2008-03-19 Thread Phil Thompson
On Wednesday 19 March 2008, Tro wrote: > On Wednesday 19 March 2008, Andreas Pakulat wrote: > > On 18.03.08 23:52:59, Tro wrote: > > > Hi. > > > > > > I'm trying to get at the raw x11 events by overriding the > > > x11ProcessEvent() method in my PyQt QApplication-derived class, but > > > it's never

Re: [PyQt] QTableModel (custom) with QComboBox in a cell... (take 2)

2008-03-19 Thread Matt Newell
On Wednesday 19 March 2008 00:43:46 Dirk Wagener wrote: > Hi > I sent this before, but got no replies. > Here we go again: > > I am implementing a custom model for a table view. I have an editable cell > in which the user can enter a value. What I want to do is to make the cell > a QComboBox so tha

Re: [PyQt] Getting raw x11 events

2008-03-19 Thread Tro
On Wednesday 19 March 2008, Andreas Pakulat wrote: > On 18.03.08 23:52:59, Tro wrote: > > Hi. > > > > I'm trying to get at the raw x11 events by overriding the > > x11ProcessEvent() method in my PyQt QApplication-derived class, but it's > > never being called. In fact, QApplication doesn't seem to

Re: [PyQt] QTableModel (custom) with QComboBox in a cell... (take 2)

2008-03-19 Thread Kerri Reno
Dirk, I think Delegates are the way to go, but I haven't tackled this particular problem yet. I'm hoping someone else can help you. Good Luck! Kerri On 3/19/08, Dirk Wagener <[EMAIL PROTECTED]> wrote: > > Hi > I sent this before, but got no replies. > Here we go again: > > I am implementing a c

Re: [PyQt] Signal on Selection in QTreeView

2008-03-19 Thread Marius Kintel
On Mar 19, 2008, at 11:41 AM, Phil Thompson wrote: 2007/12/28 12:31:03 phil Fixed a bug where PyQt connections from an object owned by C++ were lost when the Python object was garbage collected. Yep, that fixes my problem. Thanks for the hint! ~/= Marius -- We are Elektropeople for a b

Re: [PyQt] Signal on Selection in QTreeView

2008-03-19 Thread Phil Thompson
On Wednesday 19 March 2008, you wrote: > On Mar 18, 2008, at 2:44 PM, Phil Thompson wrote: > > What makes you say that? The connection has nothing to do with the > > wrapper > > object of the emitter. > > The underlying Qt connection stays alive, but on the PyQt side the > connection goes down maki

Re: [PyQt] Getting raw x11 events

2008-03-19 Thread Andreas Pakulat
On 18.03.08 23:52:59, Tro wrote: > Hi. > > I'm trying to get at the raw x11 events by overriding the x11ProcessEvent() > method in my PyQt QApplication-derived class, but it's never being called. In > fact, QApplication doesn't seem to have a x11ProcessEvent() method that I > could override. Q

Re: [PyQt] Signal on Selection in QTreeView

2008-03-19 Thread Andreas Pakulat
On 18.03.08 17:54:44, Kevin Foss wrote: > I really hate to keep coming back for help like this but even after > re-reading > the reference you gave (I've read it before), I still have yet to understand > what constitutes an INDEX. A QModelIndex is simply a little helper class that stores all d

[PyQt] QTableModel (custom) with QComboBox in a cell... (take 2)

2008-03-19 Thread Dirk Wagener
Hi I sent this before, but got no replies. Here we go again: I am implementing a custom model for a table view. I have an editable cell in which the user can enter a value. What I want to do is to make the cell a QComboBox so that the user can enter a text value for the cell OR select some