Unsolved Qt Quick Test when using QQmlFileSelector
-
Is there some way to use fileselectors for qml files while also using Qt Quick Test?
I have a qml code base that uses QQmlFileSecltor and I would like to apply a specific file selectors when running different tests.
The problem I have is that the QQucikView is create by Qt with
QUICK_TEST_MAIN()
so I do not have access to the qml engine to apply a QQmlFileSelector. -
@buggex You could run your tests with custom selectors in the
QT_FILE_SELECTORS
environment variable : http://doc.qt.io/qt-5/qfileselector.html#adding-selectors