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. how to change "tab" title ?
Forum Updated to NodeBB v4.3 + New Features

how to change "tab" title ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 573 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by Anonymous_Banned275
    #1

    I can test add tooltip to "tab" , however , cannot find SIMPLE / similar way to change 'tab" title

    I found how to addTab - now I like to copy existing tab widgets to new tab....

        Dialog *TEST_Dialog_1 = new Dialog();
                        TEST_Dialog_1->show();
                        // test change tab HERE ??
                        text =" TEST tooltip.....";
                        TEST_Dialog_1->ui->tab_4->setToolTip(text);
    
    
    Christian EhrlicherC Pl45m4P 2 Replies Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher moved this topic from The Lounge on
    • A Anonymous_Banned275

      I can test add tooltip to "tab" , however , cannot find SIMPLE / similar way to change 'tab" title

      I found how to addTab - now I like to copy existing tab widgets to new tab....

          Dialog *TEST_Dialog_1 = new Dialog();
                          TEST_Dialog_1->show();
                          // test change tab HERE ??
                          text =" TEST tooltip.....";
                          TEST_Dialog_1->ui->tab_4->setToolTip(text);
      
      
      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      The text of a tab can be set via QTabBar::setTabText(int index, const QString &text).

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • A Anonymous_Banned275

        I can test add tooltip to "tab" , however , cannot find SIMPLE / similar way to change 'tab" title

        I found how to addTab - now I like to copy existing tab widgets to new tab....

            Dialog *TEST_Dialog_1 = new Dialog();
                            TEST_Dialog_1->show();
                            // test change tab HERE ??
                            text =" TEST tooltip.....";
                            TEST_Dialog_1->ui->tab_4->setToolTip(text);
        
        
        Pl45m4P Offline
        Pl45m4P Offline
        Pl45m4
        wrote on last edited by
        #3

        @AnneRanch said in how to change "tab" title ?:

        TEST_Dialog_1->ui->tab_4->setToolTip(text);

        You should not access the ui from other widgets directly.


        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

        ~E. W. Dijkstra

        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