1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-01-31 21:22:58 +08:00

update import path

This commit is contained in:
jared 2020-06-16 13:43:46 +08:00
parent 33c593470c
commit a53b99304b
12 changed files with 23 additions and 13 deletions

View File

@ -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.

View File

@ -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中的所有组件。
导入过后就能使用全部的组件了。

View File

@ -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
}
}

View File

@ -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"

View File

@ -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 {

View File

@ -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

View File

@ -2,7 +2,7 @@
import QtQuick.Controls 2.12
import TaoQuick 1.0
import "qrc:/Tao/Qml/"
import "qrc:/TaoQuick"
Item {
anchors.fill: parent

View File

@ -2,7 +2,7 @@
import QtQuick.Controls 2.12
import TaoQuick 1.0
import "qrc:/Tao/Qml/"
import "qrc:/TaoQuick"
Item {
id: r

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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