![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
qml
Mr_Ren_RZH
这个作者很懒,什么都没留下…
展开
-
Qt qml GroupBox思路
import QtQuick 2.9import QtQuick.Window 2.2import QtQuick.Controls 1.4import QtQuick.Controls.Styles 1.4Window { visible: true width: 640 height: 480 title: qsTr("Hello World")...原创 2018-12-07 11:16:34 · 2375 阅读 · 1 评论 -
qml中颜色使用rgb格式进行设置
Qt里面要对界面进行颜色赋值,可以采用十六进制(#FFFFFF)或者Qt.rgba(0.5,0.5,0.5,1)这2种方法,这2个方法使用起来都不是很方便, 无法使用rgb值进行设置,也是比较麻烦,因此想到qml支持js函数的方法,进行将rgb转换成十六进制的格式,然后进行使用使用的时候可以单独创建一个js文件,将这个转换函数写入到其中.然后使用import "CommonFunc...原创 2019-01-24 10:56:14 · 4206 阅读 · 0 评论 -
qml TableView样式设置
import QtQuick 2.9import QtQuick.Window 2.2import QtQuick.Controls 1.4Window { visible: true width: 640 height: 480 title: qsTr("Hello World") TableView { id: tableVi...原创 2019-01-09 13:35:02 · 5879 阅读 · 2 评论 -
qml ListView
import QtQuick 2.9import QtQuick.Window 2.2import QtQuick.Controls 1.4import QtQuick.Controls.Styles 1.4Window { visible: true width: 640 height: 480 title: qsTr("Hello World...原创 2019-01-23 10:18:16 · 909 阅读 · 0 评论