[QT][QML] Unable to use QTLocation and QTPositioning in my QML view
Solution 1:
You are creating additional problems by using Qt 6.1 on Ubuntu 20.04 LTS. This version ships Qt 5.12. The future of all Qt 6 is unclear for both Debian and Ubuntu.
So open terminal and install needed development packages for Qt from official repository:
sudo apt-get install qtlocation5-dev qtpositioning5-dev
and then compile your possibly great application.