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

List:       kde-devel
Subject:    Re: Reading QMetaProperty values from KConfig files
From:       "Thomas Braxton" <kde.braxton () gmail ! com>
Date:       2008-12-18 19:08:36
Message-ID: 928c3f1b0812181108n7f5c235eo4cbcd6762b9a1b64 () mail ! gmail ! com
[Download RAW message or body]

On Thu, Dec 18, 2008 at 12:27 PM, Aaron J. Seigo <aseigo@kde.org> wrote:
> On Thursday 18 December 2008, Stefan Majewsky wrote:
>>   Q_PROPERTY(QPointF Point2 READ...)
>
>
>>     prop.write(this, group->readEntry(prop.name(), QString()));
>
> you're setting a QPointF, but reading in a QString. try changing the QString()
> to a QVariant of the right type, perhaps?
you could pass prop.type() that should pass a QVariant of the right type
 
>> 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