Important: Please read the Qt Code of Conduct -

How to capture tab/tab icon click event in QToolBox to collapse/expand items

  • Hi All,
    Is there a way to change QToolBox tab index by clicking on the tab/tab icon?

    Here i am trying to collapse/expand tabs based on the tab's status weather it needs to be expanded or collapsed.
    I didn't find any signal/slot for it which will help in my case. I see that tab indexes can be changed only by clicking on another tab other than the current one.

    I am not able to figure it out on, how to make tabs to behave like expand and collapse when user clicks on it just like QTreeView nodes behavior.

    Thanks in advance.

Log in to reply