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

TabWidget index

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.2k 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.
  • B Offline
    B Offline
    beppuz
    wrote on last edited by
    #1

    Hello,
    I would like to know what the signal when I move between the tabs ....
    Then if I create 5 tabs and I want to save into a variable my current position, ie the index of the tab in the foreground ... how do I? What is the method??

    Thanks !!!!!!!

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vsorokin
      wrote on last edited by
      #2

      You mean this signal?
      @void QTabWidget::currentChanged ( int index )@

      bq.
      This signal is emitted whenever the current page index changes. The parameter is the new current page index position, or -1 if there isn't a new one (for example, if there are no widgets in the QTabWidget)

      --
      Vasiliy

      1 Reply Last reply
      0
      • B Offline
        B Offline
        beppuz
        wrote on last edited by
        #3

        Thanks for your answers ....
        it works! thank you very much

        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