码迷,mamicode.com
首页 >  
搜索关键字:qt quick example    ( 27971个结果
LeetCode: Combinations [077]
【题目】 Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For example, S = "ADOBECODEBANC" T = "ABC" Minimum window is "BANC". Note: If there is no such window in S that covers ...
分类:其他好文   时间:2014-06-05 11:14:26    阅读次数:255
使用QT画颗树 二
在QT下生成一棵二叉树...
分类:其他好文   时间:2014-06-05 10:07:03    阅读次数:205
LeetCode: Minimum Window Substring [076]
【题目】 Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For example, S = "ADOBECODEBANC" T = "ABC" Minimum window is "BANC". Note: If there is no such window in S that covers ...
分类:Windows程序   时间:2014-06-05 10:03:07    阅读次数:473
安卓实训第八天----Activity的生命周期
一、Activity的使用:package com.example.activity; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import androi...
分类:移动开发   时间:2014-06-05 09:36:01    阅读次数:276
Implicit Intent--含蓄的intent
通过intent调用打电话,打开地图、打开浏览器,创建邮件,创建事件的操作 截图: 代码 package com.example.hellointent; import java.util.Calendar; import java.util.List; import org.apache.http.protocol.HTTP; import android.net.Uri; ...
分类:其他好文   时间:2014-06-05 08:01:16    阅读次数:281
activity生命周期的onPause和onStop
搞了这么长时间的android开发,却对一些基础的东西一直模棱两可。。。就比如这个onPause和onStop。如果从一个界面,跳到另一个界面,那么是调用哪个呢? 经过我的实验。搞清楚了。onPause是有活动状态变为非活动状态。onStop()是变为不可见。那么从一个页面跳到另一个页面就是依次调用onPause,onStop.看下程序: package com.example.fuhe;...
分类:其他好文   时间:2014-06-05 07:15:29    阅读次数:234
QT中使用Event Filter监听按钮事件,Release后按钮不见
问题RT,在程序中我使用了QT的监听事件,监听鼠标的位置,如果鼠标在按钮上就改变按钮的ICON,但是在Release版本中(Debug版本没问题),这些被监听的按钮都看不见了,于是开始了寻找答案的道路。 闲话少叙,直接上码: void MainHomeForm::init() { //为按钮注册事件 ui->SystemSetButton->installEventFilter...
分类:其他好文   时间:2014-06-05 04:29:25    阅读次数:537
QSS知识总结
QT样式表单 QT的样式表单允许我们在对程序不做任何代码上的更改的情况下轻松改变应用程序的外观。 其思想来源于网页设计中的CSS,即可以将功能设计和美学设计分开。   它的语法和概念和HTML CSS也是差不多的。   其原理可简单理解为:QT内部存在一个CSS语法解析器,我们将我们的样式控制以CSS语法定义到外部文件,CSS语法解析器解析后在调用相应的功能模块以完成样式变化。(其实这...
分类:其他好文   时间:2014-06-05 02:03:47    阅读次数:352
QT在英文系统下乱码问题
我的QT环境: 源代码的字符集:gb18030 QT的项目文件pro的字符集:CODECFORTR = GB18030 在英文系统上显示乱码 原因:英文系统上如果要显示中文,可以通过加载QTplugins下的插件来进行解码,所以要想在英文系统上正确显示中文就只能是通过unicode编码了,  解决方案: 1.我采用的是utf8编码,我没有修改源代码的字符集,而是将所以由tr()...
分类:其他好文   时间:2014-06-05 00:14:42    阅读次数:287
QDeclarativeItem学习笔记
最近在用QDeclarativeItem的继承来做Qt界面的控件,一开始发现怎么样也没法自动调用paint函数,后来查看了资料,发现如下字句: You can subclass QDeclarativeItem to provide your own custom visual item that inherits these features. Note that, because it ...
分类:其他好文   时间:2014-06-04 23:47:17    阅读次数:511
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!