This is a discussion on Re: KVariant - KDE ; On Monday 22 August 2005 19:56, Thiago Macieira wrote: > David Faure wrote: > >On Sunday 14 August 2005 16:58, Tomasz Grobelny wrote: > >> Does there exist QVariant replacement that could store KDE class > >> objects (ex. KURL)? ...
On Monday 22 August 2005 19:56, Thiago Macieira wrote:
> David Faure wrote:
> >On Sunday 14 August 2005 16:58, Tomasz Grobelny wrote:
> >> Does there exist QVariant replacement that could store KDE class
> >> objects (ex. KURL)?
> >
> >You can convert the KURL to a QString and back, anyhow, so if it's just
> > for KURL, QVariant does the job.
>
> The penalty you'll pay for doing this is the conversion from QString
> requires parsing again, but it should not lose information.
>
KURL was just an example. Maybe there are other objects that would need to =
be =
passed.
> But, what did you want to store a KURL in a QVariant for? Maybe there's an
> alternative solution.
I was thinking about quite general data categorization API. You throw in =
data+list of properties and what you get back is a list of values for those =
properties. Or is it better to provide separate functions for each data typ=
e?
-- =
Regards,
Tomasz Grobelny
=
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib=
e <<