I have a Rectangle widget, and a resize box widget, and a text edit widget. How can I compose them witho开发者_运维问答ut using layouts ? I want all of them as a single widget.
The documentation for how to do a manual layout is in Qt Layout Management here.
Are you sure you can't use one of the standard layouts? You can make a custom widget with three children positioned inside using a layout (or layouts) and your new custom widget will still be just a single widget.
精彩评论