├── image ├── 1.jpg ├── 2.png ├── 3.png ├── 4.png └── 5.png ├── main.cpp ├── MyBlueTooth.pro ├── qml.qrc ├── deployment.pri ├── README.md ├── DDuiBtn.qml ├── EveryPage.qml ├── SecondPage.qml ├── ThridPage.qml ├── SevenPage.qml ├── FourthPage.qml ├── FivePage.qml ├── SixPage.qml └── main.qml /image/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toby20130333/qmlpathview/HEAD/image/1.jpg -------------------------------------------------------------------------------- /image/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toby20130333/qmlpathview/HEAD/image/2.png -------------------------------------------------------------------------------- /image/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toby20130333/qmlpathview/HEAD/image/3.png -------------------------------------------------------------------------------- /image/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toby20130333/qmlpathview/HEAD/image/4.png -------------------------------------------------------------------------------- /image/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toby20130333/qmlpathview/HEAD/image/5.png -------------------------------------------------------------------------------- /main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication app(argc, argv); 7 | 8 | QQmlApplicationEngine engine; 9 | engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); 10 | 11 | return app.exec(); 12 | } 13 | -------------------------------------------------------------------------------- /MyBlueTooth.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = app 2 | 3 | QT += qml quick widgets 4 | 5 | SOURCES += main.cpp 6 | 7 | RESOURCES += qml.qrc 8 | 9 | # Additional import path used to resolve QML modules in Qt Creator's code model 10 | QML_IMPORT_PATH = 11 | 12 | # Default rules for deployment. 13 | include(deployment.pri) 14 | -------------------------------------------------------------------------------- /qml.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | main.qml 4 | MainForm.ui.qml 5 | EveryPage.qml 6 | SecondPage.qml 7 | ThridPage.qml 8 | FourthPage.qml 9 | FivePage.qml 10 | SixPage.qml 11 | SevenPage.qml 12 | DDuiBtn.qml 13 | 14 | 15 | -------------------------------------------------------------------------------- /deployment.pri: -------------------------------------------------------------------------------- 1 | android-no-sdk { 2 | target.path = /data/user/qt 3 | export(target.path) 4 | INSTALLS += target 5 | } else:android { 6 | x86 { 7 | target.path = /libs/x86 8 | } else: armeabi-v7a { 9 | target.path = /libs/armeabi-v7a 10 | } else { 11 | target.path = /libs/armeabi 12 | } 13 | export(target.path) 14 | INSTALLS += target 15 | } else:unix { 16 | isEmpty(target.path) { 17 | qnx { 18 | target.path = /tmp/$${TARGET}/bin 19 | } else { 20 | target.path = /opt/$${TARGET}/bin 21 | } 22 | export(target.path) 23 | } 24 | INSTALLS += target 25 | } 26 | 27 | export(INSTALLS) 28 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # qmlpathview 2 | 基于QML PathView实现的一些效果 3 | 4 | ====================================== 5 | 6 | This is a pathview example of QML implementing,It is completely cross platform, and runs on Linux, OS X, and Windows. It also run on iOS, Android, Wphone, Ubutun Phone, Sailfish OS,or BlakBerry, There are currently officially supported. 7 | 8 | ### PreView 9 | 10 | ![p1](https://github.com/toby20130333/qmlpathview/blob/master/image/1.jpg) 11 | 12 | ![p2](https://github.com/toby20130333/qmlpathview/blob/master/image/2.png) 13 | 14 | ![p3](https://github.com/toby20130333/qmlpathview/blob/master/image/3.png) 15 | 16 | ![p4](https://github.com/toby20130333/qmlpathview/blob/master/image/4.png) 17 | 18 | ![p5](https://github.com/toby20130333/qmlpathview/blob/master/image/5.png) 19 | 20 | 21 | ### Dependencies 22 | 23 | Requires QtCreator 24 | 25 | Requires Qt 5.0 or higher 26 | 27 | Requires JavaScript 28 | 29 | ### Installation 30 | From the root of the repository, run: 31 | 32 | Open QtCreator Tool. 33 | 34 | ReBuild this demo. 35 | 36 | Run this Execute file. 37 | 38 | ### Licensing 39 | 40 | This demo is free software; but now you can redistribute it and/or modify. -------------------------------------------------------------------------------- /DDuiBtn.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | import QtQuick.Controls 1.3 3 | import QtQuick.Controls.Styles 1.1 4 | 5 | Button{ 6 | id:topContorl 7 | property string myTxt: "第一页" 8 | signal signalBtnClick(); 9 | signal signalBtnBack(); 10 | width: 100 11 | height: 30 12 | text: myTxt 13 | style: ButtonStyle { 14 | background: Rectangle { 15 | implicitWidth: topContorl.width 16 | implicitHeight: 30 17 | // border.width: control.activeFocus ? 2 : 1 18 | // border.color: "#888" 19 | gradient: Gradient { 20 | GradientStop { position: 0 ; color: control.pressed ? "#ccc" : "#eee" } 21 | GradientStop { position: 0.5 ; color: control.pressed ? "#bbb" : "#ddd" } 22 | GradientStop { position: 1 ; color: control.pressed ? "#aaa" : "#ccc" } 23 | } 24 | } 25 | } 26 | MouseArea{ 27 | id:ma 28 | anchors.fill: parent 29 | onClicked: { 30 | if(mouseX