Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Accessing Tab components
Forum Update on Monday, May 27th 2025

Accessing Tab components

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 221 Views
  • 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.
  • M Offline
    M Offline
    Moetman
    wrote on last edited by
    #1

    HI, I want to access component given to addTab() or set properties before giving it to my tab creating function. Is this possible? I've a simple example:

    Component{
    id: mycomponent
    property string myString:
    }

    function loadTab("name"){
    var tab = tabview.addTab(name,mycomponent)
    tab.active: true;
    }

    I want to be able to set myString on mycomponent. Is the only option to use
    getTab()? How would I do that?

    Best regards

    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