[PyKDE] Small database application - best way?

Matt Newell newellm at blur.com
Mon Nov 27 17:40:34 GMT 2006


On Monday 27 November 2006 00:50, Sibylle Koczian wrote:
snipped...
> Double clicking, pressing F2 or Enter in a cell in one of the editable
> columns doesn't select the text of this cell, as it does in the example
> programs with editable models. Instead it erases the text completely. Not
> helpful, if a small typo should be corrected, a date altered by one day or
> similar small changes are necessary.
>
Sounds like you aren't handling Qt::EditRole in you model's data function, it 
should be returning the same thing as Qt::DisplayRole.

Matt




More information about the PyQt mailing list