No more posF in Qt 5; use the new localPos