net.efever.viewstack

A Stateless StackView

version 0.0.2

To install:

❯ qpm install net.efever.viewstack

ViewStack.pri - A Stateful StackView

ViewStack is a wrapper of StackView (QQC2) that provides a stateless interface. It could perform push/pop/replace transition according to the state change. It is useful for QuickFlux/QRedux based application.

Status: Working, but no document yet

Features

  1. Push/pop/replace pages via a state variable. (stack property)
  2. Custom transition effect per page

Example:


    ViewStack {
        stack: ["page1" , "page2"]

        model: Item {
            property Component page1 : Rectangle {
                    color: "red"
            }

            property Component page2: Rectangle {
                    color: "green"
            }
        }
        
        property Transition page2_pushEnter : Transition {
           /// ...
        }

    }

Installation

qpm install net.efever.viewstack
Author

Ben Lau

Info
View on Github

License: APACHE_2_0

Installs
Today 1
This week 14
This month 16
This year 20
Total 20
Dependencies

None.

Versions