I added this line to my QTestLib test class:
QFETCH(MyType, value);
When trying to compile the test class, I get this error:
error: no member named 'qt_metatype_id' in 'QMetaTypeId<MyType>'
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When using
QTest::addColumnandQFETCHfor a type isn’t built into Qt, you have to add this line:It goes above the start of your test class. For example: