自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

转载 QtCassandra 程序2

/* * Text: *      context_management.cpp * * Description: *      Create contexts, check that they exist, drop contexts, check that *      they were removed. * * Documentation: *

2012-09-11 17:36:30 523

原创 QtCassandra 程序1

/** Text:*      read_write_data.cpp** Description:*      Create a context with a table, then try to read and write data to*      the Cassandra cluster.** Documentation:*      Run wit

2012-09-11 16:52:13 469

原创 QtCassandra 程序

/* * Text: *      cluster.cpp * * Description: *      Read the cluster information (name, version, schema). * * Documentation: *      Run with no options. *      Fails if the test ca

2012-09-11 16:23:06 475

转载 Cassandra 常用命令

1,启动客户端工具并连接到某一个具体的Cassandra实例,连接时需要提供实例的–host 和-port参数,如果提供的参数正确那么客户端工具将会帮你连接到在cassandra.yaml定义的群集服务器实例上,比如,你在localhost运行着单节点的群集,那么客户端采用如下命令连接到localhost:[default@unknown] connect localhost/9160;或

2012-09-11 15:58:46 2137 1

转载 Qt 插件

在创建插件以前,我们需要首先定义一个接口,用于程序和插件之间的交互:C/C++ codeclass MyInterface{public: virtual ~MyInterface() {} virtual QString getString() = 0;};// 将MyInterface和"me.xzis.MyInterface/1.0"这一唯一标识符绑定

2012-08-26 21:39:05 6445

转载 Qt 插件

动态链接库技术使软件工程师们兽血沸腾,它使得应用系统(程序)可以以二进制模块的形式灵活地组建起来。比起源码级别的模块化,二进制级别的模块划分使得各模块更加独立,各模块可以分别编译和链接,模块的升级不会引起其它模块和主程序的重新编译,这点对于大系统的构建来说更加实用。另一方面,对于商业目的明显的企业,各模块可以独立设置访问权限,开发成员只能访问自己负责的模块,其它模块是不能也不给看到的,这样减少了整

2012-08-26 21:19:12 932

原创 QString char std::string 相互转换

QString 转换为 std::stringQString qstr("test.str"); std::string stdstr = qstr.toLatin1().data();  QString qstr("test.str");std::string stdstr = qstr.toLatin1().data(); std::string 转换为 QStri

2012-07-31 11:24:45 740

转载 使用QT实现MDI风格的主窗体

转载至:http://blog.csdn.net/henreash/article/details/7618414QT提供了MDIArea控件可以很方便的实现标准的MDI窗体,但用起来并不方便.感觉像360浏览器一样通过页签来切换子窗体的方式比较好.点击菜单项或工具栏上的按钮创建新的页签,并生成一个子窗体.点击页签上的叉号关闭页签并释放子窗体对象.为了实现这种风格的MDI,可以借助QT的Tab

2012-07-22 17:39:02 1365

原创 Qt 导出pdf

void MainWindow::exportPdf(){QString fileName = QFileDialog::getSaveFileName(this,"Export PDF",QString(),"*.pdf");if(!fileNmae.isEmpty()){if(QFileInfo(fileName).suffix().isEmpty()){fileN

2012-07-22 15:08:59 884

原创 自定义 QMessageBox

int i=QMessageBox::warning(this,"QMessageBox","Thedocumentcontainsunsavedchangesn" "Do you want to save the changes before exiting?", tr("确定"),tr("不确定"),tr("取消")); 运行后,按相应的按钮,i的返回值分别为0,1,2;然

2012-07-22 15:00:28 647

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除