![]() These are described in more detail in the QFrame class description. The most important properties of frames are frameShape, frameShadow, lineWidth, and midLineWidth. They are used as the foundation for more complex containers, but they can also be used as placeholders in forms. The table below shows a list of available containers.įrames are used to enclose and group widgets, as well as to provide decoration. The type of layout management provided depends on each container, although setting the layout is usually just a matter of selecting the container by clicking it, and applying a layout. In Qt Designer, these are automatically created for you, so you can add child objects to each page straight away.Įach container typically allows its child objects to be arranged in one or more layouts. Normally, when adding pages (tabs, pages, compartments) to these containers in your own code, you need to supply existing widgets, either as placeholders or containing child widgets. Stacked widgets, tab widgets, and toolboxes are handled specially in Qt Designer. Both widgets and spacers can be used inside containers. This feedback is important because it is easy to place objects close to containers without actually placing them inside. This indicates that you can drop the object inside, making it a child object of the container. ![]() When you drag an object from the widget box (or elsewhere) on the form, each container will be highlighted when the cursor is positioned over it. Qt Designer provides visual feedback to help you place objects inside your containers. ![]() They can be used to perform a variety of functions, such as managing input widgets, providing paged and tabbed layouts, or just acting as decorative containers for other objects. ![]() Container widgets provide high level control over groups of objects on a form. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |