摘要: 使用Qt方便的实现单例模式 单例类的实现,其中qCallOnce函数是确保该函数只执行一次: #ifndef SINGLETON #define SINGLETON #include <QtGlobal> #include <QScopedPointer> #include "call_once.h 阅读全文
posted @ 2022-07-08 15:52 AlexSun_2021 阅读(506) 评论(0) 推荐(0) 编辑