开发者

size[policy] of nested QMainWindows

开发者 https://www.devze.com 2023-03-01 18:08 出处:网络
I\'ve got a QMainWindow in a QTabWidget in a[n otherwise 开发者_Go百科empty] QVBoxLayout in a QWidget in a QTabWidget in a QMainWindow.

I've got a QMainWindow in a QTabWidget in a[n otherwise 开发者_Go百科empty] QVBoxLayout in a QWidget in a QTabWidget in a QMainWindow.

But the size of the internal QMainWindow is being reported as 640x480 (the size of the external QMainWindow) when the sizeHint is reported as 70x26 (smaller than the widgets inside the internal QMainWindow). It looks like 70x26 to me.

How can I adjust the size to stretch to fill the internal QTabWidget/QVBoxLayout/QWidget?

The internal QMainWindow has a QTextEdit for the central widget and a QComboBox in a QDockWidget on the bottom docking area. The external QTabWidget has other QWidgets which work fine.

0

精彩评论

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