I have a tabwidget with a bunch of tabs.
If the tab title is a customtext, then on closing the tab, I want to show a prompt before deciding if I need to close the tab or not.

I connected the tabcloserequested signal to the slot
I tried to print the tab title of the closed tabindex obtained.
But it currently prints an empty string.


Can someone please point me to ways I might be able to implement this?

Thank you!