FlatUI by QtQuick.Controls
1.x.
参考 FlatUI 设计的一套 QtQuick 控件
FlatUI by qml, 参考FlatUI设计的一套qml控件
https://u.f-q.me 已经被墙,另寻
Starting C:\Qt\Qt5.6.0\5.6\mingw49_32\bin\qmlscene.exe...
The program has unexpectedly finished.
C:\Qt\Qt5.6.0\5.6\mingw49_32\bin\qmlscene.exe crashed.
准备添加一个异步加载qmlfile的函数如下
signal createQmlObjectFromUrlFinished(variant object,string error)
//signal createQmlObjectFromUrlProgress(real progress)
function createQmlObjectFromUrl(url,p){
var component = Qt.createComponent(url);
// 异步动态创建大对象
var incubator = component.incubateObject(p);
if(typeof incubator != 'undefine') {
if (incubator.status != Component.Ready) {
incubator.onStatusChanged = function(status) {
if (status == Component.Ready) {
console.debug("Object", incubator.object, "is now ready!");
createQmlObjectFromUrlFinished(incubator.object,"");
}
console.debug("status : ",status);
}
}
} else {
createQmlObjectFromUrlFinished(null,component.errorString);
}
}
使用的函数如下
function __createExample(exampleName){
var elementUrl = String("demo/"+exampleName+"/"+exampleName+".qml");
var e;
elementUrl = Qt.resolvedUrl(elementUrl);
console.debug("will create ",exampleName, " from :",elementUrl);
var object = FlatGlobal.createQmlObjectFromUrl(elementUrl,0);
// var object = FlatGlobal.createQmlObjectFromUrl(elementUrl,window);
FlatGlobal.createQmlObjectFromUrlFinished.connect(function(object,error){
// 只做一次
FlatGlobal.createQmlObjectFromUrlFinished.disconnect(arguments.callee);
console.debug("typeof object",typeof object);
if(typeof object == 'undefine'){
return;
}
object.x = window.x + 50;
object.y = window.y + 50;
object.show();
});
}
在运行后,有一定几率会丢失正在构建的对象的控制权
结束运行后提示
There are still "1" items in the process of being created at engine destruction.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.