摘要:
1.1 Hello Qt创建hello目录,新建源文件hello.cpp:#include <QApplication>
#include <QLabel> int main(int argc, char *argv[])
{ QApplication app(argc, argv); QLabel *label = new QLabel("Hello Qt!"); label->show(); return app.exec();
}进入hello目录,qmake -project生成一个与平台无关的项目文件hello.pro。TEMPLAT 阅读全文
随笔档案-2012年5月19日
Android控件Gallery 3D效果
2012-05-19 13:47 by htc开发, 266 阅读, 收藏,
摘要:
1.扩展Gallery:public class GalleryFlow extends Gallery { private Camera mCamera = new Camera();//相机类 private int mMaxRotationAngle = 60;//最大转动角度 private int mMaxZoom = -300;////最大缩放值 private int mCoveflowCenter;//半径值 public GalleryFlow(Context context) { super(context); //支持转换 ,执行getChildStaticTransfo 阅读全文
失去焦点的方法及判断单双卡方法
2012-05-19 10:44 by htc开发, 270 阅读, 收藏,
摘要:
ViewGroup 中有一个失去焦点的方法clearFocus().TelephonyManager.getDefault().isMultiSimEnabled() 判断单双卡 阅读全文
浙公网安备 33010602011771号