Accessing Tab components



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.