qml
Cocoanerd
Pick a schedule you can live with, and stick to it. I don’t care if you suck at writing, if nobody reads, if you have nothing interesting to say. If you can demonstrate a willingness to write, and a desire to keep continually improving your writing, you will eventually be successful.
展开
-
算法 二维数组行列转换,将不同行同列的放在一个数组
主要思路,将原二维数组映射为新的键值对数组(键为下标,值为数据),并拆分为一维数组。再讲一维数组根据相同的key组合为不同的一维数组,再将其整合为二维数组。下面代码可复制直接尝试 var arr1 = [[1,2,3],[4,5,6],[7,8]]; arr1.map(function (item, index) { item.map(function (childItem, childItemIndex) { item[chil原创 2020-09-15 16:57:01 · 427 阅读 · 0 评论 -
qml实现网络请求loading
实现代码:import QtQuick 2.0import QtQuick.Controls 2.4Dialog { header: null footer: null width: window.width height: window.height background: Rectangle { color: Qt.rgba(1,1,1,0) } modal: false closePolicy: Popup.NoA原创 2020-08-31 12:00:20 · 645 阅读 · 0 评论 -
QML之Dialog点击背景不让其隐藏或消失
总之不管什么理由,我参与了QML开发,来支持收银系统的桌面应用。想想还是记录点什么吧。想要让dialog点击背景是不消失,只需要只需要设置一个属性,然而官方文档上我怎么没找到这个属性。不知道为啥closePolicy: Popup.NoAutoClose到此结束,哈哈。如果不设置,点击背景会默认调用reject方法。...转载 2020-08-18 09:38:12 · 734 阅读 · 2 评论