Hello everybody, i am encoutering a problem using the append/push_back funtcion of Qvector:

Doing this with the std works:
Qt Code:
  1. testclass test(&j); // just to try the declaration of one object
  2. vector<testclass> table(1,testclass(&j));
  3. table.push_back(&j);
To copy to clipboard, switch view to plain text mode 

Now doing this with Qt doesn't work:
Qt Code:
  1. QVector<testclass> table(1,testclass(&j));
  2. table.push_back(&j);
To copy to clipboard, switch view to plain text mode 
Code blocks said :
error: no matching function for call to `testclass::testclass()' (error on line 2)
But i don't understand were the programm does such a call ( with no argument to the constructor )

If anybody can help me.. this would be great....
thks