Re: [PyQt] Custom QSqlRelationalDelagate: how to change text?

2008-04-12 Thread Simone
Simone Zaccarin ha scritto: My only problem is that I construct the UI via QtDesigner. Is there a way to overwrite the table added via Designer without being a PyQt4 expert? Sorry, I misunderstood the message... :) The QSqlRelationalTableModel is added by code... :) Simone Chiacchiera con i

Re: [PyQt] Custom QSqlRelationalDelagate: how to change text?

2008-04-12 Thread Simone
Mark Summerfield ha scritto: On 2008-04-11, Simone Zaccarin wrote: I'm trying to create a custom QSqlRelationalDelegate. In the database, the date field is in text form '-MM-dd'. I have to show that string in a QSqlTable in the form 'dd-MM-'. If that's the only change you want to

[PyQt] Custom QSqlRelationalDelagate: how to change text?

2008-04-11 Thread Simone Zaccarin
I'm trying to create a custom QSqlRelationalDelegate. In the database, the date field is in text form '-MM-dd'. I have to show that string in a QSqlTable in the form 'dd-MM-'. I think to overwrite the paint method of the QSqlRelationalDelegate, but the result is not what I'm expeting:

Re: [PyQt] Custom QSqlRelationalDelagate: how to change text?

2008-04-11 Thread Mark Summerfield
On 2008-04-11, Simone Zaccarin wrote: I'm trying to create a custom QSqlRelationalDelegate. In the database, the date field is in text form '-MM-dd'. I have to show that string in a QSqlTable in the form 'dd-MM-'. If that's the only change you want to make, you could try what might be

Re: [PyQt] Custom QSqlRelationalDelagate: how to change text?

2008-04-11 Thread Simone Zaccarin
] Inviato: Venerdì 11 aprile 2008, 16:02:12 Oggetto: Re: [PyQt] Custom QSqlRelationalDelagate: how to change text? On 2008-04-11, Simone Zaccarin wrote: I'm trying to create a custom QSqlRelationalDelegate. In the database, the date field is in text form '-MM-dd'. I have to show that string