Fork from https://qt.gitorious.org/qt-solutions/undeaths-qt-solutions