[Qt-interest] SQLITE3 and column type

Raul Metsma raul at innovaatik.ee
Mon Oct 11 11:07:42 CEST 2010


Subclass QSqlQueryModel/QSqlTableModel and return on data( QModelIndex 
&, Qt::DisplayType/Qt::EditType ) QDateTime

Raul

On 10/11/2010 11:00 AM, Wilhelm wrote:
> Hi,
>
> due to the fact, that sqlite is typeless, I get also a "normal" editor
> when I edit a field in a QTableView.
>
> How can one achieve, that e.g. a QDateTimeEdit  is created?
>
> I think, one should set the column type explicit, but I don't know how.
>
> Any hints?
>



More information about the Qt-interest-old mailing list