Porting the code of the book Advanced Qt Programming Creating Great Software with C++ and Qt4 with Qt5