Qt6 topics merged with General

TabWidget index

  • 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 !!!!!!!

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

    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)

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

Log in to reply