摘要:
QDateTime time = QDateTime::currentDateTime(); // 获取当前时间 int year = time.date().year(); // 年 int month = time.date().month(); // 月 int day = time.date 阅读全文
摘要:
前言QVariant这个类很神奇,或者说方便。很多时候,需要几种不同的数据类型需要传递,如果用结构体,又不大方便,容器保存的也只是一种数据类型,而QVariant则可以统统搞定。 介绍帮助文档上说:The QVariant class acts like a union for the most c 阅读全文