Hi,
I try to use QPair to store connected data in a QList:
QList<QPair<QString, int> > status;
...
status.
append(QPair("test",
0));
QList<QPair<QString, int> > status;
...
status.append(QPair("test", 0));
To copy to clipboard, switch view to plain text mode
But I get an error:
cannot refer to class template 'QPair' without a template argument list
What does this mean?
If I click on "template is declared here" in the error log it goes to QGRAPHICSITEMANIMATION_H and points to this line:
template <class T1, class T2> struct QPair;
I copied this from an example in the documentation so I am really confused that it is not working.
Bookmarks