Hi, I would like to ask how to properly pass a QList to another function? I have researched and discovered that QLists must be passed via pointer.
For example:
I have a qlist of plugins
QList<PluginInterface *> *PluginList;
and declared and instantiated it in this manner PluginList = new QList<PluginInterface *>();
..the function that will receive this list has a function prototype of
void receive_qlist(QList<PluginInterface> *);
..is this method correct and efficient?
Bookmarks