With VS2008 the following code occurs an error:

Qt Code:
  1. QVariantList list;
  2. list.append(QVariant("1"));
  3. QVariant var(list);
  4. list.clear();
  5. var.clear(); // <-- Error
To copy to clipboard, switch view to plain text mode 

The same code runs successful with VS2005. I tried the Qt-Versions 4.3.4, 4.5.2, 4.6.1 and 4.6.2.

I think it is a VS2008 settings problem. But when I’m compare the VS2005 and VS2008 project settings, I don’t find a difference.

Hope you can help me.