Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Accessing Tab components
Qt 6.12 LTS is out! See what's new in the release blog

Accessing Tab components

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 356 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
    • Unsolved