Home > Back-end >  Qt after get layout controls the size of the method
Qt after get layout controls the size of the method

Time:11-24

Excuse me how to get in the qt secondary controls the size of the layout?
For example under the widget interface directly involved in the layout for level 1 control, level control can override resizeevent function to obtain the size of the layout after, but if the control is under the level of control the layout of the control, such as the widget interface under a container qframe layout, layout in qframe another qlabel, this control is the secondary controls, found overloading resizeevent function to obtain the secondary control is still the default size, the size of the excuse me what method for everyone?

CodePudding user response:

The landlord to solve the problem

CodePudding user response:

Override resizeevent function function, get is the default size for the first time, but in the second to update the size of the set for you, at present has yet to find other better way to get in the first time for the custom size
  • Related