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 problem
Forum Updated to NodeBB v4.3 + New Features

Qtabwidget problem

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 727 Views 1 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.
  • M Offline
    M Offline
    mahdisaj
    wrote on last edited by
    #1

    hi
    i have a qtabwidget with 2 tabs. tab1 and tab2.
    i have a qpushbutton and a qlabel.
    how can i add button only to tab1(not tab2) and add label only to tab2(not tab1)?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      The question is how you generate those tabs?
      If you generate and populate one tab and make a copy of this tab, you will have the same contents.
      However, each tab may be populated independently.

      When using the designer and place a QTabWidget it will have already two tabs. Pull the QPushButton on to the first tab. Switch to the second one and pull the QLabel on to this one.

      Vote the answer(s) that helped you to solve your issue(s)

      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 Extensions
      • Unsolved