qintptr / int for different Qt versions
merged