Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
を使用しQTabWidget、setMovable(True)すべてのタブを自由に移動できるように設定します。 それは私にはうまくいきますが、もう1つ願っています。 タブがここに移動したときに、SIGNAL をアプリケーションに知らせたい。
QTabWidget
setMovable(True)
currentChanged(int)SIGNAL はそれに適合しません。
currentChanged(int)
を再実装する場合QTabWidget、何をしなければなりませんか?
tabMovedの信号を使用しQTabBarます。QTabBarメソッドで慣れることができQTabWidgetますtabBar()。
tabMoved
QTabBar
tabBar()