近段时间,本人使用Qt5.3.0开发了Android应用,由于官方资料较少,在此记录开发过程遇到的问题及解决方法1.Android平台的视频播放,只能使用qml的MediaPlayer2.qml中控件的路径必须加file:// 例如: Image{ source: "file...
分类:
移动开发 时间:
2014-08-25 09:52:04
阅读次数:
483
动画与动作,在quick中都有对其封装,所以我们还是来看一下吧。
总的来说,对于帧动画,quick封装的方法我们可以经常使用,这是非常方便的,下面直接上代码来直观感受下,
比如,14张帧图片,采用cocos2d-x lua的方法来写是这样的,
local sp = display.newSprite("grossini_dance_01.png", display.cx, display.c...
分类:
其他好文 时间:
2014-08-24 23:56:23
阅读次数:
486
1.DbOpenHelperpackage com.example.dbtest.dbHelper;import android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.database...
分类:
移动开发 时间:
2014-08-24 23:52:03
阅读次数:
266
1.each(callback)以每一个匹配的元素作为上下文来执行一个函数。Example:迭代两个图像,并设置它们的 src 属性。注意:此处 this 指代的是 DOM 对象而非 jQuery 对象。1 2 3 3$("img").each(function(i){4 this.src =...
分类:
Web程序 时间:
2014-08-24 23:46:44
阅读次数:
370
qt5.3已经全面支持移动开发,除了mac,windows,linux,还支持ios,android,wp,meego等移动平台,本教程是作者根据自己的经验,从头讲怎么样在ios上发布自己的app,由于目前国内相关文章还比较少,可能文章里有所疏漏,或者并非最优方法。
软件准备:qt5.3 , xcode 5.1.1
编译环境: Mac os
Qt5.3下载地址 h...
分类:
移动开发 时间:
2014-08-24 22:22:33
阅读次数:
332
本文介绍了项目持续集成工具Jenkins的安装部署过程,以及与版本控制系统Git的配合使用,最后通过详细的例子介绍了应该如何建构一个持续集成的项目管理。其中,解决了很多安装部署中遇到的问题。...
分类:
其他好文 时间:
2014-08-24 20:55:03
阅读次数:
445
Given an absolute path for a file (Unix-style), simplify it.For example,path = "/home/", => "/home"path = "/a/./b/../../c/", => "/c"思路:本题使用栈来处理即可。此处我们...
分类:
其他好文 时间:
2014-08-24 20:50:23
阅读次数:
155
Given an unsorted integer array, find the first missing positive integer.For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2.Your algorithm s...
分类:
其他好文 时间:
2014-08-24 20:47:42
阅读次数:
214
package com.example.stackview;import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util....
分类:
移动开发 时间:
2014-08-24 20:44:33
阅读次数:
295
LeetCode: Sum Root to Leaf NumbersGiven a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is t...
分类:
其他好文 时间:
2014-08-24 20:41:33
阅读次数:
175