diff --git a/Install-en.md b/Install-en.md index 4a2d219..6faad02 100644 --- a/Install-en.md +++ b/Install-en.md @@ -70,13 +70,13 @@ QtCreator also can use build argument. 2. import in you qml ``` import TaoQuick 1.0 -import "qrc:/Tao/Qml/" +import "qrc:/TaoQuick" ``` ![](https://github.com/jaredtao/TaoQuickPreview/blob/master/Preview/TaoQuick-use.png) `import TaoQuick 1.0` is import library. -`import "qrc:/Tao/Qml/` is import Resource by qmldir file in "qrc:/Tao/Qml/" +`import "qrc:/TaoQuick/` is import Resource by qmldir file in "qrc:/TaoQuick/" this use method not support QtCreator HighLight. diff --git a/Install.md b/Install.md index 23df5bc..a9ba957 100644 --- a/Install.md +++ b/Install.md @@ -80,14 +80,14 @@ TaoQuick库将被安装到{QTDIR}/qml/TaoQuick/ 路径下。 2. 在你的Qml中写上这两句,就完成了TaoQuick的导入 ``` import TaoQuick 1.0 -import "qrc:/Tao/Qml/" +import "qrc:/TaoQuick" ``` ![](https://github.com/jaredtao/TaoQuickPreview/blob/master/Preview/TaoQuick-use.png) `import TaoQuick 1.0` 是在导入dll库。 -`import "qrc:/Tao/Qml/` 是在导入"qrc:/Tao/Qml/"路径下的qmldir文件,这个文件描述了TaoQuick中的所有组件。 +`import "qrc:/TaoQuick/` 是在导入"qrc:/TaoQuick/"路径下的qmldir文件,这个文件描述了TaoQuick中的所有组件。 导入过后就能使用全部的组件了。 diff --git a/src/TaoQuickApp/Qml/MainPage.qml b/src/TaoQuickApp/Qml/MainPage.qml index 77d5528..c4e98a8 100644 --- a/src/TaoQuickApp/Qml/MainPage.qml +++ b/src/TaoQuickApp/Qml/MainPage.qml @@ -71,4 +71,14 @@ Item { NotifyBox { id: notifyBox } + ShaderEffectSource { + anchors { + right: parent.right + bottom: parent.bottom + } + sourceItem: rootView + width: 300 + height: width / rootView.width * rootView.height + recursive: true + } } diff --git a/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Buttons.qml b/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Buttons.qml index 9b8ba1c..1b661db 100644 --- a/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Buttons.qml +++ b/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Buttons.qml @@ -1,7 +1,7 @@ import QtQuick 2.12 import QtQuick.Controls 2.12 import TaoQuick 1.0 -import "qrc:/Tao/Qml/" +import "qrc:/TaoQuick" Item { anchors.fill: parent property color btnColor: "#06b7ed" diff --git a/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Dialogs.qml b/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Dialogs.qml index ff0ab48..9e6e0d8 100644 --- a/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Dialogs.qml +++ b/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Dialogs.qml @@ -2,7 +2,7 @@ import QtQuick 2.12 import QtQuick.Controls 2.12 import TaoQuick 1.0 -import "qrc:/Tao/Qml/" +import "qrc:/TaoQuick" Item { anchors.fill: parent TDialog { diff --git a/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Drags.qml b/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Drags.qml index 4fbe848..60f217b 100644 --- a/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Drags.qml +++ b/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Drags.qml @@ -2,7 +2,7 @@ import QtQuick 2.12 import QtQuick.Controls 2.12 import TaoQuick 1.0 -import "qrc:/Tao/Qml/" +import "qrc:/TaoQuick" Item { anchors.fill: parent diff --git a/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Gradiants.qml b/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Gradiants.qml index b8840c2..217f4f1 100644 --- a/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Gradiants.qml +++ b/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Gradiants.qml @@ -2,7 +2,7 @@ import QtQuick.Controls 2.12 import TaoQuick 1.0 -import "qrc:/Tao/Qml/" +import "qrc:/TaoQuick" Item { anchors.fill: parent diff --git a/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Progresses.qml b/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Progresses.qml index b5a02c6..1d3fabb 100644 --- a/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Progresses.qml +++ b/src/TaoQuickPlugin/Qml/Contents/BaseComponent/Progresses.qml @@ -2,7 +2,7 @@ import QtQuick.Controls 2.12 import TaoQuick 1.0 -import "qrc:/Tao/Qml/" +import "qrc:/TaoQuick" Item { id: r diff --git a/src/TaoQuickPlugin/Qml/Contents/ShaderEffect/CloudHole.qml b/src/TaoQuickPlugin/Qml/Contents/ShaderEffect/CloudHole.qml index 969e2a0..080f199 100644 --- a/src/TaoQuickPlugin/Qml/Contents/ShaderEffect/CloudHole.qml +++ b/src/TaoQuickPlugin/Qml/Contents/ShaderEffect/CloudHole.qml @@ -2,7 +2,7 @@ import QtQuick 2.12 import QtQuick.Controls 2.12 import TaoQuick 1.0 -import "qrc:/Tao/Qml/" +import "qrc:/TaoQuick" TShaderToy { anchors.fill: parent diff --git a/src/TaoQuickPlugin/Qml/Contents/ShaderEffect/Planet.qml b/src/TaoQuickPlugin/Qml/Contents/ShaderEffect/Planet.qml index effb4af..969482c 100644 --- a/src/TaoQuickPlugin/Qml/Contents/ShaderEffect/Planet.qml +++ b/src/TaoQuickPlugin/Qml/Contents/ShaderEffect/Planet.qml @@ -2,7 +2,7 @@ import QtQuick 2.12 import QtQuick.Controls 2.12 import TaoQuick 1.0 -import "qrc:/Tao/Qml/" +import "qrc:/TaoQuick" TShaderToy { anchors.fill: parent diff --git a/src/TaoQuickPlugin/Qml/Contents/ShaderEffect/Snail.qml b/src/TaoQuickPlugin/Qml/Contents/ShaderEffect/Snail.qml index b4a141b..b6a9d24 100644 --- a/src/TaoQuickPlugin/Qml/Contents/ShaderEffect/Snail.qml +++ b/src/TaoQuickPlugin/Qml/Contents/ShaderEffect/Snail.qml @@ -2,7 +2,7 @@ import QtQuick 2.12 import QtQuick.Controls 2.12 import TaoQuick 1.0 -import "qrc:/Tao/Qml/" +import "qrc:/TaoQuick" TShaderToy { anchors.fill: parent diff --git a/src/TaoQuickPlugin/Qml/Contents/ShaderEffect/SuperMario.qml b/src/TaoQuickPlugin/Qml/Contents/ShaderEffect/SuperMario.qml index 193965f..7535d43 100644 --- a/src/TaoQuickPlugin/Qml/Contents/ShaderEffect/SuperMario.qml +++ b/src/TaoQuickPlugin/Qml/Contents/ShaderEffect/SuperMario.qml @@ -2,7 +2,7 @@ import QtQuick 2.12 import QtQuick.Controls 2.12 import TaoQuick 1.0 -import "qrc:/Tao/Qml/" +import "qrc:/TaoQuick" TShaderToy { anchors.fill: parent