[PyQt] How to test PyQt/QML applications?

Alexander Rössler alexander at roessler.systems
Thu Jun 21 10:23:19 BST 2018


Has anyone been successful with testing QML code and PyQt components
together?

When I try to run a QML file that contains a TestCase I get an module
"Qt.test.qtestroot" not installed error.

In general, I would prefer being able to test the QML application from
Python, any ideas how this could be done? Currently I use pytest +
pytest-qt for the non-GUI stuff.

-- 
Alexander Rössler
HMI Expert at Rössler Systems
Tel: +43 680 1348338
Web: https://roessler.systems
Blog: https://machinekoder.com
alexander at roessler.systems
Lebnergasse 1/7/7
1210 Wien - Austria
ATU72251528


More information about the PyQt mailing list