Hello,

I am trying to add a custom class object to my QVariantList
but I get an error: error: 'QVariant::QVariant(void*)' is private

e.g., here is the code I use:

Qt Code:
  1. items.append(&currentItem);
To copy to clipboard, switch view to plain text mode 
where items is of type QVariantList and currentItem is of Type CMyClass.

any help??