force cast to int because PySide