Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. differentviews
    Log in to post

    • Invisible buttons are still functioning
      QML and Qt Quick • qtquick states qtqml visibility differentviews • • vishnu  

      13
      0
      Votes
      13
      Posts
      8426
      Views

      @vishnu I have a right-arrow button on my footer where i am pushing a qml file upon clicking. when it is loaded how to disable this button on the footer? enabled = false on click How can make a check before pushing If that is alread in the stack i don't the push it? 2 ways. var myItem = stackView.push( { item: Qt.resolvedUrl("DetailedView.qml"), destroyOnPop:false } ); //check myItem and store it somewhere if(myItem) { } var myItem = stackView.push( { item: Qt.resolvedUrl("DetailedView.qml"), destroyOnPop:false } ); var comp=stackView.get(myItem.Stack.index); //need the item to get its index and not just Stack.index
    • Switching between different views and anchoring them properly w.r.t parent.
      QML and Qt Quick • qml states visibility switching differentviews • • vishnu  

      8
      0
      Votes
      8
      Posts
      4427
      Views

      @vishnucool220 A little bit on explanation would be helpful alongside just downvoting.