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:
parent
33c593470c
commit
a53b99304b
@ -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.
|
||||
|
||||
|
@ -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中的所有组件。
|
||||
|
||||
导入过后就能使用全部的组件了。
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -2,7 +2,7 @@
|
||||
import QtQuick.Controls 2.12
|
||||
|
||||
import TaoQuick 1.0
|
||||
import "qrc:/Tao/Qml/"
|
||||
import "qrc:/TaoQuick"
|
||||
|
||||
Item {
|
||||
anchors.fill: parent
|
||||
|
@ -2,7 +2,7 @@
|
||||
import QtQuick.Controls 2.12
|
||||
|
||||
import TaoQuick 1.0
|
||||
import "qrc:/Tao/Qml/"
|
||||
import "qrc:/TaoQuick"
|
||||
|
||||
Item {
|
||||
id: r
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user