real QML Value Type
带小数点的数字。更多
详细说明
real
类型指带小数点的数字,如 1.2 或 -29.8。
举例说明:
Item { width: 100.45; height: 150.82 }
注意: 在 QML 中,所有的实数都以双精度、IEEE 浮点格式存储。
这种值类型由 QML 语言提供。
另请参阅 QML 值类型。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.