PDA

View Full Version : Storing/Reading item creation date



maverick_pol
26th May 2008, 01:53
Hi guys,

I would like to ask about few things connected with QGraphicsItems:

1. How to read/store (date & time) about item creation?
2. When serializing should date and time parts be store separately? Can I store the whole date/time somehow?
3. Can I add an additional property(If can't get date/time of item creation) and store item creation date/time?

Thanks for any help

Kacper

jacek
26th May 2008, 02:29
You will have to subclass QGraphicsItem and add all the fields you want. Also you will have to do the serialization yourself.

maverick_pol
26th May 2008, 08:19
Hi,

Ok, simple as that, yet I hoped there were some properties to cover that.

Thanks for help.

Kacper