随笔分类 -  qml

1 2 下一页

QML 中文支持
摘要:有三种方式: 1,国际化 2:写uincode吗 3:直接写文字再QML文件中,和symbian一样,文件保存成utf8 使用 Qt 的国际化功能(与QtScript完全一样,使用 qsTr()) 使用 unicode 的转义字符("\uxxxx") #include <QtCore/QTranslator> #include <QtGui/QAp... 阅读全文

posted @ 2012-03-07 13:39 katago 阅读(632) 评论(0) 推荐(0) 编辑

qml Repeater
摘要:http://doc.qt.nokia.com/4.7-snapshot/qml-repeater.html#details The Repeater element creates all of its delegate items when the repeater is first created.This can be inefficient if there are a large n... 阅读全文

posted @ 2011-11-08 10:10 katago 阅读(775) 评论(0) 推荐(0) 编辑

Chapter 5: Using List Property Types
摘要:http://doc.qt.nokia.com/4.7/declarative-tutorials-extending-chapter5-listproperties.html 阅读全文

posted @ 2011-11-04 15:07 katago 阅读(143) 评论(0) 推荐(0) 编辑

C++ Extensions: Reference examples
摘要:C++ Extensions: Reference examples These examples show how QML can be extended from C++ in various ways. The code for these examples is used throughout the Extending QML in C++ reference documenta... 阅读全文

posted @ 2011-11-03 17:57 katago 阅读(212) 评论(0) 推荐(0) 编辑

Chapter 4: Using Custom Property Types
摘要:http://doc.qt.nokia.com/4.7-snapshot/declarative-tutorials-extending-chapter4-custompropertytypes.html We can also use various other property types. QML has built-in support for the types listed in t... 阅读全文

posted @ 2011-11-03 17:23 katago 阅读(202) 评论(0) 推荐(0) 编辑

Chapter 2: Connecting to C++ Methods and Signals
摘要:Qt slot 或者 using Q_INVOKABLE 都可以被qml调用 public: ... Q_INVOKABLE void clearChart(); signals: void chartCleared(); qml中对应onChartCl... 阅读全文

posted @ 2011-11-03 17:05 katago 阅读(181) 评论(0) 推荐(0) 编辑

Chapter 1: Creating a New Type
摘要:http://doc.qt.nokia.com/4.7-snapshot/declarative-tutorials-extending-chapter1-basics.html ------------------------------------------------- 笔记: QML 各个Element对应的c++类(http://doc.qt.nokia.com/4.7-snapsh... 阅读全文

posted @ 2011-11-03 16:57 katago 阅读(220) 评论(0) 推荐(0) 编辑

Tutorial: Writing QML Extensions with C++
摘要:Tutorial: Writing QML Extensions with C++ The Qt Declarative module provides a set of APIs for extending QML through C++ extensions. You can write extensions to add your own QML types, extend exist... 阅读全文

posted @ 2011-11-03 16:08 katago 阅读(337) 评论(0) 推荐(0) 编辑

qt component desktop
摘要:安装: qmake && make install 包含三个部分:components (qml文件)src(libstyleplugin.so) qmldesktopviewer components/Dial.qml 等文件安装到这个目录: /opt/QtSDK/Desktop/Qt/474/gcc/imports/QtDesktop/ /opt/QtSDK/Desk... 阅读全文

posted @ 2011-11-03 15:42 katago 阅读(501) 评论(0) 推荐(0) 编辑

Extending QML in C++
摘要:http://developer.qt.nokia.com/wiki/How_to_expose_lists_to_QML Extending QML in C++ 4.7文档 http://doc.qt.nokia.com/4.7-snapshot/qml-extending-tutorial-index.html 阅读全文

posted @ 2011-11-03 15:25 katago 阅读(164) 评论(0) 推荐(0) 编辑

板子上运行提示 找不到qml插件
摘要:module "Qt.labs.folderlistmodel" is not installed import Qt.labs.folderlistmodel 1.0 解决方法: cp /mnt/qtmarvell/mvqt/imports/ -a /opt/qtmarvell/mvqt/ 阅读全文

posted @ 2011-10-19 17:44 katago 阅读(3760) 评论(0) 推荐(0) 编辑

qml 嵌入式 效率 qt quick
摘要:用了qml一段时间,发现qt自身的bug很多。看来没有nokia支持qt真的不行了。qml运行效率也比较查,毕竟是解释执行的。而且遇到一些bug很难跟踪。很多都是qml自身的bug,比如叠加时候按键响应问题,刷新问题。qml真是个垃圾。 阅读全文

posted @ 2011-09-08 16:24 katago 阅读(2878) 评论(1) 推荐(0) 编辑

Property Binding
摘要:属性绑定后会自动更新 Rectangle { width: otherItem.width height: otherItem.height } Rectangle { function calculateMyHeight() { return Math.max(otherItem.height, thirdItem.height); } anchors.centerIn: par... 阅读全文

posted @ 2011-08-15 17:17 katago 阅读(371) 评论(0) 推荐(0) 编辑

[QML] Connections元素介绍
摘要:一个Connections对象创建一个了一个QML信号的连接。在QML中,我们连接信号通常是用使用"on<Signal>"来处理的,如下所示: MouseArea { onClicked: { foo(...) } } 复制代码 然而, 以下几种情况则无法通过"on<Signal>"来实现: 1.针对某个信号需要多个处理时,也就是有多个槽关联到同一个信号上。 2.在信号的发送者的范围外(这里可以... 阅读全文

posted @ 2011-08-15 10:16 katago 阅读(2436) 评论(0) 推荐(0) 编辑

一个不错的qml笔记
摘要:http://blog.csdn.net/liuhongwei123888/article/category/834258 阅读全文

posted @ 2011-08-05 17:04 katago 阅读(216) 评论(0) 推荐(0) 编辑

qml 调试
摘要:Debugging QML http://doc.qt.nokia.com/4.7/qdeclarativedebugging.html 主要有:console.debug("list1 " + activeFocus) 可以加参数Debugging TransitionsWhen a transition doesn't look quite right, it can be helpful t... 阅读全文

posted @ 2011-08-05 14:37 katago 阅读(1715) 评论(0) 推荐(0) 编辑

qml focus相关
摘要:Item的属性: read-only activeFocus : bool This property indicates whether the item has active focus. An item with active focus will receive keyboard input, or is a FocusScope ancestor of the item that wil... 阅读全文

posted @ 2011-08-05 11:08 katago 阅读(2837) 评论(0) 推荐(0) 编辑

QML Item Element
摘要:All visual items in Qt Declarative inherit from Item. Although Item has no visual appearance, it defines all the properties that are common across visual items - such as the x and y position, the widt... 阅读全文

posted @ 2011-08-04 14:18 katago 阅读(268) 评论(0) 推荐(0) 编辑

QML Animation
摘要:Types of Animations 主要有以下几种动画: Value Source / Behavior When an animation is used as a value source or in a Behavior, the default target and property name to be animated can both be inferred. Rectangl... 阅读全文

posted @ 2011-08-04 14:00 katago 阅读(676) 评论(0) 推荐(0) 编辑

qml资料
摘要:http://developer.qt.nokia.com/wiki/Category:Developing_with_Qt::Qt_Quick http://developer.qt.nokia.com/wiki/Flying_Bus_Game https://projects.developer.nokia.com/qmlbox2ddemo 阅读全文

posted @ 2011-08-02 18:53 katago 阅读(157) 评论(0) 推荐(0) 编辑

1 2 下一页
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示