Synopsis A cmake based Qt5 sample using QTreeView as a table. Requires Qt 5.x and CMake 3.x $ mkdir build $ cd build $ cmake ../. -G "Visual Studio 15 2017 Win64" -DCMAKE_PREFIX_PATH=C:\\Qt\\5.9.3\\msvc2017_64