[Qt-interest] Using typedef'ed custom type as Q_PROPERTY

Thiago Macieira thiago.macieira at trolltech.com
Thu Aug 27 17:50:41 CEST 2009


Em Quinta-feira 27 Agosto 2009, às 16:06:52, Andras Toth escreveu:
> Hello, I have been trying all day to use a typedef'ed custom variable
> as Q_PROPERTY, however, it seems impossible to read and write this
> value through methods property(const char*) and setProperty(const
> char*, const QVariant &)
> 

A meta type can only be registered once. Your type (int) is already 
registered, so you can't register the typedef again.

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Development Frameworks
     Sandakerveien 116, NO-0402 Oslo, Norway

Qt Developer Days 2009 | Registration Now Open!
Munich, Germany: Oct 12 - 14     San Francisco, California: Nov 2 - 4
      http://qt.nokia.com/qtdevdays2009
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090827/aea03b1a/attachment.bin 


More information about the Qt-interest-old mailing list