How do you close a QTabWidget? I have the code but when I click on the close button nothing happens.

Recommended Answers

All 4 Replies

I think you need to connect

void tabCloseRequested ( int index )

with your slot. In which you should call

void removeTab ( int index )

Thank you I will try that.

Here are the new files and it still doesn't close. Please help.

Never mind it worked

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.