I encountered these two issues on Neon GNU/Linux with KDE Plasma 5.10.3 on Qt Creator 4.3.0 & Qt Framework 5.9. When I installed Creator from Neon repo (not Ubuntu repo), it shows no examples at all and also it failed to create new Qt Widget project saying "No Valid Kits Found". I solved these issues by simple workarounds below:
Subscribe to UbuntuBuzz Telegram Channel to get article updates directly.
To Solve "No Examples" Issue
This problem arises because merely installing Creator doesn't install the examples files themselves. So, install them by command line:
sudo apt-get install qtbase5-examples qtbase5-doc-html
To Solve "No Kits" Issue
This solved by installing qt5-default package:
sudo apt-get install qt5-default
and restarting Creator should give you both the Examples and ability to create new projects.
Result
If you performed both workarounds above, you should see Creator shows examples now:
and it can make new project (Qt Widget) now:
Extras
Here the details of installed Creator on my system. We know that all packages here come from Neon repo (not Ubuntu repo) with very-very latest versions:
qtbase5-examples:
master@master:~$ apt-cache policy qtbase5-examples
qtbase5-examples:
Version table:
*** 5.9.0-0neon+16.04+xenial+build18 500
500 http://archive.neon.kde.org/user xenial/main amd64 Packages
qtbase5-doc-html:
master@master:~$ apt-cache policy qtbase5-doc-html
qtbase5-doc-html:
Version table:
*** 5.9.0-0neon+16.04+xenial+build18 500
500 http://archive.neon.kde.org/user xenial/main amd64 Packages
500 http://archive.neon.kde.org/user xenial/main i386 Packages
500 http://archive.neon.kde.org/user xenial/main all Packages
qtcreator:
master@master:~$ apt-cache policy qtcreator
qtcreator:
Version table:
*** 4.3.0-0neon+16.04+xenial+build7 500
500 http://archive.neon.kde.org/user xenial/main amd64 Packages
qt5-default:
master@master:~$ apt-cache policy qt5-default
qt5-default:
Version table:
*** 5.9.0-0neon+16.04+xenial+build19 500
500 http://archive.neon.kde.org/user xenial/main amd64 Packages