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

QTabWidget



  • Welcome!

    I need to implement 3 function graphs (on 3 separate tabs with one graph) using the QTabWidget class (I create it via a form by just pulling this class on the field)

    How do I personally work with a specific tab? On the first tab, I need to implement through one method, on the second tab, through another. But how can I write anything at all on any particular tab (that is, through the code)


  • Lifetime Qt Champion

    Hi
    The tabs are available directly via the UI struct

    ui->tab_2->XXXX


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You don't work with the tab itself but with the widget you put in. QTabWidget is "just a container".


Log in to reply