<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[飞翔的大象]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/hbhhww</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; hbhhww]]></copyright><item><title><![CDATA[Qt控件美化的工具]]></title><link>https://blog.csdn.net/hbhhww/article/details/145796844</link><guid>https://blog.csdn.net/hbhhww/article/details/145796844</guid><author>hbhhww</author><pubDate>Sat, 22 Feb 2025 16:21:48 +0800</pubDate><description><![CDATA[Editor for qt stylesheet (qss). Real-time preview, and user can define varibles in qss.该软件是使用PyQt5实现的。支持切换不同的系统 theme，如 xp 主题，vista 主题等(不同 theme 下 qss 效果会略有差异)1、“Qt Style Sheets Reference”查看Qt样式表的用法。2、“Qt Style Sheets Examples” 查看Qt样式表的实例。Qss代码高亮，代码折叠。]]></description><category></category></item><item><title><![CDATA[QMetaObject::invokeMethod和QObject的信号槽机制比较]]></title><link>https://blog.csdn.net/hbhhww/article/details/143744427</link><guid>https://blog.csdn.net/hbhhww/article/details/143744427</guid><author>hbhhww</author><pubDate>Wed, 13 Nov 2024 15:29:17 +0800</pubDate><description><![CDATA[信号槽机制是 Qt 框架中的一种通信机制，用于在对象之间传递消息。信号槽机制的核心思想是将对象的方法（槽）与事件（信号）关联起来，当信号被触发时，对应的槽函数会被自动调用。是一个静态函数，用于在运行时动态调用对象的方法。它利用 Qt 的元对象系统（Meta-Object System）来实现方法的调用。动态调用：两者都可以在运行时动态调用对象的方法。线程安全：两者都支持跨线程调用，可以通过实现线程间的同步。]]></description><category></category></item><item><title><![CDATA[QObject中QThreadData里面的postEventList和QObjectPrivate里面的postedEvents]]></title><link>https://blog.csdn.net/hbhhww/article/details/143743184</link><guid>https://blog.csdn.net/hbhhww/article/details/143743184</guid><author>hbhhww</author><pubDate>Wed, 13 Nov 2024 14:49:00 +0800</pubDate><description><![CDATA[public:// 其他成员变量和方法public:// 其他成员变量和方法：是一个全局的事件队列，用于暂存所有即将发送到该线程中对象的事件。它是线程安全的，允许多个线程向同一个线程发送事件。：是一个局部的事件队列，用于暂存所有即将发送到该QObject实例的事件。它确保每个对象都能独立处理自己的事件。理解这两个成员变量及其工作流程，有助于更好地掌握 Qt 的事件处理机制，特别是在多线程环境中的事件传递和处理。]]></description><category></category></item><item><title><![CDATA[qt中属性的各枚举值含义]]></title><link>https://blog.csdn.net/hbhhww/article/details/143686859</link><guid>https://blog.csdn.net/hbhhww/article/details/143686859</guid><author>hbhhww</author><pubDate>Mon, 11 Nov 2024 15:25:13 +0800</pubDate><description><![CDATA[提供了一系列标志位，用于描述属性的不同特性。通过这些标志位，开发者可以更精确地控制属性的行为，从而更好地满足应用的需求。这些标志位在设计时、运行时和脚本环境中都有重要的作用。]]></description><category></category></item><item><title><![CDATA[标准C++中的cast]]></title><link>https://blog.csdn.net/hbhhww/article/details/143671552</link><guid>https://blog.csdn.net/hbhhww/article/details/143671552</guid><author>hbhhww</author><pubDate>Mon, 11 Nov 2024 08:34:58 +0800</pubDate><description><![CDATA[底层类型转换，不考虑类型关系，可能导致未定义行为。const_cast：用于添加或移除const或volatile属性。：通用类型转换，适用于基本类型、继承关系中的转换等。：用于多态类型之间的安全转换，特别适用于涉及继承层次结构的情况。选择合适的类型转换操作符可以提高代码的安全性和可维护性。]]></description><category></category></item><item><title><![CDATA[好文]]></title><link>https://blog.csdn.net/hbhhww/article/details/97663745</link><guid>https://blog.csdn.net/hbhhww/article/details/97663745</guid><author>hbhhww</author><pubDate>Mon, 29 Jul 2019 18:17:50 +0800</pubDate><description><![CDATA[https://www.jianshu.com/p/c2ec5f06cf1a
]]></description><category></category></item><item><title><![CDATA[Qt 中的智能指针之QSharedPointer]]></title><link>https://blog.csdn.net/hbhhww/article/details/96486173</link><guid>https://blog.csdn.net/hbhhww/article/details/96486173</guid><author>hbhhww</author><pubDate>Fri, 19 Jul 2019 17:37:50 +0800</pubDate><description><![CDATA[Qt 中的智能指针
上一篇博客中介绍了 C++11 标准中的提供的智能指针。在 Qt 中也提供了类似的替代功能，并且比 C++11 标准中提供的功能还要强大，所以如果我们使用 Qt 作为基础库，那么就没有必要使用C++11 的智能指针。

Qt 的智能指针包括：

QSharedPointer
QScopedPointer
QScopedArrayPointer
QWeakPointer
QPoi...]]></description><category></category></item><item><title><![CDATA[qt常见问题]]></title><link>https://blog.csdn.net/hbhhww/article/details/96482186</link><guid>https://blog.csdn.net/hbhhww/article/details/96482186</guid><author>hbhhww</author><pubDate>Fri, 19 Jul 2019 15:42:32 +0800</pubDate><description><![CDATA[1所有能够接受和发送消息的class必须存在有消息循环的线程环境中。

2对象的消息处理默认环境是是存在于创建这个对象的线程环境中的。

对于第二点如何理解

比如

subthread::subthread()

{

connect(this,sigA,this,slotA);

}

subthread::run()

{

printf tid

exec();

}

void slot...]]></description><category></category></item><item><title><![CDATA[gcc常见编译参数介绍]]></title><link>https://blog.csdn.net/hbhhww/article/details/45720795</link><guid>https://blog.csdn.net/hbhhww/article/details/45720795</guid><author>hbhhww</author><pubDate>Thu, 14 May 2015 14:37:41 +0800</pubDate><description><![CDATA[﻿﻿
1）       常见编译参数介绍
gcc可以说是个伟大的编译器集合。支持c, c++, object-c, java, fortran, pascal, ada等一大堆语言，同时支持几乎所有32位以上的cpu和部分16位、8位cpu。因此几乎所有开源操作系统、商业unix操作系统、嵌入式开发都使用gcc做编译器。风河也使用gcc来编译vxworks的代码。下面介绍些最常用的编译参数（仅]]></description><category></category></item><item><title><![CDATA[Linux中socket 错误编码表 errno]]></title><link>https://blog.csdn.net/hbhhww/article/details/20998769</link><guid>https://blog.csdn.net/hbhhww/article/details/20998769</guid><author>hbhhww</author><pubDate>Tue, 11 Mar 2014 10:42:51 +0800</pubDate><description><![CDATA[最近在网络编程使用的过程中，发现errno会经常使用。因此决定在此做个留用，以备以后使用。。。

 虽然errno是非线程安全的，但是可以通过几种机制保证其安全。。

 最近在使用的过程中获得了errno，程序无法执行，也不知道如何解决问题。因此，理解每一个返回的errno整数值的含义是很重要的。。

这个我们可以通过strerror函数来实现。。

strerror(返回整数er]]></description><category></category></item><item><title><![CDATA[cocos2d-x 适应不同分辨率 .]]></title><link>https://blog.csdn.net/hbhhww/article/details/13296037</link><guid>https://blog.csdn.net/hbhhww/article/details/13296037</guid><author>hbhhww</author><pubDate>Mon, 28 Oct 2013 16:31:56 +0800</pubDate><description><![CDATA[相同平台不同分辨率
CCFileUtils::setSearchResolutionsOrder()支持文件分布策略，你可以像如下一样查询设置路径
std::vector resDirOrders;
 
resDirOrders.push_back("ipadhd");
 
resDirOrders.push_back("ipad"); 
 
CCFileUtils::shared]]></description><category></category></item><item><title><![CDATA[cocos2dx动画Animation介绍]]></title><link>https://blog.csdn.net/hbhhww/article/details/13289395</link><guid>https://blog.csdn.net/hbhhww/article/details/13289395</guid><author>hbhhww</author><pubDate>Mon, 28 Oct 2013 10:40:49 +0800</pubDate><description><![CDATA[一、帧动画
你可以通过一系列图片文件，像如下这样，创建一个动画：
[cpp]  
CCAnimation *animation = CCAnimation::create();  
//从本地文件系统中加载图片文件到CCSpriteFrame中区，然后添加到CCAnimation中  
for (int i = 1; i 
{  
    char szImageFileName[1]]></description><category></category></item><item><title><![CDATA[cocos2dx动画Animation介绍]]></title><link>https://blog.csdn.net/hbhhww/article/details/13289319</link><guid>https://blog.csdn.net/hbhhww/article/details/13289319</guid><author>hbhhww</author><pubDate>Mon, 28 Oct 2013 10:38:08 +0800</pubDate><description><![CDATA[一、帧动画
你可以通过一系列图片文件，像如下这样，创建一个动画：
[cpp]  
CCAnimation *animation = CCAnimation::create();  
//从本地文件系统中加载图片文件到CCSpriteFrame中区，然后添加到CCAnimation中  
for (int i = 1; i 
{  
    char szImageFileName[1]]></description><category></category></item><item><title><![CDATA[cocos2d-x场景切换时内存过高导致crash 解决方法]]></title><link>https://blog.csdn.net/hbhhww/article/details/12783289</link><guid>https://blog.csdn.net/hbhhww/article/details/12783289</guid><author>hbhhww</author><pubDate>Wed, 16 Oct 2013 17:05:15 +0800</pubDate><description><![CDATA[最近在做一个cocos2d-x的项目时，遇到一个问题，就是在pc上运行都是ok的，可是在ipad和andriod上面，在场景切换时时常会挂掉，用苹果自带的Instruments工具检测时，发现在场景正常运行时，内存大概保持在三四十兆，但是在场景切换时，一瞬间会达到七八十兆，遇到一些素材比较多或者层比较多的场景，则会达到一百多兆。大家知道在ipad1上面，内存最大是128M，那么这个程序如果在ipa]]></description><category></category></item><item><title><![CDATA[Cocos2d-x 程序是如何开始运行与结束的]]></title><link>https://blog.csdn.net/hbhhww/article/details/12159045</link><guid>https://blog.csdn.net/hbhhww/article/details/12159045</guid><author>hbhhww</author><pubDate>Sun, 29 Sep 2013 12:05:58 +0800</pubDate><description><![CDATA[问题的由来
怎么样使用 Cocos2d-x 快速开发游戏，方法很简单，你可以看看其自带的例程，或者从网上搜索教程，运行起第一个 Scene HelloWorldScene，然后在 HelloWorldScene 里面写相关逻辑代码，添加我们的层、精灵等 ~ 我们并不一定需要知道 Cocos2d-x 是如何运行或者在各种平台之上运行，也不用知道 Cocos2d-x 的游戏是如何运行起来的，它又是如]]></description><category></category></item><item><title><![CDATA[Cocos2d-x 内存管理浅说]]></title><link>https://blog.csdn.net/hbhhww/article/details/12099545</link><guid>https://blog.csdn.net/hbhhww/article/details/12099545</guid><author>hbhhww</author><pubDate>Fri, 27 Sep 2013 16:20:15 +0800</pubDate><description><![CDATA[使用过 Cocos2d-x 都知道，其中有一套自己实现的内存管理机制，不同于一般 C++ 的编写常规，而在使用前，了解其原理是有必要的，网上已经有很多对内部实现详细解说的文章。而对于使用者而言，并不需要对其内部有很深的了解，注重其“机制”，而非内部实现，在这里只是简单的聊一聊它的管理方式以及使用，固为浅说。
无用对象 与 管理对象
Cocos2d-x 将会在下一帧自动清理无用的对象，什么是无用]]></description><category></category></item><item><title><![CDATA[深入理解 Cocos2d-x 内存管理]]></title><link>https://blog.csdn.net/hbhhww/article/details/12098617</link><guid>https://blog.csdn.net/hbhhww/article/details/12098617</guid><author>hbhhww</author><pubDate>Fri, 27 Sep 2013 16:07:46 +0800</pubDate><description><![CDATA[如果 
Cocos2d-x 内存管理浅说 做为初步认识，而 
Cocos2d-x 内存管理的一种实现做为进阶使用，那么本文将详细的分析一下 Cocos2d-x 的内存管理的设计实现和原理。知其然，知其所以然 ~或者说：嗯，它这么做，一定是有原因的，体会设计者的用意，感同身受，如果是你，将会如何设计！~~
我觉得 最好的学习方式是以自己的语言组织，说与别人听 ～ 这样对自己：更容易发现平时容易]]></description><category></category></item><item><title><![CDATA[cocos2d-x 编译 Anroid版本遇到的问题以及解决办法]]></title><link>https://blog.csdn.net/hbhhww/article/details/11675937</link><guid>https://blog.csdn.net/hbhhww/article/details/11675937</guid><author>hbhhww</author><pubDate>Sat, 14 Sep 2013 11:19:38 +0800</pubDate><description><![CDATA[这几天都在苦逼的编译程序Android版本，到昨天晚上终于能编译通过且正常运行，现在把这几天遇到的问题和大家分享一下：

一 无法替换cocos2d-x本身自带的libxml2

    为什么需要自己编译libxml2：

    由于我以前解析xml使用的是Tree的方式，在Win32以及GMO上能够正常运行，但是在ndk下编译的时候遇到问题了，原来cocos2d-x使用的libx]]></description><category></category></item><item><title><![CDATA[Cocos2d-X内存管理研究]]></title><link>https://blog.csdn.net/hbhhww/article/details/11655699</link><guid>https://blog.csdn.net/hbhhww/article/details/11655699</guid><author>hbhhww</author><pubDate>Fri, 13 Sep 2013 17:38:37 +0800</pubDate><description><![CDATA[半夜没事干,研究内核,作为我cocos2d-x的第一篇教程.cocos2dx是一个树形结构的引擎,具体结构我暂时不分析,这里只讲内存管理.网上的分析都是说个纯理论,我深入代码内核,给大家详细讲解.
最开始我们寻找一下这棵树的最大的根节点CCZone.
class CC_DLL CCZone
{
public:
    CCZone(CCObject *pObject = NULL);
]]></description><category></category></item><item><title><![CDATA[cococs2d场景的分析]]></title><link>https://blog.csdn.net/hbhhww/article/details/11655121</link><guid>https://blog.csdn.net/hbhhww/article/details/11655121</guid><author>hbhhww</author><pubDate>Fri, 13 Sep 2013 17:30:12 +0800</pubDate><description><![CDATA[关于场景:

使用CCDirector replaceScene 替换场景，每个节点会调用CCNode自带的三个方法：

OnEnter 

OnEnterTransitionDidFinish 

onExit




这三个方法在他们的super避免触摸输入问题和内存泄露:




[cpp] 
view plaincopyprint?


void]]></description><category></category></item></channel></rss>