原地址: http://blog.csdn.net/buaaxiao/archive/2010/08/15/5813230.aspx(注,本文只做排版修改) mutalbe的中文意思是“可变的,易变的”,跟constant(即C++中的const)是反义词。 在C++中,mutable也是为了突破c Read More
posted @ 2015-11-21 00:39 findumars Views(277) Comments(0) Diggs(0)
下面是vs2010导入别人文件时出现的问题的解决方案:VS2010在经历一些更新后,建立Win32ConsoleProject时会出“errorLNK1123”错误,解决方案为将项目|项目属性|配置属性|清单工具|输入和输出|嵌入清单“是”改为“否”即可,但是没新建一个项目都要这样设置一次。在建立V... Read More
posted @ 2015-11-21 00:31 findumars Views(556) Comments(0) Diggs(0)
原地址:http://www.qteverywhere.com/archives/437很多C/C++初学者常犯的一个错误就是,使用malloc、new分配了一块内存却忘记释放,导致内存泄漏。Qt的对象模型提供了一种Qt对象之间的父子关系,当很多个对象都按一定次序建立起来这种父子关系的时候,就组织成... Read More
posted @ 2015-11-21 00:20 findumars Views(2966) Comments(0) Diggs(0)
1.窗口整体透明,但是窗体上的控件不透明。 通过设置窗体的背景色来实现,将背景色设置为全透。 QPalette pal = palette(); pal.setColor(QPalette::Background, QColor(0x00,0xff,0x00,0x00)); setPalette(p Read More
posted @ 2015-11-20 23:21 findumars Views(17253) Comments(0) Diggs(0)
https://blog.csdn.net/qq_34389528/article/details/76284124 Read More
posted @ 2015-11-20 23:16 findumars Views(1796) Comments(0) Diggs(0)