using qobject class as datatype of a qvector in another class
Solved
General and Desktop
-
so i am trying to create a qvector which stores objects of another class but i need that class to be a qobject class to use signals and slots but i came a cross the fact that qobject class doesnt have a copy constructor so i cant use it as a datatype for a qvector any idea on how to solve this problem
QVector<plugin>Plugins;
-
Hi,
Use
QVector<Plugin *>
and store your objects on the heap.