PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 1106 - QTableView cannot display native Python datetime objects
: QTableView cannot display native Python datetime objects
Status: NEW
Product: PySide
Classification: Unclassified
Component: QtGui
: 1.0.8
: PC All
: P3 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2011-12-28 21:34 EET by Daniel Harding
Modified: 2012-03-08 16:57 EET (History)
8 users (show)

See Also:


Attachments
Demonstrate the bug. (837 bytes, text/x-python)
2011-12-28 21:34 EET, Daniel Harding
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Harding 2011-12-28 21:34:14 EET
Created attachment 472 [details]
Demonstrate the bug.

I have a model class that I am displaying in a QTableView.  If the model class
returns a native Python datetime object from its data() method, nothing gets
displayed.  If I convert the Python datetime to a QDateTime object, then it
displays correctly.  I would expect that PySide would be able to manage this
conversion internally.

I have attached an example program that demonstrates this issue.  It creates a
model with two rows and displays it in a QTableView.  The first row is a Python
datetime object, and the second is a QDateTime object.  Nothing is displayed
for the first row, while the current date and time is displayed in the second
row.  I would expect the same thing to be displayed in both rows.
Comment 1 Matti Airas 2012-03-08 16:57:57 EET
PySide is now a Qt-addon and uses Qt Project's JIRA tool for tracking bugs.
Please verify that the bug is still valid and re-submit it in the address
below:

https://bugreports.qt-project.org/

Sorry for the inconvenience!