[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KVariant
From:       Tomasz Grobelny <grotk () poczta ! onet ! pl>
Date:       2005-08-22 23:27:34
Message-ID: 200508230127.34687.grotk () poczta ! onet ! pl
[Download RAW message or body]

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 type?
-- 
Regards,
Tomasz Grobelny
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic