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に含まれるタイトルバーの高さを取得する方法はありますか?
次のことを試してください。
QTabWidget *myTabWidget = new QTabWidget(); int titleBarHeight = myTabWidget->tabBar->height();
QTabBar のサブクラスで tabSizeHint() メソッドを再実装する必要があります。次に、必要に応じてサイズを取得し、QTabWidget のタブのサイズを好きなサイズに変更できます。お役に立てれば。乾杯。