When I use this statement:

QPointer<QStringList> sl = new QStringList();

I get this error:

cannot convert 'QStringList' to 'QObject' in initialization

But when I try replacing QStringList with QLabel it seems to work OK.