- 博客(19)
- 收藏
- 关注
原创 Encountering an issue with Qtitan right now.(现在使用Qtitan碰到这样的问题)
The NavigationSidePane class has a setWidget method, but the NavigationPane class does not have a method for displaying widgets.(使用NavigationSidePane 类有一个setWidget 可是使用NavigationPane类没有可以显示的方法)2、How should the NavigationPane class be displayed?
2024-03-12 22:08:09
337
原创 C++ 智能指针之 shared_ptr
方式一:在new 的时候记得delete 或者在malloc的时候记得 free 、记得最后要置空该指针变量nullptr;3、调用该Ball类创建 该类的智能指针p 、创建三个p2 、p3 在reset的时候会自动调用。方拾二 : 使用智能指针 shared_ptr 自动释放堆区内存。1、创建一个Ball类、 创建构造、析构、以及Bounce方法。2、运行该类、并且通过智能指针shared_ptr 创建指针p;问题:如何避免内存泄漏?Ball类的析构函数。
2023-03-31 18:06:09
61
原创 Qt 服务器 获取发送客户端的QTcpSocket对象 和 该socket的ip和端口号
Qt 服务器 获取发送客户端的QTcpSocket对象
2023-02-14 15:05:20
2846
Qt 线程运行TCP服务器
2024-03-20
Qt 单例模式 创建一个连接对象、多次使用sql链接
2023-01-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人