第一部分,基本对话框告一段落。书本上第一章节还介绍了制作抽屉效果、制作表格、制作进度条等节,但在我看来,似乎与前面的对话框制作方式大同小异,不值得费时费力地一一学习,所以跳过了,这一跳,就到了书本的50多页,七分之一的比例,进度神速啊,这样想想感觉倍儿爽,但或许我会后悔。回顾整个第一章,有几个步骤属...
分类:
其他好文 时间:
2014-05-01 12:28:21
阅读次数:
316
Qt
Creator支持中文,启动速度比Eclipse、Netbeans更快,界面也更美观,跟输入法Fcitx协作良好(光标跟随)。你既可以把Qt
Creator当代码编辑器作为vim辅助,好处在于Qt Creator能够自动parse项目,形成友好快速的智能提示,而且你也同样可以使用Qt Crea...
分类:
编程语言 时间:
2014-05-01 12:03:35
阅读次数:
615
#include#include#includeusing namespace std;int
main(){ int n,i; char a[100000]; cin>>a; sort(a,a+strlen(a)); do{
cout<<a<<endl; }while(next_permut...
分类:
其他好文 时间:
2014-05-01 06:20:37
阅读次数:
368
1 保留小数点后两位#include cout const char * spilt="/";char
*p;p=strtok(str,spilt);while(p!=NULL){ //cout
#includesort(Rs.begin(),Rs.end());sort(Rs.begin(),Rs...
分类:
编程语言 时间:
2014-05-01 05:05:45
阅读次数:
409
在c++中,vector是一个十分有用的容器,下面对这个容器做一下总结。1
基本操作(1)头文件#include.(2)创建vector对象,vector
vec;(3)尾部插入数字:vec.push_back(a);(4)使用下标访问元素,cout::iteratorit;for(it=vec.b...
分类:
编程语言 时间:
2014-05-01 04:46:15
阅读次数:
373
#include
using namespace std;
template
class testClass{
public:
static int _data;
};
int testClass::_data = 1;
int testClass::_data = 2;
int main()
{
cout ::_data << endl;
cout ::_data << ...
分类:
其他好文 时间:
2014-04-29 13:21:20
阅读次数:
410
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
void func()
{
string url;
cout << "输...
分类:
Web程序 时间:
2014-04-29 13:21:20
阅读次数:
506
由于静态库是不需要导出的,所以在写QT的前置声明的时候需要说明
#if defined(QT_SHARED)
#ifdef COMMONLIB
#define COMMONLIB_EXPORT Q_DECL_EXPORT
#else
#define COMMONLIB_EXPORT Q_DECL_IMPORT
#endif
#else
#ifdef COMMONLIB
#defi...
分类:
其他好文 时间:
2014-04-28 10:47:42
阅读次数:
374
原因分析:moc_开头的文件编译过程中没有重新生成导致。
解决办法:删除编译产生的build文件夹,重新编译即可。
错误类型截图如下:
这个问题的解决,使得可以在任何时候都可以在工程中加入新的ui文件,而不必在开始就添加所有的ui文件,减少了开发难度。对于这个问题的解决方法,个人觉得这是最好的解决方法。为了解决这个问题,之前也查了很多资料,但没有找到合适的方法。而且删...
分类:
其他好文 时间:
2014-04-28 10:46:41
阅读次数:
293
前提:你的Linux下有已经搭建好的交叉编译链(如arm-linux-gcc 4.3.2),并且已经设置好环境变量。
export PATH=/usr/local/arm/4.3.2/bin:/$PATH
1.下载文件如:qt-everywhere-opensource-src-4.6.3.tar.gz解压
2.裁剪QT
./configure -prefix /usr/loc...
分类:
其他好文 时间:
2014-04-27 21:26:59
阅读次数:
363