Unknown qExec() in QtTest for Python testcases?
-
Hi, I want to use QtTest for C++ and Python. In C++ I use
#include <QtTest/QtTest> #include <Test/testcases.h> int main(int argc, char *argv[]) { TestCases testcases; return QTest::qExec(&testcases, argc, argv); }
and it works great. Unfortunately in Python it does not
from PySide6.QtTest import QTest import testcases testcases = testcases.TestCases() QTest.qExec(testcases)
and get the error
AttributeError: type object 'PySide6.QtTest.QTest' has no attribute 'qExec'
Although in the Qt Python docu stands
qExec() can be used to execute all test functions in the test object.
https://doc.qt.io/qtforpython/overviews/qtest-overview.html#miscellaneous-options
What I'm doing wrong here? Thks...
-
Hi, I want to use QtTest for C++ and Python. In C++ I use
#include <QtTest/QtTest> #include <Test/testcases.h> int main(int argc, char *argv[]) { TestCases testcases; return QTest::qExec(&testcases, argc, argv); }
and it works great. Unfortunately in Python it does not
from PySide6.QtTest import QTest import testcases testcases = testcases.TestCases() QTest.qExec(testcases)
and get the error
AttributeError: type object 'PySide6.QtTest.QTest' has no attribute 'qExec'
Although in the Qt Python docu stands
qExec() can be used to execute all test functions in the test object.
https://doc.qt.io/qtforpython/overviews/qtest-overview.html#miscellaneous-options
What I'm doing wrong here? Thks...