一、基本对话框 1,核心库: 界面程序 QApplication 非程序界面QCoreAppliction 2,消息循环必须执行QApplication.exec(); 3,消息绑定机制: 信号-槽 信号可以对应信号,也可以对应槽。 一个信号可以对应多个信号和多个槽。 4,QT基本对话框: QErr Read More
posted @ 2016-10-27 23:45 findumars Views(1673) Comments(0) Diggs(0)
使用QScrollArea可以帮助我们实现让一个widget的内容带有滚动条,用户可以通过拖动滚动条来查看更多内容, 代码示例如下: 1.带有滚动条的widget列表 2.带有滚动条的图片显示 http://blog.chinaunix.net/uid-25749806-id-337219.html Read More
posted @ 2016-10-27 23:42 findumars Views(1620) Comments(0) Diggs(0)
一、下载Qt源码包到本机,然后解压缩#tar zxvf qt-x11-opensource-src-4.3.2.tar.gz -C /usr/local //将qt-x11-opensource-src-4.2.3.tar.gz源码包解压缩到/usr/local目录(推荐解压缩至 /usr/loca Read More
posted @ 2016-10-27 23:39 findumars Views(8909) Comments(2) Diggs(0)
之前,用标准C++写过读取文件夹。现在用QT重写代码,顺便看了下QT如何实现,还是相当简单的。主要用到QDir,详细文档可见这里 A program that lists all the files in the current directory (excluding symbolic links Read More
posted @ 2016-10-27 23:34 findumars Views(22507) Comments(0) Diggs(0)
http://download.csdn.net/user/VisualEleven Read More
posted @ 2016-10-27 23:19 findumars Views(849) Comments(0) Diggs(0)