Hello,

I have just given a try to PySide.
I have a QSqlTableModel, and I want to set a NULL value in the database for 
some QModelIndex, with setData( QModelIndex, value ) method.
How can I do that?
I have tried by using the special value "None" of Python, but this does not 
work.

With PyQt, I can create a NULL QVariant:

null_qvariant = QVariant( QVariant.String ))

and set it with the setData( QModelIndex, null_qvariant) method. The 
database content will be "NULL" special value, as expected.
But there is no QVariant in PySide, as far as I know.

How can I do that with PySide?

Thanks

Julien

-- 
python -c "print ''.join([chr(154 - ord(c)) for c in '*9(9&(18%.\
9&1+,\'Z4(55l4('])"

"When a distinguished but elderly scientist states that something is
possible, he is almost certainly right. When he states that something is
impossible, he is very probably wrong." (first law of AC Clarke)

_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to