Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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