2.4 KiB
catalogue
Code Struct
'src' folder contains 4 sub-project:
-
TaoQuick
main library.
support use ' make install ' install into QTDIR。
-
TaoQuickApp
Demo,show how use TaoQuick。
It's a content loader, provide basic window and menu, load content by plugin.
-
TaoQuickPlugin
one plugin, show Basic Component in TaoQuick.
-
TaoEffectPlugin
one plugin, show Effect Component in TaoQuick.
TaoQuick Build
Commond line, just use
qmake make
after build, library will be auto copied in "bin/debug/TaoQuick" or "bin/release/TaoQuick"
TaoQuick Install
also you can use
` make install
` library will be installed in "{QTDIR}/qml/TaoQuick"
QtCreator also can use build argument.
TaoQuick Use
-
copy "bin/debug/TaoQuick" or "bin/release/TaoQuick" to you binary folder
-
import in you qml
import TaoQuick 1.0
import "qrc:/Tao/Qml/"
import TaoQuick 1.0
is import library.
import "qrc:/Tao/Qml/
is import Resource by qmldir file in "qrc:/Tao/Qml/"
this use method not support QtCreator HighLight.
TaoQuick Designer-mode
TaoQuick support Designer-mode in QtCreator.
-
make sure TaoQuick is installed to {QTDIR}/qml/TaoQuick/
-
Restart QtCreator,open you project and change to Designer-mode,in Importer ComboBox,select TaoQuick,
press Ctrl + S to save, then QtCreator will load TaoQuick.
Now, you can create component by drag , change propery easily.