I'm not sure what you are trying to achieve here - do you want the control to fill the client area? Are you creating a class based on QMainWindow, or derived from QDialog? If you use QMainWindow, you must make the tab the center widget by calling setCentralWidget . Then the tab control will populate the client window area of ββthe main window. I have done this many times.
Or do you want the ears tab to stretch out?
source share