Added QDecimal library to the project

Several code changes to QT version to fix issues, lot of issues still arround.