Hyun-geun Kim
Hyun-geun Kim

Reputation: 1069

PyQt4 : With QTabWidget, can I get the "tab-moved" SIGNAL?

I use a QTabWidget, and set setMovable(True) to set free to move all tabs.
It works well to me, but I hope one more thing.
When tab move here to there, I want to get the SIGNAL the application to know.

currentChanged(int) SIGNAL doesn't fit to that.

If I reimplement the QTabWidget, what I have to do?

Upvotes: 2

Views: 1373

Answers (1)

Avaris
Avaris

Reputation: 36715

Use the tabMoved signal of QTabBar. You can get the QTabBar used in QTabWidget with the tabBar() method.

Upvotes: 4

Related Questions