一、基本对话框 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(22508) 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)
Qt键盘事件属于Qt事件系统,所以事件系统中所有规则对按键事件都有效。下面关注点在按键特有的部分: 一个拥有焦点(focus)的QWidget才可以接受键盘事件。有输入焦点的窗口是活动窗口或活动窗口子窗口或子子窗口等。 焦点移动的方式有以下几种: 按下Tab或Shift+Tab 注意:文本编译器(一 Read More
posted @ 2016-10-27 23:18 findumars Views(42160) Comments(0) Diggs(1)
[cpp] view plain copy [cpp] view plain copy // 模拟登陆115网盘 #include <afxinet.h> // 包含相关的头文件 /* 用抓包工具抓包可得到需要提交的数据,然后模拟提交即可。 *(有的时候需要得到cookie信息,你可以使用CInte Read More
posted @ 2016-10-27 23:11 findumars Views(304) Comments(0) Diggs(0)
http://blog.csdn.net/visualeleven/article/details/6041893 http://blog.csdn.net/visualeleven/article/details/6088590 http://blog.csdn.net/visualeleven/ Read More
posted @ 2016-10-27 23:09 findumars Views(202) Comments(0) Diggs(0)
[cpp] view plain copy BOOL SaveHwndToBmpFile(HWND hWnd, LPCTSTR lpszPath) { HWND hDesktop = ::GetDesktopWindow(); ASSERT(hDesktop); if(NULL == hWnd) { Read More
posted @ 2016-10-27 22:08 findumars Views(1159) Comments(1) Diggs(0)
net user administrator /active:yes runas /user:ComputerName\Administrator /savecred “C:\Path\To\Program.exe“runas /user:Laptop\Administrator /savecred Read More
posted @ 2016-10-27 22:06 findumars Views(594) Comments(0) Diggs(0)
[cpp] view plain copy // CXProgressCtrl 头文件 #pragma once // CXProgressCtrl class CXProgressCtrl : public CProgressCtrl { DECLARE_DYNAMIC(CXProgressCtr Read More
posted @ 2016-10-27 21:30 findumars Views(1364) Comments(0) Diggs(0)
版权声明:本文为博主原创文章,未经博主允许不得转载。 版权声明:本文为博主原创文章,未经博主允许不得转载。 [cpp] view plain copy // MFC 版本 CEdit* pEdit = GetDlgItem(IDC_EDIT1); ASSERT(pEdit && pEdit->Get Read More
posted @ 2016-10-27 21:15 findumars Views(1962) Comments(0) Diggs(0)
[cpp] view plain copy CStatusBar m_StatusBar; // 成员变量 // 全局变量 static UINT auIDStatusBar[] = { ID_SEPARATOR }; //在对话框类的WM_CREATE消息的响应函数OnCreate中加入下面的代码 Read More
posted @ 2016-10-27 21:12 findumars Views(607) Comments(0) Diggs(0)
之前写过一个自绘的CListBox类,详细请参考http://blog.csdn.net/VisualEleven/archive/2010/10/12/5935430.aspx现在修改这之前的代码,使该CListBox能够支持多行显示的问题。 [cpp] view plain copy // 重写 Read More
posted @ 2016-10-27 21:09 findumars Views(504) Comments(0) Diggs(0)
QT visual stuido 集成插件不能打开ui文件的解决方法 visual studio里不能打开这个ui文件,出现warning等解决方法是:于是将<?xml version="1.0" encoding="UTF-8"?>从ui文件里去除这一句,果然,又可以从visual studio里 Read More
posted @ 2016-10-27 20:59 findumars Views(763) Comments(0) Diggs(0)
360关停公告出来后, 我几乎吧国内知名的云盘都装了一遍, 百度,联想,亿方云, 够快,天翼....就异地协作办公来说, 360的体验完爆他们, 不管是不是付费, 顺便说下, 上面的几款产品, 天翼最差, 毕竟对央企运营商做互联网服务, 不能期望太高. 不然前有飞信, 后有易信, 也微信啥事了 同理 Read More
posted @ 2016-10-27 20:52 findumars Views(1130) Comments(0) Diggs(0)
void QApplication::alert(QWidget * widget, int msec = 0)如果窗口不是活动窗口,则会向窗口显示一个警告。警报会显示msec 毫秒。如果毫秒为零,闪烁一段时间后会停止,任务栏图标会一直亮着。widget.h #ifndef WIDGET_H #de Read More
posted @ 2016-10-27 20:37 findumars Views(832) Comments(0) Diggs(0)
wchar_t * sourcepath=new wchar_t[MAX_PATH];int s1=str.toWCharArray(sourcepath); sourcepath[s1]=0; Read More
posted @ 2016-10-27 20:36 findumars Views(1076) Comments(0) Diggs(0)
https://msdn.microsoft.com/en-us/library/windows/desktop/bb736357(v=vs.85).aspx Read More
posted @ 2016-10-27 20:14 findumars Views(538) Comments(0) Diggs(0)
1.设置Windows最低版本要求 [Setup]: MinVersion 格式: a.bb,c.dd,这里 a.bb 是 Windows 版本,c.dd 是 Windows NT 版本。 默认值: 4.0,4.0 描述:这个指令让你指定你的软件运行必须的 Windows 或 Windows NT Read More
posted @ 2016-10-27 18:05 findumars Views(1825) Comments(0) Diggs(0)