HTML 小组件: document.write() 在 QGIS 4.2.1 中仅适用于 expression.evaluate()。
作者: hrs-noda创建于 2026年9月1日更新于 2026年10月1日
标签RegressionBugQGIS 4
Steps to reproduce the issue
Create an HTML Widget in an attribute form and test the following cases separately. Test 1 — Works Result: "タイトル" is displayed. Test 2 — Does not work Result: Nothing is displayed. The only difference from Test 1 is the addition of "var x=123;". Test 3 — Does not work Result: Neither "タイトル" nor "タイトル2" is displayed. Test 4 — Does not work Result: Nothing is displayed. These tests show that the problem is not limited to multiple expression.evaluate() calls. Even ordinary JavaScript document.write() does not work.
内容来源: qgis/QGIS