Details
Description
After activating new snake_case feature some internal code still trying to access camelCase attributes (I suppose) which doesn't exist anymore. When disabling the feature (and, of course, renaming methods back to camelCase), the problem has gone. Snippet to reproduce:
import sys from PySide6.QtCore import QStringListModel from PySide6.QtGui import QGuiApplication from PySide6.QtQml import QQmlApplicationEngine # noinspection PyUnresolvedReferences from __feature__ import snake_case, true_property def create_app(): app = QGuiApplication(sys.argv) engine = QQmlApplicationEngine(parent=app) some_list_model = QStringListModel(parent=engine) engine.root_context().set_context_property('someListModel', some_list_model) return app def main(): app = create_app() return app.exec_() if __name__ == '__main__': sys.exit(main())
Traceback is (last line):
engine.root_context().set_context_property('someListModel', some_list_model) AttributeError: 'PySide6.QtCore.QStringListModel' object has no attribute 'connectNotify'
Attachments
For Gerrit Dashboard: PYSIDE-1478 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
332188,2 | PySide: write a renamer script for debugging, improved | 6.0 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
332189,2 | PySide: write a renamer script for debugging, improved | 5.15 | pyside/pyside-setup | Status: ABANDONED | +2 | 0 |
332230,2 | PySide: write a renamer script for debugging, improved | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
332231,3 | feature: Supply switching for newly created objects | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
332381,3 | feature: Supply switching for newly created objects | 5.15 | pyside/pyside-setup | Status: ABANDONED | 0 | 0 |
332382,2 | feature: Supply switching for newly created objects | 6.0 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
332976,2 | feature: Supply switching for newly created objects | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |