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'