[Qt5] Fixed building with Qt5.
[Qt5] Fixed failing FormCompleter tests.