Fix Python 3.10 issue
Summary
This merge request fixes the two newly fatal errors that came to light with Python 3.10 and the latest PyQt version. Before that using a float value as QRect parameter did not trigger any issue but with the latest version, the type system looks more picky than before and thus only integer can be used.