[Interest] QVariant cannot take custom type

André Somers andre at familiesomers.nl
Fri Apr 5 11:44:06 CEST 2013


Op 5-4-2013 11:39, Sven Bergner schreef:
> Hello,
> you can use a custom type with QVariant by declaring it 
> using Q_DECLARE_METATYPE ( Type ).
> Hope that helps.
>
It does not. That was already in the code posted in the opening post. As 
noted by others, the issue lies with trying to use a QObject derived 
class here.

André

-- 
You like Qt?
I am looking for collegues to join me at i-Optics!




More information about the Interest mailing list