base operand of '->' has non-pointer type

1
2
QVector<Test*> test2;
    test2->test;


Why do i keep getting this error? TIA

Last edited on
Im guessing it's because, test2 is a vector, and you're trying to use the vector as a pointer. Test 2 contains pointers, and you can access those pointers like this test2[0], test2[1] etc.
thanks :) just figured it out
Topic archived. No new replies allowed.