Skip to content
Discussion options

You must be logged in to vote

Slint does not yet support like PageStack { ... } navigation
#328

But my solution is to achieve it in the following way,

Consider drawing a state diagram of all pages and page jump relationships of your program

Write the following slint code:

     import { Button , TabWidget, LineEdit} from "std-widgets.slint";
     // route table
    enum MultiPageEnum {
        LoginPage,
        RegisterPage,
        IndexPage,
    }

    export component LoginPage inherits Rectangle {
        property <string> account;
        callback on-login-success(string);
        callback on-register-button-click();

        // Route enter init page property
        public function enter-page(account: string) {…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sundaritisthatis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants