- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 子窗口 相对位置 显示在父窗口的任意位置
实现效果类似: 微信点击图片显示一个信息小窗口响应 按键信号{ int nActual_x = 10; // 偏移量为相对父窗口原点 int nActual_y = 10; this->childWidget= new QWidget; this->childWidget->move(x()+nActual_x, y()+nActual...
2019-06-23 17:52:32
1938
原创 _WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
VS2010项目生成解决方案提示如下错误:StdAfx.cpp_WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)解决方法:在stdafx.h中添加宏定义,如下:#define_WIN32_WINNT 0x0502注意:添加到所有 #include 头文件的前面去,否则仍...
2019-06-13 17:41:53
2198
原创 error: two or more data types int declaration specifiers
导致错误的原因是:头文件 extern int int function(void *, void *);重复定义返回类型导致的!
2019-06-13 14:47:51
333
原创 QT5.5.1 编译出现 undefined reference to `_imp___ZN12QApplicationC1ERiPPci' 问题
QT编译出现如下问题:In function `Z5qMainiPPc':undefined reference to `_imp___ZN12QApplicationC1ERiPPci'undefined reference to `_imp___ZN12QApplication4execEv'undefined reference to `_imp___ZN12QApplica...
2019-06-12 21:22:10
4371
1
原创 C/C++ 时间戳和标准日期相互转换
写法不限,仅供参考!/*** 时间戳转成普通日期格式* 计算方式如下:* 第一种:1970/01/01 00:00:00* 第二种:1970/01/01 08:00:00*/int FuncTimeStamp2RegularDate(const unsigned long long ullData, const bool bAdd8Hours, int *pnYear,...
2019-04-25 23:41:29
2116
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人