When you use Qt Designer interface design, when used in the bar of the window controls Spacers or Horizontal Line Display Widgets and other related column layout controls, directly save may pop up the following prompt:
prompt you can not be saved, because then you just plus the layout of the controls add up, and did not adjust the layout of the entire window controls, it may be unable to successfully use those controls layout! Therefore, you need to be an adjustment to the overall layout, as follows:
right mouse button to select the main object in the object viewer, and then select the Lay out the layout, and then choose a layout, I chose the level, then all will control window be a horizontal layout, but this is for the entire form, layout effects may not be good, recommend or select all the controls manually with the mouse, then click the right mouse button layout, as shown in the following figure:
I chose the horizontal layout , the following picture, after a good layout can successfully save it!
The new findings, in fact, as said prompt means, there is a spacer in the top-level window, the control does not exist at the top of the window, the main window is created, either in control or layout and other controls as a whole controls can chatter!
The file contains top level spacers. They will not be saved.Perhaps you forgot to create a layout
Guess you like
Origin blog.csdn.net/weixin_43350361/article/details/104674836
Recommended
Ranking