[PyKDE] Q_PROPERTY declaration problem

Phil Thompson phil at river-bank.demon.co.uk
Fri Jun 21 14:17:00 BST 2002

Hans-Peter Jansen wrote:

> On Thu, 20 Jun 2002 22:36:58 +0100
> "Phil Thompson" <phil at river-bank.demon.co.uk> wrote:
>>Hans-Peter Jansen wrote:
>>>Yes, but it's c++ ancestor behaves different in this respect. It 
>>>displays it's editor on double click of the status field. Do you
>>>have an idea, where this difference come from?
>>Got it - fixed in the latest snapshot.
> Just checked. StatusPicker is invoked correctly. But it's statusId
> and setStatusId methods weren't. You can check this by appending:
> mysql> use testdb
> mysql> insert into status (id, name) values(4, "Driver");
> Now, the status table isn't ordered anymore. Try choosing "Driver"
> for a staff member. Also, the print statements weren't executed.
> Again: It's my feeling, that this is related to the mysterious 
> Q_PROPERTY( int statusid READ statusId WRITE setStatusId )
> declaration in main.h of sql/overview/table4. How does PyQt deal
> with this or how should I deal with it?

This is a bit of a showstopper. In PyQt it is not possible to define new 
properties, which is needed to support custom editor widgets written in 

I need to think about this - it isn't going to be fixed (assuming I can 
fix it) for the next version of PyQt.


More information about the PyQt mailing list