SettingsGuide and Cura 4.9.1 generate a lot of log message
5axes opened this issue · 2 comments
The SettingsGuide plugin generate a lot of error message in the log file with the new Cura release.
Cura 4.9.1 Windows 10 .
Ie : 2021-05-15 15:37:16,344 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [411]: file:///C:/Users/5axes/AppData/Roaming/cura/4.9/plugins/SettingsGuide2/SettingsGuide2/resources/qml/SettingsGuide.qml:223:4: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... } 2021-05-15 15:37:16,346 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [411]: file:///C:/Logiciels_Cetim/Ultimaker/Ultimaker Cura 4.9.1/qml/UM/RecolorImage.qml:16:5: QML Image: Cannot open: file:///C:/Users/5axes/AppData/Roaming/cura/4.9/plugins/SettingsGuide2/SettingsGuide2/resources/icons/camera.svg 2021-05-15 15:37:16,374 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [411]: file:///C:/Users/5axes/AppData/Roaming/cura/4.9/plugins/SettingsGuide2/SettingsGuide2/resources/qml/SettingsSidebar.qml:120:4: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... } 2021-05-15 15:37:16,401 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [411]: file:///C:/Users/5axes/AppData/Roaming/cura/4.9/plugins/SettingsGuide2/SettingsGuide2/resources/qml/SettingsGuide.qml:19:2: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... } .... etc
Yeah, I've seen it. It's the result of the update to Qt 5.15.
The new syntax that is being suggested here (function onFoo() { ... }
) is not available yet in Qt 5.10. As a result, fixing this syntax would break the Settings Guide for older versions of Cura. Since I can only keep one version of the Settings Guide in the Marketplace at a time, I'm afraid that we'll have to keep it this way.
The log messages are annoying, but at least the guide will keep functioning for older Cura versions.
The only way in which I could fix this for both is to duplicate the implementation of the settings list; have one version for Qt 5.10 and another for 5.15. But in that case I see having a couple of deprecated syntax lines as the lesser of two evils, even if it muddles the log. Sorry!