- 博客(10)
- 资源 (1)
- 收藏
- 关注
转载 Qt pro文件比较详细的解释
转自http://www.qtcn.org/bbs/apps.php?q=diary&a=detail&did=1471&uid=144375在QT中,有一个工具qmake可以生成一个makefile文件,它是由.pro文件生成而来的,.pro文件的写法如下:1. 注释从“#”开始,到这一行结束。2.模板变量告诉qmake为这个应用程序生成哪种mak
2014-06-23 13:05:38 1090
原创 c++简单的工厂类
模仿【http://www.chenlq.net/think-talk-write/really-very-simple-simple-factory-pattern-static-factory-method-the-simple-factory-c.html】这里面的内容,在qt上实现了一下简单的工厂类
2014-06-14 19:06:26 1010
原创 对指定文件夹进行递归遍历,将所有文件存到QStringList里。两种方法
看代码吧。#include "c4filestree.h"#include #include C4FilesTree::C4FilesTree(QObject *parent) : QObject(parent){ mAbsDir = "C:/";} QStringList C4FilesTree::fil
2014-05-08 13:02:29 2424 2
原创 qgraphicsView设置背景透明,控件不透明
mView.setAttribute(Qt::WA_TranslucentBackground,true);QPalette myPalette;QColor myColor(100,100,100);myColor.setAlphaF(0.2);myPalette.setBrush(mView.backgroundRole(),myColor);mView.setPale
2014-05-06 13:20:55 7783
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人