Qt-interest Archive, June 2007
qgraphics scene saving info about all items
Message 1 in thread
Hello
I'm thinking about saving and restoring qgraphics items into/from file.
The simplest situation is about ask qraphics scene for it's childrens.
On all items must be call method to read interesting properties, after
that the same method will be call for all his children's.
In the more complicated situation items are inheritance after another
class. So taking properties from them will be more complicated. For
recognize and read they properties design patterns will be helpfull.
But what if qgraphics scene is only one place witch have information
about all items (and they parent/children dependies)? Asking for
childrens will return pointers to qgraphicsitems. I heard some about
dynamic casting, and some about that I can't throwing pointer like in C
style. I understand it's right way to ask qgrapicsscene for all it's
childrens.
Once again, i'm asking for open source code to it. I wonder if there is
some repo with solution to qt ;) ok,ok qt is solution ;]
Best regards :]
begin:vcard
begin:vcard
fn;quoted-printable:Przemys=C5=82aw Staniszewski
n;quoted-printable:Staniszewski;Przemys=C5=82aw
email;internet:peyrol@xxxxxxxxx
version:2.1
end:vcard