QT5: Chapter layout and typography controls

I. Introduction

Layouts There are two assembly panels Spacers and the panel assembly QT

Note: The control does not display layout layout

 

1.Layouts (layout)

Vertical Layout: layout vertically, components are automatically distributed in the vertical direction

Horizontal Layout: horizontal layout, components are automatically distributed in the horizontal direction

Grid Layout: grid-like arrangement, when the mesh size of the layout changes, the size of each grid are changed

Form Layout: form layout, with a layout similar to the grid-like, but only the most right of a mesh size change

  • (1) ui file implementation

 

  • (2) code implementation

 

2.Spacers (typesetting)

Horizontal Spacer: a horizontal separation of space for

Vertival Spacer: a space for vertically spaced

  • (1) ui file implementation

 

  • (2) code implementation

 

Guess you like

Origin www.cnblogs.com/k5bg/p/11075386.html