当前位置: 代码迷 >> 综合 >> QT 获取系统当前时间
  详细解决方案

QT 获取系统当前时间

热度:66   发布时间:2024-01-16 18:27:19.0

qt 获取当前时间,并以特殊格式输出

    QDateTime timeCurrent = QDateTime::currentDateTime();QString time = timeCurrent.toString("yyyy-MM-dd hh-mm-ss");


  相关解决方案