使用QScrollArea可以帮助我们实现让一个widget的内容带有滚动条,用户可以通过拖动滚动条来查看更多内容, 代码示例如下: 1.带有滚动条的widget列表 2.带有滚动条的图片显示 http://blog.chinaunix.net/uid-25749806-id-337219.html Read More
posted @ 2016-10-27 23:42
findumars
Views(1645)
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(8944)
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(22589)
Comments(0)
Diggs(0)
http://download.csdn.net/user/VisualEleven Read More
posted @ 2016-10-27 23:19
findumars
Views(850)
Comments(0)
Diggs(0)
Qt键盘事件属于Qt事件系统,所以事件系统中所有规则对按键事件都有效。下面关注点在按键特有的部分: 一个拥有焦点(focus)的QWidget才可以接受键盘事件。有输入焦点的窗口是活动窗口或活动窗口子窗口或子子窗口等。 焦点移动的方式有以下几种: 按下Tab或Shift+Tab 注意:文本编译器(一 Read More
posted @ 2016-10-27 23:18
findumars
Views(42265)
Comments(0)
Diggs(1)

浙公网安备 33010602011771号