added logic to parse QVariantLists