QML获取当前时间

1、方法1

Qt.formatDateTime(new Date(), "hh-mm-ss")

2、方法2

var a = Date().toString()
原文地址:https://www.cnblogs.com/judes/p/15688591.html