Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Problem in Displaying tab Widgets in Qt Simulator

Problem in Displaying tab Widgets in Qt Simulator

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 3 Posters 2.4k 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.
  • P Offline
    P Offline
    prajnaranjan.das
    wrote on last edited by
    #1

    I'm having four push Buttons ,to which I have included a tab widget if the user clicks a push Button....
    I want the same tab widget but with different names if the user clicks another push Button...

    Please Help me ....

    Prajnaranjan Das

    e mail: prajnaranjan.das@gmail.com

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      If I understand you right, you want to change the name of the tabs?
      Then look at: "QTabWidget::setTabText":http://doc.qt.nokia.com/4.7/qtabwidget.html#setTabText
      Otherwise please describe your problem a bit more please....

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        stukdev
        wrote on last edited by
        #3

        You can create a QTabWidget and set hidden by use "setVisibile(false)":http://doc.qt.nokia.com/4.7/qwidget.html#visible-prop.
        When the user click a QPushButton you use "setTabText(index,"name")":http://doc.qt.nokia.com/4.7/qtabwidget.html#setTabText for change the name of the tab and setVisible(true).

        [quote author="Prajnaranjan Das" date="1292306510"]I'm having four push Buttons ,to which I have included a tab widget if the user clicks a push Button....
        I want the same tab widget but with different names if the user clicks another push Button...

        Please Help me ....
        [/quote]

        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