Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to access an item inside a Tab
Forum Updated to NodeBB v4.3 + New Features

How to access an item inside a Tab

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 840 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dmendizabal
    wrote on last edited by
    #1

    I have a TabView and I need to access the items inside the Tabs from outside the TabView. Let me clarify with an example below:

    @TabView {
    id: tabView
    anchors.fill: parent
    anchors.margins: 4
    Tab {
    title: "Tab 1"
    ListView {
    id: listView
    ......
    }
    }
    }

    Label {
    text: listView.currentIndex
    }
    @

    When executing the app, the Label doesn't show anything and there is an error saying that listView isn't defined. Is there anyway to access listView?
    So far I'm using a property defined inside Tab to set and get the currentIndex from ListView.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved