QML教程:Qtmediahub項目概述
我們介紹了QML教程:《構建和安裝QtComponents》和《Qt-Quick六大開源組件》。屈指一算,QML從公布到正式推出來,也將近有一年多的時間了。
雖然在很多方面,QML依然顯得很新,但采用QML的項目已經越來越多了,Qtmediahub就是其中之一。
本身這個項目的介紹也非常地有趣:
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 |
簡單來說,這是一個替代XBMC的替代實現(xiàn),同時也想探索及展示關于使用QML的技巧,而通過這個項目源碼,也的確展示這些內容。這是截止到現(xiàn)在未知,筆者看到的最為復雜和龐大的使用QML的相關項目。
在Qtmediahub中,不僅使用前面介紹的Qt-components項目,而且也編寫了自己相關部件,事實上,如果把該項目的QML部件單獨拿出來,也足以滿足其他的QML項目。并且更為重要是,在Qtmediahub,有完整地將數據暴露給QML層使用的過程。這些過程,可不是單純地像文檔里簡單的DEMO所示,而是具有完成的數據結構,嚴格按照MVC過程來的。
對于想使用QML做項目的同學來說,這個項目是做參考的最好選擇之一,當然,里面豐富的部件也可以作為項目部件庫的參考。
【編輯推薦】