Re: [Interest] QMetaType::metaObjectForType

2014-02-17 Thread Graham Labdon
Thanks! -Original Message- From: Stephen Kelly [mailto:stephen.ke...@kdab.com] Sent: 17 February 2014 10:06 To: Graham Labdon Cc: interest@qt-project.org Subject: Re: [Interest] QMetaType::metaObjectForType On Monday, February 17, 2014 09:47:20 you wrote: > Hi > Thanks for your

Re: [Interest] QMetaType::metaObjectForType

2014-02-17 Thread Stephen Kelly
On Monday, February 17, 2014 09:47:20 you wrote: > Hi > Thanks for your quick reply. > This does indeed work, but I would be grateful if you could explain why > > > Q_DECLARE_METATYPE(Widget) > > Remove this line. You don't pass around copies of QObject derived types because it is not copyable

Re: [Interest] QMetaType::metaObjectForType

2014-02-17 Thread Graham Labdon
Of Stephen Kelly Sent: 17 February 2014 09:41 To: interest@qt-project.org Subject: Re: [Interest] QMetaType::metaObjectForType On Monday, February 17, 2014 09:37:00 Graham Labdon wrote: > Hi > > I am trying to use QMetaType::metaObjectForType but it is always > returning NULL > &g

Re: [Interest] QMetaType::metaObjectForType

2014-02-17 Thread Stephen Kelly
On Monday, February 17, 2014 09:37:00 Graham Labdon wrote: > Hi > > I am trying to use QMetaType::metaObjectForType but it is always returning > NULL > > I have attached my class declaration and would be grateful if anyone can > explain why I am getting a NULL return value > > Many thanks > meta

[Interest] QMetaType::metaObjectForType

2014-02-17 Thread Graham Labdon
Hi I am trying to use QMetaType::metaObjectForType but it is always returning NULL I have attached my class declaration and would be grateful if anyone can explain why I am getting a NULL return value Many thanks Class.h - class Widget : public QWidget { Q_OBJECT public: Q_INVOKABLE Wi