摘要:
1、使用的是Component+自定义信号+Connections 2、在任意地方定义信号 阅读全文
posted @ 2018-08-06 20:07
朱小勇
阅读(386)
评论(0)
推荐(0)
摘要:
1、例子1,简单使用Connections import QtQuick 2.6 import QtQuick.Window 2.2 import QtQuick.Controls 1.4 Window { visible: true width: 640 height: 480 title: qs 阅读全文
posted @ 2018-08-06 17:10
朱小勇
阅读(5711)
评论(0)
推荐(0)
摘要:
2、AnchorLine 上面的AnchorLine就是某一个Item的top、bottom...... 阅读全文
posted @ 2018-08-06 16:56
朱小勇
阅读(950)
评论(0)
推荐(0)
摘要:
QML从ECMAScript继承而来,所以支持这个ECMAScript。经常在QML工程中看到Math、Data.....等方法,但是在Qt手册里搜索不到,这是因为这些方法不是QtQuick的,而是ECMAScript的。 ECMAScript+QtQuick=QML 阅读全文
posted @ 2018-08-06 14:58
朱小勇
阅读(383)
评论(0)
推荐(0)
摘要:
1、QML rect.color = Qt.rgba(Math.random(), Math.random(), Math.random(), 1);//random返回0~1的随机数 2、Qt QColor clr(rand() % 256, rand() % 256, rand() % 256) 阅读全文
posted @ 2018-08-06 13:58
朱小勇
阅读(2053)
评论(0)
推荐(0)