I'm getting ImportError: cannot import name 'QModelRoleDataSpan' from 'PySide6.QtCore' when running under PySide 6.7. According to the C++ documentation, QModelRoleDataSpan should be available since Qt 6.0. But it somehow isn't there? Since the documentation for 6.7 was pruned, I can't verify if it was missing from older PySide. Do I need to increase the minimum version required to 6.8?
31 July 2026
id 24766519I just checked and it should be available on 6.8.x
Thanks. That's what my test suite told me, too. So for now, I've bumped the minimum required version to 6.8.
For major dependencies, my tox configuration generates an environment for each major (minor) version I claim support with. The linear sweep across PySide6 revealed that 6.7 no longer works after i implemented multiData(), which takes a QModelRoleDataSpan as an argument.