[PyQt] createIndex() in treemodels and pyqt-book

2010-08-26 Thread Knacktus
Hello everyone, I'm a bit confused about the third argument of the createIndex() method. The Qt class documentation simply says it's an internal pointer. Then, the PyQt-Book "Rapid GUI Programming ..." says index have a row, column and a parent. So I thought the pointer must be a pointer to th

[PyQt] new version sip 4.10.5 with Python 2.7 : connecting to actions no longer work

2010-08-26 Thread Schrodinger Account
I have a Python panel that is connecting to a QAction that is a member variable of a class and was created in CPP. This connection was working just fine using sip 4.9.3 with Python 2.6, but no longer works with sip 4.10.5 and Python 2.7 . Is this a known problem, or could I be doing somethi

Re: [PyQt] events / signals

2010-08-26 Thread fpp
On Wed, Aug 25, 2010 at 10:43 PM, Eric Frederich wrote: > If I find myself subclassing a widget just to get something to happen on an > event am I doing something wrong? > Is there another way to accomplish this? > Is there a way to use an event like a signal in a self.connect? > For example... If

Re: [PyQt] setCursor does not seem to work as expected in graphicsScene/View

2010-08-26 Thread Baz Walter
On 26/08/10 08:45, Christopher M. Nahler wrote: Thank you Baz! You pointed me to the solution of my problem ... and it was easier than your solution :-) you're welcome :) I did not know of *self.viewport()* in the view class. Updating the cursor of the view with self.viewport().setCursor() i

Re: [PyQt] Is there a Dabo like framework

2010-08-26 Thread Phil Thompson
On Thu, 26 Aug 2010 08:29:06 -0700, John Fabiani wrote: > On Thursday, August 26, 2010 07:20:24 am John Fabiani wrote: >> On Thursday, August 26, 2010 01:11:17 am Phil Thompson wrote: >> > On Wed, 25 Aug 2010 19:24:16 -0700, John Fabiani >> > >> > wrote: >> > > Hi, >> > > I have wanted to use QT

Re: [PyQt] Is there a Dabo like framework

2010-08-26 Thread John Fabiani
On Thursday, August 26, 2010 07:20:24 am John Fabiani wrote: > On Thursday, August 26, 2010 01:11:17 am Phil Thompson wrote: > > On Wed, 25 Aug 2010 19:24:16 -0700, John Fabiani > > > > wrote: > > > Hi, > > > I have wanted to use QT for some time now. However, I'd like to also > > > continue > >

Re: [PyQt] Is there a Dabo like framework

2010-08-26 Thread John Fabiani
On Thursday, August 26, 2010 01:11:17 am Phil Thompson wrote: > On Wed, 25 Aug 2010 19:24:16 -0700, John Fabiani > > wrote: > > Hi, > > I have wanted to use QT for some time now. However, I'd like to also > > continue > > using something like Dabo (uses wxPython for thegui but any database).

Re: [PyQt] mouse hover, editable, QListview

2010-08-26 Thread Zoltan Szalai
hey, check the code snippet attached. it may not perfect but i hope it help you get started. to keep an editor open you can use the openPersistentEditor method of QAbstractItemView. http://doc.qt.nokia.com/4.6/qabstractitemview.html#openPersistentEditor On 2010.08.25. 17:13, M Chauhan wrote

Re: [PyQt] Is there a Dabo like framework

2010-08-26 Thread Phil Thompson
On Wed, 25 Aug 2010 19:24:16 -0700, John Fabiani wrote: > Hi, > I have wanted to use QT for some time now. However, I'd like to also > continue > using something like Dabo (uses wxPython for the gui but any database). > So > before I start something big like porting pyQT to Dabo. I thoug

Re: [PyQt] setCursor does not seem to work as expected in graphicsScene/View

2010-08-26 Thread Christopher M. Nahler
Thank you Baz! You pointed me to the solution of my problem ... and it was easier than your solution :-) I did not know of *self.viewport()* in the view class. Updating the cursor of the view with self.viewport().setCursor() instead of just self.setCursor() did the trick. On 25.08.2010 20:0