12 2023 档案

摘要:#include <iostream> class Beverage { //饮料 超类 public : //std::string description = "未知饮料"; 思考,为何这样使用成员变量不行????????????????????????????????????????? vir 阅读全文
posted @ 2023-12-25 23:54 一梦、 阅读(10) 评论(0) 推荐(0) 编辑
摘要:/** * Observer Design Pattern * * Intent: Lets you define a subscription mechanism to notify multiple objects * about any events that happen to the ob 阅读全文
posted @ 2023-12-24 19:56 一梦、 阅读(8) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <thread> #include <mutex> class Singleton { private: static Singleton* pinstance_; static std::mutex mutex_; protected: S 阅读全文
posted @ 2023-12-24 19:37 一梦、 阅读(5) 评论(0) 推荐(0) 编辑
摘要:/** * The Strategy interface declares operations common to all supported versions * of some algorithm. * * The Context uses this interface to call the 阅读全文
posted @ 2023-12-23 16:42 一梦、 阅读(12) 评论(0) 推荐(0) 编辑
摘要:问题描述:将QWebEngineView添加到QStackedWidget或QTabWidget中导致切换按钮失效,如果只有两个来回切的话,是没有问题的,当出现多个页面的时候,就会切换失灵。 解决思路:将QWebEngineView浮到上面,只要实现大小、位置、显示隐藏与主页面同步即可。 QWebE 阅读全文
posted @ 2023-12-12 19:06 一梦、 阅读(243) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示