Replaced a part of the menu to a much nicer QtQuick/QML solution.
Known issue, is that qml files aren't working from qrc resource file.
Solution:
The qmlView->setSource(QUrl::fromLocalFile("menu.qml")); line
should be in for relase but should be replaced with
qmlView->setSource(QUrl::fromLocalFile("../src/menu.qml")); for debugging
and development.