2019年2月28日

Visual Studio 2015 + Windows 2012 R2, c++/cli Array::Sort() 抛出异常

摘要: 在Windows7上编译就是正常。 可见Windows2012 R2缺少了一些东西。 另外,有一个现象一样,但原因不一样的 https://stackoverflow.com/questions/4641715/c-cli-application-crashing-randomly-on-relea 阅读全文

posted @ 2019-02-28 15:47 liujx2019 阅读(225) 评论(0) 推荐(0) 编辑

2019年2月22日

qt tableview 选择模式

摘要: QAbstractItemView::SingleSelectionQAbstractItemView::ContiguousSelectionQAbstractItemView::ExtendedSelectionQAbstractItemView::MultiSelectionQAbstract 阅读全文

posted @ 2019-02-22 16:15 liujx2019 阅读(2695) 评论(1) 推荐(0) 编辑

2019年1月28日

Openstack Python 源代码的路径

摘要: /usr/lib/python2.7/dist-packages/swift/ 阅读全文

posted @ 2019-01-28 17:13 liujx2019 阅读(548) 评论(0) 推荐(0) 编辑

Python [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed 解决方法

摘要: http://bookshadow.com/weblog/2015/04/22/sae-python-weibo-sdk-certificate-verify-failed/ 一个搭建在SAE上的Django应用,使用新浪微博提供的Python SDK已经稳定运行一年有余,但最近开始持续出现微博认证 阅读全文

posted @ 2019-01-28 16:50 liujx2019 阅读(1872) 评论(0) 推荐(0) 编辑

PEP8 Python 编码规范整理

摘要: https://www.douban.com/note/134971609/ 决定开始Python之路了,利用业余时间,争取更深入学习Python。编程语言不是艺术,而是工作或者说是工具,所以整理并遵循一套编码规范是十分必要的。所以今天下午我根据PEP 8整理了一份,以后都照此编码了,还会持续更新。 阅读全文

posted @ 2019-01-28 16:44 liujx2019 阅读(538) 评论(0) 推荐(0) 编辑

2019年1月25日

VC++ QT 数组的初始化

摘要: 数组有时会初始化为0. 但加了一个 QThread 的派生类对象之后,数组就不再被初始化为0了。 所以对于数组还是要手动初始化,否则可能产生无法预料的现象。 阅读全文

posted @ 2019-01-25 11:25 liujx2019 阅读(1862) 评论(0) 推荐(0) 编辑

2019年1月24日

c++ 静态变量

摘要: You will need to define the static variable, even if it is not initialized explicitly. That is what is missing in your code. You should have provided 阅读全文

posted @ 2019-01-24 16:53 liujx2019 阅读(299) 评论(0) 推荐(0) 编辑

Display a QMessageBox from a QThread

摘要: Emit a signal. Since you cannot do UI stuff in a Qthread, instead send your message as an argument of your signal. signal decalaration in your qthread 阅读全文

posted @ 2019-01-24 16:49 liujx2019 阅读(263) 评论(0) 推荐(0) 编辑

在 QT 里使用 CreateThread, 执行的函数只能是静态的

摘要: 否则函数的地址未知 阅读全文

posted @ 2019-01-24 15:38 liujx2019 阅读(927) 评论(0) 推荐(0) 编辑

QT 的 parent 该如何理解

摘要: 对话框是GUI程序和用户进行简短交互的顶层窗口,所谓顶层窗口即始终在主窗口之上显示。QDialog是Qt所有类型的对话框窗口的基类,它继承于QWidget,是一种容器类型组件。 QWidget是所有窗口类的抽象,它也可以生成对话框,但是对话框是常见的窗口组件,若每次要使用对话框,都利用QWidget 阅读全文

posted @ 2019-01-24 14:02 liujx2019 阅读(2393) 评论(0) 推荐(0) 编辑

导航