ubuntu 14.04从Qt官网下载的最新版qt,安装过程很顺利,但却发现没办法输入中文(我用的是 fcitx), 即使下载了fcitx-frontend-qt5和fcitx-frontend-qt4也还是没用。
想必是qt版本的原因吧。
后来,试着将从源中安装的fcitx-frontend-qt5复制到Qt安装目录下,竟然可以了。
方法如下(fcitx输入法):
1.安装fci...
分类:
其他好文 时间:
2014-08-13 19:05:37
阅读次数:
186
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is the root-to-leaf path 1->2->3 which...
分类:
其他好文 时间:
2014-08-13 18:17:26
阅读次数:
208
#-*-coding:utf-8-*-#python:2.x__author__='Administrator'fromPyQt4.Qtimport*fromPyQt4.QtGuiimport*fromPyQt4.QtCoreimport*importsys,os"""在列表、树或者表格中,通过鼠标...
分类:
其他好文 时间:
2014-08-13 18:04:56
阅读次数:
242
c++/*The following example shows how the OnCustomDrawItem eventhandler draws items and lines of the tree view after the OnCustomDraw event handler has...
分类:
其他好文 时间:
2014-08-13 18:00:26
阅读次数:
306
#-*-coding:utf-8-*-#python:2.x__author__='Administrator'fromPyQt4.Qtimport*fromPyQt4.QtGuiimport*fromPyQt4.QtCoreimport*importsys,os#视图和委托"""视图。在model...
分类:
其他好文 时间:
2014-08-13 17:38:56
阅读次数:
209
#-*-coding:utf-8-*-#python:2.x__author__='Administrator'fromPyQt4.Qtimport*fromPyQt4.QtGuiimport*fromPyQt4.QtCoreimport*importsys,os#Qt模型类"""在模型/视图中,模...
分类:
其他好文 时间:
2014-08-13 14:41:06
阅读次数:
204
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree andsum =...
分类:
其他好文 时间:
2014-08-13 14:39:26
阅读次数:
153
1.QT多线程涉及到主线程和子线程之间交互大量数据的时候,使用QThread并不方便,因为run()函数本身不能接受任何参数,因此只能通过信号和槽的交互来获取数据,如果只是单方面简单交互数据还过得去,如果涉及多次主、子线程之间的交互的时候,这种方式是很不方便的,这里采取另外一种方式,建一个继承自QO...
分类:
编程语言 时间:
2014-08-13 12:43:36
阅读次数:
251
很久没有记笔记了,今天记一下,最近都在瞎忙活,都不知道自己干了些啥。先来一张目前的效果图:我的Controller是在官方的mvc sample的里面的PlayerDualController上更改的,所以很多地方还没来得及清理掉。源码如下: 1 local PlayerController = c...
分类:
其他好文 时间:
2014-08-13 12:29:26
阅读次数:
235
Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.For example,...
分类:
其他好文 时间:
2014-08-13 12:23:16
阅读次数:
237