[Qt-interest] How to wrap QObject with QVariant?
Dmitry Teslenko
dteslenko at gmail.com
Wed Jan 28 10:51:54 CET 2009
Hello!
Is there a way to return pointers to QObject through model's data()
function, i. e. wrap it with QVariant.
I guess the easiest way is to cast pointer to integral type; it's bit
unportable since size of pointer address could differ from one platform
to another; Maybe there are qt's macro/defines to help here, aren't they?
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
More information about the Qt-interest-old
mailing list