Konstantin & Olivier:
I though this unknown base type might be missing from the meta compiler
and thus not the framework recognizing AbstractList* but recognizing
many other types.
But there is a RegisterType option to make this all go away.
Lightbulb going off right now
Thanks to you both
On Saturday 23. May 2015 10:20:23 mark diener wrote:
> qrc:/main.qml:48: Error: Unknown method return type: MyQAbstractListModel*
You need to call somewhere
qRegisterMetaType();
Note: This is the mailing list for the developer _of_ Qt. For question
related to Qt usage, please post your questi
2015-05-23 21:51 GMT+04:00 m...@rpzdesign.com :
> Konstantin:
>
> Maybe you could add some useful guidance to your response.
>
Sure I could.
> The point of interest is that it must be a QObject derived return.
>
> Maybe a pointer to a QObject.
>
QObject doesn't allow deep-copy, so yes a pointe
Konstantin:
Maybe you could add some useful guidance to your response.
The point of interest is that it must be a QObject derived return.
Maybe a pointer to a QObject.
Or maybe there is another way to construct QAbstractListModel that will
allow for a non-pointer return from Q_INVOKABLE?
(But
On Saturday 23 May 2015 15:35:23 Иван Комиссаров wrote:
> Hi.
>
> I’ve created a QVector of QImages and tried to insert an image in the
> vector: QVector images;
> images.insert(images.begin(), QImage());
>
> I got a compiler warning saying
>
> "qvector.h:649:21: warning: destination for this 'm
2015-05-23 21:20 GMT+04:00 mark diener :
> Hello:
>
> I came across a use case where I wanted to return a QAbstractListModel from
> a Q_INVOKABLE in a C++ QObject based class.
>
> The explicit constructor for QAbstractListModel requires a construction of
> these classes that forces the Q_INVOKABLE
Hello:
I came across a use case where I wanted to return a QAbstractListModel from
a Q_INVOKABLE in a C++ QObject based class.
The explicit constructor for QAbstractListModel requires a construction of
these classes that forces the Q_INVOKABLE to return a pointer to the List
Model instance.
I im
Hi.
I’ve created a QVector of QImages and tried to insert an image in the vector:
QVector images;
images.insert(images.begin(), QImage());
I got a compiler warning saying
"qvector.h:649:21: warning: destination for this 'memmove' call is a pointer to
dynamic class 'QImage'; vtable pointer will