Revert "remove duplicate code "

This reverts commit 80f4f133a0fff71dcc8f52bf6503e1b733428f7b.
Revert "change to qt type"

This reverts commit b34dd86e925cc8df970eff18327821abfa2343fd.
Revert "fix value reading, only real32 was correct."

This reverts commit ec799d44bd2bd9c70073ad116a47040bcc10577d.