摘要:有三种方式: 1,国际化 2:写uincode吗 3:直接写文字再QML文件中,和symbian一样,文件保存成utf8 使用 Qt 的国际化功能(与QtScript完全一样,使用 qsTr()) 使用 unicode 的转义字符("\uxxxx") #include <QtCore/QTranslator> #include <QtGui/QAp...
阅读全文
摘要: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...
阅读全文
摘要:http://doc.qt.nokia.com/4.7/declarative-tutorials-extending-chapter5-listproperties.html
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:Qt slot 或者 using Q_INVOKABLE 都可以被qml调用 public: ... Q_INVOKABLE void clearChart(); signals: void chartCleared(); qml中对应onChartCl...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:安装: qmake && make install 包含三个部分:components (qml文件)src(libstyleplugin.so) qmldesktopviewer components/Dial.qml 等文件安装到这个目录: /opt/QtSDK/Desktop/Qt/474/gcc/imports/QtDesktop/ /opt/QtSDK/Desk...
阅读全文
摘要: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
阅读全文
摘要:module "Qt.labs.folderlistmodel" is not installed import Qt.labs.folderlistmodel 1.0 解决方法: cp /mnt/qtmarvell/mvqt/imports/ -a /opt/qtmarvell/mvqt/
阅读全文
摘要:用了qml一段时间,发现qt自身的bug很多。看来没有nokia支持qt真的不行了。qml运行效率也比较查,毕竟是解释执行的。而且遇到一些bug很难跟踪。很多都是qml自身的bug,比如叠加时候按键响应问题,刷新问题。qml真是个垃圾。
阅读全文
摘要:属性绑定后会自动更新 Rectangle { width: otherItem.width height: otherItem.height } Rectangle { function calculateMyHeight() { return Math.max(otherItem.height, thirdItem.height); } anchors.centerIn: par...
阅读全文
摘要:一个Connections对象创建一个了一个QML信号的连接。在QML中,我们连接信号通常是用使用"on<Signal>"来处理的,如下所示: MouseArea { onClicked: { foo(...) } } 复制代码 然而, 以下几种情况则无法通过"on<Signal>"来实现: 1.针对某个信号需要多个处理时,也就是有多个槽关联到同一个信号上。 2.在信号的发送者的范围外(这里可以...
阅读全文
摘要:http://blog.csdn.net/liuhongwei123888/article/category/834258
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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
阅读全文