I found the solution in this post:
https://forum.qt.io/post/321757