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. QTabWidget
Qt 6.11 is out! See what's new in the release blog

QTabWidget

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 3 Posters 345 Views 2 Watching
  • 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.
  • I Offline
    I Offline
    iSimstix1
    wrote on last edited by
    #1

    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)

    1 Reply Last reply
    1
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      The tabs are available directly via the UI struct

      ui->tab_2->XXXX

      1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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".

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved