开发者

How do I make tab control take over entire window in Qt Creator?

开发者 https://www.devze.com 2022-12-10 08:00 出处:网络
I want a tab control to \"dock\" to the entire window panel, in Qt Creator.Now in Winforms and WPF this is super easy but in Qt its not work开发者_如何学运维ing.

I want a tab control to "dock" to the entire window panel, in Qt Creator. Now in Winforms and WPF this is super easy but in Qt its not work开发者_如何学运维ing.

I've tried all the layouts, grid layouts, etc etc. it's just shrinking the tabs not making them grow to fill. So please test a solution before telling me what the SHOULD BE OBVIOUS answer is cause its not working.

omg QQ this is driving me NUTS


I'm unsure what you are trying to achieve here - do you want the control to fill the client area? Are you creating a QMainWindow-derived class or a QDialog-derived one? If using QMainWindow then you'd make the tab control the central widget by calling setCentralWidget. The tab control will then fill the main window's client area. I have done this many times.

Or do you want the tab 'ears' to stretch?

0

精彩评论

暂无评论...
验证码 换一张
取 消