QML教程:Qtmediahub項(xiàng)目概述
我們介紹了QML教程:《構(gòu)建和安裝QtComponents》和《Qt-Quick六大開源組件》。屈指一算,QML從公布到正式推出來(lái),也將近有一年多的時(shí)間了。
雖然在很多方面,QML依然顯得很新,但采用QML的項(xiàng)目已經(jīng)越來(lái)越多了,Qtmediahub就是其中之一。
本身這個(gè)項(xiàng)目的介紹也非常地有趣:
This is a reference implementation of XBMC intended to showcase the power and convenience of QML and as a demo for use at Qt related events more…
It is intended for research and to convey best practices when using Qt/QML. It deliberately touches as much of QML as possible in order to serve as a full fledged bleeding edge real world example. Use at your own risk, please read the included license file and associated headers for further information |
簡(jiǎn)單來(lái)說(shuō),這是一個(gè)替代XBMC的替代實(shí)現(xiàn),同時(shí)也想探索及展示關(guān)于使用QML的技巧,而通過這個(gè)項(xiàng)目源碼,也的確展示這些內(nèi)容。這是截止到現(xiàn)在未知,筆者看到的最為復(fù)雜和龐大的使用QML的相關(guān)項(xiàng)目。
在Qtmediahub中,不僅使用前面介紹的Qt-components項(xiàng)目,而且也編寫了自己相關(guān)部件,事實(shí)上,如果把該項(xiàng)目的QML部件單獨(dú)拿出來(lái),也足以滿足其他的QML項(xiàng)目。并且更為重要是,在Qtmediahub,有完整地將數(shù)據(jù)暴露給QML層使用的過程。這些過程,可不是單純地像文檔里簡(jiǎn)單的DEMO所示,而是具有完成的數(shù)據(jù)結(jié)構(gòu),嚴(yán)格按照MVC過程來(lái)的。
對(duì)于想使用QML做項(xiàng)目的同學(xué)來(lái)說(shuō),這個(gè)項(xiàng)目是做參考的最好選擇之一,當(dāng)然,里面豐富的部件也可以作為項(xiàng)目部件庫(kù)的參考。
【編輯推薦】